I'm doing an assignment on circuit analysis with phasors and it's brought up a point of confusion for me on how Phasors convert to rectangular form.
My textbook defines phasors as $$v(t) = V_M\text{cos}(\omega t + \phi) = \text{Re}[V_Me^{j(\omega t + \phi)} ]$$
and says that they can be written in phasor notation as $$ V_M\angle \phi $$
That makes plenty of sense to me. However, in my homework, when I have to add phasors and convert them to rectangular, the solution has them being represented as
$$ V_M\angle \phi = V_M\text{cos}(\phi) + jV_M\text{sin}(\phi) $$
This difference seems contradictory to me. The book seems to imply that phasors are only expressing the real component of the function, but when it comes to problems, phasors are now both the real and imaginary components? I know I have some conceptual misunderstanding somewhere, but I just can't identify it.