AP Calculus AB and BC
Derivative of x^(sin x) by Log Differentiation
Logarithmic differentiation is the route that works, and it gives x^(sin x) times (cos x ln x + sin x / x), valid for x > 0. Base and exponent both contain x, so the power rule and the exponential rule are both off the table. Rewriting as e^(sin x ln x) reaches the same answer.
Neither standard rule applies
The power rule requires a constant exponent. The exponential rule requires a constant base. In the base is and the exponent is , so both requirements fail at once.
Applying either rule anyway gives a definite wrong answer, not an approximation. The power rule would give and the exponential rule would give . Neither is the derivative on its own, but together they are: is the first term of the correct answer, and rewrites as , which is the second.
So the correct derivative is exactly the sum of the two wrong answers, and that is no accident: for any function of the form the true derivative is , one term from each rule. Knowing this is useful as a check. It is not a licence to use either rule alone, since either one on its own is missing half the answer.
Logarithmic differentiation step by step
Name the function and take the natural log of both sides. The log rule pulls the exponent down into a product, which the product rule can handle.
Differentiate both sides with respect to . The left side needs implicit differentiation, giving , and the right side is a product of and .
The mistakes students make
Each of these produces a specific wrong expression that an exam reader will spot immediately.
- Answering by treating as a constant exponent. That expression is one of the two terms of the correct derivative, the piece in disguise, but half an answer is still wrong: at it is about , while the true derivative is about .
- Answering by treating as a constant base. That is the first term of the correct answer with the entire term missing.
- Stopping at . That expression is , so it still has to be multiplied by .
Check yourself, not just the answer
Type derivatives and get graded on mathematical equivalence, with rule-level hints when you miss, in the Derivative Practice Checker.
Frequently asked questions
How do you differentiate x^sin x?
Take logs first. From you get , then , and multiplying by gives .
Can you use the power rule on x^sin x?
No. The power rule only applies when the exponent is a constant. Here the exponent varies with , so is not the derivative, although it does turn out to be one of its two terms.
What is the domain of x^sin x?
Take . The log step needs to exist, and for negative bases a varying real exponent does not give real outputs in general. Nothing at or below zero qualifies, which is why , and are safe values to test.