Looks good; remember that you've not finished, though! When you substitute, you have to remember to revert back to the form of the question. The original problem is in terms of x, not u, so your answer needs to be in terms of x.
Anyway, here's how I would solve this:
Are you aware that ? This is derived from using the chain rule in reverse.
If you're not, then stick with substitution for now, but this is a lovely place to apply this rule because:
So you literally just have to substitute into the formula with no difficult work required at all.
Hmm for some reason my assignment shows the solution as wrong.
Maybe because it's (sin(x))^2?
I thought that would be the same thing as sin^2(x) however so I'm not sure why its complaining.
Edit: The integral is part of a bigger question as shown above. I'm supposed to solve that differential equation. The left side is already done for me and i had to do the right. I'm pretty sure thats how I had to solve it?