So I've been doing this problem for a while now and I keep getting the wrong answer:

Find a cubic function, in the form below, that has a local maximum value of 4 at -4 and a local minimum value of 0 at 2.

So I just use can obtain 4 equations by subsituting (-4,4) and (2,0) into f(x) and into the derivative of f(x) where :

For f(x): at x=-4,

at x=2,

For f'(x): at x=-4,

at x=2,

So when I solve it I get a= -1/93, b= -1/31, c= 8/31, d= -28/93 but that only solves 3 of the above equations...so I'm doing something wrong. I'll post all my work in the next post since it's a bit long. Also, I don't know how to use matrices so try to refrain from using it. Thanks.