Write the numerator as (derivative of denominator) minus a constant, split the integral, and use partial fractions for the remaining rational part.
(i) ∫x2+3x+22xdx:
Note dxd(x2+3x+2)=2x+3. Write 2x=(2x+3)−3:
∫x2+3x+22xdx=∫x2+3x+22x+3dx−3∫x2+3x+2dx.
The first integral is log∣x2+3x+2∣ directly (numerator is the derivative of the denominator).
For the second, factor x2+3x+2=(x+1)(x+2), and use partial fractions:
(x+1)(x+2)1=x+11−x+21⟹∫x2+3x+2dx=log∣x+1∣−log∣x+2∣.
Combining:
∫x2+3x+22xdx=log∣x2+3x+2∣−3[log∣x+1∣−log∣x+2∣]+C.
Since x2+3x+2=(x+1)(x+2), log∣x2+3x+2∣=log∣x+1∣+log∣x+2∣, so
=log∣x+1∣+log∣x+2∣−3log∣x+1∣+3log∣x+2∣+C=−2log∣x+1∣+4log∣x+2∣+C.
…