Dy/dx=2(x^2+1)+(3x^2-2)your equation that you've given is already a derivative! But if you wish to solve in a Second Derivative, then I'll solve it. But first, I will give you the first derivative ( the given equation) that you give to me.
Let dy/dx=f`(x); (f prime of x)
Because, by the theorem of derivative f`(x)=nx^(n-1)