Resources For Teachers For Tutors For Students & Parents Pricing
Year 12 Maths Extension 1 (2027) Calculus

Integration of sin²nx and cos²nx

20 practice questions 2 video lessons Theory + worked examples

Learn to integrate squared trigonometric functions for NSW Year 12 Mathematics Extension 1. Expressions such as sin squared and cos squared cannot be integrated directly, so a double-angle identity is used to rewrite them first.

You will learn to prove and apply the power-reduction identities, then integrate the resulting expressions β€” a standard technique that appears in area and volume problems throughout the Extension 1 course.

Practice 20 questions
Practice questions

Every question with a fully worked solution.

Start practising
Watch 2 video(s)
  • Using trig identities for integration Watch
  • The Integration of sin^2 x and cos^2 x Watch
Create a free accountTrack your progress and save your work as you go.
Create free account

Theory

Squared trig functions cannot be integrated directly β€” rewrite with a double-angle identity first: sin2⁑nx=12(1βˆ’cos⁑2nx), cos2⁑nx=12(1+cos⁑2nx). This NSW Year 12 Mathematics Extension 1 topic (NESA outcome ME1-12-04) then integrates term by term.

Squared trig functions like sin2⁑nx and cos2⁑nx cannot be integrated directly β€” first rewrite them with a double-angle identity, then integrate term by term.

sin2⁑nx=12(1βˆ’cos⁑2nx) and cos2⁑nx=12(1+cos⁑2nx). These come from cos⁑2nx=1βˆ’2sin2⁑nx=2cos2⁑nxβˆ’1.

Once rewritten, each piece is a constant or a cosine, both easy to integrate.

NESA link. Part of the Year 12 Calculus topic, outcome ME1-12-04 ("selects and applies differentiation and integration techniques to solve problems") with MAO-WM-01. This is part of the Techniques of integration focus area.

sin squared x and its average one halfThe curve y equals sin squared x oscillating between zero and one about the dashed line y equals one half, matching the identity one half of one minus cos two x.xyy = Β½y = sinΒ²x = Β½(1 βˆ’ cos 2x)2ππ
sin2⁑x=12(1βˆ’cos⁑2x) oscillates about its average 12.
Area under cos squared xThe region under y equals cos squared x from zero to pi over two, whose area is pi over four.xyΟ€/2Ο€area = Ο€/4y = cosΒ²x
∫0Ο€/2cos2⁑xdx=Ο€4.
sin2⁑nx=12(1βˆ’cos⁑2nx),cos2⁑nx=12(1+cos⁑2nx).
sin^2(nx) = (1/2)(1 - cos 2nx); cos^2(nx) = (1/2)(1 + cos 2nx)

Integrating term by term:

∫sin2⁑nxdx=x2βˆ’14nsin⁑2nx+C,∫cos2⁑nxdx=x2+14nsin⁑2nx+C.
integral sin^2(nx) dx = x/2 - (1/(4n)) sin 2nx + C; integral cos^2(nx) dx = x/2 + (1/(4n)) sin 2nx + C

Watch the angle. The identity for sin2⁑nx uses cos⁑2nx (double the inside angle), and integrating cos⁑2nx brings a 12n.

How to integrate sin2⁑nx or cos2⁑nx

  1. Apply the identity: sin2⁑nx=12(1βˆ’cos⁑2nx) or cos2⁑nx=12(1+cos⁑2nx).
  2. Split the integral into the constant term and the cosine term.
  3. Integrate, remembering ∫cos⁑2nxdx=12nsin⁑2nx.
  4. For a definite integral, substitute the limits (the sin term often vanishes at nice angles).
Example 1 β€” Indefinite (cosine)
Find ∫cos2⁑4xdx.
Solution

cos2⁑4x=12(1+cos⁑8x).

∫cos2⁑4xdx=12(x+18sin⁑8x)+C
=x2+116sin⁑8x+C
integral cos^2(4x) dx = x/2 + (1/16) sin 8x + C

So the integral is x2+116sin⁑8x+C.

Example 2 β€” Definite (cosine)
Evaluate ∫0Ο€/2cos2⁑xdx.
Solution

cos2⁑x=12(1+cos⁑2x).

∫0Ο€/2cos2⁑xdx=12[x+12sin⁑2x]0Ο€/2
=12β‹…Ο€2=Ο€4
integral 0 to pi/2 cos^2 x dx = pi/4

Value: Ο€4.

Example 3 β€” Definite (sine)
Evaluate ∫0Ο€/6sin2⁑xdx.
Solution

sin2⁑x=12(1βˆ’cos⁑2x).

∫0Ο€/6sin2⁑xdx=12[xβˆ’12sin⁑2x]0Ο€/6
=Ο€12βˆ’38
integral 0 to pi/6 sin^2 x dx = pi/12 - sqrt(3)/8

Value: Ο€12βˆ’38.

Example 4 β€” A multiple angle
Evaluate ∫0Ο€/4sin2⁑2xdx.
Solution

sin2⁑2x=12(1βˆ’cos⁑4x).

∫0Ο€/4sin2⁑2xdx=12[xβˆ’14sin⁑4x]0Ο€/4
=12β‹…Ο€4=Ο€8
integral 0 to pi/4 sin^2(2x) dx = pi/8

Value: Ο€8.

Common pitfalls

Integrating directly. sin2 and cos2 must be rewritten with a double-angle identity first β€” you cannot integrate them as they stand.
The doubled angle. For sin2⁑nx the identity uses cos⁑2nx; integrating it brings a 12n.
Sign of the identity. sin2 uses 1βˆ’cos⁑2nx; cos2 uses 1+cos⁑2nx.
Dropping the half. Keep the leading 12 from the identity throughout.

Frequently asked questions

How do you integrate sin squared x?

Rewrite sin2⁑x=12(1βˆ’cos⁑2x), then integrate to get x2βˆ’14sin⁑2x+C.

How do you integrate cos squared x?

Rewrite cos2⁑x=12(1+cos⁑2x), giving x2+14sin⁑2x+C.

What identity do you use?

The double-angle identities sin2⁑nx=12(1βˆ’cos⁑2nx) and cos2⁑nx=12(1+cos⁑2nx).

Why can't you integrate sin squared directly?

There is no elementary antiderivative of sin2 in that form; the identity turns it into a constant plus a cosine, which do integrate.

What changes for sin squared of nx?

The identity uses cos⁑2nx, and integrating that term gives 12nsin⁑2nx.