Solution:
Complete the square:
1+3x−x2=1−(x2−3x+49)+49=(213)2−(x−23)2
Put x−23=t, so that dx=dt.
∫1+3x−x2dx=∫(213)2−t2dt
We know that
∫a2−x2dx=2xa2−x2+2a2sin−1ax+C
Here a=213, so a2=413 and
∫413−t2dt=2t413−t2+813sin−1(132t)+C
Substituting back t=x−23=22x−3,
∫1+3x−x2dx=42x−31+3x−x2+813sin−1(132x−3)+C