2 Differentiation of implicit functions

Fortunately it is not necessary to obtain y in terms of x in order to differentiate a function defined implicitly.

Consider the simple equation

x y = 1

Here it is clearly possible to obtain y as the subject of this equation and hence obtain d y d x .

Task!

Express y explicitly in terms of x and find d y d x for the case x y = 1 .

We have immediately

y = 1 x so d y d x = 1 x 2

We now show an alternative way of obtaining d y d x which does not involve writing y explicitly in terms of x at the outset. We simply treat y as an (unspecified) function of x .

Hence if x y = 1 we obtain

d d x ( x y ) = d d x ( 1 ) .

The right-hand side differentiates to zero as 1 is a constant. On the left-hand side we must use the product rule of differentiation:

d d x ( x y ) = x d y d x + y d x d x = x d y d x + y

Hence x y = 1 becomes, after differentiation,

x d y d x + y = 0 or d y d x = y x

In this case we can of course substitute y = 1 x to obtain

y = 1 x 2

as before.

The method used here is called implicit differentiation and, apart from the final step, it can be applied even if y cannot be expressed explicitly in terms of x . Indeed, on occasions, it is easier to differentiate implicitly even if an explicit expression is possible.

Example 15

Obtain the derivative d y d x where

x 2 + y = 1 + y 3

Solution

We begin by differentiating the left-hand side of the equation with respect to x to get:

d d x ( x 2 + y ) = 2 x + d y d x .

We now differentiate the right-hand side of with respect to x . Using the chain (or function of a function) rule to deal with the y 3 term:

d d x ( 1 + y 3 ) = d d x ( 1 ) + d d x ( y 3 ) = 0 + 3 y 2 d y d x

Now by equating the left-hand side and right-hand side derivatives, we have:

2 x + d y d x = 3 y 2 d y d x

We can make d y d x the subject of this equation:

d y d x 3 y 2 d y d x = 2 x which gives d y d x = 2 x 3 y 2 1

We note that d y d x has to be expressed in terms of both x and y . This is quite usual if y cannot be obtained explicitly in terms of x . Now try this Task requiring implicit differentiation.

Task!

Find d y d x if 2 y = x 2 + sin y

Note that your answer will be in terms of both y and x .

We have, on differentiating both sides of the equation with respect to x and using the chain rule on the sin y term:

d d x ( 2 y ) = d d x ( x 2 ) + d d x ( sin y )   i.e.   2 d y d x = 2 x + cos y d y d x leading to d y d x = 2 x 2 cos y .

We sometimes need to obtain the second derivative d 2 y d x 2 for a function defined implicitly.

Example 16

Obtain d y d x and d 2 y d x 2 at the point ( 4 , 2 ) on the curve defined by the equation

x 2 x y y 2 2 y = 0

Solution

Firstly we obtain d y d x by differentiating the equation implicitly and then evaluate it at ( 4 , 2 ) .

We have 2 x x d y d x y 2 y d y d x 2 d y d x = 0 (1)

from which d y d x = 2 x y x + 2 y + 2 (2)

so at ( 4 , 2 ) d y d x = 6 10 = 3 5 .

To obtain the second derivative d 2 y d x 2 it is easier to use (1) than (2) because the latter is a quotient. We simplify (1) first:

2 x y ( x + 2 y + 2 ) d y d x = 0 (3)

We will have to use the product rule to differentiate the third term here.

Hence differentiating (3) with respect to x :

2 d y d x ( x + 2 y + 2 ) d 2 y d x 2 ( 1 + 2 d y d x ) d y d x = 0

or

2 2 d y d x 2 d y d x 2 ( x + 2 y + 2 ) d 2 y d x 2 = 0 (4)

Note carefully that the third term here, d y d x 2 , is the square of the first derivative. It should not be confused with the second derivative denoted by d 2 y d x 2 .

Finally, at ( 4 , 2 ) where d y d x = 3 5 we obtain from (4): 2 2 ( 3 5 ) 2 ( 9 25 ) ( 4 + 4 + 2 ) d 2 y d x 2 = 0

from which d 2 y d x 2 = 1 125 at ( 4 , 2 ) .

Task!

This Task involves finding a formula for the curvature of a bent beam. When a horizontal beam is acted on by forces which bend it, then each small segment of the beam will be slightly curved and can be regarded as an arc of a circle. The radius R of that circle is called the radius of curvature of the beam at the point concerned. If the shape of the beam is described by an equation of the form y = f ( x ) then there is a formula for the radius of curvature R which involves only the first and second derivatives d y d x and d 2 y d x 2 .

Find that equation as follows.

Start with the equation of a circle in the simple implicit form

x 2 + y 2 = R 2

and perform implicit differentiation twice. Now use the result of the first implicit differentiation to find a simple expression for the quantity 1 + ( d y d x ) 2 in terms of R and y ; this can then be used to simplify the result of the second differentiation, and will lead to a formula for 1 R (called the curvature ) in terms of d y d x and d 2 y d x 2 .

Differentiating: x 2 + y 2 = R 2  gives:

2 x + 2 y d y d x = 0 (1)

Differentiating again: 2 + 2 d y d x 2 + 2 y d 2 y d x 2 = 0 (2)

From (1)

d y d x = x y 1 + d y d x 2 = 1 + x 2 y 2 = y 2 + x 2 y 2 = R y 2 (3)

So 1 + d y d x 2 = R y 2 .

Thus (2) becomes 2 R y 2 + 2 y d 2 y d x 2 = 0 d 2 y d x 2 = R 2 y 3 = 1 R R y 3

so d 2 y d x 2 = 1 R R y 3 (4)

Rearranging (4) to make 1 R the subject and substituting for R y from (3) gives the result:

1 R = d 2 y d x 2 1 + d y d x 2 3 2

The equation usually found in textbooks omits the minus sign but the sign indicates whether the circle is above or below the curve, as you will see by sketching a few examples. When the gradient is small (as for a slightly deflected horizontal beam), i.e. d y d x is small, the denominator in the equation for ( 1 R ) is close to 1, and so the second derivative alone is often used to estimate the radius of curvature in the theory of bending beams.