Implicit Differentiation Sometimes functions are given not in the form y = f(x) but in a more complicated form in which it is difficult or impossible to express y explicitly in terms of x. Such functions are called implicit functions. In this unit we explain how these can be differentiated using implicit differentiation. In order to master the techniques explained here it is vital that you undertake plenty of practice exercises so that they become second nature. After reading this text, and/or viewing the video tutorial on this topic, you should be able to: differentiate functions defined implicitly Contents 1. Introduction. Revision of the chain rule. Implicit differentiation 4 1 c mathcentre August 7, 004
1. Introduction In this unit we look at how we might differentiate functions of y with respect to x. Consider an expression such as x + y 4x + 5y 8 = 0 It would be quite difficult to re-arrange this so y was given explicitly as a function of x. We could perhaps, given values of x, use the expression to work out the values of y and thereby draw a graph. In general even if this is possible, it will be difficult. A function given in this way is said to be defined implicitly. In this unit we stu how to differentiate a function given in this form. It will be necessary to use a rule known as the the chain rule or the rule for differentiating a function of a function. In this unit we will refer to it as the chain rule. There is a separate unit which covers this particular rule thoroughly, although we will revise it briefly here.. Revision of the chain rule We revise the chain rule by means of an example. Suppose we wish to differentiate y = (5 + x) 10 in order to calculate. We make a substitution and let u = 5 + x so that y = u 10. The chain rule states = du du Now and hence if y = u 10 then if u = 5 + x then = du du = 10u 9 = 0u 9 du = 10u9 = 0(5 + x) 9 du = So we have used the chain rule in order to differentiate the function y = (5 + x) 10. c mathcentre August 7, 004
In quoting the chain rule in the form = du du note that we write y in terms of u, and u in terms of x. i.e. y = y(u) and u = u(x) We will need to work with different variables. Suppose we have z in terms of y, and y in terms of x, i.e. z = z(y) and y = y(x) The chain rule would then state: Suppose z = y. It follows that dz dz = dz = y. Then using the chain rule dz = dz = y = y Notice what we have just done. In order to differentiate y with respect to x we have differentiated y with respect to y, and then multiplied by, i.e. d ( ) y = d ( ) y We can generalise this as follows: to differentiate a function of y with respect to x, we differentiate with respect to y and then multiply by. Key Point d (f(y)) = d (f(y)) We are now rea to do some implicit differentiation. Remember, every time we want to differentiate a function of y with respect to x, we differentiate with respect to y and then multiply by. c mathcentre August 7, 004
. Implicit differentiation Suppose we want to differentiate the implicit function with respect x. We differentiate each term with respect to x: y + x y + 6 = y d ( ) y + d ( ) x d ( ) y + d (6) = d (y) Differentiating functions of x with respect to x is straightforward. But when differentiating a function of y with respect to x we must remember the rule given in the previous keypoint. We find d ( ) y + x d ( ) y + 0 = d (y) that is y + x y = We rearrange this to collect all terms involving together. then so that, finally, This is our expression for. x = y + y x = ( y + y ) = x y + y Suppose we want to differentiate, with respect to x, the implicit function sin y + x y cosx = y As before, we differentiate each term with respect to x. d (sin y) + d ( x y ) d (cosx) = d (y) Recognise that the second term is a product and we will need the product rule. We will also use the chain rule to differentiate the functions of y. We find { d (sin y) + x d ( ) y + y d ( )} x + sin x = d (y) c mathcentre August 7, 004 4
so that Tiing this up gives cosy { + x. d ( ) } y + y. x + sin x = cosy + x y + xy + sin x = We now start to collect together terms involving. so that, finally xy + sin x = cosy x y xy + sin x = ( cosy x y ) = xy + sin x cosy x y We have deliberately included plenty of detail in this calculation. With practice you will be able to omit many of the intermediate stages. The following two examples show how you should aim to condense the solution. Suppose we want to differentiate y + x xy + cosy = 0 to find. The condensed solution may take the form: so that y + x d (xy) sin y } (y sin y) + x { x + y.1 = 0 = 0 (y sin y x) + x y = 0 (y sin y x) = y x = y x y sin y x Suppose we want to differentiate The solution is as follows: y y x sin y + y x = 8 { x cosy } x y + sin y.1 + y.1 = 0 x 5 c mathcentre August 7, 004
Multiplying through by x gives: x y x cos y x sin y + xy y = 0 ( x y x cosy + xy ) = x sin y + y so that Exercises = x sin y + y x y x cos y + xy 1. Find the derivative, with respect to x, of each of the following functions (in each case y depends on x). a) y b) y c) sin y d) e y e) x + y f) xy g) y sin x h) y sin y i) cos(y + 1) j) cos(y + x). Differentiate each of the following with respect to x and find. a) sin y + x + 4y = cosx. b) xy + cosy = x + 5. c) 5x x sin y + 5xy = 10. d) x cosx + y x + x5 = 4x. e) tan5y y sin x + xy = 9. Answers to Exercises on Implicit Differentiation 1. a) y d) e g) y cos x + sin x ( j) y ) + 1 sin(y + x). sin x x a) = 4 + cosy c) = 10x x sin y + 5y x cosy 5x e) = y cosx y 5sec 5y sin x + 6xy b) y e) 1 + h) (sin y + y cos y) b) d) c) cosy f) x + y i) y sin(y + 1) = 6x y 6xy y sin y = 1x4 15x 6 + y x sin x x xy c mathcentre August 7, 004 6