How do I integrate ∫ xcos^2(x) dx ?

First, recall that when integrating, squared trigonometric functions often cause issues. Therefore, use the identity: cos^2(x) = (cos(2x) + 1)/2 to remove this power, giving the integral: ∫ (xcos(2x))/2  + x/2 dx.

This can be split into two integrals: ∫ (xcos(2x))/2 dx + ∫ x/2 dx

The second integral [ ∫ x/2 dx] is simple, integrating to x^2/4

For the first, trickier integral [∫ (xcos(2x))/2 dx], notice that this integral appears to be the multiple of two functions, so integration by parts is likely to come in handy.  Set u = x/2 and dv/dx = cos(2x). Then du/dx = 1/2 and v = ∫ cos(2x) dx = (sin(2x))/2 

Use the integration by parts formula: integral = uv - ∫v(du/dx) dx = xsin(2x)/4 - ∫sin(2x)/4 = xsin(2x)/2 +cos(2x)/8

Put everything together, giving a final integral = xsin(2x)/4 +cos(2x)/8 + x^2/4 + c (don't forget to add the arbitrary constant!) 

SS

Related Maths A Level answers

All answers ▸

Find the exact solution, in its simplest form, to the equation ln(4y + 7) = 3 + ln(2 – y) (Core Maths 3 Style Question)


The curve C is paramterised by the equations: x = 5t + 3 ; y = 2 / t ; t > 0 Find y in terms of x and hence find dy/dx


Find the gradient of the tangent to the curve with the equation y = (3x^4 - 18)/x at the point where x = 3


the graph y = 3/((1-4x)*(1/2)) has a shaded region between x = 0 and x = 2, find area of the region