How do you implicitly differentiate #-1=xy^2+x^2y-e^y-sec(xy) #?

1 Answer
May 12, 2016

Start with
#-1 = x y^2 + x^2 y - e^y -\sec(xy) #

Let's replace the secant with a cosine.
#-1 = x y^2 + x^2 y - e^y -1/\cos(xy) #

Now we take the derivative wrt x on BOTH SIDES!
#d/dx -1 = d/dx (x y^2 + x^2 y - e^y -1/\cos(xy) )#

The derivative of a constant is zero and the derivative is linear!
#0 = d/dx (x y^2) + d/dx (x^2 y) - d/dx (e^y) -d/dx (1/\cos(xy) )#

Now using product rule on just the first two terms we get!
# 0 = {d/dx (x) y^2 + x d/dx (y^2)} + {d/dx (x^2) y + x^2 d/dx y} - d/dx (e^y) -d/dx (1/\cos(xy) )#

Next lots and lots of Fun with the chain rule! Watch the last term!
(also doing the simple x derivatives )
# 0 = {1* y^2 + x* (d/dy y^2)*dy/dx} + {2x*y + x^2*d/dy y* dy/dx} - {d /dy e^y } {dy/dx} #
#-d/{d cos(xy)} (\cos(xy))^(-1) * d/{d xy} cos(xy) * d/dx {xy} #

Doing some of those y derivatives, xy derivatives and cos(xy) derivatives also doing the product rule and chain rule one more time on the last part of the last term.
# 0 = {y^2 + x*2*y*dy/dx} + {2xy + x^2*1* dy/dx} - e^y {dy/dx} #
#- (-1)(\cos(xy))^(-2) * - sin(xy) * (dx/dx y + x dy/dy dy/dx ) #

Neaten a bit and finish all the derivatives
# 0 = y^2 + 2xy dy/dx + 2xy + x^2 dy/dx - e^y dy/dx#
#- (\sin(xy) / \cos^2(xy) ) (y + x dy/dx ) #

Now separate into term with #dx/dy# and without
# 0 = y^2 + 2xy - y \sin(xy) / \cos^2(xy) +#
# 2xy dy/dx + x^2 dy/dx - e^y dy/dx - x \sin(xy) / \cos^2(xy) dy/dx #

Bring everyting without #dy/dx# to one side and collection like terms on the other
# y \sin(xy) / \cos^2(xy) - y^2 - 2xy = #
# ( 2xy + x^2 - e^y - x \sin(xy) / \cos^2(xy) ) dy/dx #

Divide though to find #dy/dx#
#dy/dx = { y \sin(xy) / \cos^2(xy) - y^2 - 2xy }/ {2xy + x^2 - e^y - x \sin(xy) / \cos^2(xy) } #

That was very long!

Explanation:

Went with a VERY long explanation with simple example because implicit differentiation can be tricky and the chain rule is very very very important.

You need to use about three BIG Calculus rules to solve this and three specific function derivative.

1) The linearity of the derivative.
#d/dx (A+B+C+D)=d/dx (A)+d/dx (B)+d/dx (C)+d/dx (D)#

2) The product rule.
#d/dx ( f(x)*g(x) )=( f(x) )*d/dx g(x) + (d/dx f(x) )*g(x)#

3) By far, the most important concept in implicit differentiation is
the chain rule. For compound functions, functions of other functions, #f(u(x))# we have,

#d/dx (f(u(x)))= d/{du} f(u(x)) du/dx # .

You can keep going with this

#d/dx (f(u(y(x))))= d/{du} f(u) {du}/{dy} {dy}/{dx} # ,

and on and on and on. Note #dx/dx=1# .

Example: If you have a function of a function #f(u)# where #u# is a funuction of #x#. ie #f(x)=sqrt(1-x^2)# (Here #f(u)=sqrt(u)# and #u(x)=1-x^2# .

#d/dx sqrt(1-x^2)=d/dx (1-x^2)^{1/2} =(d /{du} (u^{1/2}) ) * ( d /dx (1-x^2) )#

#=1/2 (u^{-1/2}) * ( -2x) # recall #u=(1-x^2)#

#=-x (1-x^2)^{-1/2} = -x /{sqrt(1-x^2}#

Expressions for specific functions types.
A) How to take the derivative of power functions, #f(x)=c x^n# .
#d/dx (c*x^n)=c*n*x^{n-1}#

B) How to take the derivative of #e^x# .
#d/dx (e^x)=e^x# <- boring eh?

C) How to take the derivative of #\cos (x)# because #\sec (x) = 1/{\cos(x)}#.
#d/dx (\cos x)= -\sin x #

The key to implicit differentiation is to use the chain rule to take the derivative wrt x of and function of both x and y, like a circle.

#9=x^2+y^2#
#d/dx 9=d/dx(x^2+y^2)=d/dx(x^2)+d/dx(y^2)#
#0=2x + d/dy y^2 *dy/dx #
#0=2x + 2y*dy/dx #
#-2x= 2y*dy/dx #
#dy/dx=-x/y #