<< what they said, that equality is incorrect as revealed by a simple cross multiplication >>
You can't solve these trig identities with cross multiplication. You have to manipulate the left side of the equality to get an expression equal to the right side or vice versa.
But you can check that the premise that you are working on is...
<< ...you have to restrict theta 0 < theta < pi/2 or the first quadrant >>
While I agree that there needs to be a restriction on theta, it seems like AlphaWolf829 just needs the method for simplifying the equality so the restriction doesn't really come into play.
the equality does not work at all, a quick and dirty maple graph proved that
-Ice
*edit* fixed quoting, I can post the graph if someone requests it