Achievable logoAchievable logo
AP Calculus AB
Sign in
Sign up
Purchase
Textbook
Practice exams
Support
How it works
Exam catalog
Mountain with a flag at the peak
Textbook
Introduction
1. Limits
2. Derivative basics
2.1 Definition of the derivative
2.2 Tangent lines & slopes
2.3 Power rule
2.4 Product & quotient rules
2.5 Special derivatives
2.6 Differentiability & continuity
3. Advanced differentiation
4. Contextual uses
5. Analytical uses
6. Integration
7. Differential equations
8. Applications of integrals
9. Testing details tag
Wrapping up
Achievable logoAchievable logo
2.2 Tangent lines & slopes
Achievable AP Calculus AB
2. Derivative basics
Our AP Calculus AB course is currently in development and is a work-in-progress.

Tangent lines & slopes

7 min read
Font
Discuss
Share
Feedback

What you’ll learn:

  • Secant vs. tangent lines
  • The slope of the tangent line at a point represents the derivative
  • How to write the equation of a tangent line
  • Write the equation of a normal line

The previous section introduced the derivative as an instantaneous rate of change - how fast a function f(x) changes at a specific point x=a. Another key interpretation is that the derivative gives the slope of the tangent line to the graph at that point.

To see where the tangent line comes from, it helps to start with a closely related idea: the secant line.

Secant line:

A straight line that passes through two points on a curve - like taking a “shortcut” from one point on the curve to another.

  • Use the formula for average rate of change when calculating the slope of the secant line.

As the two points on the curve move closer and closer together (so x→a), the secant line approaches a limiting position. In the limit, the two points merge into the single point at x=a, and the secant line becomes the tangent line at that point.

Tangent line:

A straight line that touches the curve at a single point but does not pass through it.

The slope of this tangent line is given by:

x→alim​x−af(x)−f(a)​

This is the same limit definition used for the instantaneous rate of change at x=a. That means the derivative at x=a - the value f′(a) - is exactly the slope of the tangent line at x=a.

AP tip:

Whenever you see the keyword “tangent line” in a problem, immediately think “derivative.” Tangent lines always involve the derivative of a function.

Understanding the derivative as the slope of the tangent line is useful in many settings, including:

  • Optimization: A flat tangent line (slope 0) can indicate where a maximum or minimum occurs, like finding the best number of products to make to maximize profit.
  • Graphing: The derivative tells you whether a function is going up or down (whether it’s increasing or decreasing as you move left to right) and gives information about how the curve behaves.
  • Approximations: The tangent line can estimate values like 1.0150 more accurately than a rough guess like “about 1.”
  • Physics and engineering: Derivatives help analyze motion (for example, how fast a car is accelerating) and other rates of change in systems.
Sidenote
On tangent lines

When a tangent line touches f(x) at a single point, it doesn’t mean the line never meets f(x) again - only that it doesn’t pass through the curve at that point.

Equation of the tangent line

The equation of a line is typically written in point-slope form:

y−y1​=m(x−x1​)

For the equation of the tangent line:

  • (x1​,y1​) is the point where the line meets the curve f(x) (called the point of tangency)
  • m is the line’s slope

An alternate form, in standard calculus notation, is often called the Taylor form. It uses the same point-slope structure, but replaces the point and slope with calculus notation:

  • The tangent line meets f(x) at (a,f(a)), which replaces (x1​,y1​).
  • The slope of the tangent line is the derivative at x=a, or f′(a), which replaces m.

So the equation of the tangent line can also be written as:

Equation of the tangent line:

y−f(a)=f′(a)(x−a)

You can use whichever form you prefer, as long as you know what each part represents.

Equation of the tangent line to f at x = a
Equation of the tangent line to f at x = a

Example

  1. Find the equation of the tangent line to the curve f(x)=x2 at x=−3.

Solution

(spoiler)

Answer: $y = -6x - 9$1. Find the derivative:
As shown in the previous section,

f′(x)=2x

  1. Slope of the tangent line at x=−3:

f′(−3)=2(−3)=−6

  1. Point (a,f(a)):

At x=−3,

f(−3)=(−3)2=9

So the tangent line meets the curve at (−3,9).

Then the equation of the tangent line is:

y−9=−6(x+3)

or in slope-intercept form,

y=−6x−9​

It can help to plot both y=x2 and y=−6x−9 in Desmos to see what a tangent line looks like on the graph.

Normal lines

Another important type of line is the normal line, which is perpendicular to the tangent line at the point of tangency.

Perpendicular slopes are negative reciprocals of each other. For example, if the slope of the tangent line is f′(a)=3, then the slope of the normal line at a would be

−f′(a)1​=−31​

Example

  1. Find the equation of the normal line to f(x)=x2 at x=2.

Solution

(spoiler)

Answer: $y - 4 = -\dfrac14(x - 2)$1. Find the derivative:
Just like in the previous example,

f′(x)=2x

  1. Slope of the tangent line at x=2:

f′(2)=2(2)=4

Then the slope of the normal line is the negative reciprocal, or −41​.

  1. Point (a,f(a)):

At x=2,

f(2)=22=4

Then the equation of the normal line is:

y−4=−41​(x−2)​

Confirm visually by plotting the original function f(x)=x2, the equation of the tangent line, and the equation of the normal line!

Challenge problems

  1. The tangent line to the graph of y=f(x) at (2,0) passes through the point (3,4). Find f(2) and f′(2).

Solution

(spoiler)

Answer: f(2)=0,f′(2)=4​

The tangent line meets f(x) at (2,0) which means

f(2)=0​

Next, f′(2) represents the slope of the tangent line at x=2. Since the tangent line passes through the two points (2,0) and (3,4), calculate its slope using the slope formula:

Slope​=x2​−x1​y2​−y1​​=(3−2)(4−0)​=4​

So

f′(2)=4​

  1. A ball is tossed into the air and follows the parabolic curve h(t)=−t2+4t+5, which represents the height (in meters) as a function of time (in seconds). At what time is the rate of change of the ball’s height equal to 0?

Solution:

(spoiler)

Answer: t=2 seconds (at the vertex)

The phrase “rate of change” refers to the derivative, which is also the slope of the tangent line. So we’re looking for the time when the tangent line has slope 0 (a horizontal tangent line).

As you move along the downward-opening parabola h(t) from left to right, the slope of the tangent line starts positive, decreases, and becomes 0 at the vertex.

The x-coordinate of the vertex of a parabola at2+bt+c is given by t=2a−b​.

Here, a=−1 and b=4, so

t=2(−1)−4​=2.

At t=2, the ball is at its maximum height, so its instantaneous rate of change in height is 0.

  1. A secant line connects 2 points and represents the average rate of change.
  2. A tangent line touches effectively touches just 1 point (and does not cross it) and represents the instantaneous rate of change.
  3. The tangent line equation is:

y−f(a)=f′(a)(x−a)

  1. A normal line is perpendicular to the tangent line, with a slope that is the negative reciprocal of the tangent line’s slope, or f′(a)1​.

Sign up for free to take 8 quiz questions on this topic

All rights reserved ©2016 - 2026 Achievable, Inc.

Tangent lines & slopes

What you’ll learn:

  • Secant vs. tangent lines
  • The slope of the tangent line at a point represents the derivative
  • How to write the equation of a tangent line
  • Write the equation of a normal line

The previous section introduced the derivative as an instantaneous rate of change - how fast a function f(x) changes at a specific point x=a. Another key interpretation is that the derivative gives the slope of the tangent line to the graph at that point.

To see where the tangent line comes from, it helps to start with a closely related idea: the secant line.

Secant line:

A straight line that passes through two points on a curve - like taking a “shortcut” from one point on the curve to another.

  • Use the formula for average rate of change when calculating the slope of the secant line.

As the two points on the curve move closer and closer together (so x→a), the secant line approaches a limiting position. In the limit, the two points merge into the single point at x=a, and the secant line becomes the tangent line at that point.

Tangent line:

A straight line that touches the curve at a single point but does not pass through it.

The slope of this tangent line is given by:

x→alim​x−af(x)−f(a)​

This is the same limit definition used for the instantaneous rate of change at x=a. That means the derivative at x=a - the value f′(a) - is exactly the slope of the tangent line at x=a.

AP tip:

Whenever you see the keyword “tangent line” in a problem, immediately think “derivative.” Tangent lines always involve the derivative of a function.

Understanding the derivative as the slope of the tangent line is useful in many settings, including:

  • Optimization: A flat tangent line (slope 0) can indicate where a maximum or minimum occurs, like finding the best number of products to make to maximize profit.
  • Graphing: The derivative tells you whether a function is going up or down (whether it’s increasing or decreasing as you move left to right) and gives information about how the curve behaves.
  • Approximations: The tangent line can estimate values like 1.0150 more accurately than a rough guess like “about 1.”
  • Physics and engineering: Derivatives help analyze motion (for example, how fast a car is accelerating) and other rates of change in systems.
Sidenote
On tangent lines

When a tangent line touches f(x) at a single point, it doesn’t mean the line never meets f(x) again - only that it doesn’t pass through the curve at that point.

Equation of the tangent line

The equation of a line is typically written in point-slope form:

y−y1​=m(x−x1​)

For the equation of the tangent line:

  • (x1​,y1​) is the point where the line meets the curve f(x) (called the point of tangency)
  • m is the line’s slope

An alternate form, in standard calculus notation, is often called the Taylor form. It uses the same point-slope structure, but replaces the point and slope with calculus notation:

  • The tangent line meets f(x) at (a,f(a)), which replaces (x1​,y1​).
  • The slope of the tangent line is the derivative at x=a, or f′(a), which replaces m.

So the equation of the tangent line can also be written as:

Equation of the tangent line:

y−f(a)=f′(a)(x−a)

You can use whichever form you prefer, as long as you know what each part represents.

Example

  1. Find the equation of the tangent line to the curve f(x)=x2 at x=−3.

Solution

(spoiler)

Answer: $y = -6x - 9$1. Find the derivative:
As shown in the previous section,

f′(x)=2x

  1. Slope of the tangent line at x=−3:

f′(−3)=2(−3)=−6

  1. Point (a,f(a)):

At x=−3,

f(−3)=(−3)2=9

So the tangent line meets the curve at (−3,9).

Then the equation of the tangent line is:

y−9=−6(x+3)

or in slope-intercept form,

y=−6x−9​

It can help to plot both y=x2 and y=−6x−9 in Desmos to see what a tangent line looks like on the graph.

Normal lines

Another important type of line is the normal line, which is perpendicular to the tangent line at the point of tangency.

Perpendicular slopes are negative reciprocals of each other. For example, if the slope of the tangent line is f′(a)=3, then the slope of the normal line at a would be

−f′(a)1​=−31​

Example

  1. Find the equation of the normal line to f(x)=x2 at x=2.

Solution

(spoiler)

Answer: $y - 4 = -\dfrac{1}{4}(x - 2)$1. Find the derivative:
Just like in the previous example,

f′(x)=2x

  1. Slope of the tangent line at x=2:

f′(2)=2(2)=4

Then the slope of the normal line is the negative reciprocal, or −41​.

  1. Point (a,f(a)):

At x=2,

f(2)=22=4

Then the equation of the normal line is:

y−4=−41​(x−2)​

Confirm visually by plotting the original function f(x)=x2, the equation of the tangent line, and the equation of the normal line!

Challenge problems

  1. The tangent line to the graph of y=f(x) at (2,0) passes through the point (3,4). Find f(2) and f′(2).

Solution

(spoiler)

Answer: f(2)=0,f′(2)=4​

The tangent line meets f(x) at (2,0) which means

f(2)=0​

Next, f′(2) represents the slope of the tangent line at x=2. Since the tangent line passes through the two points (2,0) and (3,4), calculate its slope using the slope formula:

Slope​=x2​−x1​y2​−y1​​=(3−2)(4−0)​=4​

So

f′(2)=4​

  1. A ball is tossed into the air and follows the parabolic curve h(t)=−t2+4t+5, which represents the height (in meters) as a function of time (in seconds). At what time is the rate of change of the ball’s height equal to 0?

Solution:

(spoiler)

Answer: t=2 seconds (at the vertex)

The phrase “rate of change” refers to the derivative, which is also the slope of the tangent line. So we’re looking for the time when the tangent line has slope 0 (a horizontal tangent line).

As you move along the downward-opening parabola h(t) from left to right, the slope of the tangent line starts positive, decreases, and becomes 0 at the vertex.

The x-coordinate of the vertex of a parabola at2+bt+c is given by t=2a−b​.

Here, a=−1 and b=4, so

t=2(−1)−4​=2.

At t=2, the ball is at its maximum height, so its instantaneous rate of change in height is 0.

Key points
  1. A secant line connects 2 points and represents the average rate of change.
  2. A tangent line touches effectively touches just 1 point (and does not cross it) and represents the instantaneous rate of change.
  3. The tangent line equation is:

y−f(a)=f′(a)(x−a)

  1. A normal line is perpendicular to the tangent line, with a slope that is the negative reciprocal of the tangent line’s slope, or f′(a)1​.