Equations like the one you provided do not have neat explicit answers.
However, there are methods of estimating roots, and more general approaches that can help, too.
In the case of $x^2-x\sin(x)-\cos(x)=0$, we start by noticing that solutions must be small, as $x\sin(x)-\cos(x)$ is much smaller than $x^2$ in magnitude for large $x$.
As a first approximation, we notice that $\sin(x)\approx x$ for sufficiently small $x$, and thus solutions would be expected in the vicinity of the points where $x^2-x^2-\cos(x)=0$. Notice that these occur at $x=\pm \frac{\pi}2$, which is beyond the range in which $\sin(x)\approx x$.
By looking at the function again, we see that $-1\leq \sin(x)\leq 1$, and similarly for $\cos(x)$. As $x^2$ is positive, we seek values of $x\sin(x)+\cos(x)$ that are of a similar magnitude and positive. We can take, as a bound, $|x|+1$. Now, when $x^2-|x|-1=0$, we have $|x| = \frac{1\pm \sqrt{1+4}}2$, which, as it must be positive, gives $|x| = \frac{1+\sqrt{5}}2$. As such, no solution can be larger in magnitude than this. $\frac\pi2$ is slightly smaller than it.
But reasonably, we'd expect our solution to be a little closer to $0$ (since our bounds assumed both $\cos(x)=1$ and $\sin(x)=1$, so let's use $\frac\pi3$ as our estimate.
Now, we can turn to Newton's Method to get a better estimate. $f(x)=x^2-x\sin(x)-\cos(x)$, so $f'(x)=2x-x\cos(x)$. And so, our first Newton step gives
$$
x = \frac\pi3 - \frac{\frac{\pi^2}9-\frac{\pi\sqrt{3}}6-\frac12}{\frac\pi3(2-\frac12)} = \frac\pi3 - (\frac{2\pi}9-\frac{\sqrt{3}}3-\frac1\pi) = \frac\pi9 + \frac{\sqrt{3}}3+\frac1\pi\approx 1.244726
$$
At this point, $f(x)\approx 0.04988$, a reasonable approximation (given that $f(0)=-1$ and $f(\frac\pi3) \approx −0.31$).