Differentiation AA SL

Differentiation gives the gradient function of a curve: a formula for the slope at any point, without drawing the graph. This page shows how to differentiate powers, roots, fractions and the standard functions term by term, how to use the chain rule when one function sits inside another, and how to use the product and quotient rules when two functions are multiplied or divided, with worked examples and exam-style questions.

Formulas at a glance

The derivatives of xnx^n, sin⁡x\sin x, cos⁡x\cos x, exe^x and ln⁡x\ln x, the chain rule, and the product and quotient rules are all in the formula booklet. Know which rule goes with which kind of function, because the booklet does not say when to use each one.

Power rule

ddx(axn)=anxn−1\dfrac{d}{dx}(ax^n) = anx^{n-1}

In the booklet

Chain rule

y=g(u),u=h(x)⇒dydx=dydu×dudxy=g(u), u=h(x) \Rightarrow \dfrac{dy}{dx}=\dfrac{dy}{du}\times\dfrac{du}{dx}

In the booklet

Product rule

y=uv⇒dydx=udvdx+vdudxy=uv \Rightarrow \dfrac{dy}{dx}=u\dfrac{dv}{dx}+v\dfrac{du}{dx}

In the booklet

Quotient rule

y=uv⇒dydx=vdudx−udvdxv2y=\dfrac{u}{v} \Rightarrow \dfrac{dy}{dx}=\dfrac{v\frac{du}{dx}-u\frac{dv}{dx}}{v^2}

In the booklet

Which rule to use

Look at how the function is built, then choose the rule.

The function isUseNotes
A power of xx, or a sum of terms such as 3x4−5x+23x^4-5x+2The power rule term by termMultiply by the power, then reduce the power by 11. A constant differentiates to 00 and kxkx differentiates to kk
A root or a fraction in xx, such as x\sqrt{x} or 3x2\dfrac{3}{x^2}Rewrite as powers, then the power rulex=x1/2\sqrt{x}=x^{1/2} and 3x2=3x−2\dfrac{3}{x^2}=3x^{-2}. Only a single term in the denominator can be split like this
sin⁡x\sin x, cos⁡x\cos x, exe^x or ln⁡x\ln x, alone or with a constant multipleThe standard derivativescos⁡x\cos x differentiates to −sin⁡x-\sin x. For sin⁡x\sin x and cos⁡x\cos x, xx must be in radians
A function of a function, such as (2x+1)5(2x+1)^5, sin⁡(3x)\sin(3x), ex2e^{x^2} or ln⁡(5x+1)\ln(5x+1)The chain ruleDifferentiate the outside, keep the inside, then multiply by the derivative of the inside
Two functions of xx multiplied, such as x2cos⁡xx^2\cos xThe product rule (uv)′=u′v+uv′(uv)'=u'v+uv'Write down uu, vv, u′u' and v′v' first. If a factor is a composite function, use the chain rule to find its derivative
One function divided by another whose denominator contains xx, such as exx+3\dfrac{e^{x}}{x+3}The quotient rule (uv)′=u′v−uv′v2\left(\dfrac{u}{v}\right)'=\dfrac{u'v-uv'}{v^2}The order in the numerator matters. If the denominator is only a number, just take the constant factor out
The gradient or rate of change at a pointDifferentiate, then substitute the valueOr use the calculator's numerical derivative to check an answer. Give exact values if the question asks for them

Section 1 of 3 SL5.1 SL5.3 SL5.6

Basic differentiation rules

The derivative of xnx^n is nxn−1nx^{n-1}: multiply by the power, then reduce the power by 11. Differentiate a sum term by term, and rewrite roots and fractions as powers first. The derivative gives the gradient of the curve, and the standard derivatives of sin⁡x\sin x, cos⁡x\cos x, exe^x and ln⁡x\ln x are included.

The rules you need

Standard derivatives

sin⁡x→cos⁡x\sin x \to \cos x
cos⁡x→−sin⁡x\cos x \to -\sin x
ex→exe^x \to e^x
ln⁡x→1x\ln x \to \dfrac{1}{x}

These four are given exactly as shown in the formula booklet - no derivation needed, just recall which one goes with which function.

In the formula booklet

Key terms

What does the derivative represent?

The derivative dydx\dfrac{dy}{dx}, or f′(x)f'(x), gives the gradient of the curve at a point, which is the rate of change of yy with respect to xx.

e.g. For y=x2y=x^2, dydx=2x\dfrac{dy}{dx}=2x, so the gradient at x=3x=3 is 66.

What are the derivatives of sin⁡x\sin x and cos⁡x\cos x?

ddx(sin⁡x)=cos⁡x\dfrac{d}{dx}(\sin x)=\cos x and ddx(cos⁡x)=−sin⁡x\dfrac{d}{dx}(\cos x)=-\sin x, with xx in radians. Note the minus sign for cosine.

e.g. y=3sin⁡x+2cos⁡xy=3\sin x+2\cos x has dydx=3cos⁡x−2sin⁡x\dfrac{dy}{dx}=3\cos x-2\sin x.

What are the derivatives of exe^x and ln⁡x\ln x?

ddx(ex)=ex\dfrac{d}{dx}(e^x)=e^x and ddx(ln⁡x)=1x\dfrac{d}{dx}(\ln x)=\dfrac1x. Constant multiples stay as multipliers.

e.g. y=5ex−4ln⁡xy=5e^x-4\ln x has dydx=5ex−4x\dfrac{dy}{dx}=5e^x-\dfrac{4}{x}.

What happens to a constant term when you differentiate?

The derivative of a constant is 00, because a constant does not change as xx changes. A term of the form kxkx differentiates to kk.

e.g. y=x3+7x−9y=x^3+7x-9 has dydx=3x2+7\dfrac{dy}{dx}=3x^2+7.

Worked example, step by step

The question No calculator needed [4 marks]

Let f(x)=x3−12x+6ln⁡xf(x)=x^3-\dfrac{12}{\sqrt{x}}+6\ln x, for x>0x>0.

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

(b) Find the gradient of the graph of ff at the point where x=4x=4.

Worked solution: worked example

Answer: (a) f′(x)=3x2+6x−3/2+6xf'(x)=3x^2+6x^{-3/2}+\dfrac{6}{x}. (b) The gradient is 2014\dfrac{201}{4} (=50.25=50.25).

Step 1 - Rewrite as powers of x.

12x=12x1/2=12x−1/2\dfrac{12}{\sqrt{x}}=\dfrac{12}{x^{1/2}}=12x^{-1/2}, so f(x)=x3−12x−1/2+6ln⁡x.f(x)=x^3-12x^{-1/2}+6\ln x. M1 - Rewrite the root and the fraction as a power of xx, −12x−1/2-12x^{-1/2}

Why? The power rule only works on a term of the form axnax^n. Roots and fractions have to be written as powers first. The ln⁡x\ln x term stays as it is because it has its own standard derivative.

Step 2 - Differentiate term by term.

ddx(x3)=3x2ddx(−12x−1/2)=−12×(−12)x−3/2=6x−3/2ddx(6ln⁡x)=6x\begin{aligned}\dfrac{d}{dx}\left(x^3\right)&=3x^2\\ \dfrac{d}{dx}\left(-12x^{-1/2}\right)&=-12\times\left(-\dfrac12\right)x^{-3/2}=6x^{-3/2}\\ \dfrac{d}{dx}\left(6\ln x\right)&=\dfrac{6}{x}\end{aligned} so f′(x)=3x2+6x−3/2+6x.f'(x)=3x^2+6x^{-3/2}+\dfrac{6}{x}. A1 - f′(x)=3x2+6x−3/2+6xf'(x)=3x^2+6x^{-3/2}+\dfrac{6}{x}

Why? Multiply by the power and subtract 11 from it: −12−1=−32-\dfrac12-1=-\dfrac32. The two negatives in −12×(−12)-12\times\left(-\dfrac12\right) make a positive. A constant multiple such as 66 stays in front of the standard derivative 1x\dfrac1x.

Step 3 - Substitute x = 4.

The gradient at x=4x=4 is f′(4)=3(4)2+6(4)−3/2+64f'(4)=3(4)^2+6(4)^{-3/2}+\dfrac{6}{4}. M1 - Substitute x=4x=4 into f′(x)f'(x)

Why? The gradient of a curve at a point is the value of the derivative at that point. The second part asks for a number, so put x=4x=4 into f′(x)f'(x), not into f(x)f(x).

Step 4 - Evaluate with exact values.

4−3/2=143/2=184^{-3/2}=\dfrac{1}{4^{3/2}}=\dfrac18, so f′(4)=48+68+32=48+34+32=2014.f'(4)=48+\dfrac68+\dfrac32=48+\dfrac34+\dfrac32=\dfrac{201}{4}. A1 - 2014\dfrac{201}{4} (or 50.2550.25)

Why? Work out the fractional power as a root first: 43/2=(4)3=84^{3/2}=\left(\sqrt4\right)^3=8. Then the three terms are easy to add by hand.

Step 5 - Check.

Use the calculator's numerical derivative of ff at x=4x=4. It should give 50.2550.25, which is 2014\dfrac{201}{4}.

Why? A numerical derivative is a quick check on the algebra. It does not replace the working, which is where the marks are.

Marks (4):
M1 Rewrite the root and the fraction as a power of xx, −12x−1/2-12x^{-1/2}
A1 f′(x)=3x2+6x−3/2+6xf'(x)=3x^2+6x^{-3/2}+\dfrac{6}{x}
M1 Substitute x=4x=4 into f′(x)f'(x)
A1 2014\dfrac{201}{4} (or 50.2550.25)

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
[2 marks]
Find dydx\dfrac{dy}{dx} if y=4x3−7x+2y=4x^{3}-7x+2.
[2]
Fractions & powers
Other

Worked solution: practice question 1

2
Medium
No calc
[2 marks]
Differentiate y=2x+xy = \dfrac{2}{x} + \sqrt{x}
[2]
Fractions & powers
Other

Worked solution: practice question 2

3
Medium
No calc
[4 marks]
Given y=x3−3x2+5,y=x^3-3x^2+5, find the value(s) of xx for which the gradient of the curve is 9.9.
[4]
Fractions & powers
Other

Worked solution: practice question 3

Your score so far: 0 out of 8 marks

Common mistakes

  • Differentiating a root or fraction without rewriting it as a power first. x\sqrt{x} and 3x2\dfrac{3}{x^2} can't be differentiated directly - convert to x1/2x^{1/2} and 3x−23x^{-2}, apply the power rule, then convert back if the question expects roots or fractions in the answer.
  • Dropping the minus sign when differentiating cos⁡x\cos x. The derivative of cos⁡x\cos x is −sin⁡x-\sin x, not sin⁡x\sin x - this sign is easy to lose under time pressure.
  • Stopping at the derivative when the question asks for a gradient at a point. dydx=2x−5\dfrac{dy}{dx}=2x-5 is a formula, not the answer - you still need to substitute the given xx-value and evaluate.

Try some questions on basic differentiation rules

Section 2 of 3 SL5.6

The chain rule

The chain rule differentiates a composite function y=g(h(x))y=g(h(x)) using dydx=g′(h(x))×h′(x)\dfrac{dy}{dx}=g'(h(x))\times h'(x). Differentiate the outer function, leaving the inner function unchanged, then multiply by the derivative of the inner function. Identifying which function is inside and which is outside is the key first step.

The formula

Chain rule

dydx=dydu×dudx\dfrac{dy}{dx}=\dfrac{dy}{du}\times\dfrac{du}{dx}

Differentiate the outer function, then multiply by the derivative of the inner function.

In the formula booklet

Key terms

What are the inner and outer functions?

In g(h(x))g(h(x)), the function h(x)h(x) is the inner function, applied first, and gg is the outer function. Naming them correctly is the first step of the chain rule.

e.g. In (3x2+1)4(3x^2+1)^4, the inner function is 3x2+13x^2+1 and the outer function is raising to the power 44.

How do you use the chain rule with a power of a bracket?

For y=(f(x))ny=\big(f(x)\big)^n, dydx=n(f(x))n−1×f′(x)\dfrac{dy}{dx}=n\big(f(x)\big)^{n-1}\times f'(x).

e.g. y=(2x+5)3y=(2x+5)^3 has dydx=3(2x+5)2×2=6(2x+5)2\dfrac{dy}{dx}=3(2x+5)^2\times2=6(2x+5)^2.

How do you apply the chain rule to ee and ln\ln?

Differentiate the outer function as usual, keep the inside unchanged, and multiply by the derivative of the inside: ddxef(x)=f′(x)ef(x)\dfrac{d}{dx}e^{f(x)}=f'(x)e^{f(x)} and ddxln⁡f(x)=f′(x)f(x)\dfrac{d}{dx}\ln f(x)=\dfrac{f'(x)}{f(x)}.

e.g. y=e4xy=e^{4x} has dydx=4e4x\dfrac{dy}{dx}=4e^{4x}, and y=ln⁡(5x+1)y=\ln(5x+1) has dydx=55x+1\dfrac{dy}{dx}=\dfrac{5}{5x+1}.

What is the inner derivative?

The inner derivative is the derivative of the function inside the bracket or inside the argument. It is the factor that is most often forgotten.

e.g. For y=sin⁡(5x)y=\sin(5x), the inner function 5x5x has inner derivative 55, so dydx=5cos⁡(5x)\dfrac{dy}{dx}=5\cos(5x).

Worked example, step by step

The question No calculator needed [4 marks]

Let g(x)=3x2+1g(x)=\sqrt{3x^2+1}.

(a) Find g′(x)g'(x).

(b) Find the value of g′(1)g'(1).

Worked solution: worked example

Answer: (a) g′(x)=3x3x2+1g'(x)=\dfrac{3x}{\sqrt{3x^2+1}}. (b) g′(1)=32g'(1)=\dfrac32.

Step 1 - Identify the inner and outer functions.

Write g(x)=(3x2+1)1/2g(x)=\left(3x^2+1\right)^{1/2}. The outer function is u1/2u^{1/2} and the inner function is u=3x2+1u=3x^2+1. M1 - Identify an inner function 3x2+13x^2+1 and an outer power 12\tfrac12

Why? A square root of an expression is a function of a function, so the chain rule is needed. Writing the root as a power of 12\tfrac12 lets you use the power rule on the outer function.

Step 2 - Differentiate each part.

dgdu=12u−1/2anddudx=6x.\dfrac{dg}{du}=\dfrac12u^{-1/2}\qquad\text{and}\qquad\dfrac{du}{dx}=6x. A1 - 12u−1/2\dfrac12u^{-1/2} and 6x6x

Why? Differentiate the outer function with respect to uu, and the inner function with respect to xx. The inner derivative 6x6x is the factor that is most often forgotten.

Step 3 - Multiply the two derivatives.

g′(x)=dgdu×dudx=12(3x2+1)−1/2×6x=3x3x2+1.g'(x)=\dfrac{dg}{du}\times\dfrac{du}{dx}=\dfrac12\left(3x^2+1\right)^{-1/2}\times6x=\dfrac{3x}{\sqrt{3x^2+1}}. A1 - g′(x)=3x3x2+1g'(x)=\dfrac{3x}{\sqrt{3x^2+1}}

Why? The chain rule says to multiply. Put u=3x2+1u=3x^2+1 back in once you have multiplied, so that the answer is in terms of xx. The negative power means the bracket goes under the 3x3x.

Step 4 - Substitute x = 1.

g′(1)=3(1)3(1)2+1=34=32.g'(1)=\dfrac{3(1)}{\sqrt{3(1)^2+1}}=\dfrac{3}{\sqrt4}=\dfrac32. A1 - g′(1)=32g'(1)=\dfrac32

Why? Substitute after differentiating, not before. Putting x=1x=1 into g(x)g(x) first would turn it into a constant, which has derivative 00.

Step 5 - Check.

The derivative is positive for x>0x>0, and g(x)g(x) is increasing for x>0x>0 because the square root of a larger number is larger, so 32>0\dfrac32>0 is sensible.

Why? A quick check of sign or size catches a lost minus sign or a missing factor. You can also confirm 32\dfrac32 with the calculator's numerical derivative at x=1x=1.

Marks (4):
M1 Identify an inner function 3x2+13x^2+1 and an outer power 12\tfrac12
A1 12u−1/2\dfrac12u^{-1/2} and 6x6x
A1 g′(x)=3x3x2+1g'(x)=\dfrac{3x}{\sqrt{3x^2+1}}
A1 g′(1)=32g'(1)=\dfrac32

Now you try: enter your answers to be marked

1
Medium
No calc
[3 marks]
Differentiate y=1(2x+3)2.y = \dfrac{1}{(2x+3)^{2}}.
[3]
Fractions & powers
Other

Worked solution: practice question 1

2
Medium
No calc
[3 marks]
Differentiate y=e3x2−1.y=e^{3x^2-1}.
[3]
Fractions & powers
Other

Worked solution: practice question 2

3
Hard
No calc
[3 marks]
Differentiate y=sin2⁡(3x),y=\sin^2(3x), giving your answer in the form asin⁡bx.a\sin bx.
[3]
Fractions & powers
Trig
Other

Worked solution: practice question 3

Your score so far: 0 out of 9 marks

Common mistakes

  • Forgetting the inner derivative in the chain rule. Differentiating sin⁡(3x−1)\sin(3x-1) as cos⁡(3x−1)\cos(3x-1) instead of 3cos⁡(3x−1)3\cos(3x-1) drops the multiplier from the inner function 3x−13x-1.
  • Sign errors with negative or fractional exponents in the power rule. ddx(x−2)=−2x−3\dfrac{d}{dx}(x^{-2})=-2x^{-3}, not 2x−32x^{-3} - the exponent's own sign carries through to the new coefficient.
  • Misidentifying the inner and outer functions. In y=cos⁡(3x2)y=\cos(3x^2) the outer function is cosine and the inner is 3x23x^2 - swapping this order, or trying to differentiate 3x23x^2 and cos⁡u\cos u separately without the multiplication step, gives the wrong derivative entirely.

Try some questions on the chain rule

Section 3 of 3 SL5.6

Product and quotient rule

When a function is a product of two functions of xx, or one function divided by another, the power rule alone is not enough and you use the product rule or the quotient rule. Label the two parts uu and vv, differentiate each, and substitute into the formula. Then simplify the result, factorising where possible.

The two rules

Product rule

ddx(uv)=udvdx+vdudx\dfrac{d}{dx}(uv)=u\dfrac{dv}{dx}+v\dfrac{du}{dx}

For a product of two functions - differentiate one at a time and add the results.

In the formula booklet

Quotient rule

ddx(uv)=vdudx−udvdxv2\dfrac{d}{dx}\!\left(\dfrac{u}{v}\right)=\dfrac{v\frac{du}{dx}-u\frac{dv}{dx}}{v^2}

For a fraction of two functions - order matters in the numerator, unlike the product rule.

In the formula booklet

Key terms

How do you choose between the product rule and the quotient rule?

Use the product rule when two functions of xx are multiplied, and the quotient rule when one function is divided by another. If the denominator is just a constant, scale the numerator instead.

e.g. x2exx^2e^x is a product, xx+1\dfrac{x}{x+1} is a quotient, and x23\dfrac{x^2}{3} is simply 13x2\dfrac13x^2.

How do you set out uu and vv?

Write down uu, vv, dudx\dfrac{du}{dx} and dvdx\dfrac{dv}{dx} before substituting, so that each part is checked on its own.

e.g. For y=x3sin⁡xy=x^3\sin x: u=x3u=x^3, v=sin⁡xv=\sin x, dudx=3x2\dfrac{du}{dx}=3x^2 and dvdx=cos⁡x\dfrac{dv}{dx}=\cos x, so dydx=x3cos⁡x+3x2sin⁡x\dfrac{dy}{dx}=x^3\cos x+3x^2\sin x.

How do you simplify after using the quotient rule?

Expand the numerator, collect like terms, and cancel any common factor with the denominator. Leave the denominator as v2v^2 unless it simplifies.

e.g. For y=xx+1y=\dfrac{x}{x+1}, the numerator is (x+1)×1−x×1=1(x+1)\times1-x\times1=1, so dydx=1(x+1)2\dfrac{dy}{dx}=\dfrac{1}{(x+1)^2}.

When does a product rule term need the chain rule too?

If one factor is itself a composite function, differentiate that factor with the chain rule inside the product rule.

e.g. For y=xe2xy=xe^{2x}, dydx=x×2e2x+e2x×1=e2x(2x+1)\dfrac{dy}{dx}=x\times2e^{2x}+e^{2x}\times1=e^{2x}(2x+1).

Worked example, step by step

The question No calculator needed [5 marks]

Let y=e3xx+2y=\dfrac{e^{3x}}{x+2}, for x>−2x>-2.

(a) Find dydx\dfrac{dy}{dx}, giving your answer in the form e3x(ax+b)(x+2)2\dfrac{e^{3x}(ax+b)}{(x+2)^2}.

(b) Find the gradient of the curve at the point where x=0x=0.

Worked solution: worked example

Answer: (a) dydx=e3x(3x+5)(x+2)2\dfrac{dy}{dx}=\dfrac{e^{3x}(3x+5)}{(x+2)^2}. (b) The gradient is 54\dfrac54.

Step 1 - Choose the rule and name u and v.

The function is one expression divided by another, so use the quotient rule. Let u=e3xu=e^{3x} and v=x+2v=x+2. M1 - Use the quotient rule with u=e3xu=e^{3x} and v=x+2v=x+2

Why? Writing uu and vv down first lets you check each derivative separately before you put them into the formula.

Step 2 - Differentiate u and v.

dudx=3e3x\dfrac{du}{dx}=3e^{3x} (chain rule, inner derivative 33) and dvdx=1\dfrac{dv}{dx}=1. A1 - u′=3e3xu'=3e^{3x} and v′=1v'=1

Why? u=e3xu=e^{3x} is a composite function, so its derivative needs the chain rule: e3xe^{3x} is kept and multiplied by 33. Forgetting the 33 is a common slip.

Step 3 - Substitute into the quotient rule.

dydx=vdudx−udvdxv2=(x+2)×3e3x−e3x×1(x+2)2.\dfrac{dy}{dx}=\dfrac{v\dfrac{du}{dx}-u\dfrac{dv}{dx}}{v^2}=\dfrac{(x+2)\times3e^{3x}-e^{3x}\times1}{(x+2)^2}. M1 - Substitute into vu′−uv′v2\dfrac{vu'-uv'}{v^2}

Why? The numerator is vv times u′u' minus uu times v′v', in that order. Swapping the two terms changes the sign of the answer.

Step 4 - Simplify.

Factorise the numerator with e3xe^{3x}: e3x(3(x+2)−1)(x+2)2=e3x(3x+5)(x+2)2.\dfrac{e^{3x}\left(3(x+2)-1\right)}{(x+2)^2}=\dfrac{e^{3x}(3x+5)}{(x+2)^2}. So a=3a=3 and b=5b=5. A1 - e3x(3x+5)(x+2)2\dfrac{e^{3x}(3x+5)}{(x+2)^2}

Why? Taking out the common factor e3xe^{3x} gives the form asked for and makes the next part easier. Expand 3(x+2)−13(x+2)-1 carefully: it is 3x+6−13x+6-1.

Step 5 - Find the gradient at x = 0.

dydx|x=0=e0(0+5)(0+2)2=54.\left.\dfrac{dy}{dx}\right|_{x=0}=\dfrac{e^{0}(0+5)}{(0+2)^2}=\dfrac54. A1 - 54\dfrac54

Why? The gradient is the value of the derivative at x=0x=0. Remember that e0=1e^0=1.

Marks (5):
M1 Use the quotient rule with u=e3xu=e^{3x} and v=x+2v=x+2
A1 u′=3e3xu'=3e^{3x} and v′=1v'=1
M1 Substitute into vu′−uv′v2\dfrac{vu'-uv'}{v^2}
A1 e3x(3x+5)(x+2)2\dfrac{e^{3x}(3x+5)}{(x+2)^2}
A1 54\dfrac54

Now you try: enter your answers to be marked

1
Medium
No calc
[3 marks]
Differentiate y=xsin⁡x.y = x\sin x.
[3]
Fractions & powers
Trig
Other

Worked solution: practice question 1

2
Medium
No calc
[3 marks]
Differentiate y=3x−12x+5.y = \dfrac{3x - 1}{2x + 5}.
[3]
Fractions & powers
Other

Worked solution: practice question 2

3
Hard
No calc
[3 marks]
Differentiate y=cos⁡xx2.y = \dfrac{\cos x}{x^2}.
[3]
Fractions & powers
Trig
Other

Worked solution: practice question 3

Your score so far: 0 out of 9 marks

Common mistakes

  • Getting the sign wrong in the quotient rule numerator. It's vdudx−udvdxv\frac{du}{dx}-u\frac{dv}{dx}, not the other way round - swapping uu and vv here flips the sign of the whole answer.
  • Using the product rule when a term should just be scaled. ddx(5x3)\dfrac{d}{dx}(5x^3) is a constant multiple, not a product of two functions of xx - the product rule is only needed when both factors actually depend on xx in a way that needs differentiating separately.
  • Forgetting the chain rule inside a product or quotient rule term. If v=sin⁡(2x)v=\sin(2x) inside a product rule calculation, v′v' is 2cos⁡(2x)2\cos(2x), not cos⁡(2x)\cos(2x) - the inner derivative from the chain rule still has to be applied before combining terms.

Try some questions on product and quotient rule

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 rules, The chain rule, Product and quotient rule

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.1Derivative interpreted as gradient function and as rate of change. Forms of notation: dydx\dfrac{dy}{dx}, f′(x)f'(x), dVdr\dfrac{dV}{dr}, dsdt\dfrac{ds}{dt} for the first derivative. Informal understanding of the gradient of a curve as a limit.
SL5.3Derivative 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}+\dots, where all exponents are integers.
SL5.6Derivative of xnx^n (n∈Qn\in\mathbb{Q}), sin⁡x\sin x, cos⁡x\cos x, exe^x and ln⁡x\ln x. Differentiation of a sum and a multiple of these functions. The chain rule for composite functions. The product and quotient rules.

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

Quick questions

What is the power rule for differentiation?

ddx(axn)=anxn−1\dfrac{d}{dx}(ax^n) = anx^{n-1}: multiply by the power, then reduce the power by 1. It works for any rational exponent, including negative and fractional ones.

What is the chain rule?

If y=g(u)y=g(u) and u=h(x)u=h(x), then dydx=dydu×dudx\dfrac{dy}{dx}=\dfrac{dy}{du}\times\dfrac{du}{dx}. In practice: differentiate the outer function, keeping the inner function unchanged, then multiply by the derivative of the inner function.

What is the product rule?

If y=uvy=uv, then dydx=udvdx+vdudx\dfrac{dy}{dx}=u\dfrac{dv}{dx}+v\dfrac{du}{dx}. Differentiate each factor in turn, keeping the other one unchanged, and add the two results.

How do you differentiate a square root or a fraction like 1x2\frac{1}{x^2}?

Rewrite it as a power first: x=x1/2\sqrt{x} = x^{1/2} and 1x2=x−2\frac{1}{x^2} = x^{-2}. Then apply the power rule to each term before simplifying back to root or fraction form if needed.

How do you know when a function needs the chain rule?

Whenever one function is applied to another - a bracket raised to a power, a trig function of an expression, ee to the power of an expression, or ln\ln of an expression - you have a composite function and need the chain rule.

What is the quotient rule?

If y=uvy=\dfrac{u}{v}, then dydx=vdudx−udvdxv2\dfrac{dy}{dx}=\dfrac{v\frac{du}{dx}-u\frac{dv}{dx}}{v^2}. The order in the numerator matters - it isn't symmetric like the product rule.

How do I find the gradient of a curve at a point?

Differentiate to find dydx\dfrac{dy}{dx}, then substitute the xx-value of the point. For y=x3−2xy=x^3-2x at x=2x=2, dydx=3x2−2=10\dfrac{dy}{dx}=3x^2-2=10.

How do I differentiate a bracket with a negative or fractional power?

The same rule applies: bring down the power, reduce it by 11, and multiply by the inner derivative. For y=(4x+1)−2y=(4x+1)^{-2}, dydx=−2(4x+1)−3×4=−8(4x+1)−3\dfrac{dy}{dx}=-2(4x+1)^{-3}\times4=-8(4x+1)^{-3}.

Is the derivative of a product the product of the derivatives?

No. ddx(uv)\dfrac{d}{dx}(uv) is not dudx×dvdx\dfrac{du}{dx}\times\dfrac{dv}{dx}. For y=x×xy=x\times x, the correct derivative is 2x2x, but multiplying the two derivatives would give 11.

How do I differentiate a constant multiple of a function?

Keep the constant and differentiate the function: ddx(kf(x))=kf′(x)\dfrac{d}{dx}\big(kf(x)\big)=kf'(x). So ddx(6x2)=6×2x=12x\dfrac{d}{dx}(6x^2)=6\times2x=12x.

Ready to practise properly?

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