Hi Kayla.
I got stuck when all I used was the information from the derivatives.
So I started over and plugged in the x- and y- values given for the min, max and poi into the original function and got a system of 3 equations.
From the poi in f'', I found that b = -12a
Then from both of the extrema equations I found that c = 45a
When I plugged the maximum (3,1) back into the original f(x), I got
27a + 9b + 3c + d = 0
Into this I put b and c in terms of a.
27a + 9(-12a) + 3(45a) + d = 0
Simplifying and combining like terms, I got 54a + d = 0, so I found d in terms of a also,
d= -54a
I could then plug b, c, and d (all in terms of a) back into the original function using the x- and y- coordinates of the minimum.
So using x=5 and y = -2, the original equation becomes
f(5) = 125a + 25b + 5c + d = -2
Replacing b, c, and d with their "a-equivalents", I get
125a + 25(-12a) + 5(45a) + (-54a) = -2
The LHS simplifies down to -4a = -2, so a = (1/2).
Plugging a back in to the equations for b, c, and d,
b = -12(1/2) = -6
c = 45(1/2) = 45/2
d = -54(1/2) = -27
So your final cubic is:
f(x) = (1/2)x3 - 6x2 + (45/2)x - 27
Checking this, find that
f'(x) = (3/2)x2 - 12 x + (45/2)
Setting it = 0 and solving the quadratic - first mult everything by 2 to get rid of the fractions
3x2 - 24x + 45 = 0
Divide everything by 3
x2 - 8x + 15 = 0 which easily factors into
(x-3)(x-5) = 0, so min and max are located at x=3 and x=5
Now check to see that we get the correct y-values
f(3) = 0 (so that works)
f(5) = -2 (so that works)
and last, check the point of inflection
f''(x) = 3x - 12 and set it = 0
3x = 12, so x = 4.
Check to see that get correct y-value
f(4) = -1 (so that works)
Conclusion: the correct cubic function is
f(x) = (1/2)x3 -6x2 + (45/2)x - 27