$(1)$ The no. of Distinct real solution of the equation $x^4-4x^3+12x^2+x-1=0$
$(2)$ The no. of distinct real roots of the equation $x^2=x\sin x+\cos x$.
$\bf{My\; Try}$ For $(1)$ one:: Let $f(x) = x^4-4x^3+12x^2-x+1$.
Then $f'(x) = 4x^3-12x^2+24x-1$ and
$f''(x)=12x^2-24x+24=12[(x-1)^2+1]>0\; \forall x\in \mathbb{R}$
So Using $\bf{L.M.V.T}$ Theorem, between any two roots of $f(x),$ there is at least one
root of its derivative.
So If $f''(x)=0$ has no roots, Then $f'(x)=0$ has at most one root,
Then $f(x)=0$ has at most $2$ roots.
But How can i found that given equation has exactly $2$ roots,
and my other question is can we apply the above theorem for non polynomials equation
Help me
Thanks