The integral contains x+1 in the denominator. To simplify, let:
x+1=t
x+1=t2
x=t2−1
dx=2tdt
The term (x−3) becomes:
x−3=t2−1−3=t2−4
Substituting into the integral:
∫(x−3)x+12dx
=∫(t2−4)⋅t2⋅2tdt
=∫t(t2−4)4tdt
=∫t2−44dt
The denominator factors as:
t2−4=(t−2)(t+2)
Using partial fractions:
(t−2)(t+2)4=t−2A+t+2B
4=A(t+2)+B(t−2)
For t=2:
4=A(4)
A=1
For t=−2:
4=B(−4)
B=−1
Therefore:
(t−2)(t+2)4=t−21−t+21
Integrating:
∫(t−21−t+21)dt
=ln∣t−2∣−ln∣t+2∣+C
=lnt+2t−2+C
Substituting t=x+1 back:
logx+1+2x+1−2+C