Nodal analysis, can't understand detail
The + and - on the voltage source's symbol are the important factors here. They means that the source is creating a voltage difference such that \$V_1\$ is at a higher voltage than \$V_2\$. Since it's higher by \$10\angle{45°}\$, you have the relationship \$V_1=V_2+10\angle{45°}\$