Video Transcript
In this video, we’ll learn how to use
implicit differentiation to help us find the derivative of functions expressed
implicitly as functions of 𝑥. The majority of differentiation
problems you will have come across so far will have involved functions written
explicitly as functions of 𝑥, such as 𝑦 equals three 𝑥 squared sin 𝑥. In this video, we’re going to
explore how implicit differentiation, which is an extension of the chain rule,
allows us to easily differentiate equations such as the Cartesian equation of a
circle, 𝑥 squared plus 𝑦 squared equals one for example. We’ll also explore what this means
for the second derivative and higher order derivatives.
The chain rule allows us to
differentiate composite functions. It says that for two differentiable
functions, 𝑔 and ℎ, such that 𝑓 is the composite function 𝑔 of ℎ of 𝑥, the
derivative of 𝑓 is the derivative of ℎ of 𝑥 times the derivative of 𝑔 evaluated
at ℎ of 𝑥. It’s often more intuitive though to
write this as d𝑦 by d𝑥 equals d𝑢 by d𝑥 times d𝑦 by d𝑢, where 𝑦 is a function
of 𝑢 and 𝑢 is a function of 𝑥. Let’s demonstrate how this chain
rule can help us to find the derivative of an implicit function.
Consider the equation 𝑥 squared
plus 𝑦 squared equals one. Using implicit differentiation,
find an expression for d𝑦 by d𝑥 in terms of 𝑥 and 𝑦. And there’s a second part to this
question. For the semicircle where 𝑦 is
greater than or equal to zero, express 𝑦 explicitly in terms of 𝑥, then
differentiate this expression to get an expression for d𝑦 by d𝑥 in terms of
𝑥.
We’ll begin with part one. To differentiate the function
implicitly, we’re going to begin by differentiating both sides of the equation with
respect to 𝑥. This is probably going to look a
little strange, but bear with me. We say that the derivative of 𝑥
squared plus 𝑦 squared with respect to 𝑥 is equal to the derivative of one with
respect to 𝑥. And we absolutely must do this to
both sides of the equation. Next, we differentiate what we
can. It’s quite straightforward to
differentiate one with respect to 𝑥. It’s simply zero. But how do we differentiate 𝑥
squared plus 𝑦 squared?
Well, the derivative of 𝑥 squared
is two 𝑥. But the derivative of 𝑦 squared is
a little more strange. We know that 𝑦 squared is a
function of 𝑦. And, in turn, 𝑦 is a function of
𝑥. So here, we can use the chain
rule. We say that the derivative of 𝑦
squared with respect to 𝑥 is equal to the derivative of 𝑦 squared with respect to
𝑦 times the derivative of 𝑦 with respect to 𝑥. Well, the derivative of 𝑦 squared
with respect to 𝑦 is two 𝑦. And the derivative of 𝑦 with
respect to 𝑥 is simply d𝑦 by d𝑥. So our equation now becomes two 𝑥
plus two 𝑦 d𝑦 by d𝑥 equals zero.
Remember, we want an equation for
the derivative. So we’re going to make d𝑦 by d𝑥
the subject by first subtracting two 𝑥 from both sides of our equation. That gives us two 𝑦 d𝑦 by d𝑥 is
equal to negative two 𝑥. Next, we’re going to divide through
by two 𝑦. And we see that d𝑦 by d𝑥 is equal
to negative two 𝑥 divided by two 𝑦. Well, the twos cancel. And we found an expression for d𝑦
by d𝑥 in terms of 𝑥 and 𝑦; it’s negative 𝑥 over 𝑦.
For part two of this question,
we’re going to go back to our original equation. And we’re going to begin by making
𝑦 the subject of the equation. That’s expressing 𝑦 explicitly in
terms of 𝑥. We can subtract 𝑥 squared from
both sides. And then we take the square root of
both sides of the equation. Now, usually, we take by the
positive and negative square root. Here though, we’re told the
semicircle is such that 𝑦 is greater than or equal to zero. So we’re just going to consider the
positive square root. And we have an explicit function in
𝑥.
Now, writing it as one minus 𝑥
squared to the power of a half, we can see that we can use the general power rule to
differentiate this. This says that if 𝑢 is some
function in 𝑥, the derivative of 𝑢 to the power of 𝑛 with respect to 𝑥 is equal
to 𝑛 times 𝑢 to the power of 𝑛 minus one multiplied by the derivative of 𝑢 with
respect to 𝑥. And this is of course when 𝑛 is a
real number. So the derivative of one minus 𝑥
squared to the power of a half is a half times one minus 𝑥 squared to the power of
negative half multiplied by d𝑢 by d𝑥. But, actually, 𝑢 is equal to one
minus 𝑥 squared. So the derivative of 𝑢 with
respect to 𝑥 is just negative two 𝑥. Once again, we have some twos to
cancel. And our expression for d𝑦 by d𝑥
in terms of 𝑥 is negative 𝑥 over the square root of one minus 𝑥 squared.
Notice that since we said that 𝑦
was equal to the square root of one minus 𝑥 squared, we could have written this as
d𝑦 by d𝑥 equals negative 𝑥 over 𝑦. And that’s the same answer as we got
in part one of this question. And, of course, we must remember that
𝑦 cannot be equal to zero here. Now, this example demonstrates some
important points. Firstly, even though it was easy
enough to express this relation as an explicit function, it was simpler to
differentiate using implicit differentiation.
And, in general, when we’re
differentiating implicitly, we can use the following version of the chain rule. This says the derivative of a
function in 𝑦 with respect to 𝑥 is equal to the derivative of that function in 𝑦
with respect to 𝑦 times d𝑦 by d𝑥. It’s really useful to commit this
version of the chain rule to memory. Let’s now apply it to a more
complicated example.
Find d𝑦 by d𝑥 by implicit
differentiation if negative 𝑒 of to the 𝑦 sin 𝑥 is equal to four 𝑥𝑦 plus two
𝑥.
To differentiate this function
implicitly, we begin by differentiating both sides of the equation with respect to
𝑥. We begin by writing this as d by d𝑥
of negative 𝑒 to the 𝑦 times sin 𝑥 equals d by d𝑥 of four 𝑥𝑦 plus two 𝑥. Let’s differentiate each bit with
respect to 𝑥. Well, the derivative of two 𝑥 is
straightforward; it’s simply two. We’re going to have to use the
product rule combined with the chain rule to differentiate four 𝑥𝑦 and negative 𝑒
to the 𝑦 sin 𝑥. The special version of the chain
rule that we need says the derivative of 𝑓 of 𝑦 with respect to 𝑥 is equal to the
derivative of 𝑦 with respect to 𝑦 times d𝑦 by d𝑥. And the product rule says that the
derivative of 𝑢 times 𝑣 is equal to 𝑢 times the derivative of 𝑣 plus 𝑣 times
the derivative of 𝑢.
We’ll begin by differentiating four
𝑥𝑦. We’re going to let 𝑢 be equal to
four 𝑥 and 𝑣 be equal to 𝑦. Then the derivative of 𝑢 with
respect to 𝑥 is simply four. The derivative of 𝑣 with respect
to 𝑥 is equal to the derivative of 𝑦 with respect to 𝑦 which is one times d𝑦 by
d𝑥 which is simply d𝑦 by d𝑥. 𝑢 times d𝑣 by d𝑥 is then four 𝑥
multiplied by d𝑦 by d𝑥. And 𝑣 multiplied by d𝑢 by d𝑥 is
equal to 𝑦 times four. And, therefore, the right-hand side
of our equation is four 𝑥 d𝑦 by d𝑥 plus four 𝑦 plus two. Let’s now repeat this process for
negative 𝑒 to the power of 𝑦 times sin 𝑥.
This time, let’s say 𝑢 is equal to
negative 𝑒 to the power of 𝑦 and 𝑣 is equal to sin 𝑥. The derivative of sin 𝑥 is cos
𝑥. And then the derivative of 𝑢 with
respect to 𝑥 is equal to the derivative of negative 𝑒 to the 𝑦 with respect to
𝑦, that’s negative 𝑒 to the 𝑦, times d𝑦 by d𝑥. And then when we use the product
rule, we see that d𝑦 by d𝑥 is equal to negative 𝑒 to the 𝑦 cos 𝑥 minus 𝑒 to
the 𝑦 sin 𝑥 d𝑦 by d𝑥. So our equation is now as
shown. Remember, we’re trying to find an
equation for d𝑦 by d𝑥. So we’re going to rearrange and
make d𝑦 by d𝑥 the subject. When we do, we see that negative 𝑒
to the 𝑦 cos 𝑥 minus four 𝑦 minus two is equal to four 𝑥 plus 𝑒 to the 𝑦 sin
𝑥 all multiplied by d𝑦 by d𝑥.
Now, we can actually factor negative
one on the left-hand side. And then, we divide through by four
𝑥 plus 𝑒 to the 𝑦 sin 𝑥. And we see that d𝑦 by d𝑥 is equal
to negative 𝑒 to the 𝑦 cos 𝑥 plus four 𝑦 plus two over four 𝑥 plus 𝑒 to the 𝑦
sin 𝑥. And, of course, this derivative
stands when the denominator is not equal to zero, when four 𝑥 plus 𝑒 to the 𝑦 sin
𝑥 is not equal to zero. It’s fairly common to use implicit
differentiation to find the equation of a tangent to a curve defined implicitly. In our next example, we’ll look at
how we can use implicit differentiation to address a problem of this type.
The equation 𝑦 squared minus 24𝑥
cubed plus 24𝑥 equals zero describes a curve in the plane. 1) Find the coordinates of two
points on this curve, where 𝑥 equals negative one-half. 2) Determine the equation of the
tangent at the points where 𝑥 equals negative one-half and the 𝑦-coordinate is
positive. 3) Find the coordinates of another
point, if it exists, at which the tangent meets the curve.
For part one, to find the points
where 𝑥 is equal to negative one-half, we’re going to substitute this value of 𝑥
into our equation and solve for 𝑦. That’s 𝑦 squared minus 24 times
negative a half cubed plus 24 times negative a half. And that’s equal to zero. When we evaluate this, we get 𝑦
squared plus three minus 12 equals zero or 𝑦 squared minus nine equals zero. We’re going to solve this equation
by adding nine to both sides.
And our last step is to find the
square root of both sides of this equation, remembering to take by the positive and
negative square roots of nine. The square root of nine is
three. So we see that 𝑦 is equal to three
and negative three, when 𝑥 is equal to negative one-half. In coordinate form, that’s negative
a half, three and negative a half, negative three.
We now consider part two. We need to find the equation of the
tangent at a point where 𝑥 equals negative a half and the 𝑦-coordinate is
positive. That’s the coordinate negative a
half, three. We’ll first, however, need to find
the gradient of the tangent to the curve. This will be the derivative of the
equation for the curve evaluated at 𝑥 equals negative a half and 𝑦 equals
three. So we’re going to differentiate our
equation implicitly. That’s d by d𝑥 of 𝑦 squared minus
24𝑥 cubed plus 24𝑥 equals d by d𝑥 of zero. The derivative of 𝑦 squared is the
derivative of 𝑦 squared with respect to 𝑦 times the derivative of 𝑦 with respect
to 𝑥. It’s two 𝑦 d𝑦 by d𝑥. The derivative of negative 24𝑥
cubed is three times negative 24𝑥 squared. That’s negative 72𝑥 squared. The derivative of 24𝑥 is 24. And the derivative of zero is
zero.
So we see that two 𝑦 d𝑦 by d𝑥
minus 72𝑥 squared plus 24 is equal to zero. We need an equation for d𝑦 by
d𝑥. So we’re going to rearrange to make
d𝑦 by d𝑥 the subject. We add 72𝑥 squared to both sides of
this equation and subtract 24. Next, we’re going to divide through
by two 𝑦. And we see that d𝑦 by d𝑥 is equal
to 72𝑥 squared minus 24 over two 𝑦, which simplifies to 36𝑥 squared minus 12 over
𝑦. Remember, we want to find the
gradient of the tangent of the curve at negative a half, three. So we’re going to substitute 𝑥
equals negative a half and 𝑦 equals three into the equation for the derivative. When we do, we see that the
gradient of our tangent is 36 times negative a half squared minus 12 all over three,
which is negative one.
Finally, we substitute what we know
about our tangent into the equation of a straight line. And we get 𝑦 minus three equals
negative one times 𝑥 minus negative a half. Distributing the parentheses and
simplifying then rearranging for 𝑦, we get 𝑦 equals five over two minus 𝑥.
And now we consider part three. We need to find a point, if it
exists, where this tangent meets the curve again. We therefore want to solve
simultaneously the equations 𝑦 squared minus 24𝑥 cubed plus 24𝑥 equals zero and
𝑦 equals five over two minus 𝑥. We can achieve this by substituting
𝑦 equals five over two minus 𝑥 into the original equation for the curve. That gives us five over two minus
𝑥 all squared minus 24𝑥 cubed plus 24𝑥 equals zero. Expanding the parentheses and
multiplying through by negative one, and we end up with the equation shown.
Next, we could solve this using a
scientific calculator. Alternatively, we know that 𝑥
equals negative a half is a root to this equation. And we can therefore factor out 𝑥
plus a half. And we can do this by using long
division or matching coefficients. The first step towards equating
coefficients would be to write the equation shown. And whilst it’s outside the scope
of this video to spend a lot of time performing this, we should find that 𝑎 is
equal to 24, 𝑏 is negative 13, and 𝑐 is negative 25 over two. And you can pause the video here if
you like and see if you can complete that step yourself.
Our last step is to solve the
quadratic equation 24𝑥 squared minus 13𝑥 minus 25 over two. And we could do that by using the
quadratic formula or completing the square. When we solve this, we see that 𝑥
is equal to negative a half. So that’s a repeated root. And 𝑥 is equal to 25 over 24. We’re finding the coordinates, so
we substitute 𝑥 equals 25 over 24 into the equation five over two minus 𝑥. And that gives us a 𝑦-value of 35
over 24. And so the tangent with equation 𝑦
equals five over two minus 𝑥 meets the curve at negative a half, three and
twenty-five twenty-fourths, thirty-five twenty-fourths. In our very final example, we’ll
look at how implicit differentiation can help us to find higher order
derivatives.
Given that two sin 𝑦 minus five
cos 𝑥 equals negative four, determine the second derivative of 𝑦 by implicit
differentiation.
To find to the second derivative of
𝑦, sometimes called 𝑦 double prime, we’re going to need to differentiate our
function twice. Notice how the function itself is
expressed implicitly as functions of 𝑥. So we’re going to use implicit
differentiation and begin by finding the derivative of both sides. Now the derivative of negative four
with respect to 𝑥 is fairly easy to work out. It’s just zero. Similarly, we can find the
derivative of negative five cos 𝑥 with respect to 𝑥. That’s five sin 𝑥. But what about the derivative of
two sin 𝑦 with respect to 𝑥? Well, here we use a special version
of the chain rule. This says that the derivative of a
function in 𝑦 with respect to 𝑥 is equal to the derivative of that function with
respect to 𝑦 times d𝑦 by d𝑥.
Well, the derivative of two sin 𝑦
with respect to 𝑦 is two cos 𝑦. So our equation is two cos 𝑦 d𝑦 by
d𝑥 plus five sin 𝑥. And that’s equal to zero. We can find the first derivative
then by subtracting five sin 𝑥 from both sides of the equation and dividing through
by two cos 𝑦. Remember, though, we were looking
to find the second derivative. So here we’re going to need to use
the quotient rule to differentiate negative five sin 𝑥 over two cos 𝑦. According to our notation, we can
let 𝑢 be equal to negative five sin 𝑥 and 𝑣 equal two cos 𝑦. d𝑢 by d𝑥 is negative five cos 𝑥. Then since the derivative of 𝑣
with respect to 𝑦 is negative two sin 𝑦, we can see that d𝑣 by d𝑥 is negative
two sin 𝑦 d𝑦 by d𝑥.
We substitute each of these into
the formula for the quotient rule. We then simplify and spot that we
said that d𝑦 by d𝑥 is negative five sin 𝑥 over two cos 𝑦. So we can substitute this into the
formula for the second derivative. To simplify this somewhat, we
multiply both the numerator and denominator of our fraction by two cos 𝑦. And we’re going to look to simplify
just a little more. Distributing this negative one, we
can see that the second derivative of our function is 25 sin squared 𝑥 sin 𝑦 minus
10 cos 𝑥 cos squared 𝑦 all over cos cubed 𝑦. And this formula is valid as long
as cos 𝑦 is not equal to zero.
In this video, we’ve seen that when
given a function defined implicitly, we can use a special version of the chain rule
to differentiate it. The derivative of a function in 𝑦
with respect to 𝑥 is equal to the derivative of that function 𝑦 with respect to 𝑦
times d𝑦 by d𝑥. We also saw that if it was possible
to rewrite a relation as an explicit function, it was sometimes simpler to use
implicit differentiation. We also saw that when we
differentiate implicitly, we’ll get an expression for d𝑦 by d𝑥 in terms of both 𝑥
and 𝑦. We also saw that we can find higher
order derivatives by using implicit differentiation. And in these cases, we’ll need to
substitute expressions for lower order derivatives to help us simplify the
expressions.