How do you find the derivative of #-2e^(xcos(x))#?

1 Answer
Jul 24, 2016

#dy/dx = -2e^(x*cos(x))(cos(x)-x*sen(x))#

Explanation:

Using implicit differentiation, we have

#y = -2e^(x*cos(x))#

If we take the natural log of both sides we have

#ln(y) = ln(-2*e^(x*cos(x)))#

Using the property of logs #ln(ab) = ln(a)+ln(b)#

#ln(y) = ln(-2) + ln(e^(x*cos(x)))#

Don't worry about the negative number in the logarithm, since we're not evaluating it and constants don't affect derivation we can just ignore that for the moment.

Now, using the log property #ln(a^b) = b*ln(a)#

#ln(y) = ln(-2) + x*cos(x)*ln(e)#

And since #ln(e) = 1#

#ln(y) = ln(-2) + x*cos(x)#

Now we differentiate both sides

#dy/dx*y^(-1) = cos(x)*dx/dx+xd/dxcos(x)#
#dy/dx*y^(-1) = cos(x) - x*sen(x)#
#dy/dx = -2e^(x*cos(x))(cos(x)-x*sen(x))#