Solution:
Key idea: We complete the square to reach t2−a2, and then use the standard form ∫t2−a2dt=2tt2−a2−2a2logt+t2−a2+C.
Step 1 — Complete the square.
Half the coefficient of x is 23, so we add and subtract 49.
x2+3x=(x+23)2−49
x2+3x=(x+23)2−(23)2
Step 2 — Apply the formula.
We use the formula with t=x+23 and a2=49, so the coefficient 2a2 is 89.
I=2x+23x2+3x−89logx+23+x2+3x+C
Step 3 — Tidy the first coefficient.
We multiply the top and bottom of the coefficient by 2.
2x+23=42x+3
I=42x+3x2+3x−89logx+23+x2+3x+C
Therefore, ∫x2+3xdx=42x+3x2+3x−89logx+23+x2+3x+C, for x≤−3 or x≥0.