Implicit Differentiation: Explicit and Implicit Expressions
Implicit Differentiation: Explicit and Implicit Expressions
Implicit Differentiation: Explicit and Implicit Expressions
13 Implicit Differentiation
This sections highlights the difference between explicit and implicit expres-
sions, and focuses on the differentiation of the latter, which can be a very
useful tool in mathematics. By the end of this section, you should have the
following skills:
• An understanding of the definition of explicit and implicit functions
and differentiation.
• Find dy/dx from an implicit relation, calculated my differentiating im-
plicitly.
• Find the tangent of a curve at a given point using implicit differentia-
tion.
However, there are examples where we cannot solve easily for y in terms of
x e.g.
y 3 + y 2 + y = 3x
1
and there are examples where it is not possible to solve for y in terms of x
e.g.
y + sin(y) = x.
(a) y 2 .
(b) xy.
(c) x2 y 2 .
(d) ey .
(e) yey .
(f ) sin(y).
(g) cos(xy).
Solution.
2
(a) Remember that y is a function of x.
Hence using the Chain Rule we have
dy 2 dy
= 2y .
dx dx
d(xy) dy
= x + y.
dx dx
d(x2 y 2 ) dy
= x2 2y + 2xy 2 .
dx dx
d(ey ) dy
= ey .
dx dx
d(yey ) dy y d(ey )
= e +y
dx dx dx
dy y y dy
= e + ye .
dx dx
d(sin(y)) dy
= cos(y) .
dx dx
d(cos(xy)) d(xy)
= − sin(xy)
dx dx
dy
= −(x + y) sin(xy)
dx
3
(h) We use y 0 to denote dy/dx.
Let
z = x/(1 + y) ⇒
dz ˙ + y) − xy 0
1(1
=
dx (1 + y)2
1 + y − xy 0
= .
(1 + y)2
y + 2x = 3 − 2x
Find dy/dx.
Solution.
4
Example 3 Consider the implicit expression for y as function of x
y 2 + 2y = x
Find dy/dx.
Solution.
y 3 + y 2 + xy = sin(x).
Find dy/dx.
Solution.
5
Differentiate both sides of the equation:
d 3 d
(y + y 2 + xy) = (sin(x)) ⇒
dx dx
dy dy dy
3y 2 + 2y +y+x = cos(x) ⇒ on collecting terms in dy/dx
dx dx dx
2 dy
(3y + 2y + x) = cos(x) − y ⇒
dx
dy cos(x) − y
= .
dx 3y 2 + 2y + x
Notes.
(i)
d(y 2 ) dy
= 2y .
dx dx
(ii) We differentiated y 3 using the Chain Rule and so
d(y 3 ) dy
= 3y 2 .
dx dx
d(xy) dx dy dy
=y +x =y+x .
dx dx dx dx
Exercise 1
Consider the following implicit expressions for y as function of x. In
each case find dy/dx in terms of x, y.
(a) x2 − y 2 = 4.
(b) y + x2 y 2 = x.
(c) y 2 + x = y 3 .
6
(d) sin(y) + cos(x) = y.
(e) ey − ex = y 2 − x2 .
Solutions to exercise 1
Note that we use y 0 for dy/dx in these solutions.
In each case we differentiate both sides with respect to x
(b)
y 0 + 2xy 2 + x2 2yy 0 = 1 ⇒
y 0 (1 + 2x2 y) = 1 − 2xy 2 ⇒
1 − 2xy 2
y0 = .
1 + 2x2 y
(c)
2yy 0 + 1 = 3y 2 y 0 ⇒
y 0 (3y 2 − 2y) = 1 ⇒
1
y0 = 2
.
3y − 2y
(d)
cos(y)y 0 − sin(x) = y 0 ⇒
y 0 (cos(y) − 1)) = sin(x) ⇒
sin(x)
y0 = .
cos(y) − 1
7
(e)
ey y 0 − ex = 2yy 0 − 2x ⇒
y 0 (ey − 2y) = ex − 2x ⇒
ex − 2x
y0 = y .
e − 2y
(f)
y3 + y = x
then we can plot a point on the curve given by this expression by giving x a
value and solving for y.
For example:
Continuing in this way we can plot the curve given by the implicit ex-
pression.
8
Note it is not expected that you should be able to plot these graphs -
they are displayed here for information.
Graph of y 3 + y = x.
We can now ask for the slope of the tangent to this curve at a particular
point by finding dy/dx.
y 3 + y = x.
(a) Show that the point (−2, −1) lies on the curve.
(c) Find the slope of the tangent at the point (−2, −1).
Solution.
(a) To show that the point (−2, −1) lies on the curve all we do is to
substitute these values into the equation and see if they satisfy the
equation.
We get on putting x = −2, y = −1 :
(−1)3 + (−1) = −2
9
(b) Differentiate both sides of the equation to get:
d 3 d
(y + y) = (x) ⇒
dx dx
dy dy
3y 2 + = 1 ⇒ on collecting terms in dy/dx
dx dx
dy
(3y 2 + 1) = 1⇒
dx
dy 1
= .
dx 3y 2+1
dy 1 1
= 2
= .
dx 3 × (−1) + 1 4
y + sin(y) = x2 + x
(b) Find the slope of the tangent at the point (0, 0).
(c) Find the equation of the tangent at the point (0, 0).
Solution.
(a) To show that the point (0, 0) lies on the curve all we do is to substi-
tute these values into the equation and see if they satisfy the equa-
tion.
We get on putting x = 0, y = 0 :
0 + sin(0) = 02 + 0
10
(b) Differentiate both sides of the equation:
d d 2
(y + sin(y)) = (x + x) ⇒
dx dx
dy dy
+ cos(y) = 2x + 1 ⇒ on collecting terms in dy/dx
dx dx
dy
(1 + cos(y)) = 2x + 1 ⇒
dx
dy 2x + 1
= .
dx 1 + cos(y)
dy 2×0+1 1
= = .
dx 1 + cos(0) 2
Note
On differentiating the implicit expression we found:
d(sin(y)) dy
= cos(y) .
dx dx
Once again this is because we are using the Chain Rule where sin(y) is
a function of a function with y as the ”innermost” function.
11
Example 7 A curve is given by the equation
y 3 + 2y = sin(x) + 3.
3y 2 y 0 + 2y 0 = cos(x) ⇒
(3y 2 + 2)y 0 = cos(x) ⇒
cos(x)
y0 = .
3y 2 + 2
At x = 0, y = 1:
1 1
y0 = = .
3+2 5
This is the slope of the curve at (0, 1).
To approximate the value of y at x = 0.05 we use the equation of the
tangent at (0, 1) which is of the form
1
y = x+c
5
and since y = 1 when x = 0 we have c = 1. Hence the equation of the
tangent is
1
y = x + 1.
5
The approximation for y at x = 0.05 is then y = 0.05/5 + 1 = 1.01.
The true value is y = 1.009936398 and the error is 0.000064 to 6 deci-
mal places.
The graph together with the tangent at (0, 1) is Figure 2.
12
Graph of y 3 + 2y = sin(x) + 3 with tangent at (0, 1).
Exercise 2
A curve is given by the equation
y 3 + y 2 = x3 + 1.
Solutions to exercise 2
Once again we use y 0 as shorthand for dy/dx.
Note that (−1, −1) lies on the curve as we can see that x = −1, y =
−1 satisfies the equation.
Differentiating both sides of the equation with respect to x gives:
3y 2 y 0 + 2yy 0 = 3x2 ⇒
(3y 2 + 2y)y 0 = 3x2 ⇒
3x2
y0 = .
3y 2 + 2y
13
At x = −1, y = −1, y0 = 3
1
= 3.
y = 3 × (−0.95) + 2 = −0.85.
The next example uses the second derivative to estimate the error in us-
14
ing the tangent as an approximation.
This question asks for an estimate of the error in the tangent approxi-
mation above. It has been stated that a reasonable estimate is:
(x − a)2 d2 y
2 dx2
where x = 0.05, a = 0 and we evaluate the second derivative of y at
x = 0, y = 1.
We denote the second derivative by y 00 .
We can find the value of the second derivative by differentiating
3y 2 y 0 + 2y 0 = cos(x)
again to get
6y(y 0 )2 + 3y 2 y 00 + 2y 00 = − sin(x) ⇒
(3y 2 + 2)y 00 = − sin(x) − 6y(y 0 )2 ⇒
sin(x) + 6y(y 0 )2
y 00 = − .
3y 2 + 2
(0.05)2 6
× = 0.00006.
2 125
This is a good estimate as the true error is 0.000064 (see above).
15
Exercise 3
A curve is given by
xy + sin(y) = x2 + x.
(b) Find the slope of the tangent at the point (0, 0).
(c) Find the equation of the tangent at the point (0, 0).
Solutions to exercise 3
(a) We can see that (0, 0) lies on the curve as x = 0, y = 0 satisfies the
equation.
y + xy 0 + cos(y)y 0 = 2x + 1 ⇒
(x + cos(y))y 0 = 2x + 1 − y ⇒
2x + 1 − y
y0 = .
x + cos(y)
At x = 0, y = 0, y 0 = 11 = 1.
This is the slope of the curve at (0, 0).
16
(e) Recall that this estimate is given by
(x − a)2 d2 y
2 dx2
where x = −0.01, a = 0 and we evaluate the second derivative of y
at x = 0, y = 0.
We denote the second derivative by y 00 .
We can find the value of the second derivative by differentiating
y + xy 0 + cos(y)y 0 = 2x + 1 again to get:
y 0 + y 0 + xy 00 − sin(y)(y 0 )2 + cos(y)y 00 = 2 ⇒
(x + cos(y))y 00 = 2 + sin(y)(y 0 )2 − 2y 0 ⇒
2 + sin(y)(y 0 )2 − 2y 0
y 00 = − .
x + cos(y)
17
13.5 Videos
Implicit Differentiation 1
Implicit Differentiation 2
Implicit Differentiation 3
Find the tangent at (0, 0) and the equation of the normal at (0, 0) for the
curve given by the implicit relation 3y + 2x + x3 = 2 sin(y).
18