How do I integrate terms with sin^2(x) and cos^2(x) in them? For example integrate (1+sin(x))^2 with respect to x

As you will be aware, it is not easy to directly integrate terms involving sin^2(x) and cos^2(x), so we use a substitution to turn them into something which we can integrate.

From the double angle formula for cosine we have:



This substitution removes the terms of sin^2(x) and cos^2(x) which we can't integrate and replaces them with terms involving cos(2x) which integrates to sin(2x)/2, which we know from integration by inspection.

Now consider the example above, integrate (1+sin(x))^2:

To start this question we need to expand the brackets so that we can integrate each term individually. (1+sin(x))^2 expands to 1+2sin(x)+sin^2(x).

Now we have three separate terms which we can integrate:

1 integrates to x

2sin(x) integrates to -2cos(x)

Now substitute sin^2(x) for 1/2-cos(2x)/2. This integrates to x/2-sin(2x)/4

To get our final answer we now add all of the terms we've just integrated together. Remember to include the constant of integration c.


this simplifies to:


This is the final answer for this question.


Michael H. GCSE Maths tutor, A Level Maths tutor, GCSE Physics tutor,...

2 years ago

Answered by Michael, an A Level Maths tutor with MyTutor

Still stuck? Get one-to-one help from a personally interviewed subject specialist


£20 /hr

Iebad A.

Degree: Aerospace Engineering (Masters) - Sheffield University

Subjects offered:Maths, Italian


“About me: Hello, my name is Iebad and I am an aerospace engineering student at The University of Sheffield. As an engineer, maths is the key to unlock all the solutions to our problems in this field. Since the early years I had a broad...”

£22 /hr

Laura L.

Degree: Chemistry (MCHEM) (Masters) - Warwick University

Subjects offered:Maths, Chemistry+ 1 more


“Hi there! I'm a third-year Chemistry student, I tutor maths from 11+ to A level as well as GCSE Science, A level Biology, and Chemistry”

£20 /hr

Elliot D.

Degree: Mathematics (Bachelors) - St. Andrews University

Subjects offered:Maths, Physics


“Hi, I'm a 2nd year Computer Science student at St Andrews University. I mainly teach Maths at both GCSE and A-level.”

About the author

Michael H.

Currently unavailable: for regular students

Degree: Physics (Masters) - Durham University

Subjects offered:Maths, Physics


“Hello, my name's Michael, and I'm a first year physicist at Durham. I've always been passionate about science and maths, leading to my degree choice, and I'd like to share my experience in achieving top grades in these subjects.”

You may also like...

Posts by Michael

How do I integrate terms with sin^2(x) and cos^2(x) in them? For example integrate (1+sin(x))^2 with respect to x

Show that the orbital period of a satellite is given by T^2=(4pi^2r^3)/(GM) where r is the orbital radius, G is the gravitational constant and M is the mass of the Earth. Then find the orbital radius of a geostationary satellite.

Other A Level Maths questions

Integrate the function : F'(x)=3x^2+4x-5

What is the sum of the first 10 terms of the geometric series 32 + 16 + 8 + ... ?

Find dy/dx of 5x^2 + 2y^3 +8 =17.

How do I differentiate y = ln(sin(3x))?

View A Level Maths tutors

We use cookies to improve your site experience. By continuing to use this website, we'll assume that you're OK with this. Dismiss