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.
First Derivative
Sol'n
Let dy/dx=f`(x); (f prime of x)
f`(x)=2x^2+2+3x^2-2
f`(x)=5x^2
Second Derivative
f``(x)=10x
Because, by the theorem of derivative f`(x)=nx^(n-1)