The Integration By Parts Rule says that
So if we first simplify it a little by substituting cosx for z then the expression to be integrated becomes:
-∫(1+√ z)^2dz = -∫udv=-[uv-∫vdu] (When we have integrated this expression then we can replace z with cosx once again)
Now we apply Integration By Parts to this version taking u to be (1+√z)^2 and dv to be dz. We work out from this that du/dz= 2(1+√z)(1/√z)(1/2) which leads to du=(1/√2+1)dz.
And also much more straightforwardly v=z
So plugging both of these into our Integration By Parts formula gives:
-∫(1+√ z)^2dz= -[((1+√z)^2)(z)-∫(z)(1/√z+1)dz]
= -[z(1+√z)^2-∫(√z+z)dz]
=-[z(1+√z)^2-(2/3*z^(3/2)+(1/2z^2]
=-z(1+√z)^2+2/3z^(3/2)+1/2z^2
Multiplying out the square of the expression in brackets on the left:
= -z(1+2√z+z)+2/3z^(3/2)+1/2z^2
=-z-2z√z-z^2+2/3z^3/2+1/2z^2
=-z-2z^3/2-z^2+2/3z^3/2+1/2z^2
Since we've eliminated all of the integrals we can now substitute back
z for cosx which gives our final answer:
-cosx -2(cosx)^3/2-(cosx)^2+2/3(cosx)^3/2+1/2(cosx)^2
So I haven't yet figured out how to present maths expressions in a clearer way on here! Will look into it now.