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


£24 /hr

Aran D.

Degree: BSc Mathematics (Bachelors) - York University

Subjects offered: Maths, German+ 1 more

Further Mathematics

“I am a friendly and professional software engineer and maths graduate with first class honours. I have experience tutoring GCSE, A-level and undergraduate level maths, as well as key stage 3 Spanish. I also have four years' experience ...”

MyTutor guarantee

£20 /hr

Jamie L.

Degree: Physics (Masters) - Exeter University

Subjects offered: Maths, Physics+ 1 more

Further Mathematics

“Who am I? I am a student at Exeter University, currently studying for a Masters in physics. I began tutoring on a voluntary basis in sixth form, and in time have progressed to being a professional tutor. I have taught GCSEs and A leve...”

£20 /hr

Mrinank S.

Degree: Engineering (Masters) - Cambridge University

Subjects offered: Maths, Physics+ 5 more

Further Mathematics
-Oxbridge Preparation-

“Hey there! I'm a second year undergraduate student at the University of Cambridge, studying Engineering. I am really passionate about using science and maths to make the world around us a better place.  I am a patient and friendly tu...”

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

How do you find the equation of a line at a given point that is tangent to a circle?

Why do I have to add +c when I integrate?

Sketch the curve y = (x^2 - 9)(x - 2)

How do you find the area between two lines?

View A Level Maths tutors


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