you get (1-2sinx + sin^2x)/(cos^2x) which is sec^2x-2secxsinx/cosx+(1-cos^2x)/cos^2x which immediately leads to the solution
You can ask a new question or answer this question.