I asked ChatGPT to integrate:
∫cos2xsin3xdx
And it gave me:
∫cos2xsin3xdx=ln∣secx+tanx∣−sinx+C
But when I differentiate this, I dont get the original integrand! I think the AI messed up.
Can a human solve this step by step so I can see the correct approach?
I tried rewriting sin3x=sinx(1−cos2x) so:
∫cos2xsinx(1−cos2x)dx=∫cos2xsinxdx−∫sinxdx
Then u=cosx, du=−sinxdx:
−∫u2du+cosx=u1+cosx+C=secx+cosx+C
But this doesnt match the AIs answer either. Which one is correct?