Is this answer wrong:
My HW is not accepting it..
I don't see anything wrong with it. Once you do the u-substitution to obtain it's obviously just a matter of integrating which can be done using the reduction formula for powers of sine. The integral calculator used the correct formula. Perhaps you forgot to include the constant of integration?