f''(x) = 12x2 -6x+2
Integrate both sides to get df/dx=f '(x)
f'(x) = (1/3)12x3-(1/2)6x2+2x+c1 = 4x3-3x2+2x+c1
c1 is our first constant of integration
Integrate both sides again to get f
f(x) = (1/4)4x4-(1/3)3x3+(1/2)2x2+c1x+c2=x4-x3+x2+c1x+c2
c2 is our second constant of integration
to find our constants, plug in f(0)=2 and f(2)=0 into our f(x) equation
f(0)=2=0-0+0+0+c2
--> c2 = 2
f(2)=0=24-23+22+c12+2=14+2*c1
--> c1=-7