Why can't this be computed like

If I take

and solve, the solution is correct but it doesn't work with . How come?

Also, when I approach

and

Now, I am wary of saying I have cosine and sine squared since I need

.

How can I put those two equations together in order to yield the intended results?