Find ∫cos⁡(ln⁡x)x2 dx\int \frac{\cos(\ln x)}{x^2} \, \mathrm{d}x. Using the substitution u=x+3u = \sqrt{x+3}, find ∫16x−2xx+3 dx\int_1^6 \frac{x-2}{x\sqrt{x+3}} \, \mathrm{d}x, giving your answer in the form
a+b3ln⁡(c−dc+d),a + \frac{b}{\sqrt{3}} \ln\left( \frac{c - \sqrt{d}}{c + \sqrt{d}} \right),
where aa, bb, cc and dd are 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

7(a)

1. Apply integration by parts to the given integral.

Let I=∫x−2cos⁡(ln⁡x) dxI = \int x^{-2} \cos(\ln x) \, \mathrm{d}x.
Let u=cos⁡(ln⁡x)u = \cos(\ln x) and dvdx=x−2\frac{\mathrm{d}v}{\mathrm{d}x} = x^{-2}.
Then dudx=−sin⁡(ln⁡x)x\frac{\mathrm{d}u}{\mathrm{d}x} = -\frac{\sin(\ln x)}{x} and v=−x−1v = -x^{-1}.

I=−x−1cos⁡(ln⁡x)−∫(−x−1)(−sin⁡(ln⁡x)x) dxI = -x^{-1}\cos(\ln x) - \int \left(-x^{-1}\right)\left(-\frac{\sin(\ln x)}{x}\right) \, \mathrm{d}x
I=−cos⁡(ln⁡x)x−∫x−2sin⁡(ln⁡x) dxI = -\frac{\cos(\ln x)}{x} - \int x^{-2}\sin(\ln x) \, \mathrm{d}x

2. Apply integration by parts a second time to the new integral.

Consider ∫x−2sin⁡(ln⁡x) dx\int x^{-2}\sin(\ln x) \, \mathrm{d}x.
Let u=sin⁡(ln⁡x)u = \sin(\ln x) and dvdx=x−2\frac{\mathrm{d}v}{\mathrm{d}x} = x^{-2}.
Then dudx=cos⁡(ln⁡x)x\frac{\mathrm{d}u}{\mathrm{d}x} = \frac{\cos(\ln x)}{x} and v=−x−1v = -x^{-1}.

∫x−2sin⁡(ln⁡x) dx=−x−1sin⁡(ln⁡x)−∫(−x−1)(cos⁡(ln⁡x)x) dx\int x^{-2}\sin(\ln x) \, \mathrm{d}x = -x^{-1}\sin(\ln x) - \int \left(-x^{-1}\right)\left(\frac{\cos(\ln x)}{x}\right) \, \mathrm{d}x
=−sin⁡(ln⁡x)x+∫x−2cos⁡(ln⁡x) dx= -\frac{\sin(\ln x)}{x} + \int x^{-2}\cos(\ln x) \, \mathrm{d}x

3. Substitute back and solve for $I$, adding the constant of integration.

Substitute the result from step 2 back into the equation for II:
I=−cos⁡(ln⁡x)x−(−sin⁡(ln⁡x)x+∫x−2cos⁡(ln⁡x) dx)I = -\frac{\cos(\ln x)}{x} - \left(-\frac{\sin(\ln x)}{x} + \int x^{-2}\cos(\ln x) \, \mathrm{d}x \right)
I=−cos⁡(ln⁡x)x+sin⁡(ln⁡x)x−II = -\frac{\cos(\ln x)}{x} + \frac{\sin(\ln x)}{x} - I

Rearranging to solve for II:
2I=sin⁡(ln⁡x)−cos⁡(ln⁡x)x2I = \frac{\sin(\ln x) - \cos(\ln x)}{x}
I=sin⁡(ln⁡x)−cos⁡(ln⁡x)2x+CI = \frac{\sin(\ln x) - \cos(\ln x)}{2x} + C

Answer

sin⁡(ln⁡x)−cos⁡(ln⁡x)2x+C\frac{\sin(\ln x) - \cos(\ln x)}{2x} + C

7(b)

1. Perform the substitution to find $\mathrm{d}x$ in terms of $\mathrm{d}u$ and find the new limits of integration.

u=x+3  ⟹  u2=x+3  ⟹  x=u2−3u = \sqrt{x+3} \implies u^2 = x + 3 \implies x = u^2 - 3
Differentiating with respect to uu:
dxdu=2u  ⟹  dx=2u du\frac{\mathrm{d}x}{\mathrm{d}u} = 2u \implies \mathrm{d}x = 2u \, \mathrm{d}u

When x=1x = 1, u=1+3=2u = \sqrt{1+3} = 2.
When x=6x = 6, u=6+3=3u = \sqrt{6+3} = 3.

2. Substitute all $x$ terms and limits into the integral to express it entirely in terms of $u$.

∫16x−2xx+3 dx=∫23(u2−3)−2(u2−3)u(2u) du\int_1^6 \frac{x-2}{x\sqrt{x+3}} \, \mathrm{d}x = \int_2^3 \frac{(u^2 - 3) - 2}{(u^2 - 3)u} (2u) \, \mathrm{d}u
=∫23u2−5u2−3×2 du= \int_2^3 \frac{u^2 - 5}{u^2 - 3} \times 2 \, \mathrm{d}u
=∫232u2−10u2−3 du= \int_2^3 \frac{2u^2 - 10}{u^2 - 3} \, \mathrm{d}u

3. Simplify the rational algebraic fraction by division to prepare for integration.

2u2−10u2−3=2(u2−3)−4u2−3=2−4u2−3\frac{2u^2 - 10}{u^2 - 3} = \frac{2(u^2 - 3) - 4}{u^2 - 3} = 2 - \frac{4}{u^2 - 3}

So the integral becomes: ∫23(2−4u2−3) du\text{So the integral becomes: } \int_2^3 \left( 2 - \frac{4}{u^2 - 3} \right) \, \mathrm{d}u

4. Integrate using the standard integral formula for $\frac{1}{x^2 - a^2}$.

Using the standard result ∫1x2−a2 dx=12aln⁡∣x−ax+a∣\int \frac{1}{x^2-a^2} \, \mathrm{d}x = \frac{1}{2a} \ln \left| \frac{x-a}{x+a} \right| with a=3a = \sqrt{3}:

=[2u−4(123ln⁡∣u−3u+3∣)]23= \left[ 2u - 4 \left( \frac{1}{2\sqrt{3}} \ln \left| \frac{u - \sqrt{3}}{u + \sqrt{3}} \right| \right) \right]_2^3
=[2u−23ln⁡(u−3u+3)]23= \left[ 2u - \frac{2}{\sqrt{3}} \ln \left( \frac{u - \sqrt{3}}{u + \sqrt{3}} \right) \right]_2^3

5. Substitute the limits to evaluate the definite integral.

=(6−23ln⁡(3−33+3))−(4−23ln⁡(2−32+3))= \left( 6 - \frac{2}{\sqrt{3}} \ln \left( \frac{3 - \sqrt{3}}{3 + \sqrt{3}} \right) \right) - \left( 4 - \frac{2}{\sqrt{3}} \ln \left( \frac{2 - \sqrt{3}}{2 + \sqrt{3}} \right) \right)
=2+23[ln⁡(2−32+3)−ln⁡(3−33+3)]= 2 + \frac{2}{\sqrt{3}} \left[ \ln \left( \frac{2 - \sqrt{3}}{2 + \sqrt{3}} \right) - \ln \left( \frac{3 - \sqrt{3}}{3 + \sqrt{3}} \right) \right]

6. Combine the logarithmic terms and simplify the argument using rationalisation to reach the required form.

Combining the logarithms:
=2+23ln⁡(2−32+3×3+33−3)= 2 + \frac{2}{\sqrt{3}} \ln \left( \frac{2 - \sqrt{3}}{2 + \sqrt{3}} \times \frac{3 + \sqrt{3}}{3 - \sqrt{3}} \right)

Rationalising the fractions within the argument:
2−32+3=(2−3)24−3=7−43\frac{2 - \sqrt{3}}{2 + \sqrt{3}} = \frac{(2 - \sqrt{3})^2}{4 - 3} = 7 - 4\sqrt{3}
3+33−3=(3+3)29−3=12+636=2+3\frac{3 + \sqrt{3}}{3 - \sqrt{3}} = \frac{(3 + \sqrt{3})^2}{9 - 3} = \frac{12 + 6\sqrt{3}}{6} = 2 + \sqrt{3}

Multiplying them:
(7−43)(2+3)=14+73−83−12=2−3(7 - 4\sqrt{3})(2 + \sqrt{3}) = 14 + 7\sqrt{3} - 8\sqrt{3} - 12 = 2 - \sqrt{3}

We need to express 2−32 - \sqrt{3} in the form c−dc+d\frac{c - \sqrt{d}}{c + \sqrt{d}}. From the original upper limit evaluation, we can observe that:
3−33+3=(3−3)29−3=12−636=2−3\frac{3 - \sqrt{3}}{3 + \sqrt{3}} = \frac{(3 - \sqrt{3})^2}{9 - 3} = \frac{12 - 6\sqrt{3}}{6} = 2 - \sqrt{3}

Hence, substituting this back into the log term:
=2+23ln⁡(3−33+3)= 2 + \frac{2}{\sqrt{3}} \ln \left( \frac{3 - \sqrt{3}}{3 + \sqrt{3}} \right)

(This matches the target form with constants a=2,b=2,c=3,d=3a=2, b=2, c=3, d=3.)

Answer

2+23ln⁡(3−33+3)2 + \frac{2}{\sqrt{3}} \ln\left( \frac{3 - \sqrt{3}}{3 + \sqrt{3}} \right)

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. 15 (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…
  2. 2Find ∫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…
  3. 3Show that for x>1x>1, ddx(1x2−1)=−x(x2−1)3/2 .\dfrac{\mathrm{d}}{\mathrm{d}x}\left(\dfrac{1}{\sqrt{x^2-1}}\right)=-\dfrac{x}{(x^2-1)^{3/2}}\,.…
  4. 4Show that ∫nn+1ln⁡x dx=(n+1)ln⁡(n+1)−nln⁡n−1.\displaystyle\int_{n}^{n+1} \ln x\, dx = (n+1)\ln(n+1) - n\ln n - 1. (ii) The diagram shows the graph of y=ln⁡xy = \ln x…
  5. 5You are given that C=∫0πe−2xcos⁡x  dxC = \int_{0}^{\pi} \mathrm{e}^{-2x} \cos x \; \mathrm{d}x and S=∫0πe−2xsin⁡x  dxS = \int_{0}^{\pi} \mathrm{e}^{-2x} \sin x \; \mathrm{d}x…