Find all real numbers $x$ such that $f(x) = f(f(x))$, where $f(x) = x^2 - 3x + x^3 - 7x^2 + 5x.$
We tackle the problem in the following manner: First rewrite f(x) = f(f(x)) as the system of equations {f(k)=kf(x)=k.
(This system is obtained by letting k = f(x) and substituting)
Simplifying f(x) gives f(x)=x3−6x2+2x. For f(k) = k, that means:
k3−6k2+2k=kk3−6k2+k=0k(k2−6k+1)=0k=0 or k2−6k+1=0
For the remaining part of the problem, we solve it by quadratic formula to get k=3±2√2.
For each value of k, we solve the equation f(x) = k. We first start with the easy case k = 0. For k = 0, we have
x3−6x2+2x=0x(x2−6x+2)=0x=0 or x2−6x+2=0x=0 or x=3±√7
For k = 3 + 2 sqrt(2), we know that x = 3 + 2 sqrt(2) is a root of f(x) = k because f(k) = k. We have, by long division,
x3−6x2+2x=3+2√2(x−(3+2√2))(x2+(2√2−3)x+1)=0
The quadratic factor has negative discriminant. That means no real root there. The only real root from this case is x=3+2√2.
Similarly, for the case k = 3 - 2 sqrt(2), we have
(x−(3−2√2))(x2−(3+2√2)x+1)=0
Again, the quadratic factor has negative discriminant. The only real root in this case is x=3−2√2.
Hence, the real roots you are looking for are x=0, x=3±2√2, and x=3±√7.