How do I use the product rule to find dy/dx of y=(cosx)^x?

  • Thread starter pugola12
  • Start date
In summary, the problem asks to find the derivative of y=(cosx)^x using the formula d/dx of a^u=lna*a^u*u'. The attempt at a solution involved substituting the values and using the product rule, but the correct answer involves using the formula v^u=e^(log(v)*u) and differentiating it. This leads to the solution of (cosx)^x*(ln(cosx)-xtanx).
  • #1
pugola12
5
0

Homework Statement



Find dy/dx of y=(cosx)^x

Homework Equations



d/dx of a^u=lna*a^u*u'

The Attempt at a Solution



I thougt I just had to follow the form shown above, and this is what I got.

y=(cosx)^x
dy/dx=ln(cosx)*(cosx)^x*1
dy/dx=ln(cosx)*(cosx)^x

However, the actual answer is (cosx)^x*(ln(cosx)-xtanx)
I don't understand where this comes from at all. Thanks for your input.
 
Physics news on Phys.org
  • #2
pugola12 said:

Homework Statement



Find dy/dx of y=(cosx)^x

Homework Equations



d/dx of a^u=lna*a^u*u'

The Attempt at a Solution



I thougt I just had to follow the form shown above, and this is what I got.

y=(cosx)^x
dy/dx=ln(cosx)*(cosx)^x*1
dy/dx=ln(cosx)*(cosx)^x

However, the actual answer is (cosx)^x*(ln(cosx)-xtanx)
I don't understand where this comes from at all. Thanks for your input.

That's not a good form to follow. It assumes that in a^u that a is a constant. That isn't true in your case. Try writing v^u=e^(log(v)*u) and differentiate that.
 
  • #3
ln y = x ln cosx

You can now use the product rule on the right side..
(Hint: it becomes (1/y)y' on the left)
 

FAQ: How do I use the product rule to find dy/dx of y=(cosx)^x?

What is the derivative of y=(cosx)^x?

The derivative of y=(cosx)^x is given by the expression dy/dx = (cosx)^x * (-sinx * ln(cosx) + (cosx)^(x-1) * sinx).

How do you find the derivative of a function with a power of a trigonometric function?

To find the derivative of a function with a power of a trigonometric function, you can use the chain rule and logarithmic differentiation. First, rewrite the function as y=e^(ln(cosx)^x) and then use the product rule to find the derivative.

Why is the derivative of (cosx)^x not simply x(cosx)^(x-1)?

The derivative of (cosx)^x is not simply x(cosx)^(x-1) because the power rule only applies to functions with constant exponents. In this case, the exponent is a variable, x, so the chain rule must be used to find the derivative.

Can the derivative of y=(cosx)^x be simplified further?

Yes, the derivative of y=(cosx)^x can be simplified further using algebraic manipulation. You can also use the fact that ln(cosx) can be written as -ln(secx) to simplify the expression.

Is there a specific domain and range for y=(cosx)^x?

Yes, the domain of y=(cosx)^x is all real numbers except x=0 and the range is limited to positive values, since the function is always positive for any input. Additionally, the range is limited by the domain of the natural logarithm, which is all positive real numbers.

Back
Top