If I am trying to find a cubic function with 3 real roots, and I know two of them, and one local maximum, is it possible?
Assuming my roots are $0.05$, $0.95$ and $u$, and my local maximum is $(i, j)$. Since a cubic takes the form $y = ax^3 + bx^2 + cx + d$:
$$ 0 = a(0.05^3) + b(0.05^2) + c(0.05) + d$$ $$ 0 = a(0.95^3) + b(0.95^2) + c(0.95) + d$$ $$ 0 = a(u^3) + b(u^2) + c(u) + d$$
My local maximum is where the derivative = $0$;
$$ 0 = 3ax^2 + 2bx + c $$
Of course, if I could calculate $u$, I could write the cubic in the form:
$$y = (x-0.05)(x-0.95)(x-u)$$
Your first two equations are fine. To incorporate the information from the local maximum, you get $j=ai^3+bi^2+ci+d$ from the fact that $(i,j)$ is on the curve. From the derivative being zero you get $3ai^2+2bi+c=0$ You now have four equations in four unknowns. In your last equation you lost the overall factor $a$, but you don't need to use that one.