Why does a torch cell have a fixed plus end when UK mains keeps swapping polarity?
You know which end of a torch cell is plus. It stays the plus end while the torch is on. So what would you see if you watched a graph of the voltage from a UK wall socket instead?
Look at the cell and the two resistors. Each resistor has its own branch, and both branches connect to the same two cell terminals. That means the potential difference across each resistor is the same. Voltage is another name for potential difference.
Watch the trace build from left to right. The reading stays at positive one point five volts, above zero. The same terminal stays positive relative to the other, so the polarity is fixed. This is a direct potential difference.
You keep the meter leads on the same cell terminals, and the first reading is positive one point five volts. What will the meter show a moment later if the cell voltage stays steady? Pick one reading.
Follow this trace to the first peak, then down through zero to the trough, and back up to the next peak. When the sign changes, the terminals swap which one is positive relative to the other. That repeated reversal makes this an alternating potential difference.
From the peak at five milliseconds to the next at twenty-five is one complete cycle. Subtract to get twenty milliseconds, or zero point zero two seconds. Divide one by the time per cycle to get fifty hertz. That's fifty cycles per second, the same frequency as UK mains.
On another trace, a peak occurs at ten milliseconds and the very next peak occurs at fifty milliseconds. Work out the time for one complete cycle, convert it to seconds, then pick the frequency.
Brown is live. Its potential difference from earth alternates, with a quoted value of about two hundred and thirty volts. It carries the supply. Blue is neutral, close to zero volts, and completes the circuit. The green and yellow earth wire is at zero volts and provides a path for fault current.
Even with the appliance off, its live wire can still be at mains voltage. Touch it and current can flow through you to earth, giving you a shock. If live touches an earthed case, the low-resistance path allows a large current. That can cause a fire unless a fuse or breaker disconnects the supply.
If asked to describe the difference, say direct potential difference has fixed polarity and alternating potential difference repeatedly reverses polarity. A changing size alone is insufficient. If asked to state the mains values, give fifty hertz and about two hundred and thirty volts. To explain a shock, trace the current through the body to earth.