Во втором можно ещё проще: cos^3 x= cos^2 x * cos x; d(sin x) = cos x dx; cos^2 x + sin^2 x=1.