Let $y=f(x)$ be a curve given by the solution of differential equation $dy/dx=4px^3-12x-8$ , $p ∈ N$, $f(0) = 24$ and $y=f(x)$ cuts x-axis at atleast one point. Find number of value(s) of p and sum of real roots of the equation $f(x) = 0$
I got that $f(x) = px^4-6x^2-8x+24$, but I don't know how to proceed. I tried assuming $α$ as the root and then finding p in terms of $α$ and then the condition $p≥1$. But couldn't proceed further. The answer given was p has one possible value and sum of real roots is $4$.
Often rewriting polynomials as sum of squares helps. In this case, we may write $$f(x) = (x^2-4)^2+2(x-2)^2+(p-1)x^4$$
Now if $p>1$, clearly this is positive and there is no real root.
If $p=1$, we get $x=2$ as a double root of $f(x) = (x-2)^2((x+2)^2+2)$ and sum of real roots is $4$, counting multiplicity.
P.S. If your favourite definition of natural numbers allows $p=0$, then we get two more real roots for the resulting quadratic $f(x) = -2(3x^2+4x-12)$, whose sum is $-\frac43$ by Vieta.