Solution:
First complete the square in the denominator:
4+x−x2=−(x2−x−4)=417−(x−21)2=(217)2−(x−21)2
Let
x−21=t
Then
dx=dt
New limits: when x=0, t=−21; when x=2, t=23.
Therefore,
∫02x+4−x2dx=∫−2123(217)2−t2dt
Using ∫a2−t2dt=2a1loga−ta+t with a=217, so that 2a1=171,
=171[log217−t217+t]−2123=171[log17−2t17+2t]−2123
Substituting the limits,
=171[log17−317+3−log17+117−1]=171log(17−3)(17−1)(17+3)(17+1)
Multiplying out,
=171log20−41720+417=171log5−175+17
Rationalising the denominator,
5−175+17=25−17(5+17)2=842+1017=421+517
Therefore,
∫02x+4−x2dx=171log(421+517)
Hence, the value of the integral is 171log(421+517).