Consider the given integral.
I=∫−3(x+2)2dx
Let t=x+2
dt=dx
Therefore,
I=∫−3(t)2dt
I=−3−t+C
I=3t+C
On putting the value of t, we get
I=3(x+2)+C
Hence, this is the answer.