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

Samuel L.

Degree: Economics and Mathematics (Bachelors) - Durham University

Subjects offered: Maths, Economics


“Hi, I’m studying Maths and Economics at Durham University. Whilst at school I regularly tutored younger students in both subjects and spent a year coaching a football team. I believe this gave me many good qualities for teaching such a...”

MyTutor guarantee

£22 /hr

Will W.

Degree: Mathematics (Bachelors) - Durham University

Subjects offered: Maths, Physics+ 2 more

Further Mathematics

“About Me: I am a Maths and Physics student at Durham University, who has always enjoyed understanding complex concepts in these subjects. I also have a passion for sharing this enjoyment. At my previous school, I ran a Maths Club. Thi...”

£20 /hr

Chris B.

Degree: Economics (Bachelors) - Durham University

Subjects offered: Maths, Further Mathematics + 2 more

Further Mathematics
-Personal Statements-

“About me: I am currently in my first year of studying Economics at Durham University. I have been tutoring maths for about two years now, so have had plenty of experience passing on my knowledge and interest in my subjects to younger ...”

MyTutor guarantee

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

What is the equation of the curve that has gradient dy/dx=(4x-5) and passes through the point (3,7)?

find the definite integral between limits 1 and 2 of (4x^3+1)/(x^4+x) with respect to x

What is 'Chain Rule' and why is it useful?

Some videos I've made

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