In quantum mechanics, energy is defined in terms of the energy operator as a time derivative of the wave function. The Schrodinger equation equates the energy operator to the full energy of a particle or a system. Its results can be considered as a definition of measurement of energy in quantum mechanics. The Schrodinger equation describes the space- and time-dependence of a slowly changing (non-relativistic) wave function of quantum systems. The solution of this equation for a bound system is discrete (a set of permitted states, each characterized by an energy level) which results in the concept of quanta. In the solution of the Schrodinger equation for any oscillator (vibrator) and for electromagnetic waves in a vacuum, the resulting energy states are related to the frequency by Planck's relation: (where is Planck's constant and the frequency). In the case of an electromagnetic wave these energy states are called quanta of light or photons.
Try to answer this question if possible (otherwise reply "unanswerable"): What describes the space-and-time dependence of a slowly changing wave function of quantum systems?
The Schrodinger equation