Solution:
Let
x+2=Adxd(4x−x2)+B=A(4−2x)+B
Comparing the coefficients of x,
−2A=1⇒A=−21
Comparing the constant terms,
4A+B=2⇒B=4
Therefore,
∫4x−x2x+2dx=−21∫4x−x24−2xdx+4∫4x−x2dx=−21I1+4I2
In I1, put 4x−x2=t, so that (4−2x)dx=dt.
I1=∫tdt=24x−x2+C1
For I2, complete the square:
4x−x2=4−(x−2)2=22−(x−2)2
Using ∫a2−x2dx=sin−1ax+C,
I2=sin−1(2x−2)+C2
Substituting I1 and I2,
∫4x−x2x+2dx=−4x−x2+4sin−1(2x−2)+C