Without the use of a calculator, show that ∫−22∣x−2∣x2−2x+4 dx=pln⁡3+qπ,\int_{-2}^{2} \frac{|x-2|}{x^2 - 2x + 4} \,\mathrm{d}x = p \ln 3 + q \pi , where pp and qq are exact real constants to be determined.

Work through it with AI →

It won't just hand you the answer — it asks where you're stuck.How the checker works

Worked solution

4

1. Resolve the modulus based on the limits of integration.

For x∈[−2,2]x \in [-2, 2], x−2≤0x - 2 \le 0. Hence, ∣x−2∣=−(x−2)=2−x|x - 2| = -(x - 2) = 2 - x.

The integral simplifies to:
∫−222−xx2−2x+4 dx\int_{-2}^{2} \frac{2 - x}{x^2 - 2x + 4} \,\mathrm{d}x

2. Split the integrand to use the derivative of the denominator.

The derivative of the denominator is ddx(x2−2x+4)=2x−2\frac{\mathrm{d}}{\mathrm{d}x}(x^2 - 2x + 4) = 2x - 2.

Express the numerator 2−x2 - x in terms of 2x−22x - 2:
2−x=−12(2x−2)+12 - x = -\frac{1}{2}(2x - 2) + 1

Split the integral into two parts:
∫−22(−122x−2x2−2x+4+1x2−2x+4) dx\int_{-2}^{2} \left( -\frac{1}{2}\frac{2x - 2}{x^2 - 2x + 4} + \frac{1}{x^2 - 2x + 4} \right) \,\mathrm{d}x

3. Evaluate the first integral using the logarithmic form.

Using the standard form ∫f′(x)f(x) dx=ln⁡∣f(x)∣\int \frac{\mathrm{f}'(x)}{\mathrm{f}(x)} \,\mathrm{d}x = \ln |\mathrm{f}(x)|:
−12∫−222x−2x2−2x+4 dx=[−12ln⁡(x2−2x+4)]−22-\frac{1}{2} \int_{-2}^{2} \frac{2x - 2}{x^2 - 2x + 4} \,\mathrm{d}x = \left[ -\frac{1}{2} \ln(x^2 - 2x + 4) \right]_{-2}^{2}
=−12(ln⁡(22−2(2)+4)−ln⁡((−2)2−2(−2)+4))= -\frac{1}{2} \left( \ln(2^2 - 2(2) + 4) - \ln((-2)^2 - 2(-2) + 4) \right)
=−12(ln⁡4−ln⁡12)= -\frac{1}{2} (\ln 4 - \ln 12)
=−12ln⁡(412)=−12ln⁡(13)=12ln⁡3= -\frac{1}{2} \ln\left(\frac{4}{12}\right) = -\frac{1}{2} \ln\left(\frac{1}{3}\right) = \frac{1}{2} \ln 3

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+3x^2 - 2x + 4 = (x - 1)^2 - 1^2 + 4 = (x - 1)^2 + 3

The second integral becomes:
∫−221(x−1)2+(3)2 dx\int_{-2}^{2} \frac{1}{(x - 1)^2 + (\sqrt{3})^2} \,\mathrm{d}x

5. Evaluate the second integral using the inverse tangent form.

Using the standard integral ∫1x2+a2 dx=1atan⁡−1(xa)\int \frac{1}{x^2 + a^2} \,\mathrm{d}x = \frac{1}{a} \tan^{-1}\left(\frac{x}{a}\right):
∫−221(x−1)2+(3)2 dx=[13tan⁡−1(x−13)]−22\int_{-2}^{2} \frac{1}{(x - 1)^2 + (\sqrt{3})^2} \,\mathrm{d}x = \left[ \frac{1}{\sqrt{3}} \tan^{-1}\left(\frac{x - 1}{\sqrt{3}}\right) \right]_{-2}^{2}
=13(tan⁡−1(2−13)−tan⁡−1(−2−13))= \frac{1}{\sqrt{3}} \left( \tan^{-1}\left(\frac{2 - 1}{\sqrt{3}}\right) - \tan^{-1}\left(\frac{-2 - 1}{\sqrt{3}}\right) \right)
=13(tan⁡−1(13)−tan⁡−1(−3))= \frac{1}{\sqrt{3}} \left( \tan^{-1}\left(\frac{1}{\sqrt{3}}\right) - \tan^{-1}(-\sqrt{3}) \right)

6. Substitute exact trigonometric values and sum both parts to find $p$ and $q$.

Substitute the exact values tan⁡−1(13)=π6\tan^{-1}\left(\frac{1}{\sqrt{3}}\right) = \frac{\pi}{6} and tan⁡−1(−3)=−π3\tan^{-1}(-\sqrt{3}) = -\frac{\pi}{3}:
=13(π6−(−π3))=13(π6+2π6)=13(3π6)=π23=36π= \frac{1}{\sqrt{3}} \left( \frac{\pi}{6} - \left(-\frac{\pi}{3}\right) \right) = \frac{1}{\sqrt{3}} \left( \frac{\pi}{6} + \frac{2\pi}{6} \right) = \frac{1}{\sqrt{3}} \left( \frac{3\pi}{6} \right) = \frac{\pi}{2\sqrt{3}} = \frac{\sqrt{3}}{6}\pi

Adding both evaluated parts gives the total integral:
∫−22∣x−2∣x2−2x+4 dx=12ln⁡3+36π\int_{-2}^{2} \frac{|x - 2|}{x^2 - 2x + 4} \,\mathrm{d}x = \frac{1}{2} \ln 3 + \frac{\sqrt{3}}{6}\pi

Comparing this with pln⁡3+qπp \ln 3 + q \pi, we obtain p=12p = \frac{1}{2} and q=36q = \frac{\sqrt{3}}{6}.

Answer

p = \frac{1}{2}, \quad q = \frac{\sqrt{3}}{6}

AI analysis — may contain mistakes.

Worked this one out on paper? Snap your steps and Gigle's AI math checker will circle the step where it went wrong.

More questions on this topic

  1. 1Differentiate ex2+2x\mathrm{e}^{x^2+2x} with respect to xx and hence find the exact value of ∫01(x+1)ex2+2x  dx\int_{0}^{1} (x+1)\mathrm{e}^{x^2+2x} \; \mathrm{d}x…
  2. 25 (a) Solve the following integral. ∫1−2x3+2x−x2 dx.\displaystyle\int \frac{1-2x}{\sqrt{3+2x-x^2}}\,\mathrm{d}x. ∫xln⁡(2−x2) dx\displaystyle\int x\ln\left(2-x^2\right)\,\mathrm{d}x…
  3. 3[Cambridge/9709/2010] The diagram shows parts of the curves y=9−x3y = 9 - x^3 and y=8x3y = \frac{8}{x^3} and their points o…
  4. 4Show that cos⁡3θ=4cos⁡3θ−3cos⁡θ\cos 3\theta = 4\cos^{3}\theta - 3\cos\theta. Hence, or otherwise, evaluate ∫0π/6sin⁡2θ cos⁡3θ dθ\displaystyle \int_{0}^{\pi/6} \sin 2\theta\,\cos 3\theta\, d\theta…
  5. 5Find ∫3ex5−0.3ex dx\displaystyle \int \frac{3e^x}{5 - 0.3e^x} \, dx ∫cos⁡(ln⁡x) dx\displaystyle \int \cos(\ln x) \, dx, where x>0x > 0 the exact…