Direction of magnetic field produced by induced current
The direction of the field is such that it opposes the change that induced the current, which is either the movement of the conductor or a change to the field
Why the current flowing through the primary coil of a transformer must be alternating
For current to be induced in the secondary coil, the magnetic field in the core must be continuously changing, and for the magnetic field to be changing, the current in the primary coil must be alternating