1. ## [SOLVED] derivative help

y=x^(cosx)

i thought the derivative was....

y'=ln(x)(x^cosx)(-sinx)

where did i go wrong?

thanks

2. $y=x^{\cos x}$
taking ln both side
$ln y= \cos x \ ln x$

$\frac{d(ln y)}{dx}= \frac{d(\cos x\ ln x)}{dx}$

$\frac{1}{y} \frac{dy}{dx}= \frac{1}{x} \cos x -ln x\ \sin x$
$\frac{dy}{dx}= y\left ( \frac{1}{x} \cos x - ln x \ \sin x \right )$
$\frac{dy}{dx}= x^{\cos x}\left ( \frac{1}{x} \cos x - ln x\ \sin x \right)$

3. never mind i got it. i was doing it way wrong lol.

4. Originally Posted by mybrohshi5
y=x^(cosx)

i thought the derivative was....

y'=ln(x)(x^cosx)(-sinx)

where did i go wrong?

thanks
$y=x^{cos(x)}$

Take the ln of both sides.

$ln(y)=cos(x)ln(x)$

Use implicit differentiation:
$\frac{1}{y}\frac{dy}{dx}=-sin(x)ln(x)+cos(x)\frac{1}{x}$

$\frac{dy}{dx}=-ysin(x)ln(x)+cos(x)\frac{1}{x}$

$=-x^{cos(x)}sin(x)ln(x)+x^{cos(x)}cos(x)\frac{1}{x}$

5. Originally Posted by ramiee2010
$y=x^{\cos x}$
taking ln both side
$ln y= \cos x ln x$

$\frac{d(ln y)}{dx}= \frac{d(\cos x ln x)}{dx}$

$\frac{1}{y} \frac{dy}{dx}= \frac{1}{x} \cos x -ln x \sin x$
$\frac{dy}{dx}= y\left ( \frac{1}{x} \cos x - ln x \sin x \right )$
$\frac{dy}{dx}= x^{\cos x}\left ( \frac{1}{x} \cos x - ln x \sin x \right)$
thats what i finally just did. i totally forgot about taking the natural log of both sides and differentiating haha. thanks for you help