he had (1+cosx/sinx) he multiplied the 1 by sinx to have common denominator sinx
so it became (sinx+cosx)/sinx and this cancelled out with the 1/sinx
leaving you with sinx+cosx
lol sorry if my explanation was not understandable i couldnt be bothered working with Latex
:)