Can we subtract a trigonometric term from a polynomial? Can we find the root of a function like $f(x) = x^2-\cos(x)$ using accurate algebra or do we need to resort to numerical methods approximations?
thanks.

As said in comments and answers, equations which contain both polynomial and trigonometric terms do not show analytical solutions and numerical methods are required.
A simple method is Newton iterative method : starting from a "reasonable" guess $x_0$, it will update it according to $$x_{n+1}=x_n-\frac{f(x_n)}{f'(x_n)}$$ In the case of the post $$f(x)=x^2-\cos(x)$$ $$f'(x)=2x+\sin(x)$$ By inspection,we can see that the positive root is somewhere between $\frac{\pi}{6}$ and $\frac{\pi}{3}$; so let us start iterating starting at the middle of the interval, that is to say $x_0=\frac{\pi}{4}$. So are generated the following iterates : $0.8250207908$, $0.8241327557$, $ 0.8241323123$ which is the solution for ten significant digits.
We could even start closer to the solution using Taylor since, built at $x=0$, we have $$x^2-\cos(x)=-1+\frac{3 x^2}{2}-\frac{x^4}{24}+O\left(x^5\right)$$ Solving the quadratic give $x =\sqrt{2 \left(9-5 \sqrt{3}\right)}\approx 0.824313$ which will make Newton method converging very fast.
Edit
Since A.P. asked the question in the comments, there are methods of higher order than Newton (which a quadratic convergence). Halley method shows a cubic convergence, Householder method  shows a quartic convergence and the order can be increased as far as one could want. The problem is not that these methods require higher order derivatives but that the formula start to be much more complex.
To give an idea, starting with $x_0=\frac{\pi}{4}$, let note $x_1^{(n)}$ the value of the first iterate of the method of order $n$. They will be $$x_1^{(2)}=0.8250207908$$ $$x_1^{(3)}=0.8240879089$$ $$x_1^{(4)}=0.8241350550$$ $$x_1^{(5)}=0.8241321224$$ $$x_1^{(6)}=0.8241323264$$ $$\cdots$$ $$x_1^{(\infty)}=0.8241323123$$
