I encountered a problem recently wherein I had to find the value of the coefficient of the second degree term in a 4th degree equation (other coefficients were given) such that there are $4$ collinear points on the curve.
I found a similar question in a problem set wherein the solution included taking the second derivative and solving for the discriminant to be greater than $0$ and obtain an inequality which was the solution but I can't seem to figure out why this works. Please help.
The curve given in the question was $$y=x^4+9x^3+ax^2+2008x+2050$$
For a monic polynomial $P(x) \in \Bbb{R}[x]$ of degree $4$. Pick two points $(a,P(a)),(a+c,P(a)+d)$ on the curve $P(x)-y=0$, let $$h(t) =P(a+tc) - (P(a)+td) = c^4 t(t-1) (t^2+ft+g) $$
$g = (\frac{h'(0)}{c^4}=-\frac{c P'(a)-d}{c^4}$, $\frac{h(2)}{c^4} = 8+4f+2g, f= \frac{\frac{h(2)}{c^4}-8-2g}{4}$
Iff $f^2-4g>0$ then $t^2+ft+g = (t-u)(t-v)$ has two real roots so $h$ has 4 real roots and $(a+uc,P(a+uc)),(a+vc),P(a+vc))$ are two more points of the curve on the line $(a+tc,P(a)+td)$