Differentiation AI SL

Differentiation turns a function into its gradient function, which gives the gradient of the curve, and so the rate of change, at every point. You also meet the idea of a limit, estimated from a table or graph: as the input gets closer to a number, which value does the output approach? You differentiate polynomials with the power rule, and when a question asks you to find the derivative you show that working. The calculator can also generate a derivative or give the gradient at a point, which is a good check. Start with basic differentiation, then use the gradient to find the equation of a tangent or a normal.

Formulas at a glance

The power rule for differentiation is in the formula booklet, and so is the point-gradient form of the equation of a straight line. The rule for the gradient of a normal, the negative reciprocal, is not in the booklet. Polynomials are differentiated with the power rule; the calculator's numerical derivative gives a gradient at a point and is a good check.

Power rule for differentiation

f′(x)=anxn−1f'(x)=anx^{n-1}

In the booklet

Equation of a tangent at a known point

y−y1=m(x−x1)y-y_1=m(x-x_1)

In the booklet

Which method to use

Differentiate a polynomial with the power rule, and show that working when the question asks you to find the derivative. The calculator can generate a derivative, check a gradient at a point or draw a tangent, but it does not replace the working a question asks for.

The question hasUseNotes
A polynomial to differentiate, possibly with a term such as 6x\dfrac{6}{x}The power rule on each term separatelyRewrite a fraction as a negative power first, and a constant term gives zero
The gradient of a curve at a given xxDifferentiate, then substitute the xx-value into f′(x)f'(x)Substituting into f(x)f(x) gives the height, not the gradient. The numerical derivative on the calculator checks the value
The rate of change of a quantity at a given time or inputDifferentiate, substitute, then give the units as output units per input unitThe sign says whether the quantity is increasing or decreasing
The value of xx where the gradient has a given valueSet f′(x)f'(x) equal to that value and solveThe calculator's equation solver is fine if the equation is awkward
The equation of the tangent at a pointFind the yy-coordinate, find the gradient from f′(x)f'(x), then y−y1=m(x−x1)y-y_1=m(x-x_1)The calculator can draw the tangent to check the equation
The equation of the normal at a pointThe gradient of the normal is −1m-\dfrac{1}{m}, then the same line formA horizontal tangent has a vertical normal, x=ax=a
A point where the tangent has a given gradient, or is parallel to a given lineSet f′(x)f'(x) equal to that gradient, solve for xx, then find yyA parallel line has the same gradient

Section 1 of 2 SL5.1 SL5.3

Basic differentiation

The derivative f′(x)f'(x) gives the gradient of the graph of ff at any point. For a term axnax^n the power rule gives f′(x)=anxn−1f'(x)=anx^{n-1}, and it is applied to each term of a polynomial in turn. The topic covers rewriting fractions as negative powers first, and substituting a value to find the gradient at a point.

The power rule

The power rule is in the formula booklet, so you do not need to memorise it, but you do need to apply it fluently.

Power rule

f(x)=axn⇒f′(x)=anxn−1f(x) = ax^n \Rightarrow f'(x) = anx^{n-1}

Multiply by the exponent, then reduce the exponent by one. Applies term-by-term to any sum such as f(x)=axn+bxn−1+…f(x)=ax^n+bx^{n-1}+\ldots

Gradient at a point

f′(a)f'(a) = gradient of the curve at x=ax=a

Differentiate first, then substitute the given xx-value into the derivative - not into the original function.

Most GDCs can also evaluate a numerical derivative at a point directly - see Using your GDC below for the exact keystrokes.

Key terms

What is a limit?

As xx gets closer and closer to a number, the limit is the value that the output gets closer and closer to. You can estimate it from a table of values or from a graph.

e.g. For f(x)=x2−9x−3f(x)=\dfrac{x^2-9}{x-3}, the values x=2.9, 2.99, 2.999x=2.9,\ 2.99,\ 2.999 give f(x)=5.9, 5.99, 5.999f(x)=5.9,\ 5.99,\ 5.999, so the limit as xx approaches 33 is 66.

What is a derivative?

The derivative of a function is a new function that gives the gradient of the original graph at each value of xx. It is written f′(x)f'(x) or dydx\dfrac{dy}{dx}.

e.g. If f(x)=x2f(x)=x^2 then f′(x)=2xf'(x)=2x, so the gradient at x=5x=5 is 1010.

What does f'(a) mean?

The value f′(a)f'(a) is the gradient of the curve at the point where x=ax=a. To find it, differentiate first and then substitute aa.

e.g. For f(x)=x3f(x)=x^3, f′(x)=3x2f'(x)=3x^2, so f′(2)=12f'(2)=12.

What happens to a constant term when you differentiate?

A constant has a horizontal graph with gradient zero, so its derivative is zero and the term disappears.

e.g. The derivative of 3x2+73x^2+7 is 6x6x.

How do you differentiate a term such as 5x?

Write 5x5x as 5x15x^1 and use the power rule. The derivative of axax is always the constant aa.

e.g. The derivative of 5x5x is 55, and the derivative of −x-x is −1-1.

Worked example, step by step

The question Calculator used only to check the gradient [5 marks]

A venue charges a fixed hire fee, so the cost per guest of a dinner depends on the number of guests. For nn guests, the cost per guest, in dollars, is modelled by C(n)=12+0.04n+450n,10≤n≤100.C(n)=12+0.04n+\frac{450}{n},\quad 10\le n\le100.

(a) Find C′(n)C'(n).

(b) Find the value of C′(30)C'(30) and interpret it in context.

Worked solution: worked example

Answer: (a) C′(n)=0.04−450n2C'(n)=0.04-\dfrac{450}{n^2} (b) C′(30)=−0.46C'(30)=-0.46: at 30 guests the cost per guest is falling by $0.46 for each extra guest.

Step 1 - Rewrite the fraction as a power.

Write 450n\dfrac{450}{n} as 450n−1450n^{-1}, so that C(n)=12+0.04n+450n−1.C(n)=12+0.04n+450n^{-1}.

Why? The power rule only works on terms of the form axnax^n. A fraction with nn in the denominator has to be written as a negative power before you differentiate.

Step 2 - Differentiate each term.

Use ddn(ank)=aknk−1\dfrac{d}{dn}(an^k)=akn^{k-1} on each term in turn. The constant 1212 gives 00. The term 0.04n0.04n gives 0.040.04. The term 450n−1450n^{-1} gives 450×(−1)n−2=−450n−2450\times(-1)n^{-2}=-450n^{-2}. So C′(n)=0.04−450n−2=0.04−450n2.C'(n)=0.04-450n^{-2}=0.04-\frac{450}{n^2}. M1 - Attempt to differentiate, with the power rule applied to at least one term A1 - C′(n)=0.04−450n−2C'(n)=0.04-450n^{-2}

Why? Each term is differentiated on its own, then the results are added. A constant has zero gradient, so it disappears, and a term anan always gives the constant aa.

Step 3 - Substitute n = 30 into the derivative.

C′(30)=0.04−450302=0.04−0.5=−0.46.C'(30)=0.04-\frac{450}{30^2}=0.04-0.5=-0.46. M1 - Substitute n=30n=30 into C′C' A1 - −0.46-0.46

Why? A gradient or rate of change is a value of C′C', not of CC, so the number goes into the derivative. Putting 3030 into C(n)C(n) would give the cost per guest instead.

Step 4 - Interpret the sign and the units.

C′(30)=−0.46C'(30)=-0.46. When there are 30 guests, the cost per guest is falling by about $0.46 for each extra guest. A1 - The cost per guest is falling by $0.46 for each extra guest (decreasing, with units)

Why? The derivative is a rate of change, measured in output units per input unit: here dollars per guest, for each extra guest. A negative sign means the quantity is decreasing.

Step 5 - Check with the calculator.

Open the numerical derivative at a point on the home screen. Enter the expression 12+0.04n+450/n12+0.04n+450/n, the variable nn and the point 3030. The calculator shows −0.46-0.46, which agrees.

Why? The numerical derivative is a quick check on a gradient. It does not replace the working, because the question asks you to find C′(n)C'(n) as an expression.

Marks (5):
M1 Attempt to differentiate, with the power rule applied to at least one term
A1 C′(n)=0.04−450n−2C'(n)=0.04-450n^{-2}
M1 Substitute n=30n=30 into C′C'
A1 −0.46-0.46
A1 The cost per guest is falling by $0.46 for each extra guest (decreasing, with units)

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
Calculator
[3 marks]
Differentiate f(x)=3x4−2x2+7.f(x)=3x^4-2x^2+7.
[3]
Fractions & powers
Other

Worked solution: practice question 1

2
Medium
Calculator
[3 marks]
A function is f(x)=2x2+3x.f(x)=2x^2+\dfrac{3}{x}.
(a) Write f(x)f(x) with a negative index.
[1]
(b) Find f′(x).f'(x).
[2]
Fractions & powers
Other

Worked solution: practice question 2

3
Medium
Calculator
[4 marks]
Let f(x)=x2f(x)=x^2.
(a) Find the average rate of change over 1≤x≤4.1\le x\le 4.
[2]
(b) Find the instantaneous rate at x=4.x=4.
[2]
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) when a gradient is asked for. "Find the gradient at x=3x=3" means differentiate first, then substitute - substituting into the original function gives the yy-value, not the gradient.
  • Forgetting to rewrite fractions as powers before differentiating. A term like 6x\dfrac{6}{x} must first become 6x−16x^{-1} - the power rule can't be applied directly to a term written any other way.
  • Leaving the constant term in the derivative. In f(x)=x2−6x+1f(x)=x^2-6x+1 the +1+1 has gradient zero, so f′(x)=2x−6f'(x)=2x-6 with no constant.

Try some questions on basic differentiation

Section 2 of 2 SL5.4

Tangents and normals

A tangent is the straight line that touches a curve at a point and has the same gradient as the curve there, and the normal is the line through that point perpendicular to the tangent. To find either equation, differentiate to get the gradient at the point, then use y−y1=m(x−x1)y-y_1=m(x-x_1). For the normal, the gradient is first changed to its negative reciprocal.

Tangent and normal gradients

The point-gradient form of a straight line is in the formula booklet; the derivative supplies the gradient. The rule for the gradient of a normal is not in the booklet.

Tangent

y−y1=f′(x1)(x−x1)y - y_1 = f'(x_1)(x - x_1)

The gradient of the tangent at x=x1x=x_1 is simply f′(x1)f'(x_1) - the value of the derivative at that point.

Normal

y−y1=−1f′(x1)(x−x1)y - y_1 = -\dfrac{1}{f'(x_1)}(x - x_1)

The normal is perpendicular to the tangent, so its gradient is the negative reciprocal of f′(x1)f'(x_1).

Some calculators can draw the tangent or return f′(x1)f'(x_1) directly - see Using your GDC below for the exact keystrokes.

Key terms

What is a tangent to a curve?

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

e.g. The tangent to y=x2y=x^2 at (1,1)(1,1) has gradient 22, because dydx=2x=2\dfrac{dy}{dx}=2x=2 when x=1x=1.

What is a normal to a curve?

The normal at a point is the straight line through that point which is perpendicular to the tangent there. Its gradient is the negative reciprocal of the tangent gradient.

e.g. If the tangent has gradient 22, the normal has gradient −12-\dfrac{1}{2}.

How do you find the gradient at a given point?

Differentiate to get the gradient function, then substitute the xx-coordinate of the point into the derivative, not into the original function.

e.g. For y=x3−xy=x^3-x, dydx=3x2−1\dfrac{dy}{dx}=3x^2-1, so at x=2x=2 the gradient is 3(4)−1=113(4)-1=11.

How do you write a line's equation from a point and a gradient?

Use y−y1=m(x−x1)y-y_1=m(x-x_1), where (x1,y1)(x_1,y_1) is the point and mm is the gradient. Rearrange to y=mx+cy=mx+c if the question asks for that form.

e.g. A line with gradient 33 through (2,5)(2,5) is y−5=3(x−2)y-5=3(x-2), which simplifies to y=3x−1y=3x-1.

Worked example, step by step

The question Calculator used only to check the gradient [6 marks]

The top edge of a curved garden wall is modelled by y=x36−x2+5,y=\frac{x^3}{6}-x^2+5, where xx and yy are in metres. The point P(3,0.5)P(3,\,0.5) lies on the wall.

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

(b) A drainage pipe is laid along the normal to the wall at PP. Find the equation of the normal. Give your answer in the form y=mx+cy=mx+c.

Worked solution: worked example

Answer: (a) y=−1.5x+5y=-1.5x+5 (b) y=23x−1.5y=\dfrac{2}{3}x-1.5

Step 1 - Check that P is on the curve.

When x=3x=3: y=276−9+5=4.5−9+5=0.5y=\dfrac{27}{6}-9+5=4.5-9+5=0.5. So P(3,0.5)P(3,\,0.5) does lie on the curve.

Why? The tangent touches the curve at PP, so PP must satisfy the equation. When the question gives the point, this check takes seconds and catches a misread number.

Step 2 - Differentiate and find the gradient at P.

dydx=3x26−2x=x22−2x.\frac{dy}{dx}=\frac{3x^2}{6}-2x=\frac{x^2}{2}-2x. At x=3x=3: dydx=92−6=−1.5.\frac{dy}{dx}=\frac{9}{2}-6=-1.5. The gradient of the tangent is m=−1.5m=-1.5. M1 - Attempt to differentiate and substitute x=3x=3 A1 - Gradient −1.5-1.5

Why? The gradient of the tangent at a point is the value of the derivative there, so 33 goes into dydx\dfrac{dy}{dx}, not into yy. Check it with the numerical derivative on the calculator: enter x3/6−x2+5x^3/6-x^2+5 and the point 33, and it shows −1.5-1.5.

Step 3 - Write the equation of the tangent.

Use y−y1=m(x−x1)y-y_1=m(x-x_1) with (x1,y1)=(3,0.5)(x_1,y_1)=(3,\,0.5) and m=−1.5m=-1.5: y−0.5=−1.5(x−3)⇒y=−1.5x+5.y-0.5=-1.5(x-3)\Rightarrow y=-1.5x+5. M1 - Substitute their gradient and (3,0.5)(3,\,0.5) into y−y1=m(x−x1)y-y_1=m(x-x_1) A1 - y=−1.5x+5y=-1.5x+5

Why? A line is fixed by one point and its gradient, and this form uses them directly. Expand and collect terms to reach y=mx+cy=mx+c, as the question asks.

Step 4 - Find the gradient of the normal.

The normal is perpendicular to the tangent, so its gradient is the negative reciprocal of −1.5-1.5: mnormal=−1−1.5=23.m_{\text{normal}}=-\frac{1}{-1.5}=\frac{2}{3}. M1 - Negative reciprocal of their tangent gradient

Why? Two perpendicular lines have gradients whose product is −1-1. The two operations are to flip the fraction and to change its sign.

Step 5 - Write the equation of the normal.

y−0.5=23(x−3)⇒y=23x−1.5.y-0.5=\frac{2}{3}(x-3)\Rightarrow y=\frac{2}{3}x-1.5. To check, x=3x=3 gives y=2−1.5=0.5y=2-1.5=0.5, which is the point PP. A1 - y=23x−1.5y=\dfrac{2}{3}x-1.5

Why? The normal passes through the same point PP as the tangent, so the point stays the same and only the gradient changes. Putting x=3x=3 back into the line is a quick check.

Marks (6):
M1 Attempt to differentiate and substitute x=3x=3
A1 Gradient −1.5-1.5
M1 Substitute their gradient and (3,0.5)(3,\,0.5) into y−y1=m(x−x1)y-y_1=m(x-x_1)
A1 y=−1.5x+5y=-1.5x+5
M1 Negative reciprocal of their tangent gradient
A1 y=23x−1.5y=\dfrac{2}{3}x-1.5

Now you try: enter your answers to be marked

1
Medium
Calculator
[2 marks]
The tangent to a curve at PP has gradient 44. Find the gradient of the normal at PP.
[2]
Fractions & powers
Other

Worked solution: practice question 1

2
Medium
Calculator
[4 marks]
Find the point on y=x2−4xy=x^2-4x where the tangent has gradient −2.-2.
[4]
Fractions & powers
Other

Worked solution: practice question 2

3
Hard
Calculator
[5 marks]
Find where the tangent to y=x2y=x^2 at x=2x=2 crosses the xx-axis.
[5]
Fractions & powers
Other

Worked solution: practice question 3

Your score so far: 0 out of 11 marks

Common mistakes

  • Using the function value instead of the derivative as the gradient. The gradient of the tangent at a point is f′(x1)f'(x_1), not f(x1)f(x_1) - substitute into the derivative, not the original function.
  • Forgetting to take the negative reciprocal for a normal. If the tangent gradient is mm, the normal gradient is −1m-\dfrac{1}{m}, not 1m\dfrac{1}{m} and not −m-m - two separate operations, flip and negate.
  • Substituting the xx-coordinate into the wrong expression when writing the final line. Once the gradient and point are both found, the equation is y−y1=m(x−x1)y-y_1=m(x-x_1) using the original point (x1,y1)(x_1,y_1), not a point from an intermediate working line.

Try some questions on tangents and normals

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.

Numerical derivative at a point

Used in: Basic differentiation, Tangents and normals

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 ^ 3 ▶ − 2 X,T,θ,n (the ▶ after the 3 leaves the exponent box, so the 3 is the whole power). Press ▶ to move to the x-value box and type 2.

d/dx(X^3-2X)|x=2

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

f′(2)=10f'(2) = 10; the screen shows 10.000001 because the calculator estimates the derivative.

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

d/dx(X^3-2X)|x=2
10.000001
Another way: type the command

If your calculator shows the command form (Classic mode, or you prefer typing), enter nDeriv(X^3-2X,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

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

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

Syllabus content covered

CodeSyllabus content
SL5.1Introduction to the concept of a limit. Estimation of the value of a limit from a table or graph. Derivative interpreted as gradient function and as rate of change. Forms of notation: dydx\dfrac{dy}{dx}, f′(x)f'(x), dVdr\dfrac{dV}{dr} or dsdt\dfrac{ds}{dt} for the first derivative.
SL5.3The derivative of f(x)=axnf(x)=ax^n is f′(x)=anxn−1f'(x)=anx^{n-1}, n∈Zn\in\mathbb{Z}. The derivative of functions of the form f(x)=axn+bxn−1+⋯f(x)=ax^n+bx^{n-1}+\cdots where all exponents are integers.
SL5.4Tangents and normals at a given point, and their equations. Use of both analytic approaches and technology.

Official IB source: Mathematics: applications and interpretation subject brief (PDF, ibo.org).

Quick questions

What is the power rule for differentiation?

If f(x)=axnf(x) = ax^n, then f′(x)=anxn−1f'(x) = anx^{n-1}. Multiply by the exponent, then reduce the exponent by one. It applies term by term to any sum of power terms.

How do you find the equation of a tangent to a curve?

Find the yy-coordinate at the given xx-value, differentiate to get the gradient function, substitute in the xx-value to get the gradient, then use y−y1=m(x−x1)y-y_1=m(x-x_1) with that point and gradient.

How do you differentiate a term with x in the denominator?

Rewrite it using a negative index first - for example 6x\dfrac{6}{x} becomes 6x−16x^{-1} - then apply the power rule as normal.

How is the gradient of a normal related to the gradient of the tangent?

The normal is perpendicular to the tangent at that point, so its gradient is the negative reciprocal of the tangent gradient: if the tangent gradient is mm, the normal gradient is −1m-\dfrac{1}{m}.

What is the difference between f'(x) and dy/dx?

They are two notations for the same derivative. If y=f(x)y=f(x) then dydx=f′(x)\dfrac{dy}{dx}=f'(x).

What happens when the tangent is horizontal?

A horizontal tangent has gradient 00, so its equation is y=f(a)y=f(a). The normal is then vertical, with equation x=ax=a, because a negative reciprocal of 00 cannot be found. For y=x2y=x^2 at (0,0)(0,0) the tangent is y=0y=0 and the normal is x=0x=0.

How do I differentiate a product of brackets?

Expand the brackets first so the function is a sum of power terms, then differentiate each term. For example, (x+1)(x−2)=x2−x−2(x+1)(x-2)=x^2-x-2, which has derivative 2x−12x-1.

How can I check my tangent equation is correct?

Substitute the coordinates of the given point into your equation, which must be satisfied. Then check that the gradient of your line is the value of f′(x)f'(x) at that point.

Why is the derivative of a straight line a constant?

A straight line has the same gradient everywhere, so its derivative does not depend on xx. For y=3x+2y=3x+2, dydx=3\dfrac{dy}{dx}=3 at every point.

How do I find where a tangent crosses the axes?

Put x=0x=0 to find the yy-intercept and y=0y=0 to find the xx-intercept. For the tangent y=3x−1y=3x-1, these are (0,−1)(0,-1) and (13,0)\left(\dfrac{1}{3},0\right).

Ready to practise properly?

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