Main derivation
S01 · definition
Before
f'(x)
After
f'(x)=D\iff\forall\varepsilon>0\ \exists\delta>0\ \forall h:\ 0<|h|<\delta\Rightarrow\left|\frac{f(x+h)-f(x)}{h}-D\right|<\varepsilonConditions: h\neq 0
Rule: mko_derivative · Uses: G1, func_limit_def
Leaf basis: mko_derivative + func_limit_def + def_unfold
By the MKO, the derivative is the finite two-sided limit of the difference quotient as h→0 with h≠0. The quotient itself is defined only for h≠0; the derivative is a limit, not the quotient at some finite step. If the limit does not exist, neither does the derivative.
S02 · equivalent
Before
f(1)
After
3\cdot 1^2-2\cdot 1+5=6
Conditions: none
Rule: numeric_evaluation · Uses: G2
Leaf basis: numeric_evaluation
The centre value f(1)=3−2+5=6 (N3). It is the amount subtracted in the numerator of the quotient.
S03 · equivalent
Before
f(1+h)
After
3(1+h)^2-2(1+h)+5=6+4h+3h^2
Conditions: none
Rule: distributive · Uses: G2, distributive
Leaf basis: distributive + power_laws + add_comm + add_assoc
(1+h)²=1+2h+h², so 3(1+h)²=3+6h+3h²; −2(1+h)=−2−2h; adding, 3+6h+3h²−2−2h+5=6+4h+3h² (N1 checks this as a polynomial identity).
S04 · equivalent
Before
f(1+h)-f(1)
After
4h+3h^2
Conditions: none
Rule: eq_replace · Uses: S02, S03
Leaf basis: eq_replace + add_inverse + add_zero
Substitute S03 and S02: (6+4h+3h²)−6=4h+3h².
S05 · equivalent
Before
\frac{4h+3h^2}{h}\ (h\neq 0)After
4+3h
Conditions: h\neq 0
Rule: frac_rules · Uses: S04, frac_rules
Leaf basis: frac_rules + distributive + mul_inverse_nonzero
The numerator is 4h+3h²=h(4+3h); for h≠0 cancel h to get 4+3h. At h=0 the quotient is 0/0, undefined; so h=0 may not be substituted into the original quotient; one simplifies for h≠0 first and then examines the limit.
S06 · implies
Before
\varepsilon>0\ \text{arbitrary},\ \delta=\tfrac{\varepsilon}{3}After
0<|h|<\delta\Rightarrow|(4+3h)-4|=3|h|<\varepsilon;\ f'(1)=4
Conditions: \varepsilon>0
Rule: forall_intro · Uses: S01, S05
Leaf basis: forall_intro + exists_intro + abs_rules + order_basics
Take an arbitrary ε>0 and let δ=ε/3. If 0<|h|<δ, then by S05 |Q(h)−4|=|3h|=3|h|<3δ=ε. As ε is arbitrary, S01 gives f'(1)=4.
S07 · equivalent
Before
\frac{f(x+h)-f(x)}{h},\ f(t)=a_2t^2+a_1t+a_0,\ h\neq 0After
2a_2x+a_1+a_2h
Conditions: h\neq 0
Rule: L_diff_quot · Uses: G2
Leaf basis: distributive + frac_rules + mul_inverse_nonzero
Generalize: by Lemma L_diff_quot, the difference quotient of any polynomial of degree at most two at any x is 2a2x+a1+a2h. With a2=3, a1=−2, x=1 this is 6−2+3h=4+3h, agreeing with S05 (N6). The lemma is proved in S07.1 and S07.2.
S08 · implies
Before
\lim_{h\to 0,\,h\neq 0}(2a_2x+a_1+a_2h)After
f'(x)=2a_2x+a_1\ \text{for every real}\ xConditions: none
Rule: L_lin_limit · Uses: S01, S07
Leaf basis: forall_intro + order_basics + abs_rules
With A=2a2x+a1 and B=a2, Lemma L_lin_limit gives that the quotient tends to 2a2x+a1 as h→0; by S01 this is f'(x). As x is arbitrary, the formula holds for every real x. The lemma is proved in S08.1 and S08.2 for B=0 and B≠0.
S09 · implies
Before
h=\tfrac{1}{10}After
Q(\tfrac{1}{10})=4+\tfrac{3}{10}=\tfrac{43}{10}\neq 4=f'(1)Conditions: none
Rule: numeric_evaluation · Uses: S05, S06, G3
Leaf basis: numeric_evaluation + frac_rules
The quotient at the finite step h=1/10 is 4+3/10=43/10 (N4, computed directly from f(1.1) and f(1)), differing from the derivative 4 by a2h=3/10. A finite quotient is only an average rate; the derivative is the limit as h→0. The two agree only when a2h=0 (see S10).
S10 · implies
Before
e(t)=-2t+5\ (a_2=0)
After
\frac{e(x+h)-e(x)}{h}=-2\ (h\neq 0),\ e'(x)=-2Conditions: h\neq 0
Rule: L_diff_quot · Uses: S07, S08, G3
Leaf basis: L_diff_quot + L_lin_limit + mul_zero
MKO assumption a2 allows a2=0 (degree at most two, not necessarily a genuine quadratic). By S07 the quotient with a2=0, a1=−2 is −2+0·h=−2 for every h≠0 (N11); by S08, e'(x)=−2. Here every finite quotient equals the derivative only because a2h=0; this does not extend to a2≠0 (S09). A constant, a2=a1=0, has derivative 0, also a legitimate low-degree boundary.
S11 · equivalent
Before
g(t)=|t-2|,\ t=2
After
\frac{g(2+h)-g(2)}{h}=\frac{|h|-0}{h}=\frac{|h|}{h}\ (h\neq 0)Conditions: h\neq 0
Rule: eq_replace · Uses: G3, abs_rules
Leaf basis: eq_replace + abs_rules
g(2)=|0|=0 and g(2+h)=|h|, so the quotient is |h|/h, defined for h≠0.
S12 · case_split
Before
\frac{|h|}{h}After
1\ (h>0),\quad -1\ (h<0)
Conditions: h\neq 0
Rule: abs_rules · Uses: S11, abs_rules
Leaf basis: abs_rules + case_analysis + frac_rules
For h>0, |h|=h and the quotient is h/h=1; for h<0, |h|=−h and the quotient is −h/h=−1 (N9, N10). The two cases cover every h≠0. The right derivative is 1 and the left derivative −1.
S13 · implies
Before
g'(2)=D\ \text{(assumed)},\ \varepsilon=\tfrac12,\ h=\pm\tfrac{\delta}{2}After
|1-D|<\tfrac12,\ |-1-D|<\tfrac12\Rightarrow 2\le|1-D|+|D+1|<1:\ \text{contradiction}Conditions: none
Rule: contradiction · Uses: S01, S12
Leaf basis: contradiction + exists_elim + abs_rules + order_basics
By contradiction: suppose g'(2)=D exists. For ε=1/2 obtain δ>0 and take h=δ/2 and h=−δ/2, both with 0<|h|<δ. By S12, |1−D|<1/2 and |−1−D|<1/2. Triangle inequality: 2=|1−(−1)|≤|1−D|+|D−(−1)|<1/2+1/2=1, a contradiction. So g has no derivative at 2.
S14 · implies
Before
t_0>2,\ 0<|h|<t_0-2
After
\frac{g(t_0+h)-g(t_0)}{h}=\frac{(t_0+h-2)-(t_0-2)}{h}=1;\ g'(t_0)=1Conditions: t_0>2
Rule: abs_rules · Uses: G3, S01
Leaf basis: abs_rules + order_basics + frac_rules
For t0>2, if |h|<t0−2 then t0+h>2, both absolute values equal their arguments, the numerator is h (N12), and the quotient is exactly 1. So with δ=t0−2 the error is 0 for every ε, and g'(t0)=1. Likewise for t0<2, g(t)=2−t near t0, so g'(t0)=−1.
S15 · implies
Before
\text{a totalized API returning}\ 0\ \text{at}\ t=2After
g'(2)\ \text{does not exist};\ 0\ \text{is not a limit of}\ QConditions: none
Rule: quantifier_negation · Uses: S12, S13
Leaf basis: quantifier_negation + abs_rules
Some formal libraries make the derivative a total function and fill the default 0 where none exists. But 0 is not a limit of the quotient: |Q(h)−0|=1 for every h≠0, so ε=1/2 already fails. The answer of this entry is therefore 'g'(2) does not exist', not 0; a default value is a bookkeeping convention, not the existence of a derivative.
Substeps and lemmas
S07.1 · equivalent
Before
f(x+h)-f(x)
After
a_2(2xh+h^2)+a_1h=h(2a_2x+a_1+a_2h)
Conditions: none
Rule: distributive · Uses: distributive, power_laws
Leaf basis: distributive + power_laws + add_inverse
(x+h)²−x²=2xh+h², a1(x+h)−a1x=a1h, and a0 cancels; factoring out h gives h(2a2x+a1+a2h) (N2 checks this as a polynomial identity in five variables).
S07.2 · equivalent
Before
\frac{h(2a_2x+a_1+a_2h)}{h}After
2a_2x+a_1+a_2h
Conditions: h\neq 0
Rule: frac_rules · Uses: S07.1, frac_rules
Leaf basis: frac_rules + mul_inverse_nonzero
h≠0, so cancel h. S07.1 and S07.2 together prove Lemma L_diff_quot.
S08.1 · implies
Before
B=0
After
|(A+0\cdot h)-A|=0<\varepsilon\ \text{for every}\ hConditions: B=0
Rule: mul_zero · Uses: mul_zero
Leaf basis: mul_zero + add_zero + order_basics
If B=0 then A+Bh=A for every h; the error is 0<ε, so any δ>0 works.
S08.2 · implies
Before
B\neq 0,\ \delta=\tfrac{\varepsilon}{|B|}After
0<|h|<\delta\Rightarrow|Bh|=|B||h|<|B|\delta=\varepsilon
Conditions: |B|>0
Rule: order_basics · Uses: abs_rules, order_basics
Leaf basis: abs_rules + order_basics + mul_inverse_nonzero
If B≠0 then |B|>0; let δ=ε/|B|>0. If 0<|h|<δ, multiplying by the positive |B| gives |B||h|<ε. S08.1 and S08.2 together prove Lemma L_lin_limit.