Write down constants AA and BB such that for all values of xx, x−1=A(2x−4)+B.x - 1 = A(2x - 4) + B. By expressing x2−4x+5x^2 - 4x + 5 in completed square form, find ∫x−1x2−4x+5 dx.\int \frac{x - 1}{x^2 - 4x + 5}\,dx. Hence, without using a calculator, show that ∫−22∣x−1∣x2−4x+5 dx=π2+12ln⁡pq−tan⁡−1pq,\int_{-2}^{2} \frac{|x-1|}{x^2-4x+5}\,dx = \frac{\pi}{2} + \frac{1}{2}\ln\frac{p}{q} - \tan^{-1}\frac{p}{q}, 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

3(a)

1. Expand the right-hand side and compare the coefficients of $x$ to find $A$.

x−1=2Ax−4A+Bx - 1 = 2Ax - 4A + B
By comparing the coefficients of xx:
1=2A  ⟹  A=121 = 2A \implies A = \frac{1}{2}

2. Compare the constant terms to find $B$.

By comparing the constant terms:
−1=−4A+B-1 = -4A + B
Substitute A=12A = \frac{1}{2}:
−1=−4(12)+B-1 = -4\left(\frac{1}{2}\right) + B
−1=−2+B  ⟹  B=1-1 = -2 + B \implies B = 1

Answer

A=12A = \frac{1}{2}, B=1B = 1

3(b)

1. Find constants $A$ and $B$ from part (a) and complete the square for the denominator.

From part (a), we have x−1=A(2x−4)+Bx - 1 = A(2x - 4) + B.
Comparing coefficients of xx: 2A=1  ⟹  A=122A = 1 \implies A = \frac{1}{2}
Comparing constants: −4A+B=−1  ⟹  −2+B=−1  ⟹  B=1-4A + B = -1 \implies -2 + B = -1 \implies B = 1
So, x−1=12(2x−4)+1x - 1 = \frac{1}{2}(2x - 4) + 1.
Next, completing the square for the denominator:
x2−4x+5=(x−2)2−(−2)2+5=(x−2)2+1x^2 - 4x + 5 = (x - 2)^2 - (-2)^2 + 5 = (x - 2)^2 + 1

2. Rewrite the integral into two separate standard forms.

Substitute the expressions into the integral:
∫x−1x2−4x+5 dx=∫12(2x−4)+1x2−4x+5 dx\int \frac{x - 1}{x^2 - 4x + 5}\,dx = \int \frac{\frac{1}{2}(2x - 4) + 1}{x^2 - 4x + 5}\,dx
=12∫2x−4x2−4x+5 dx+∫1(x−2)2+1 dx= \frac{1}{2} \int \frac{2x - 4}{x^2 - 4x + 5}\,dx + \int \frac{1}{(x - 2)^2 + 1}\,dx

3. Integrate the first term yielding a natural logarithmic function.

Since the numerator is exactly the derivative of the denominator:
12∫2x−4x2−4x+5 dx=12ln⁡∣x2−4x+5∣\frac{1}{2} \int \frac{2x - 4}{x^2 - 4x + 5}\,dx = \frac{1}{2} \ln|x^2 - 4x + 5|
Since x2−4x+5=(x−2)2+1>0x^2 - 4x + 5 = (x - 2)^2 + 1 > 0 for all real xx, the absolute value signs can be replaced with parentheses:
=12ln⁡(x2−4x+5)= \frac{1}{2} \ln(x^2 - 4x + 5)

4. Integrate the second term yielding an inverse tangent function and combine for the final answer.

Using the standard result ∫1x2+a2 dx=1atan⁡−1(xa)\int \frac{1}{x^2 + a^2}\,dx = \frac{1}{a} \tan^{-1}\left(\frac{x}{a}\right) with a=1a=1 and replacing xx with x−2x-2:
∫1(x−2)2+1 dx=tan⁡−1(x−2)\int \frac{1}{(x - 2)^2 + 1}\,dx = \tan^{-1}(x - 2)
Combining both parts and adding the arbitrary constant CC:
∫x−1x2−4x+5 dx=12ln⁡(x2−4x+5)+tan⁡−1(x−2)+C\int \frac{x - 1}{x^2 - 4x + 5}\,dx = \frac{1}{2} \ln(x^2 - 4x + 5) + \tan^{-1}(x - 2) + C

Answer

12ln⁡(x2−4x+5)+tan⁡−1(x−2)+C\frac{1}{2}\ln(x^2 - 4x + 5) + \tan^{-1}(x - 2) + C

3(c)

1. Remove the modulus by splitting the range at x = 1

On [−2,2][-2,2], ∣x−1∣=1−x|x-1| = 1-x for x≤1x\le 1 and ∣x−1∣=x−1|x-1| = x-1 for x≥1x\ge 1. Hence
∫−22∣x−1∣x2−4x+5 dx=∫−21−(x−1)x2−4x+5 dx+∫12x−1x2−4x+5 dx.\int_{-2}^{2}\frac{|x-1|}{x^2-4x+5}\,dx=\int_{-2}^{1}\frac{-(x-1)}{x^2-4x+5}\,dx+\int_{1}^{2}\frac{x-1}{x^2-4x+5}\,dx.

2. Use the antiderivative from part (b)

From (b), ∫x−1x2−4x+5 dx=12ln⁡(x2−4x+5)+tan⁡−1(x−2)+C\displaystyle\int\frac{x-1}{x^2-4x+5}\,dx=\tfrac{1}{2}\ln(x^2-4x+5)+\tan^{-1}(x-2)+C. Let F(x)=12ln⁡(x2−4x+5)+tan⁡−1(x−2)F(x)=\tfrac{1}{2}\ln(x^2-4x+5)+\tan^{-1}(x-2). Then the integral equals
[−F(x)]−21+[F(x)]12=F(−2)+F(2)−2F(1).\big[-F(x)\big]_{-2}^{1}+\big[F(x)\big]_{1}^{2}=F(-2)+F(2)-2F(1).

3. Evaluate F at the three limits

F(−2)=12ln⁡(4+8+5)+tan⁡−1(−4)=12ln⁡17−tan⁡−14F(-2)=\tfrac{1}{2}\ln(4+8+5)+\tan^{-1}(-4)=\tfrac{1}{2}\ln 17-\tan^{-1}4.
F(2)=12ln⁡(1)+tan⁡−1(0)=0F(2)=\tfrac{1}{2}\ln(1)+\tan^{-1}(0)=0.
F(1)=12ln⁡(2)+tan⁡−1(−1)=12ln⁡2−π4F(1)=\tfrac{1}{2}\ln(2)+\tan^{-1}(-1)=\tfrac{1}{2}\ln 2-\tfrac{\pi}{4}.

4. Combine and identify p and q

F(−2)+F(2)−2F(1)=(12ln⁡17−tan⁡−14)+0−2(12ln⁡2−π4)F(-2)+F(2)-2F(1)=\left(\tfrac{1}{2}\ln17-\tan^{-1}4\right)+0-2\left(\tfrac{1}{2}\ln2-\tfrac{\pi}{4}\right)
=π2+12ln⁡17−ln⁡2−tan⁡−14=π2+12ln⁡174−tan⁡−14,=\tfrac{\pi}{2}+\tfrac{1}{2}\ln17-\ln2-\tan^{-1}4=\tfrac{\pi}{2}+\tfrac{1}{2}\ln\frac{17}{4}-\tan^{-1}4,
since ln⁡2=12ln⁡4\ln2=\tfrac{1}{2}\ln4. Hence p=17p=17, q=4q=4.

Answer

∫−22∣x−1∣x2−4x+5 dx=π2+12ln⁡174−tan⁡−14,\int_{-2}^{2}\frac{|x-1|}{x^2-4x+5}\,dx=\frac{\pi}{2}+\frac{1}{2}\ln\frac{17}{4}-\tan^{-1}4, so p=17p = 17 and q=4q = 4.

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…