A question says to find the derivative of

The answer I got was

My friend got

The online calculators all agree with me, but he used the quotient rule (so did I), but I pulled e^3 out of it and used 1/sinx+1 to perform the quotient rule.

Which is the correct method?