$f(x)=e^x(x^2-5x+7)$.Prove $f^{(n)}(x)$ has 2 roots for any $n\in\mathbb N^*$. $f^{(n)}(x)$ means derivative of order n.
I am really confused by this exercise. I have calculated first 10 derivatives and $\Delta$ for each to see if it is positive, and it is indeed. I thought that by doing this eventually I will be able to find a general form for the derivative of order n and then prove it is right by mathematical induction then calculate $\Delta$ and show it is >0. The first and second term are easy to find, first one never changes and second one is $(-5x+2*nx)$, but the third term changes based on the second and last terms of $f^{(n-1)}(x)$ so I am stuck here with this approach.
Thanks in advance to anyone trying to help!
The hint.
Let for $x^2+ax+b$ we have $a^2-4b>0$.
Thus, $$(e^x(x^2+ax+b))'=e^x(x^2+ax+b)+e^x(2x+b)=e^x(x^2+(a+2)x+a+b)$$ and we see that $$(a+2)^2-4(a+b)=a^2-4b+4>0.$$
Now, use induction.
A full solution can be written so.
Easy to see that for all $n$ we can write $f^{(n)}$ in the following form: $$f^{(n)}(x)=e^x(x^2+a_nx+b_n).$$
Now, $$f'(x)=e^x(x-1)(x-2)$$ has two real root. It was a base of the induction.
Let $f^{(n)}(x)=e^x(x^2+a_nx+b_n)$ has two real roots.
Thus, $$a_n^2-4b_n>0.$$
We'll prove that $f^{(n+1)}$ has two real roots.
Indeed, $$f^{(n+1)}(x)=\left(e^x(x^2+a_nx+b_n)\right)'=e^x(x^2+a_nx+b_n)+e^x(2x+a_n)=$$ $$=e^x(x^2+(a_n+2)x+a_n+b_n).$$ Id est, $$a_{n+1}=a_n+2,$$ $$b_{n+1}=a_n+b_n$$ and it's enough to prove that: $$a_{n+1}^2-4b_{n+1}>0$$ or $$(a_n+2)^2-4(a_n+b_n)>0$$ or $$a_n^2-4b_n+4>0,$$ which is true by the assumption of the induction.
Thus, by the induction $f^{(n)}$ has two real roots for all $n\geq1$ and we are done!