So if we have $$f(x) = x\cos x = 5$$ then one value of $x$ to this is roughly 5.7628 using Newton-Raphson.
But this isn't the only solution, which you can see by looking at a graph of $x\cos x.$
My question: is there a way to tell there are many solutions without knowing the graph of $x\cos x$? E.g. does the derivative tell us anything?
Thanks!
Having multiple solutions is as much a property of the function itself as it is a property of what Newton's method would give you. In general, it's not always simple to tell how many roots a function has. For polynomials and rational functions, there's the Fundamental Theorem of Algebra, which says that an $n$-degree polynomial has exactly $n$ roots (including repeated ones). And for functions with known asymptotes, like $f(x)\to x^3$, you can get more of a bearing. But for periodic functions, it can be more difficult, especially if they have sums. As an example, how many roots do these two functions have? $$2+\cos x+\cos\left(4x\right) \\ 2+\cos x+\cos\left(\color{red}{5}x\right) $$
The first one has zero but the second has infinitely many which is a bit of a big difference. Products are easier to work with since $f(x)g(x)$ will have the same roots as $f(x)$ and $g(x)$. So your function has the same roots as $x$ (a $1$-degree polynomial) and $\cos x$ (which you should know by heart).
Derivatives can sometimes you but aren't always useful, particularly since differentiation removes constant terms. The functions $\sin x$ and $\sin x + 2$ have the same derivative but very different roots.