A student solved the equation sin2x/cosx=2, 0(greater than or equal)x(greater than or equal)pi, and found an answer of pi/2. Describe the student's error.

Please show all steps.