In the first line, is substituted for in the numerator and is substituted for in the denominator.
Those are the errors because .