I can't do this questio although my teacher helped me I still can't do it, please check.

y''= x+2 and if x=3, y'=7 and y=12.

(hint: evaluate constants as they are created)

My failed attempt:

y'=(x^2)/(2) + 2x + C = 7 when x=3.

9/2 + 6 + C=7

C=-3.5

And I also know that (x^3)/(6) +x^2 +7 = 12

That is the second derivative.

I hope what I have written makes sense.

Thanks