Solution:
Complete the square:
x2+3x=(x+23)2−(23)2
Put x+23=t, so that dx=dt.
∫x2+3xdx=∫t2−(23)2dt
We know that
∫x2−a2dx=2xx2−a2−2a2logx+x2−a2+C
Here a=23, so a2=49 and
∫t2−49dt=2tt2−49−89logt+t2−49+C
Substituting back t=x+23=22x+3,
∫x2+3xdx=42x+3x2+3x−89logx+23+x2+3x+C