From a Derivative at One Input to a Derivative Function
A derivative at a particular input gives the instantaneous rate of change there. The limit definition lets us calculate that rate from nearby secant slopes. For \(f(x)=x^2\), we can go further: instead of choosing one input first, we can keep the input as \(x\) and derive a formula that gives the derivative at every real number.
The key is to distinguish the input \(x\), which stays fixed while a limit is taken, from the increment \(h\), which approaches zero. Expanding the square produces a factor of \(h\) that can be cancelled for \(h\ne 0\). After that cancellation, the limit can be evaluated.
Deriving the Formula at a General Input
For \(f(x)=x^2\), the definition requires the function value at \(x+h\) and at \(x\). Since \(f(x+h)=(x+h)^2\) and \(f(x)=x^2\), substitute those expressions into the limit. The algebra must be done before taking the limit: the original quotient has denominator \(h\), so it is not defined at \(h=0\).
Keep \(x\) fixed and let only \(h\) approach zero.
Use \(f(x+h)=(x+h)^2\) and \(f(x)=x^2\).
Combine like terms in the numerator, then factor and cancel \(h\), with \(h\ne 0\).
The simplified expression has a finite limit as \(h\) approaches zero.
Here is the complete calculation. The condition \(h\ne 0\) applies to the quotient and to the cancellation step.
The cancellation is valid for every nonzero \(h\), precisely the values used in the difference quotient. Once the quotient has been simplified to \(2x+h\), its limit as \(h\to0\) is \(2x\). This reasoning works for any fixed real \(x\), so the derivative exists at every real input.
Why the Algebra Produces a Limit
The difference quotient compares the change in function value with the change in input. For the square function, expanding \((x+h)^2\) reveals that the change in the function value is \(2xh+h^2\). Both terms contain \(h\), so the numerator is zero when \(h=0\), but for nonzero \(h\) it can be divided by \(h\). The resulting quotient is \(2x+h\).
As \(h\) becomes arbitrarily close to zero, the term \(h\) in this simplified expression becomes arbitrarily small, while \(2x\) stays fixed. Therefore the quotient approaches \(2x\). This explains both the algebraic method and why the limit is finite for every real input.
The input \(x\) is not being sent to zero in this calculation. It is an arbitrary but fixed number. The limit variable is \(h\). Keeping those roles separate is what allows one calculation to produce a whole derivative function, rather than only the derivative at a single chosen point.
Worked Examples: Checking the Derivative at Particular Inputs
Worked Example: Derivative at \(x=3\)
Use the limit definition directly at \(x=3\), then compare the result with the derivative function.
The cancellation uses \(h\ne0\), as required for the difference quotient. Now check the result using the general formula: \(f'(3)=2(3)=6\). Both calculations give the same derivative value.
Worked Example: Derivative at \(x=-2\)
A negative input is handled by the same definition. Substitute \(-2\) for the fixed input and simplify carefully.
The general result checks this value: \(f'(-2)=2(-2)=-4\). Substituting \(-2\) into the derivative function agrees with the independently simplified limit.
Worked Example: Derivative at \(x=\frac12\)
Use the limit at a fractional input. This provides another check that the formula applies beyond integer inputs.
The derivative function gives \(f'(\frac12)=2(\frac12)=1\), matching the limit. In each example, the increment \(h\) remains nonzero during cancellation and approaches zero only after the quotient is simplified.
Common Mistake: Setting the Increment Equal to Zero Too Soon
A tempting but incorrect step is to substitute \(h=0\) into the original difference quotient. For example, at a general input the numerator and denominator would both become zero, producing \(0/0\). That expression is undefined; it is not the derivative and does not evaluate the limit.
The correction is to simplify the quotient for nonzero \(h\) first, then evaluate its limit. The factor \(h\) cancels only because the quotient is being considered where \(h\ne0\); the limit then examines what the simplified expression approaches as \(h\) tends to zero.
Another useful check is to keep the roles of the symbols clear: \(x\) is the input where the derivative is being calculated, while \(h\) is the changing increment. Taking \(x\to0\) instead would answer a different question.
What the Derivative Function Tells Us
The formula \(f'(x)=2x\) gives a derivative value at every real input without repeating the limit calculation each time. For instance, at positive inputs the derivative values are positive, at \(x=0\) the derivative value is zero, and at negative inputs the derivative values are negative. These signs describe the instantaneous rate of change of \(x^2\) at those inputs.
This result is more than a collection of separate computations: the general-input calculation establishes the formula for all real \(x\). The limit definition is essential to that conclusion. It shows why the derivative exists at every input and where the factor \(2x\) comes from. The formula here is specific to \(x^2\); its derivation does not, by itself, establish a rule for differentiating other powers or other types of functions.
Check Your Understanding
For each question, keep the input and the increment in their correct roles. Show the algebra before taking the limit.
- Write the limit definition for \(f'(x)\) when \(f(x)=x^2\), and identify which symbol approaches zero.
- Expand \((x+h)^2-x^2\) and factor the resulting numerator.
- Why is it valid to cancel \(h\) in the difference quotient even though the limit is taken as \(h\to0\)?
- Use the derivative function to find \(f'(4)\), then state the corresponding calculation with the limit definition that you would use to check it.
- What is wrong with substituting \(h=0\) into the original difference quotient before simplifying?