General Maths gave you the power, chain, product and quotient rules (see calculus↺ ). This lesson uses them on harder expressions, then on curves whose equation isn’t written as y = … y = \ldots y = … at all.
The rules on harder expressions
Two habits make most questions short:
Simplify first. Write roots and fractions as powers of x x x , or divide out, before differentiating: 3 x 2 = 3 x − 2 \dfrac{3}{x^2} = 3x^{-2} x 2 3 = 3 x − 2 .
Factorise the top after the quotient rule, so that a bracket cancels.
d/dx (u ⁄ v) = (v ·u′ − u ·v′ ) ⁄ v²
bottom × derivative of top, minus top × derivative of bottom, all over bottom squared
The quotient rule Bottom × top′ − top × bottom′, over bottom²
Worked example · WAEC 2013
Name the parts
u = x 2 + 1 {u = x^2 + 1} u = x 2 + 1 , so u ′ = 2 x {u' = 2x} u ′ = 2 x .
v = ( x + 1 ) 2 {v = (x + 1)^2} v = ( x + 1 ) 2 , so by the chain rule v ′ = 2 ( x + 1 ) {v' = 2(x + 1)} v ′ = 2 ( x + 1 ) .
Think first. u is the top and v the bottom. What are u′ and v′?
Apply the rule
The top is bottom × top′ minus top × bottom′: ( x + 1 ) 2 ⋅ 2 x − ( x 2 + 1 ) ⋅ 2 ( x + 1 ) {(x + 1)^2 \cdot 2x - (x^2 + 1) \cdot 2(x + 1)} ( x + 1 ) 2 ⋅ 2 x − ( x 2 + 1 ) ⋅ 2 ( x + 1 ) .
The bottom is the bottom squared: ( x + 1 ) 4 {(x + 1)^4} ( x + 1 ) 4 .
Factorise the top
Take out 2 ( x + 1 ) {2(x + 1)} 2 ( x + 1 ) : the top is 2 ( x + 1 ) [ x ( x + 1 ) − ( x 2 + 1 ) ] {2(x + 1)[x(x + 1) - (x^2 + 1)]} 2 ( x + 1 ) [ x ( x + 1 ) − ( x 2 + 1 )] .
Simplify the bracket: x 2 + x − x 2 − 1 = x − 1 {x^2 + x - x^2 - 1 = x - 1} x 2 + x − x 2 − 1 = x − 1 .
Cancel one ( x + 1 ) (x + 1) ( x + 1 ) : d y d x = 2 ( x − 1 ) ( x + 1 ) 3 {\frac{dy}{dx} = \frac{2(x - 1)}{(x + 1)^3}} d x d y = ( x + 1 ) 3 2 ( x − 1 ) .
Think first. Both terms on top share a factor. Which?
← Back Next step → Show all steps Start again
More: simplify first, then differentiate
Implicit differentiation
Some curves are given as an equation in x x x and y y y , such as x 2 + y 2 = 25 x^2 + y^2 = 25 x 2 + y 2 = 25 , and y y y is hard or impossible to make the subject. Differentiate every term with respect to x x x as it stands. A term in y y y is differentiated as usual and then multiplied by d y d x \frac{dy}{dx} d x d y , by the chain rule:
d/dx (y² ) = 2y · dy/dx
d/dx (xy ) = y + x · dy/dx
differentiate a y term as usual, then multiply by dy/dx; xy needs the product rule
Terms in y y² gives 2y dy/dx; xy needs the product rule
Then collect the d y d x \frac{dy}{dx} d x d y terms on one side and factorise. The answer usually has both x x x and y y y in it, so you need both coordinates of the point.
Tangents to a curve in x and y Pick a curve, slide the point
−7 −5 −3 −1 1 3 5 7 −7 −5 −3 −1 1 3 5 7 x y (2.7, 4.21) the point −0.642 dy/dx = −x ÷ y
x² + y² = 25 x²/9 + y²/4 = 1 xy = 4 point = (2.7, 4.21)
Differentiate each term with respect to x: 2x + 2y·dy/dx = 0, so dy/dx = −x ÷ y. Put in the point's coordinates to get the gradient there: −0.642.
Worked example · WAEC 2020
WAEC 2020 · Paper 2 · Q1
If x 2 − x y − y 2 = − 31 x^2 - xy - y^2 = -31 x 2 − x y − y 2 = − 31 , find d y d x \dfrac{dy}{dx} d x d y at ( 2 , 5 ) (2, 5) ( 2 , 5 ) .
Differentiate term by term
x 2 {x^2} x 2 gives 2 x {2x} 2 x .
− x y {-xy} − x y needs the product rule: − ( y + x d y d x ) {-\left(y + x\frac{dy}{dx}\right)} − ( y + x d x d y ) .
− y 2 {-y^2} − y 2 gives − 2 y d y d x {-2y\frac{dy}{dx}} − 2 y d x d y .
The constant − 31 -31 − 31 gives 0.
So 2 x − y − x d y d x − 2 y d y d x = 0 {2x - y - x\frac{dy}{dx} - 2y\frac{dy}{dx} = 0} 2 x − y − x d x d y − 2 y d x d y = 0 .
Think first. What do x², −xy and −y² each give?
Collect dy/dx
2 x − y = x d y d x + 2 y d y d x {2x - y = x\frac{dy}{dx} + 2y\frac{dy}{dx}} 2 x − y = x d x d y + 2 y d x d y .
Factorise: 2 x − y = ( x + 2 y ) d y d x {2x - y = (x + 2y)\frac{dy}{dx}} 2 x − y = ( x + 2 y ) d x d y .
So d y d x = 2 x − y x + 2 y {\frac{dy}{dx} = \frac{2x - y}{x + 2y}} d x d y = x + 2 y 2 x − y .
Think first. Move the terms without dy/dx to the other side.
At (2, 5)
d y d x = 4 − 5 2 + 10 = − 1 12 {\frac{dy}{dx} = \frac{4 - 5}{2 + 10} = -\frac{1}{12}} d x d y = 2 + 10 4 − 5 = − 12 1 .
Think first. Put x = 2 and y = 5.
← Back Next step → Show all steps Start again
Check yourself
Find d y d x \dfrac{dy}{dx} d x d y at the point ( 1 , 2 ) (1, 2) ( 1 , 2 ) on the curve x 2 + 3 x y + y 2 = 11 x^2 + 3xy + y^2 = 11 x 2 + 3 x y + y 2 = 11 . Give it as a decimal.
More: implicit differentiation
WAEC 2023 · Paper 2 · Q10 Calculate ∣ 3 5 − 4 6 − 3 − 5 − 2 2 1 ∣ \begin{vmatrix} 3 & 5 & -4 \\ 6 & -3 & -5 \\ -2 & 2 & 1 \end{vmatrix} . WAEC 2011 · Paper 2 · Q12 Find the equation of the tangent to the curve x 2 4 + y 2 = 1 \dfrac{x^2}{4} + y^2 = 1 at the point ( 1 , 3 2 ) \left(1, \dfrac{\sqrt3}{2}\right) . WAEC 2008 · Paper 2 · Q11 Find d y d x \dfrac{dy}{dx} if x 2 + 4 x y − y 2 = 7 x^2 + 4xy - y^2 = 7 . WAEC 2010 · Paper 2 · Q10 If x 2 + y 2 = p y ( 1 + x 2 ) x^2 + y^2 = py(1 + x^2) , where p p is a constant, find d y d x \dfrac{dy}{dx} . WAEC 2010 · Paper 2 · Q12 Given that ∫ 1 m ( x 2 − 2 x + 1 ) d x = 1 3 \displaystyle\int_1^m (x^2 - 2x + 1)\,dx = \dfrac13 , m > 0 m > 0 , determine the value of m m . WAEC 2012 · Paper 2 · Q11 If ( x + 2 ) (x + 2) and ( x − 1 ) (x - 1) are factors of f ( x ) = 6 x 4 + m x 3 − 13 x 2 + n x + 14 f(x) = 6x^4 + mx^3 - 13x^2 + nx + 14 , find the values of m m and n n . WAEC 2014 · Paper 2 · Q4 Find the gradient of x y 2 + x 2 y = 4 x y xy^2 + x^2y = 4xy at the point ( 1 , 3 ) (1, 3) . WAEC 2022 · Paper 1 · Q9 If x 2 + y 2 − 2 x − 6 y + 5 = 0 x^2 + y^2 - 2x - 6y + 5 = 0 , evaluate d y d x \dfrac{dy}{dx} when x = 3 x = 3 and y = 2 y = 2 . WAEC 2023 · Paper 1 · Q13 Given that y 2 + x y = 5 y^2 + xy = 5 , find d y d x \dfrac{dy}{dx} .
Second derivatives and “show that”
Differentiate twice to get d 2 y d x 2 \dfrac{d^2y}{dx^2} d x 2 d 2 y . A “show that” question gives you the answer: work out each part separately, substitute, and simplify until the required result appears. Write each power of x x x as x n x^n x n first.
Worked example · WAEC 2012
WAEC 2012 · Paper 2 · Q10 (b)
Given that y = p x 2 + q x 4 y = \dfrac{px^2 + q}{x^4} y = x 4 p x 2 + q , where p p p and q q q are constants, show that x 2 d 2 y d x 2 + 7 x d y d x + 8 y = 0 x^2\dfrac{d^2y}{dx^2} + 7x\dfrac{dy}{dx} + 8y = 0 x 2 d x 2 d 2 y + 7 x d x d y + 8 y = 0 .
Powers of x
y = p x − 2 + q x − 4 {y = px^{-2} + qx^{-4}} y = p x − 2 + q x − 4 .
Think first. Divide each term of the top by x⁴.
Differentiate twice
d y d x = − 2 p x − 3 − 4 q x − 5 {\frac{dy}{dx} = -2px^{-3} - 4qx^{-5}} d x d y = − 2 p x − 3 − 4 q x − 5 .
d 2 y d x 2 = 6 p x − 4 + 20 q x − 6 {\frac{d^2y}{dx^2} = 6px^{-4} + 20qx^{-6}} d x 2 d 2 y = 6 p x − 4 + 20 q x − 6 .
Each part of the left side
x 2 d 2 y d x 2 = 6 p x − 2 + 20 q x − 4 {x^2\frac{d^2y}{dx^2} = 6px^{-2} + 20qx^{-4}} x 2 d x 2 d 2 y = 6 p x − 2 + 20 q x − 4 .
7 x d y d x = − 14 p x − 2 − 28 q x − 4 {7x\frac{dy}{dx} = -14px^{-2} - 28qx^{-4}} 7 x d x d y = − 14 p x − 2 − 28 q x − 4 .
8 y = 8 p x − 2 + 8 q x − 4 {8y = 8px^{-2} + 8qx^{-4}} 8 y = 8 p x − 2 + 8 q x − 4 .
Think first. Multiply each derivative by what the question says.
Add them
The p x − 2 px^{-2} p x − 2 terms: 6 − 14 + 8 = 0 {6 - 14 + 8 = 0} 6 − 14 + 8 = 0 .
The q x − 4 qx^{-4} q x − 4 terms: 20 − 28 + 8 = 0 {20 - 28 + 8 = 0} 20 − 28 + 8 = 0 .
So the left side is 0, as required.
← Back Next step → Show all steps Start again
Tangents and normals
The derivative at a point is the gradient m m m of the tangent there. The normal is the line at right angles to the tangent, so its gradient is − 1 m -\frac1m − m 1 :
x P tangent normal Tangent and normal Gradients multiply to −1: m × (−1/m) = −1
For either line you need a point and a gradient. Then use y − y 1 = m ( x − x 1 ) y - y_1 = m(x - x_1) y − y 1 = m ( x − x 1 ) .
Worked example · WAEC 2014
WAEC 2014 · Paper 2 · Q4
Find the equation of the tangent to the curve y = 1 x + 1 y = \dfrac{1}{x + 1} y = x + 1 1 when x = 1 x = 1 x = 1 .
The point
y = 1 1 + 1 = 1 2 {y = \frac{1}{1 + 1} = \frac12} y = 1 + 1 1 = 2 1 . The point is ( 1 , 1 2 ) {\left(1, \frac12\right)} ( 1 , 2 1 ) .
Think first. Put x = 1 into the curve.
The gradient
y = ( x + 1 ) − 1 {y = (x + 1)^{-1}} y = ( x + 1 ) − 1 , so d y d x = − ( x + 1 ) − 2 {\frac{dy}{dx} = -(x + 1)^{-2}} d x d y = − ( x + 1 ) − 2 .
At x = 1 x = 1 x = 1 : − 1 4 {-\frac{1}{4}} − 4 1 .
Think first. Write y as a power and use the chain rule.
The tangent
y − 1 2 = − 1 4 ( x − 1 ) {y - \frac12 = -\frac14(x - 1)} y − 2 1 = − 4 1 ( x − 1 ) .
Multiply by 4: 4 y − 2 = − x + 1 {4y - 2 = -x + 1} 4 y − 2 = − x + 1 .
Rearrange: x + 4 y − 3 = 0 {x + 4y - 3 = 0} x + 4 y − 3 = 0 .
← Back Next step → Show all steps Start again
More: tangents and normals
Stationary points
Setting d y d x = 0 \frac{dy}{dx} = 0 d x d y = 0 finds the points where the tangent is horizontal, and the second derivative tells a maximum from a minimum. FM12 covers these in full, with rates of change.
Your turn
(b) If y = sin x 1 + cos x y = \dfrac{\sin x}{1 + \cos x} y = 1 + cos x sin x , find d y d x \dfrac{dy}{dx} d x d y .
Worked solution (try it first) (b) Use the quotient rule with
u = sin x u = \sin x u = sin x and
v = 1 + cos x v = 1 + \cos x v = 1 + cos x :
u ′ = cos x u' = \cos x u ′ = cos x and
v ′ = − sin x v' = -\sin x v ′ = − sin x .
d y d x = cos x ( 1 + cos x ) − sin x ( − sin x ) ( 1 + cos x ) 2 \dfrac{dy}{dx} = \dfrac{\cos x(1 + \cos x) - \sin x(-\sin x)}{(1 + \cos x)^2} d x d y = ( 1 + cos x ) 2 cos x ( 1 + cos x ) − sin x ( − sin x ) = cos x + cos 2 x + sin 2 x ( 1 + cos x ) 2 = \dfrac{\cos x + \cos^2x + \sin^2x}{(1 + \cos x)^2} = ( 1 + cos x ) 2 cos x + cos 2 x + sin 2 x .
Use
cos 2 x + sin 2 x = 1 \cos^2x + \sin^2x = 1 cos 2 x + sin 2 x = 1 : the top is
1 + cos x 1 + \cos x 1 + cos x .
Cancel one factor:
d y d x = 1 1 + cos x \dfrac{dy}{dx} = \dfrac{1}{1 + \cos x} d x d y = 1 + cos x 1 .
Watch out
In (a), divide first and keep the whole part x − 1 x - 1 x − 1 in the answer. In (b), the derivative of cos x \cos x cos x is − sin x -\sin x − sin x , so − sin x × ( − sin x ) = + sin 2 x -\sin x \times (-\sin x) = +\sin^2x − sin x × ( − sin x ) = + sin 2 x . Report a problem with this question