I have 2 questions on the rational root theorem:
Can the rational root theorem be used to find all the real roots of any polynomial, assuming it has whole number coefficients? Or are there situations where there are real roots of a polynomial with whole number coefficient where some of it's real roots cannot be found through the rational root theorem? I'm asking this because my textbook says that the rational root theorem can be used to find all the real roots of any polynomial.
In the same textbook however, there was a question requiring you to find the real roots of $x^4+3x^2+2=0$. One of the real roots was $\pm\sqrt{2}$. How does one find this using the rational root theorem?
Please try to keep the answers at the level of a high school Pre-calc student. Thanks.
Decided to throw an answer in because I thought that it was too long for a comment.
No (at least not directly). The Rational Root Theorem asserts that if $\frac{a}{b}$ is a root of $f$, where $a$ and $b$ are integers with $b \neq 0$ and $\gcd(a,b) = 1$, then $a$ divides the constant term of $f(x)$ and $b$ divides the lead coefficient of $f(x)$. Note that the Rational Root Theorem in no way guarantees the existence of rational roots. It does, however, give information about the nature of rational roots should they exist.
There are some instances where the Rational Root Theorem is sufficient to find all the real roots of a polynomial. For example, consider the polynomial $f(x) = x^4 - x^3 - 7x^2 + x + 6$. The Rational Root Theorem tells us that if $\frac{a}{b}$ is a root of $f(x)$, then $a$ divides 6 and $b$ divides $1$. Since the divisors of 6 are $\pm 1 , \pm 2 , \pm 3 , \pm 6$ and the divisors of $1$ are $\pm 1$, the potential roots of $f(x)$ are $\pm 1 , \pm 2 , \pm 3 , \pm 6$. One checks that $f(\pm1) = f(-2) = f(3) = 0$, which implies that we have indeed found all of the roots because the number of roots is less than or equal to the degree.
In the previous example, all of the roots of $f(x)$ were rational, which is why the Rational Root Theorem was able to show us the way in finding all of them. There are some instances where the Rational Root Theorem will not elucidate all of the roots, but it will give you enough to determine all of the real roots. Consider the polynomial $f(x) = x^5 - 2x^4 - 8x^3 + 16x^2 + 7x -14$. The Rational Root Theorem tells us that the possible roots of $f(x)$ are $\pm 1 , \pm 2, \pm 7 , \pm 14$. One checks that the only rational roots of $f(x)$ are $x = \pm 1, 2$. However this of course implies that $(x - 2)(x - 1)(x + 1)$ is a factor of $f(x)$. You can then perform polynomial long division and show that $$f(x) = (x - 1)(x + 1)(x - 2)(x^2 - 7),$$ at which point it becomes apparent that the two remaining roots of $f(x)$ are $x = \pm \sqrt{7}$.