Consider an ideal solenoid (no resistance, no leakage reactance etc.) connected across an AC supply. The back EMF induced in it will be exactly equal and in opposite direction to the source voltage (which means that when a certain terminal of the AC supply is positive, the side of solenoid connected with it would also be positive, and vice versa). My question is, how will current flow at all when the EMFs of AC source and solenoid are cancelling each other out? It's like having having a circuit with only two batteries and terminals of similar polarities shorted with each other. I've read quite a few explanations on the internet but have yet to fully understand what's happening here.