Cambridge International AS & A Level Mathematics 9709 · Pure Mathematics 2

Differentiation

The derivatives of ex, lnx, sinx, cosx and tanx with the chain rule; the product and quotient rules; and the first derivative of a curve defined parametrically or implicitly, used for gradients, stationary points, tangents and normals.

2.4Paper 2: Pure Mathematics 2Free lesson
What the syllabus says

2.4 (Paper 2)

  • use the derivatives of ex, lnx, sinx, cosx, tanx, together with constant multiples, sums, differences and composites
  • differentiate products and quotients
  • find and use the first derivative of a function which is defined parametrically or implicitly.

Notes and examples

  • e.g. 2x−43x+2, x2lnx, xe1−x2.
  • e.g. x=t−e2t, y=t+e2t.
  • e.g. x2+y2=xy+7.
  • Including use in problems involving tangents and normals.

Quoted from the Cambridge International AS and A Level Mathematics 9709 syllabus (2026-2027 and 2028-2030 editions, which share this content).

The standard derivatives Paper 2

Paper 1 differentiated powers of x and used the chain rule on expressions such as (3x+2)5. Paper 2 adds five functions. Learn them; they are also printed in the formula list (MF19).
ddx(ex)=exddx(lnx)=1xddx(sinx)=cosxddx(cosx)=−sinxddx(tanx)=sec2x
Why they are true:

  • ex is the one exponential function whose gradient at every point equals its height. That property is what defines e, and it is why ex appears whenever a quantity grows at a rate proportional to its size.
  • lnx is the inverse of ex. If y=lnx then x=ey, so dxdy=ey=x. Turning this upside down gives dydx=1x. It holds for x>0, where lnx is defined.
  • sinx and cosx: the gradient of y=sinx is 1 at x=0, zero at x=12π and −1 at x=π, exactly the values of cosx. These results hold only when x is in radians; in degrees every derivative would carry an extra factor π180. In calculus, always work in radians.
  • tanx follows from the quotient rule, below.

Constant multiples and sums work as before: ddx(5ex−3lnx+2cosx)=5ex−3x−2sinx.

Composite functions Paper 2

The chain rule, dydx=dydu×dudx, works with the new functions exactly as with powers: differentiate the outer function, leave the inside alone, then multiply by the derivative of the inside. Three patterns come up constantly:
ddx(ef(x))=f′(x)ef(x)ddxlnf(x)=f′(x)f(x)ddxsin(ax+b)=acos(ax+b)
So ddx(e5x)=5e5x, ddxln(x2+4)=2xx2+4 and ddx(cos3x)=−3sin3x.

Powers of trigonometric functions are composites too. sin2x means (sinx)2, so its derivative is 2sinx×cosx=2sinxcosx.

Simplify logarithms first. The laws of logarithms from topic 2.2 often remove most of the work. ln3x=ln3+lnx has derivative 1x, because ln3 is a constant. And ln(x+1)3x=3ln(x+1)−lnx differentiates term by term to 3x+1−1x, with no quotient rule needed.

In the answer boxes on this site, put a whole power or angle in brackets: type e2x as e^(2x), sin3x as sin(3x) and sin2x as sin(x)^2.

Worked example 1 Paper 2

Differentiate with respect to x: (a) 4e1−3x (b) ln(2x3+5) (c) cos3x (d) tan(4x−1).

  1. (a) The inside is 1−3x, with derivative −3: 4×(−3)e1−3x=−12e1−3x.

  2. (b) f(x)=2x3+5 and f′(x)=6x2, so the derivative is 6x22x3+5.

  3. (c) Write cos3x=(cosx)3. Bring down the power, then multiply by the derivative of cosx: 3(cosx)2×(−sinx)=−3cos2xsinx.

  4. (d) sec2(4x−1)×4=4sec2(4x−1).

Answer: (a) −12e1−3x (b) 6x22x3+5 (c) −3cos2xsinx (d) 4sec2(4x−1)

Check yourself Paper 2

Differentiate ex2−4x with respect to x.

Answer it in the portal, where your answer is checked as you type →

Products Paper 2

For y=uv, where u and v are both functions of x:
dydx=udvdx+vdudx
Why: picture uv as the area of a rectangle with sides u and v. When x increases by δx, u grows by δu and v by δv. The area gains a strip uδv, a strip vδu and a tiny corner δuδv. Divide by δx and let δx→0: the corner vanishes and the two strips give the rule.

The derivative of a product is not the product of the derivatives. Write down u, v, dudx and dvdx first, then assemble. For the syllabus example xe1−x2: u=x and v=e1−x2, so the derivative is x×(−2x)e1−x2+e1−x2=(1−2x2)e1−x2.

Factorise where you can, because the next part of a question usually sets the derivative equal to zero. Since ef(x)>0 for every x, an exponential factor can never be zero, and the stationary points come from the other factor alone: here 1−2x2=0, so x=±12.

Worked example 2 Paper 2

The curve y=x2lnx, for x>0, has one stationary point. Find its exact coordinates.

  1. u=x2 and v=lnx, so dudx=2x and dvdx=1x.

  2. dydx=x2×1x+2xlnx=x+2xlnx=x(1+2lnx).

  3. Set this equal to zero. Since x>0, 1+2lnx=0, so lnx=−12 and x=e−12.

  4. y=(e−12)2lne−12=e−1×(−12)=−12e.

Answer: (e−12,−12e)

Quotients Paper 2

For y=uv:
dydx=vdudx−udvdxv2
It comes from the product rule applied to uv−1, which gives u×(−v−2dvdx)+v−1dudx, written over the common denominator v2. Because of the minus sign the order matters: start with v, the bottom.

The syllabus example y=2x−43x+2 has u=2x−4 and v=3x+2, so
dydx=(3x+2)(2)−(2x−4)(3)(3x+2)2=16(3x+2)2
The derivative of tanx comes the same way. With tanx=sinxcosx:
ddx(tanx)=cosxcosx−sinx(−sinx)cos2x=cos2x+sin2xcos2x=1cos2x=sec2x
Sometimes a quotient can be avoided: exe3x=e−2x, and 5(2x+1)3 is simply a power. Use the quotient rule when the bottom is a genuine function you cannot simplify away.

Check yourself Paper 2

Given y=lnxx, find dydx.

Answer it in the portal, where your answer is checked as you type →

Parametric equations Paper 2

A curve can be given by two equations, x=f(t) and y=g(t), in terms of a parameter t. Each value of t gives one point (x,y). To find the gradient you do not need to eliminate t. By the chain rule,
dydx=dydt÷dxdt
This is printed in MF19. The gradient comes out in terms of t. To use it at a point, find the value of t there first, then substitute that value into the coordinates and into the gradient.

For the syllabus example x=t−e2t, y=t+e2t: dxdt=1−2e2t and dydt=1+2e2t, so dydx=1+2e2t1−2e2t.

  • The tangent is parallel to the x-axis where dydt=0 (with dxdt≠0). Here 1+2e2t is always positive, so there are no such points.
  • The tangent is parallel to the y-axis where dxdt=0. Here that needs e2t=12, so t=−12ln2.

Worked example 3 Paper 2

A curve has parametric equations x=t2+1, y=4lnt, for t>0. Find the equation of the tangent to the curve at the point where t=1.

  1. dxdt=2t and dydt=4t.

  2. dydx=4t÷2t=2t2.

  3. At t=1 the point is (1+1,4ln1)=(2,0), and the gradient is 21=2.

  4. The tangent is y−0=2(x−2), that is y=2x−4.

Answer: y=2x−4

Check yourself Paper 2

A curve has parametric equations x=1+et, y=e2t−4t. Find the exact value of t at the point where the tangent is parallel to the x-axis.

Answer it in the portal, where your answer is checked as you type →

Implicit differentiation Paper 2

An equation such as x2+y2=xy+7 defines a curve without giving y as a function of x: it defines y implicitly. Differentiate every term with respect to x, treating y as a function of x:

  • a term in x alone differentiates as usual;
  • a term in y needs the chain rule: ddx(y2)=2ydydx, ddx(ey)=eydydx, ddx(siny)=cosydydx;
  • a product of x and y needs the product rule: ddx(xy)=xdydx+y;
  • a constant gives 0.

Then collect the dydx terms on one side, factorise and divide. For the syllabus example:
2x+2ydydx=xdydx+y
so (2y−x)dydx=y−2x and dydx=y−2x2y−x.

The gradient is in terms of both x and y, so at a point you need both coordinates. Check first that the point satisfies the equation of the curve: it catches copying errors.

Tangents and normals. With gradient m at (x1,y1), the tangent is y−y1=m(x−x1), and the normal, perpendicular to it, has gradient −1m. This applies to every kind of curve in this topic. A tangent is parallel to the x-axis where the numerator of dydx is zero; solve that equation together with the equation of the curve.

Worked example 4 Paper 2

The equation of a curve is x2+3xy+y2=11.
(a) Show that dydx=−2x+3y3x+2y.
(b) Find the equation of the normal to the curve at the point (1,2), in the form ax+by+c=0.
(c) Show that there is no point on the curve at which the tangent is parallel to the x-axis.

  1. (a) Differentiate term by term, using the product rule on 3xy: 2x+3xdydx+3y+2ydydx=0.

  2. Collect the dydx terms: (3x+2y)dydx=−(2x+3y), so dydx=−2x+3y3x+2y, as required.

  3. (b) Check: 1+6+4=11, so (1,2) is on the curve. The gradient of the tangent is −2+63+4=−87.

  4. The normal has gradient 78: y−2=78(x−1), so 8y−16=7x−7, giving 7x−8y+9=0.

  5. (c) A tangent parallel to the x-axis needs dydx=0, so 2x+3y=0, that is x=−32y.

  6. Substitute into the equation of the curve: 94y2−92y2+y2=11, so −54y2=11.

  7. y2=−445 has no real solution, so there is no such point.

Answer: (b) 7x−8y+9=0

Check yourself Paper 2

The equation of a curve is y3+2xy=x2+11. Find the gradient of the curve at the point (1,2).

Answer it in the portal, where your answer is checked as you type →

Key points

  • ddxex=ex, ddxlnx=1x, ddxsinx=cosx, ddxcosx=−sinx, ddxtanx=sec2x, with x in radians.

  • Chain rule: ddxef(x)=f′(x)ef(x) and ddxlnf(x)=f′(x)f(x). Simplify logarithms with the log laws first.

  • Product: udvdx+vdudx. Quotient: vdudx−udvdxv2, bottom first.

  • Parametric: dydx=dydt÷dxdt; horizontal tangent where dydt=0, vertical where dxdt=0.

  • Implicit: differentiate each term with respect to x; each y term picks up a factor dydx, and xy needs the product rule.

  • Tangent: y−y1=m(x−x1). Normal: gradient −1m.

Where marks are lost

  • Working in degrees: the derivatives of sinx, cosx and tanx are true only in radians.

  • Bringing the power down in ef(x) as if it were xn, or forgetting to multiply by f′(x).

  • Differentiating ln(3x) as 3x: the 3 cancels, giving 1x.

  • Writing the quotient rule numerator the wrong way round, which changes the sign of the answer.

  • Forgetting the dydx on a y term, or the second term of the product rule on xy, in implicit differentiation.

  • Using the gradient of the tangent for the normal, or substituting the wrong value of t into a parametric gradient.

  • Cancelling ef(x) correctly but then losing a solution by dividing by x instead of factorising.

Related AS & A Level Mathematics 9709 lessons

All AS & A Level Mathematics 9709 lessons →

An original lesson written to the Cambridge International AS & A Level Mathematics 9709 syllabus (2026 to 2027 and 2028 to 2030). The worked examples and questions are our own, not Cambridge questions. Back to every AS & A Level Mathematics 9709 lesson.