I've recently learned about PSK and QAM. I first came across it in this youtube video (timestamped), and my understanding for how it works has remained the same as what is shown in that video. (I also understand that QAM essentially "adds" amplitude modulation to PSK).
To me this all makes sense for BPSK (binary psk, only 2 states), you just do a "vertical flip" of the carrier frequency:
What I can't quite grasp however is "higher-order" PSK, because then from the various states, you can get "jumps" between them, like this:
Having explored a few areas of electronics now, the idea that a "square wave is composed by many sine waves (harmonics)" has been firmly impressed upon me:
So it would follow that those "jumps" in the modulated carrier frequency between phase changes would generate many harmonics.
This seems like it would be very undesireable because it would "polute" above parts of the spectrum, which may even be illegal.
So does PSK work differently in practice than it does in theory? Is there perhaps some mitigating factor to this that I'm not seeing? Or did I just get it wrong from the start? Thank you.