Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Find $y'$ for $y = x^{2\cos{x}}$

I got $y' = \left(\frac {2\cos{x}}{x} - 2\ln(x)\cos(x)\sin(x)\right)(x^{2\cos{x}})$ is that correct?

share|cite|improve this question
Your math was pretty ambiguous I must say. Please check whether it is what you meant :) – Johnny Westerling Oct 20 '12 at 21:40
Here are my steps: $$\begin{align} ln(y) = 2cos(x)ln(x)\\ \frac 1y * y' = (2cos(x) * \frac 1x + ln(x) * (2cos(x) * -sin(x))\\ \frac 1y * y' = \frac {2cox(x)}{x} - 2ln(x)cos(x)sin(x)\\ y' = (\frac {2cos(x)}{x} - 2ln(x)cos(x)sin(x))(x^{2cos(x)})\\ \end{align}$$ – dsta Oct 20 '12 at 21:42
Your second step looks a bit unclear to me... please check the edit in my answer below. – Johnny Westerling Oct 20 '12 at 22:08
+1 for work shown. Though it should probably be in the question next time and not in a comment. – Mike Oct 21 '12 at 6:44
up vote 2 down vote accepted

Nope. Your answer is a bit off. Let's do it this way:


hence, by the chain rule we have:


and now substituting back $e^{2\cos{x}\ln{x}}=x^{2\cos{x}}$ we finally arrive at:


EDIT: If you want to use your method:





Which yields the same answer.

share|cite|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.