Tangents and normals, and the second derivative AA SL

The derivative gives the gradient of a curve at a point, and that one idea finds the equation of a tangent or a normal. Differentiating a second time tells you how the gradient is changing, which shows whether the curve bends upwards or downwards and where its concavity changes. This page covers both, with worked examples and exam-style questions.

Which method to use

A tangent and a normal both pass through a point on the curve and differ only in the gradient. The second derivative describes how the gradient itself changes.

The question gives or asks forUseNotes
The tangent at x=ax=aGradient f′(a)f'(a), then y−f(a)=f′(a)(x−a)y-f(a)=f'(a)(x-a)Find the point (a,f(a))(a,f(a)) first, by substituting into ff and not into f′f'
The normal at x=ax=aGradient −1f′(a)-\dfrac{1}{f'(a)}, then the same point formThe normal is perpendicular to the tangent. If the tangent is horizontal, the normal is the vertical line x=ax=a
The point where the gradient has a given valueSolve f′(x)=mf'(x)=mThere may be more than one point. Substitute each xx-value into ff for the yy-coordinate
A tangent parallel to a given lineSet f′(x)f'(x) equal to the gradient of the lineParallel lines have equal gradients. A tangent perpendicular to a line uses the negative reciprocal
Where a tangent or normal meets an axisPut y=0y=0 or x=0x=0 in its equationUseful in area problems
The second derivativeDifferentiate f′(x)f'(x) once moreIn Leibniz notation this is d2ydx2\dfrac{d^2y}{dx^2}
Where the curve is concave-up or concave-downf″(x)>0f''(x)>0 is concave-up, f″(x)<0f''(x)<0 is concave-downSolve the inequality and give the answer as intervals
A point of inflexionSolve f″(x)=0f''(x)=0, then check that f″f'' changes signWithout a sign change there is no inflexion, as for y=x4y=x^4 at the origin. The gradient there can be zero or non-zero

Section 1 of 2 SL5.4

Tangents and normals

A tangent to a curve at a point is the straight line that touches the curve there with the same gradient, and the normal is the line through that point perpendicular to the tangent. To find either equation, differentiate, substitute the xx-value to get the gradient, and use the point on the curve. Both lines are covered here.

Finding the line

Tangent line

y−y1=m(x−x1)y-y_1=m(x-x_1), where m=f′(x1)m=f'(x_1) is the derivative evaluated at the point.

Differentiate first, then plug the x-value into the derivative - not into the original function.

Normal line

y−y1=−1m(x−x1)y-y_1=-\dfrac{1}{m}(x-x_1), using the negative reciprocal of the tangent gradient.

The normal is perpendicular to the tangent at the same point, so its gradient flips sign and inverts.

Key terms

What is a tangent to a curve?

A tangent at a point touches the curve there and has the same gradient as the curve at that point. That gradient is the value of the derivative f′(x)f'(x) at the point.

e.g. For f(x)=x2f(x)=x^2 at x=3x=3, the tangent has gradient f′(3)=6f'(3)=6.

What is a normal to a curve?

The normal at a point is the line through that point which is perpendicular to the tangent there. It uses the same point as the tangent but a different gradient.

e.g. If the tangent gradient is 44, the normal gradient is −14-\dfrac{1}{4}.

How do you find the gradient of the normal?

Perpendicular lines have gradients whose product is −1-1. Take the negative reciprocal of the tangent gradient mm, which gives −1m-\dfrac{1}{m}.

e.g. A tangent gradient of −23-\dfrac{2}{3} gives a normal gradient of 32\dfrac{3}{2}.

How do you find the point where the tangent touches the curve?

Substitute the given xx-value into the original function f(x)f(x), not into f′(x)f'(x), to get the yy-coordinate. This point is used in y−y1=m(x−x1)y-y_1=m(x-x_1).

e.g. On y=x2−4xy=x^2-4x at x=3x=3, y=9−12=−3y=9-12=-3, so the point is (3,−3)(3,-3).

Worked example, step by step

The question No calculator needed [6 marks]

The curve CC has equation y=x2+8xy=x^2+\dfrac{8}{x}, for x>0x>0. The point PP on CC has xx-coordinate 22.

(a) Find the equation of the tangent to CC at PP, giving your answer in the form y=mx+cy=mx+c.

(b) Find the equation of the normal to CC at PP, giving your answer in the form ax+by+d=0ax+by+d=0, where aa, bb and dd are integers.

Worked solution: worked example

Answer: (a) y=2x+4y=2x+4. (b) x+2y−18=0x+2y-18=0.

Step 1 - Find the point on the curve.

Substitute x=2x=2 into the equation of the curve, not into the derivative: y=22+82=4+4=8.y=2^2+\dfrac{8}{2}=4+4=8. So PP is the point (2,8)(2,\,8).

Why? A line needs a point and a gradient. The point must lie on the curve, so it comes from yy, and the gradient comes from dydx\dfrac{dy}{dx}. Mixing these two up is the most common slip.

Step 2 - Differentiate and find the gradient.

Write y=x2+8x−1y=x^2+8x^{-1}, so dydx=2x−8x−2=2x−8x2.\dfrac{dy}{dx}=2x-8x^{-2}=2x-\dfrac{8}{x^2}. At x=2x=2: dydx=4−84=2\dfrac{dy}{dx}=4-\dfrac{8}{4}=2, so the gradient of the tangent is 22. M1 - Differentiate, including the term 8x−18x^{-1} giving −8x−2-8x^{-2} A1 - Gradient of the tangent 22

Why? Rewriting 8x\dfrac8x as 8x−18x^{-1} lets you use the power rule. The gradient of the tangent at PP is the value of the derivative at x=2x=2.

Step 3 - Write the tangent in the form required.

Use y−y1=m(x−x1)y-y_1=m(x-x_1) with (2,8)(2,8) and m=2m=2: y−8=2(x−2),y-8=2(x-2), so y=2x+4.y=2x+4. M1 - Use y−y1=m(x−x1)y-y_1=m(x-x_1) with the point (2,8)(2,8) and the gradient A1 - y=2x+4y=2x+4

Why? The point-gradient form is the quickest way to write a line from a point and a gradient. The question asked for y=mx+cy=mx+c, so rearrange to that form.

Step 4 - Find the gradient of the normal.

The normal is perpendicular to the tangent, so the gradients multiply to −1-1. The tangent has gradient 22, so the normal has gradient −12.-\dfrac{1}{2}. M1 - Use the negative reciprocal of the tangent gradient, −12-\dfrac12

Why? The normal meets the curve at the same point PP but at right angles to the tangent. Its gradient is the negative reciprocal of the tangent gradient.

Step 5 - Write the normal in the form required.

Use (2,8)(2,8) and gradient −12-\dfrac12: y−8=−12(x−2).y-8=-\dfrac12(x-2). Multiply by 22: 2y−16=−x+22y-16=-x+2, so x+2y−18=0.x+2y-18=0. A1 - x+2y−18=0x+2y-18=0, with integer coefficients

Why? The same point (2,8)(2,8) is used again. Multiplying by 22 clears the fraction, which the question needs because aa, bb and dd must be integers.

Step 6 - Check.

Substitute P(2,8)P(2,8) into the normal: 2+2(8)−18=02+2(8)-18=0. It lies on the line. The two gradients satisfy 2×(−12)=−12\times\left(-\dfrac12\right)=-1.

Why? Checking that the point satisfies the equation catches slips in the rearranging. The product of the gradients confirms the lines are perpendicular.

Marks (6):
M1 Differentiate, including the term 8x−18x^{-1} giving −8x−2-8x^{-2}
A1 Gradient of the tangent 22
M1 Use y−y1=m(x−x1)y-y_1=m(x-x_1) with the point (2,8)(2,8) and the gradient
A1 y=2x+4y=2x+4
M1 Use the negative reciprocal of the tangent gradient, −12-\dfrac12
A1 x+2y−18=0x+2y-18=0, with integer coefficients

Now you try: enter your answers to be marked

These are real practice questions. Type your answer in each box and press Mark it. The worked solution and mark scheme appear straight away, and your first attempt is the one that counts. Use the keyboard for powers, roots and trig, and the working box for your notes.

1
Easy
No calc
[3 marks]
For y=x2+2x,y = x^2 + 2x, find the gradient at x=3.x = 3.
[3]
Fractions & powers
Other

Worked solution: practice question 1

2
Medium
Calculator
[3 marks]
Consider the tangent to y=x3−2xy=x^3-2x at x=2.x=2.

Use your graphic display calculator to find its gradient, then write the tangent's equation.
[3]
Fractions & powers
Other

Worked solution: practice question 2

3
Medium
No calc
[4 marks]
Find the coordinates of the point on y=x2−3xy = x^2 - 3x where the tangent is parallel to y=5x+2y = 5x + 2.
[4]
Fractions & powers
Other

Worked solution: practice question 3

Your score so far: 0 out of 10 marks

Common mistakes

  • Substituting into f(x)f(x) instead of f′(x)f'(x) for the gradient. The gradient of the tangent is the value of the derivative at that point, not the value of the original function - mixing the two gives a nonsense line.
  • Forgetting to find the yy-coordinate. The point-gradient form y−y1=m(x−x1)y-y_1=m(x-x_1) needs a full point (x1,y1)(x_1,y_1); skipping the substitution back into the original function leaves the equation incomplete.
  • Using mm instead of −1/m-1/m for the normal. The normal is perpendicular to the tangent, so its gradient is the negative reciprocal - reusing the tangent's own gradient by mistake is a very common slip.

Try some questions on tangents and normals

Section 2 of 2 SL5.7 SL5.8

The second derivative and concavity

The second derivative f″(x)f''(x) is the derivative of f′(x)f'(x), and it tells you how the gradient is changing, which describes whether a curve is concave up or concave down. Differentiate twice to find it, then examine its sign. Solving f″(x)=0f''(x)=0 and checking for a change of sign locates points of inflexion.

Second derivative and concavity

Second derivative

f″(x)f''(x) is found by differentiating f′(x)f'(x) using the same rules a second time.

Written as d2ydx2\dfrac{d^2y}{dx^2} in Leibniz notation.

Point of inflexion

Solve f″(x)=0f''(x)=0, then confirm concavity changes sign either side of that xx-value.

f″(x)>0f''(x)>0 means concave up; f″(x)<0f''(x)<0 means concave down.

Key terms

What does f″(x)f''(x) measure?

The second derivative measures the rate of change of the gradient. It is found by differentiating f′(x)f'(x) with respect to xx.

e.g. For f(x)=x5+xf(x)=x^5+x, f′(x)=5x4+1f'(x)=5x^4+1 and f″(x)=20x3f''(x)=20x^3.

What do concave up and concave down mean?

A curve is concave up where it bends like a cup, which happens where f″(x)>0f''(x)>0. It is concave down where it bends like a dome, which happens where f″(x)<0f''(x)<0.

e.g. For f(x)=x2f(x)=x^2, f″(x)=2>0f''(x)=2>0, so it is concave up everywhere; for f(x)=−x2f(x)=-x^2, f″(x)=−2<0f''(x)=-2<0, so it is concave down everywhere.

What is a point of inflexion?

A point of inflexion is a point where the concavity of the curve changes, so f″(x)f''(x) changes sign. The gradient there may be zero or non-zero.

e.g. For f(x)=x3−3x2f(x)=x^3-3x^2, f″(x)=6x−6f''(x)=6x-6, which is zero at x=1x=1 and changes sign there, so there is a point of inflexion at x=1x=1.

What does the notation d2ydx2\dfrac{d^2y}{dx^2} mean?

It is the second derivative of yy with respect to xx, and means the same as f″(x)f''(x). It is found by differentiating dydx\dfrac{dy}{dx} once more.

e.g. If y=x4y=x^4, then dydx=4x3\dfrac{dy}{dx}=4x^3 and d2ydx2=12x2\dfrac{d^2y}{dx^2}=12x^2.

Worked example, step by step

The question No calculator needed [5 marks]

Let f(x)=2x4−4x3+5x−1f(x)=2x^4-4x^3+5x-1.

(a) Find f″(x)f''(x).

(b) Find the values of xx for which the graph of ff is concave-down.

(c) Find the xx-coordinates of the points of inflexion of the graph of ff, giving a reason for your answer.

Worked solution: worked example

Answer: (a) f″(x)=24x2−24xf''(x)=24x^2-24x. (b) 0<x<10<x<1. (c) x=0x=0 and x=1x=1, because f″(x)=0f''(x)=0 and f″f'' changes sign at each.

Step 1 - Find the first derivative.

Differentiate each term: f′(x)=8x3−12x2+5.f'(x)=8x^3-12x^2+5. A1 - f′(x)=8x3−12x2+5f'(x)=8x^3-12x^2+5

Why? The second derivative is the derivative of the first derivative, so you must get f′(x)f'(x) correct before differentiating again. The constant −1-1 disappears.

Step 2 - Differentiate again.

f″(x)=24x2−24x=24x(x−1).f''(x)=24x^2-24x=24x(x-1). A1 - f″(x)=24x2−24xf''(x)=24x^2-24x

Why? Factorising f″(x)f''(x) now helps in the next two steps, where you need to know when it is zero and when it is negative.

Step 3 - Find where f″f'' is negative.

The graph is concave-down where f″(x)<0f''(x)<0, that is 24x(x−1)<024x(x-1)<0. The graph of 24x(x−1)24x(x-1) is a positive quadratic with roots 00 and 11, so it is negative between them: 0<x<1.0<x<1. M1 - Use f″(x)<0f''(x)<0 and consider the sign of 24x(x−1)24x(x-1) A1 - 0<x<10<x<1

Why? Concave-down means f″(x)<0f''(x)<0, the gradient is decreasing. A positive quadratic is below zero between its roots, so solve the equality first and then decide which side is negative.

Step 4 - Find the points of inflexion.

f″(x)=0f''(x)=0 at x=0x=0 and x=1x=1. For x<0x<0, f″(x)>0f''(x)>0; for 0<x<10<x<1, f″(x)<0f''(x)<0; for x>1x>1, f″(x)>0f''(x)>0. The sign of f″f'' changes at both values, so the points of inflexion are at x=0andx=1.x=0\quad\text{and}\quad x=1. R1 - f″(x)=0f''(x)=0 at x=0x=0 and x=1x=1 and f″f'' changes sign at each

Why? f″(x)=0f''(x)=0 only gives candidates. A point of inflexion needs the concavity to change, so f″f'' must change sign. Here the sign changes at both values, so both are points of inflexion.

Marks (5):
A1 f′(x)=8x3−12x2+5f'(x)=8x^3-12x^2+5
A1 f″(x)=24x2−24xf''(x)=24x^2-24x
M1 Use f″(x)<0f''(x)<0 and consider the sign of 24x(x−1)24x(x-1)
A1 0<x<10<x<1
R1 f″(x)=0f''(x)=0 at x=0x=0 and x=1x=1 and f″f'' changes sign at each

Now you try: enter your answers to be marked

1
Easy
No calc
[3 marks]
Given y=x3+2xy = x^{3} + 2x, find d2ydx2\dfrac{d^{2}y}{dx^{2}}.
[3]
Fractions & powers
Other

Worked solution: practice question 1

2
Medium
No calc
[5 marks]
Let f(x)=x3−6x2+5f(x)=x^3-6x^2+5.
(a) Find f″(x).f''(x).
[2]
(b) Find the point of inflexion.
[3]
Fractions & powers
Other

Worked solution: practice question 2

3
Easy
No calc
[4 marks]
Let f(x)=x4−2x2f(x) = x^4 - 2x^2.
(a) Find f″(x)f''(x).
[2]
(b) Find the intervals on which ff is concave up.
[2]
Fractions & powers
Other

Worked solution: practice question 3

Your score so far: 0 out of 12 marks

Common mistakes

  • Stopping after one differentiation. Finding f″(x)f''(x) means differentiating twice - a quick way to lose easy marks is to hand in f′(x)f'(x) and call it done.
  • Assuming f″(x)=0f''(x)=0 always gives a point of inflexion. It only marks a candidate - the concavity has to actually change sign either side of that xx-value, otherwise it's not a genuine inflexion point.
  • Mixing up the signs of concavity. f″(x)>0f''(x)>0 means the curve is concave up (like a cup); f″(x)<0f''(x)<0 means concave down (like a dome) - it's easy to remember these the wrong way round.

Try some questions on the second derivative and concavity

Using your GDC

The exact key presses for the TI-84 Plus CE, Casio fx-CG50, Casio fx-CG100 and TI-Nspire CX, with what the screen shows. Pick your calculator.

Draw a tangent and read its gradient

Used in: Tangents and normals

How to draw a tangent and read its gradient on a TI-84 Plus CE

Graph the function

Press Y=, clear any old functions with clear, then type 0 . 2 X,T,θ,n ^ 3 − X,T,θ,n next to Y1=.

Plot1 Plot2 Plot3
\Y1=0.2X^3-X
\Y2=
\Y3=

Press window and set Xmin = −3, Xmax = 4, Ymin = −4, Ymax = 6. For a negative number use the (−) key, not the subtraction key. Press graph. The point you want must be on the screen.

Draw the tangent and read its equation

Press 2nd prgm (DRAW) and choose 5:Tangent(. The graph appears with a cursor on Y1. If more than one function is graphed, use ▲ or ▼ to put the cursor on the right one.

Y1=0.2X^3-X

Type the x-value, here 2, then press enter. You can instead move along the curve with ◀ and ▶, but typing the number lands exactly on the point.

The tangent is drawn. The screen shows X=2 and the equation of the line, Y=1.4X-3.2, so the gradient is 1.41.4 and the equation is y=1.4x−3.2y = 1.4x - 3.2.

X=2 Y=1.4X-3.2
Another way: read only the gradient

With the graph shown, press 2nd trace (CALC) and choose 6:dy/dx. Type 2 and press enter.

The screen shows dy/dx at x=2x = 2, the gradient 1.41.4. The value is a numerical estimate, so it may show a very small error in the last digits.

X=2 dy/dx=1.4

Type the x-value rather than moving the cursor, so the tangent touches the curve exactly where the question says. Draw the tangent again at another point by repeating the steps; press 2nd prgm (DRAW) and choose 1:ClrDraw first if you want to remove old lines.

The full guide: Draw a tangent and read its gradient

Numerical derivative at a point

Used in: Tangents and normals, The second derivative and concavity

How to find a numerical derivative at a point on a TI-84 Plus CE

The nDeriv( template on the home screen

Press 2nd mode (QUIT) to reach the home screen. Press math and choose 8:nDeriv(. In MathPrint mode this pastes a template with a box for the expression and a box for the x-value.

In the first box type the function: X,T,θ,n x² ln X,T,θ,n ). Press ▶ to move to the x-value box and type 2.

d/dx(X²ln(X))|x=2

Press enter. The screen shows the value of the derivative at x=2x = 2.

f′(2)=4.77259f'(2) = 4.77259 to 6 significant figures, which is 4.774.77 to 3 significant figures.

The answer is a numerical estimate, so the last digits can differ slightly from the exact value.

d/dx(X²ln(X))|x=2
4.77259
Another way: type the command

If your calculator shows the command form (Classic mode, or you prefer typing), enter nDeriv(X²ln(X),X,2): the expression, then the variable, then the x-value, separated by ,. To differentiate a function stored in Y1, paste Y1 from the Y-VARS menu (see evaluating a function at a point) in place of the expression.

Another way: from the graph

With the function graphed, 2nd trace (CALC) and 6:dy/dx read the gradient at a typed x-value, and the DRAW menu can draw the tangent. The steps are in draw a tangent and read its gradient.

The variable in the command must match the letter in the expression: use X in both. If the template does not appear, check the calculator is in MathPrint mode, or type the command form.

The full guide: Numerical derivative at a point

See the full list of GDC guides for every calculator task.

Syllabus content covered

CodeSyllabus content
SL5.4Tangents and normals at a given point, and their equations. Use of both analytic approaches and technology.
SL5.7The second derivative. Use of both forms of notation, d2ydx2\dfrac{d^2y}{dx^2} and f″(x)f''(x). Graphical behaviour of functions, including the relationship between the graphs of ff, f′f' and f″f''.
SL5.8Points of inflexion with zero and non-zero gradients. At a point of inflexion, f″(x)=0f''(x)=0 and changes sign (concavity change), for example f″(x)=0f''(x)=0 is not a sufficient condition for a point of inflexion for y=x4y=x^4 at (0,0)(0,0). Use of the terms "concave-up" for f″(x)>0f''(x)>0, and "concave-down" for f″(x)<0f''(x)<0.

Official IB source: Mathematics: analysis and approaches subject brief (PDF, ibo.org).

Quick questions

How do I find the equation of a tangent line?

Differentiate to get f′(x)f'(x), evaluate it at the given xx-value to get the gradient mm, find the yy-coordinate at that point, then substitute both into y−y1=m(x−x1)y-y_1=m(x-x_1).

How do I find the second derivative of a function?

Differentiate the function once to get f′(x)f'(x), then differentiate that result again using the same rules to get f″(x)f''(x).

How is the normal different from the tangent?

The normal is perpendicular to the tangent at the same point, so its gradient is the negative reciprocal of the tangent gradient, −1/m-1/m.

How do I find a point of inflexion?

Solve f″(x)=0f''(x) = 0, then confirm the concavity actually changes sign either side of that xx-value - if it does, it is a genuine point of inflexion.

What happens when the tangent is horizontal?

A horizontal tangent has gradient 00, so solve f′(x)=0f'(x)=0. Its equation is y=cy=c, where cc is the yy-coordinate of the point, and the normal there is the vertical line x=kx=k. For y=x2−4xy=x^2-4x, f′(x)=2x−4=0f'(x)=2x-4=0 gives x=2x=2, so the tangent is y=−4y=-4 and the normal is x=2x=2.

Why does f″(x)=0f''(x)=0 not always give a point of inflexion?

Solving f″(x)=0f''(x)=0 only finds candidates, so you must also check that f″(x)f''(x) changes sign. For f(x)=x4f(x)=x^4, f″(x)=12x2f''(x)=12x^2 is zero at x=0x=0 but is positive on both sides, so there is no point of inflexion.

How do I find where a curve has a given tangent gradient?

Set f′(x)f'(x) equal to the required gradient and solve for xx. For y=x2−4xy=x^2-4x with gradient 22, 2x−4=22x-4=2 gives x=3x=3, and then y=−3y=-3.

How are the graphs of ff, f′f' and f″f'' related?

The graph of f′f' shows the gradient of ff, and the graph of f″f'' shows the gradient of f′f'. A point of inflexion on ff matches a maximum or minimum point on the graph of f′f', where f″f'' is zero and changes sign.

Can I use my GDC to find a tangent or normal?

Yes, the syllabus allows both analytic and technology approaches, and a GDC can give the gradient of a curve at a point. If a question says "show that", give full algebraic working instead.

Can a point of inflexion have a non-zero gradient?

Yes. For f(x)=x3+3xf(x)=x^3+3x, f″(x)=6xf''(x)=6x changes sign at x=0x=0, so there is a point of inflexion there, but f′(0)=3≠0f'(0)=3\neq0.

Ready to practise properly?

Practice questions on every section, marked instantly like the real exam.