Exercise
$\int_0^{\pi}\left(1+cosx\right)^2dx$
Step-by-step Solution
Learn how to solve problems step by step online. Integrate the function (1+cos(x))^2 from 0 to pi. Rewrite the integrand \left(1+\cos\left(x\right)\right)^2 in expanded form. Expand the integral \int_{0}^{\pi }\left(1+2\cos\left(x\right)+\cos\left(x\right)^{2}\right)dx into 3 integrals using the sum rule for integrals, to then solve each integral separately. The integral \int_{0}^{\pi }1dx results in: \pi . The integral \int_{0}^{\pi }2\cos\left(x\right)dx results in: 0.
Integrate the function (1+cos(x))^2 from 0 to pi
Final answer to the exercise
$\frac{33.2813099}{7.0625133}+\frac{1}{4}\sin\left(2\pi \right)$