Tutorials › Calculus I › Deriving The Tangent Slope Of A Quadratic

Rates of Change and Tangents · Tutorial 332 of 1495

Deriving The Tangent Slope Of A Quadratic

Use the difference quotient to show why the tangent slope of \(f(x)=x^2\) at input \(a\) is \(2a\), then check the result at selected points.

Beginner 9 min read

What You'll Learn

  • Set up the secant slope from an arbitrary input \(a\) to a nearby input \(a+h\).
  • Explain why the increment \(h\) must be nonzero in the difference quotient.
  • Simplify the quadratic difference quotient before taking its limit.
  • Derive the tangent slope \(2a\) for \(f(x)=x^2\) at an arbitrary input.
  • Verify the result at zero, positive, and negative inputs.
  • Recognize why substituting \(h=0\) too early gives an invalid calculation.

From Nearby Secants to a Tangent Slope

A tangent slope describes the direction of a curve at one particular point. For the parabola \(f(x)=x^2\), we want to find that slope at any input, not just estimate it from a graph.

The earlier material on secant slopes gives a useful way to approach the question. Choose an input \(a\), then compare the point on the curve at \(a\) with a nearby point at \(a+h\). The slope of the line through those two points is a secant slope. As the increment \(h\) approaches zero, the second point approaches the first. If the secant slopes approach a finite value, that limit is the tangent slope at \(a\).

The key is to simplify the secant slope while \(h\) is still nonzero. For a quadratic, the algebra reduces the quotient to an expression whose limit is straightforward.

Set Up the Difference Quotient

Fix an arbitrary real input \(a\). The corresponding point on the graph is \((a,f(a))\). Move horizontally by an increment \(h\), where \(h\ne 0\); the nearby input is \(a+h\), and its point on the graph is \((a+h,f(a+h))\).

The slope of the secant line through these points is change in output divided by change in input:

$$ \frac{f(a+h)-f(a)}{(a+h)-a} = \frac{f(a+h)-f(a)}{h}. $$

This is the difference quotient with an increment. The condition \(h\ne 0\) matters: if \(h=0\), the two inputs are identical, so there are not two distinct points defining a secant line, and the denominator of the quotient would be zero.

For \(f(x)=x^2\), the output at the first input is \(f(a)=a^2\), and the output at the nearby input is \(f(a+h)=(a+h)^2\). Thus the secant slope is

$$ \frac{(a+h)^2-a^2}{h},\qquad h\ne 0. $$

The tangent slope at \(a\) is the limit of these secant slopes as \(h\) approaches zero, provided that this limit exists:

$$ m_{\mathrm{tan}}(a) = \lim_{h\to 0}\frac{(a+h)^2-a^2}{h}. $$

Here \(m_{\mathrm{tan}}(a)\) denotes the tangent slope at the point with input \(a\). The quotient describes the secant slopes for nonzero \(h\); the limit describes their behavior as the second point approaches the first.

Deriving the Slope at an Arbitrary Input

Expand the square in the numerator, combine like terms, and factor out \(h\). Since the quotient is being considered only for \(h\ne 0\), the common factor can then be cancelled:

$$ \begin{aligned} \frac{(a+h)^2-a^2}{h} &=\frac{a^2+2ah+h^2-a^2}{h}\\ &=\frac{2ah+h^2}{h}\\ &=\frac{h(2a+h)}{h}\\ &=2a+h,\qquad h\ne 0. \end{aligned} $$

This expression gives the same secant slope as the original quotient whenever \(h\ne 0\). Now take its limit as \(h\) approaches zero:

$$ \begin{aligned} m_{\mathrm{tan}}(a) &=\lim_{h\to 0}(2a+h)\\ &=2a. \end{aligned} $$
Result: For \(f(x)=x^2\), the tangent slope at the arbitrary input \(a\) is \(2a\). The result follows by taking the limit of the secant slopes, after simplifying the difference quotient for \(h\ne 0\).

The calculation works for every real \(a\). The choice of \(a\) was arbitrary, and the limit exists because \(2a+h\) approaches \(2a\) as \(h\) approaches zero from either side. In particular, no restriction to positive increments is needed: both left-hand and right-hand secants approach the same slope.

Why Simplifying Before Taking the Limit Works

The original quotient is not defined at \(h=0\), because its denominator is zero there. But finding the limit does not require evaluating that quotient at \(h=0\). A limit asks what values the expression approaches when \(h\) is close to zero, with \(h\ne 0\).

For every nonzero \(h\), cancelling the common factor \(h\) gives \(2a+h\). Thus, throughout the punctured neighborhood around zero, the original secant-slope expression has exactly the same values as \(2a+h\). Since \(2a+h\) approaches \(2a\), the secant slopes approach \(2a\) as well. This establishes the claimed tangent slope directly from the limit definition.

1
Choose the base input.
At input \(a\), the point on the parabola is \((a,a^2)\).
2
Form a nearby secant.
Use input \(a+h\) with \(h\ne 0\), and calculate the change in output divided by \(h\).
3
Simplify while \(h\ne 0\).
Expand and factor the numerator, then cancel its common factor \(h\).
4
Take the limit.
The simplified secant slope \(2a+h\) approaches \(2a\), which is the tangent slope.

Worked Example: Tangent Slope at the Origin

Worked Example: Tangent Slope at the Origin

Find the tangent slope of \(f(x)=x^2\) at \(a=0\) from the difference quotient.

At \(a=0\), the function value is \(f(0)=0^2=0\). At the nearby input \(0+h=h\), the function value is \(f(h)=h^2\). For \(h\ne 0\), the secant slope is

$$ \begin{aligned} \frac{f(0+h)-f(0)}{h} &=\frac{h^2-0}{h}\\ &=\frac{h^2}{h}\\ &=h. \end{aligned} $$

As \(h\) approaches zero, \(h\) approaches zero. Therefore

$$ m_{\mathrm{tan}}(0)=\lim_{h\to 0}h=0. $$

This agrees with the general result \(2a\): substituting \(a=0\) gives \(2(0)=0\). Substitution into the original quotient is not the check; the quotient is defined only for \(h\ne 0\). The simplified expression has limit zero, as required.

Worked Example: Tangent Slope at a Positive Input

Worked Example: Tangent Slope at a Positive Input

Find the tangent slope at \(a=3\) by calculating the nearby secant slopes.

The point at input \(3\) has output \(f(3)=3^2=9\). The nearby input is \(3+h\), whose output is

$$ f(3+h)=(3+h)^2=9+6h+h^2. $$

For \(h\ne 0\), form the difference quotient and simplify:

$$ \begin{aligned} \frac{f(3+h)-f(3)}{h} &=\frac{(9+6h+h^2)-9}{h}\\ &=\frac{6h+h^2}{h}\\ &=\frac{h(6+h)}{h}\\ &=6+h. \end{aligned} $$

Taking the limit gives

$$ m_{\mathrm{tan}}(3)=\lim_{h\to 0}(6+h)=6. $$

The general formula gives \(2a=2(3)=6\), so the point-specific calculation agrees with the derived result. For example, if \(h=0.1\), the secant slope is \(6+0.1=6.1\); as the increment shrinks toward zero, the secant slope approaches \(6\).

Worked Example: Tangent Slope at a Negative Input

Worked Example: Tangent Slope at a Negative Input

Find the tangent slope at \(a=-2\). This example checks that the method also works when the input is negative.

The point at input \(-2\) has output \(f(-2)=(-2)^2=4\). At the nearby input \(-2+h\),

$$ f(-2+h)=(-2+h)^2=4-4h+h^2. $$

The difference quotient, with \(h\ne 0\), is

$$ \begin{aligned} \frac{f(-2+h)-f(-2)}{h} &=\frac{(4-4h+h^2)-4}{h}\\ &=\frac{-4h+h^2}{h}\\ &=\frac{h(-4+h)}{h}\\ &=-4+h. \end{aligned} $$

Therefore

$$ m_{\mathrm{tan}}(-2)=\lim_{h\to 0}(-4+h)=-4. $$

The general result gives \(2a=2(-2)=-4\), confirming the calculation. The negative slope indicates that, at this input, the parabola is decreasing as the input increases locally.

A Common Mistake: Substituting Zero Too Soon

A tempting but invalid approach is to set \(h=0\) in the original difference quotient. For an arbitrary \(a\), that gives

$$ \left.\frac{(a+h)^2-a^2}{h}\right|_{h=0} = \frac{a^2-a^2}{0} = \frac{0}{0}. $$

This is not a tangent slope; it is an undefined quotient. The error is treating the limit as though it were ordinary substitution into the unsimplified expression. The correction is to keep \(h\ne 0\), simplify first, and then take the limit:

$$ \frac{(a+h)^2-a^2}{h}=2a+h\quad (h\ne 0), \qquad \lim_{h\to 0}(2a+h)=2a. $$

Cancelling \(h\) is valid only because the quotient is being considered for nonzero \(h\). The simplified expression makes the limiting behavior visible without claiming that the original quotient is defined at zero.

What the Result Tells Us

The formula \(2a\) describes how the tangent slope varies across the parabola. At the origin it is zero; at positive inputs it is positive; at negative inputs it is negative. The values grow in magnitude as the input moves farther from zero. These conclusions follow from the formula for the tangent slope, rather than from estimating individual graph segments.

The distinction between a secant slope and a tangent slope remains essential. A secant slope uses two distinct inputs and an increment \(h\ne 0\). The tangent slope is the limit of those secant slopes as the increment approaches zero. In this case, algebra gives a simple expression for every nearby secant slope, and the limit exists at every real input.

The method is useful because it turns the geometric idea of a tangent into a precise calculation. It also shows why the answer depends on the input: the secant slopes simplify to \(2a+h\), so the part that remains when the increment vanishes is determined by \(a\). The result is not a single slope for the whole parabola; each point has its own tangent slope.

Check Your Understanding

Use the difference quotient and the limiting process to answer these questions.

  1. For \(f(x)=x^2\), write the secant-slope quotient at an arbitrary input \(a\) and nearby input \(a+h\). State why \(h\ne 0\).
  2. Expand and simplify \(\frac{(a+h)^2-a^2}{h}\) for \(h\ne 0\).
  3. What is the tangent slope at \(a=4\), and what expression for the secant slope approaches it?
  4. What is the tangent slope at \(a=-1\)? Explain how its sign relates to the local direction of the graph.
  5. Why does substituting \(h=0\) into the original difference quotient fail to give the tangent slope?

Test yourself: Calculus I final exam practice

Ready to check what you know? Work a full-length practice final, then open the complete worked solutions.

Want all 1,114 practice problems?

This tutorial covers one topic. Calc Pass covers the full Calculus AB & BC curriculum (the core of Calculus I and II): full review, every practice question, and step-by-step solutions to each one.

QR code to download the Calc Pass app

Get the Calc Pass App

Scan to download and practice on the go, with instant scoring.

Calc Pass Volume 1: 1,114 Practice Questions book cover

Vol. 1: 1,114 Questions

The complete practice question bank, organized by AB & BC topic.

View on Amazon
Calc Pass Volume 2: Solutions Manual book cover

Vol. 2: Solutions Manual

Fully worked solutions to every question in Volume 1.

View on Amazon