In electrodynamic suspension (EDS), both the guideway and the train exert a magnetic field, and the train is levitated by the repulsive and attractive force between these magnetic fields.  In some configurations, the train can be levitated only by repulsive force. In the early stages of maglev development at the Miyazaki test track, a purely repulsive system was used instead of the later repulsive and attractive EDS system.  The magnetic field is produced either by superconducting magnets (as in JR–Maglev) or by an array of permanent magnets (as in Inductrack ). The repulsive and attractive force in the track is created by an induced magnetic field in wires or other conducting strips in the track. A major advantage of EDS maglev systems is that they are dynamically stable – changes in distance between the track and the magnets creates strong forces to return the system to its original position.  In addition, the attractive force varies in the opposite manner, providing the same adjustment effects. No active feedback control is needed.
If you've ever played with magnets, you know that opposite poles attract and like poles repel each other. This is the basic principle behind electromagnetic propulsion. Electromagnets are similar to other magnets in that they attract metal objects, but the magnetic pull is temporary. As you can read about in How Electromagnets Work , you can easily create a small electromagnet yourself by connecting the ends of a copper wire to the positive and negative ends of an AA, C or D-cell battery . This creates a small magnetic field. If you disconnect either end of the wire from the battery, the magnetic field is taken away.