# Tangents, gradients, and stationary points

> IB Mathematics: Applications and Interpretation SL · IB MATH AI SL
> Source: https://www.owlsprep.com/study/ib-math-ai-sl-u5-tangents-gradients-and-stationary-points/

This subtopic explains how differentiation is used to find the gradient and equation of tangents to curves, and how to locate and classify stationary points (local maxima and minima). These are core skills for graphing and optimization problems on the IB exam.

**Prerequisites:** [Basic differentiation of polynomial functions](https://www.owlsprep.com/study/ib-math-ai-sl-u5-basic-differentiation-rules/)

## Learning objectives

- Calculate the gradient of a tangent to a curve at a point using differentiation
- Find the full equation of a tangent line to a curve
- Locate stationary points by solving $f'(x)=0$
- Classify stationary points as local maxima or minima

## Gradients of Tangents and the First Derivative

**Gradient of a Tangent** — The gradient of the tangent to a curve $y=f(x)$ at $x=a$ equals the value of the first derivative evaluated at $x=a$.

*Notation:* $f'(a)$ or $\frac{dy}{dx}\bigg|_{x=a}$

*Example:* For $f(x)=x^2$, gradient at $x=2$ is $f'(2)=4$.

The tangent to a curve at a point is the straight line that just touches the curve at that point, matching its slope exactly at that point. Differentiation gives us a gradient function that works for any point on the curve, so we only need to evaluate it at the desired $x$-coordinate.

**Worked example:** Find the gradient of the tangent to $y = x^3 - 2x + 5$ at the point where $x=1$.

1. Differentiate the function to get the gradient function:
2. $$\frac{dy}{dx} = 3x^2 - 2$$
3. Evaluate the derivative at $x=1$:
4. $$\frac{dy}{dx}\bigg|_{x=1} = 3(1)^2 - 2 = 1$$
5. The gradient of the tangent at $x=1$ is $1$.

> **Exam tip:** Always substitute the given $x$-value into the derivative to get a numerical gradient, don't leave it as a function of $x$.

## Finding the Equation of a Tangent Line

To find the full equation of a tangent, you already know the gradient from the derivative. The tangent always passes through the point of tangency $(a, f(a))$, so you can use the point-gradient formula for a straight line.

1. Differentiate $f(x)$ to get the gradient function $f'(x)$
2. Calculate gradient $m = f'(a)$ at the point $x=a$
3. Calculate the $y$-coordinate: $b = f(a)$ to get point $(a, b)$
4. Substitute into $y - b = m(x - a)$
5. Rearrange to $y = mx + c$ as required

**Worked example:** Find the equation of the tangent to $y = 2x^2 - 3x$ at $x=2$.

1. Find the derivative (gradient function):
2. $$\frac{dy}{dx} = 4x - 3$$
3. Calculate gradient at $x=2$:
4. $$m = 4(2) - 3 = 5$$
5. Find the $y$-coordinate of the point of tangency:
6. $$y = 2(2)^2 - 3(2) = 2, \text{ so point } = (2, 2)$$
7. Substitute into point-gradient formula and rearrange:
8. $$y - 2 = 5(x - 2) \implies y = 5x - 8$$

## Stationary Points: Definition and Location

**Stationary Point** — A point on a curve where the gradient is zero, so the tangent is horizontal, and the function is neither increasing nor decreasing.

*Notation:* $f'(x) = 0$

To find stationary points, you set the first derivative equal to zero, then solve the resulting equation for $x$, then calculate the corresponding $y$-coordinate for each solution. For IB AI SL, you only need to classify stationary points as local maxima or local minima.

**Worked example:** Locate all stationary points of $y = x^3 - 3x + 2$.

1. Calculate the first derivative:
2. $$\frac{dy}{dx} = 3x^2 - 3$$
3. Set derivative equal to zero and solve for $x$:
4. $$3x^2 - 3 = 0 \implies x^2 = 1 \implies x = 1 \text{ or } x = -1$$
5. Calculate corresponding $y$-coordinates:
6. $$x=1: y = 1^3 - 3(1) + 2 = 0 \\ x=-1: y = (-1)^3 - 3(-1) + 2 = 4$$
7. Stationary points are at $(1, 0)$ and $(-1, 4)$.

## Classifying Stationary Points

For IB AI SL, the most common method to classify stationary points is the first derivative test: you test the sign of the gradient just to the left and right of the stationary point.

1. For a stationary point at $x=a$, calculate $f'(a-h)$ (left) and $f'(a+h)$ (right) for small $h$
2. Gradient changes positive $\to$ negative = local maximum
3. Gradient changes negative $\to$ positive = local minimum
4. No sign change = horizontal point of inflection

**Worked example:** Classify the stationary points of $y = x^3 - 3x + 2$ from the previous example.

1. Test the stationary point at $x=-1$, with $h=0.1$:
2. $$f'(-1.1) = 3(-1.1)^2 - 3 = 0.63 > 0 \quad f'(-0.9) = 3(-0.9)^2 - 3 = -0.57 < 0$$
3. Gradient changes positive to negative, so $(-1, 4)$ is a local maximum.
4. Test the stationary point at $x=1$:
5. $$f'(0.9) = -0.57 < 0 \quad f'(1.1) = 0.63 > 0$$
6. Gradient changes negative to positive, so $(1, 0)$ is a local minimum.

> **tip**
>
> You can also confirm your classification by graphing the function on your calculator, which is fully acceptable in IB AI SL exams.

## Common pitfalls

- **Wrong:** Forgetting to calculate the $y$-coordinate when finding the tangent equation
  - Why it fails: You only get the gradient from the derivative, you need the $y$-coordinate to form the full equation
  - Correct: Always evaluate the original function at the given $x$-value to get the point of tangency
- **Wrong:** Setting the original function equal to zero instead of the derivative for stationary points
  - Why it fails: Stationary points require the gradient (not the function value) to be zero
  - Correct: Always set the first derivative $f'(x) = 0$, not $f(x) = 0$
- **Wrong:** Mixing up the sign change rule for maxima and minima
  - Why it fails: It's easy to flip the order of signs when testing left and right of the point
  - Correct: Remember: Positive to Negative = Peak (Maximum), Negative to Positive = Valley (Minimum)
- **Wrong:** Using the gradient value as the $y$-intercept in the tangent equation
  - Why it fails: Confusing the roles of gradient and intercept when rearranging the formula
  - Correct: Always start from the point-gradient formula $y - y_1 = m(x - x_1)$ to avoid this error
- **Wrong:** Stopping after finding $x$-coordinates of stationary points
  - Why it fails: Exam questions almost always ask for the full coordinates of the stationary points
  - Correct: Always substitute $x$ back into the original function to get the corresponding $y$-coordinate

## Cheatsheet

| Step | Finding Tangent Equation | Finding & Classifying Stationary Points |
| --- | --- | --- |
| 1 | Differentiate $y=f(x)$ to get $\frac{dy}{dx}$ | Differentiate $y=f(x)$ to get $\frac{dy}{dx}$ |
| 2 | Evaluate $m = \frac{dy}{dx}\|_{x=a}$ | Set $\frac{dy}{dx} = 0$, solve for $x$ |
| 3 | Calculate $y_1 = f(a)$ to get $(a, y_1)$ | Find $y$-coordinate for each $x$ |
| 4 | Substitute into $y - y_1 = m(x-a)$ | Test sign of derivative either side |
| 5 | Rearrange to required form | Max: + $\to$ -, Min: - $\to$ + |

## What's next

Understanding tangents and stationary points is the foundation for solving optimization problems, one of the most common applied calculus questions on the IB AI SL exam. These concepts also let you sketch accurate graphs of functions by identifying key features, which is required for many graphing and problem-solving questions. Next, you will apply these skills to solve practical real-world optimization problems, where you need to find the maximum or minimum value of a function, such as maximizing area or minimizing production cost. These skills also connect directly to graph sketching and further work with integration, the reverse of differentiation.

- [Optimisation problems with differentiation](https://www.owlsprep.com/study/ib-math-ai-sl-u5-optimisation-problems-with-differentiation/)
- [Indefinite integration of polynomials](https://www.owlsprep.com/study/ib-math-ai-sl-u5-indefinite-integration-of-polynomials/)
- [Definite integrals and area under a curve](https://www.owlsprep.com/study/ib-math-ai-sl-u5-definite-integrals-and-area-under/)

---

From [OwlsPrep](https://www.owlsprep.com) — free study guides for A-Level, IB, AP and IGCSE, written against the official syllabus. Canonical page: https://www.owlsprep.com/study/ib-math-ai-sl-u5-tangents-gradients-and-stationary-points/
