I am student learning calculus, and have got stuck on one of calculus quiz
the quiz gives the equation, $\frac{\mathrm{d}y}{\mathrm{d}x} = x\sin{x}-\cos{x}$ for $0<x<4$
and ask for $x$ location of local maximum.
so my solution process was to find out $\frac{\mathrm{d}y}{\mathrm{d}x}=0$, so that
- $x\sin{x}=\cos x$
- $\tan{x}=\frac{1}{x}$
- $\arctan{\frac{1}{x}} = x$
- derivative both side
- It turns out $x^2 = -2$.
I guess making simple mistakes here, which i can't find out would be grateful if someone can help me out.