1. Resolve the modulus based on the limits of integration.
For x∈[−2,2], x−2≤0. Hence, ∣x−2∣=−(x−2)=2−x.
The integral simplifies to: ∫−22x2−2x+42−xdx
2. Split the integrand to use the derivative of the denominator.
The derivative of the denominator is dxd(x2−2x+4)=2x−2.
Express the numerator 2−x in terms of 2x−2: 2−x=−21(2x−2)+1
Split the integral into two parts: ∫−22(−21x2−2x+42x−2+x2−2x+41)dx
3. Evaluate the first integral using the logarithmic form.
Using the standard form ∫f(x)f′(x)dx=ln∣f(x)∣: −21∫−22x2−2x+42x−2dx=[−21ln(x2−2x+4)]−22 =−21(ln(22−2(2)+4)−ln((−2)2−2(−2)+4)) =−21(ln4−ln12) =−21ln(124)=−21ln(31)=21ln3
4. Complete the square for the denominator of the second integral.
For the second integral, complete the square in the denominator: x2−2x+4=(x−1)2−12+4=(x−1)2+3
The second integral becomes: ∫−22(x−1)2+(3)21dx
5. Evaluate the second integral using the inverse tangent form.
Using the standard integral ∫x2+a21dx=a1tan−1(ax): ∫−22(x−1)2+(3)21dx=[31tan−1(3x−1)]−22 =31(tan−1(32−1)−tan−1(3−2−1)) =31(tan−1(31)−tan−1(−3))
6. Substitute exact trigonometric values and sum both parts to find $p$ and $q$.
Substitute the exact values tan−1(31)=6π and tan−1(−3)=−3π: =31(6π−(−3π))=31(6π+62π)=31(63π)=23π=63π
Adding both evaluated parts gives the total integral: ∫−22x2−2x+4∣x−2∣dx=21ln3+63π
Comparing this with pln3+qπ, we obtain p=21 and q=63.