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


Jonathan B. A Level Chemistry tutor, GCSE Chemistry tutor, A Level Ma...
View profile
£20 /hr

Jonathan B.

Degree: Chemistry (Masters) - Oxford, Lincoln College University

Subjects offered: Maths, Physics+ 1 more


“Hi, my name is Jonny and I have just finished my first year studying Chemistry at Oxford University, taking modules inChemistry, Physics and Maths. I have experience tutoring secondary school maths and science students and I have a pa...”

PremiumRama K. Uni Admissions Test .BMAT (BioMedical Admissions) tutor, A Le...
View profile
£24 /hr

Rama K.

Degree: MBChB (Bachelors) - Birmingham University

Subjects offered: Maths, Physics+ 5 more

.BMAT (BioMedical Admissions)
-Personal Statements-

“I am a passionate medical student who would love to teach the sciences and maths to any willing student! I would also love to help prospective medical students achieve their dreams!”

Kyle B. A Level Maths tutor, GCSE Maths tutor
View profile
£20 /hr

Kyle B.

Degree: Economics & Mathematics (Bachelors) - York University

Subjects offered: Maths


“About Me Hi! I'm Kyle, and I've just completed my degree in Maths & Economics at the University of York. I have always loved learning about and teaching maths, and have a broad understanding of the topics covered at GCSE and A Level. ...”

MyTutor guarantee

About the author

Michael H. GCSE Maths tutor, A Level Maths tutor, GCSE Physics tutor,...
View profile
£20 /hr

Michael H.

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

Find dy/dx for y=5x^3-2x^2+7x-15

How do I express y=acosx+bsinx in the form y=Rcos(x-c)?

How do you show that two lines do, or do not intersect?

How do I evaluate composite functions?

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