Find the cubic function $y=ax^3+bx^2+cx+d$ whose graph has horizontal tangents at the points $(−5,5)$ and $(3,-2)$.
I've seen this problem before with different numbers. For some reason I can't solve with these points. I've taken the derivative of $y=ax^3+bx^2+cx+d$ and then plugged in both x values. I set those two equations equal to zero. Then I plugged in the x values into $y=ax^3+bx^2+cx+d$. I then set the equations equal to $5$ and $-2$. So in the end I have four equations that I should be able to plug into a matrix. I ended up with $a = 7/121$, $b = 21/121$, $c = -315/121$, and $d = 325/121$. However, I'm being told that's incorrect.
First, the graph of that function passes through $(-5,5)$ and $(3,-2)$, that is, $$\begin{align} 5 = y(-5) &= -125a + 25b - 5c + d \\ -2 = y(3) &= 27a + 9b + 3c + d \end{align}$$ Also, since $y$ has critical points at $-5$ and $3$, we get $$\begin{align} 0 = y'(-5) &= 75a - 10b + c \\ 0 = y'(3) &= 27a + 6b + c \end{align}$$ Using this four equations we obtain that $$y(x) = \frac{7}{256}x^3 + \frac{21}{256}x^2 - \frac{315}{256}x + \frac{55}{256}$$