So, resonance is created in sound waves when a body is made to vibrate by an external force at its natural frequency, the result is a build-up amplitude and higher intensity of sound. Similarly can we create resonance in electromagnetic waves, to build up their intensity by applying external force.
[Physics] Can there be resonance in electromagnetic waves
electromagnetic-radiationlaseropticsresonance
Related Solutions
Re question 1: when you learn this stuff in school you usually simplify the system by modelling it as a simple harmonic oscillator so the amplitude of the system will be given by some equation like:
$$ A(t) = A_0 e^{i\omega_0 t} $$
where $\omega_0$ is the natural frequency of oscillation. Typically you study what happens if you apply a force that also varies sinusoidally with time so:
$$ F(t) = F_0 e^{i\omega t} $$
where the frequency of the applied force, $\omega$, is not necessarily the same as the natural frequency of the oscillator, $\omega_0$. This is what your teacher means by saying that the force has a frequency - they mean the frequency $\omega$. In your teacher's example of a swing the swing has some natural frequency. If you are applying a force periodically, i.e. pushing on the swing in a repetitive way, then the force you apply also varies with time (though it is more like a square wave than a sine wave). The amplitude of the swing is greatest when the frequency with which you push the swing matches the natural frequency of the swing.
Re question 2: when you start learning this stuff you typically start with an undamped simple harmonic oscillator, i.e. the oscillator doesn't lose any energy. If you solve the equations of motion you find that the amplitude goes to infinity when the frequency of the driving force $\omega$ is equal to the natural frequency $\omega_0$. This is because you're putting energy in but the oscillator doesn't lose any energy so the energy just keeps growing.
A real oscillator like a swing loses energy through friction, and we call it a damped harmonic oscillator. The rate at which the oscillator loses energy is related to its amplitude, so as you push your system (the swing in this case) the amplitude increases until the rate of energy loss matches the rate you're putting energy in. So the harder you push your system the more the swing will move. In principle there is no maximum amplitude, though in real life there obviously is since at some point the swing will go over the top and start revolving instead of swinging to and fro. A swing isn't a simple harmonic oscillator! It's only approximately simple harmonic for small swing amplitudes.
Re question 3: Most objects will have a range of resonant frequencies called normal modes. However there are usually many normal modes and the frequencies of these modes are related to the object's shape in a complicated way. The Wikipedia article gives some examples of normal modes, or do a YouTube search for "normal modes" to find loads of videos on the subject - some really impressive!
Here's a simpler answer.
Resonance is really all about the capture of energy into a system and its cyclic flow between potential and kinetic states. In mechanical systems we call these states potential energy and kinetic energy, but in electrical systems, as a another example, between magnetic and electrical fields. It's the rate of this cycling back and forth that results in the natural frequency.
For example the 'singing' aluminum rods that are often used to demonstrate standing wave resonance in the classroom capture energy from your fingers as they rub over the outside of the rod. The energy excites the atomic lattice causing the lattice to expand,relax, and compress at the rate of the natural frequency - the speed at which energy moves from a fully potential state: when fully stretched or compressed and at the lowest velocity to a fully kinetic state - halfway between stretching and compressing when the lattice is at maximum velocity. If the energy flow has only a small amount of losses - for example heat generated in the rod, then we say there is a low impedance to energy flow, and so the rod will have a tendency to suck up more energy than it loses and maintain the state of resonance.
The rate of energy flow is dependent on the material properties, but also the particular geometry of object. If the rate of energy loss from the object is greater than the rate of energy entering the object, the cycling will be 'damped' and therefore lack resonance.
That's resonance in a nutshell.
Best Answer
Electromagnetic waves can be brought to resonate in a cavity (in both optical and Microwave/RF regimes) much in the same way sound waves resonate in an acoustic cavity. Subject to boundary conditions the wave (electromagnetic) has to end at the cavity wall and hence the cavity can only support integer number wavelengths of the frequency at which the EM wave oscillates. For example, a 1 dimensional cavity supports a mode described by the following expression: $$E(x) = E_0 sin(\frac{n \pi x}{L})$$
Image source: http://pcwww.liv.ac.uk/~awolski/Teaching/Liverpool/PHYS370/AdvancedElectromagnetism-Part5.pdf
You can see that only a half integer number of wavelengths fit in between the cavity walls in much the same way an acoustic cavity would have the wave terminate on either side if it were completely closed on both ends. The EM wave can be externally driven in a multitude of ways but if the cavity is lossless then the wave will oscillate to infinity without needing an external driving force. This is of course the same in acoustics. By continuously driving the system by say an external source at the resonant frequency the amplitudes of the cavity wave and the driving wave will add constructively and result in an increase in intensity withing the cavity walls.