Quantum mechanics/Operators and measurements
Subject classification: this is a chemistry resource. 
Type classification: this is a lesson resource. 
Any observable (quantity that can be measured) is associated in quantum mechanics to a mathematical operator. You have seen two examples so far:
(kinetic energy in one dimension)
(total energy in one dimension)
To complete the description of the postulates of quantum mechanics, we need to specify:
 how to build the operators corresponding to any observable;
 what the result is of any measure in quantum mechanics.
How to build all operators[edit]
All quantities that can be measured (position, velocity, kinetic energy, total energy, angular momentum, etc.) can be written as the combination of the position x, y, z and the momentum p_{x}, p_{y}, p_{z} of all particles of a system (but we consider only one particle for simplicity). If we indicate with and the quantum mechanical operators corresponding to the classical quantities position and linear momentum along x, one of the postulates of quantum mechanics states that
(Eq. 1)
One way to satisfy the equation above (see Exercises) is to define
and (Eq. 2)
And analogous relations are valid for the other coordinates.
The operator of the position x, y, z is just the coordinate while the operator for the momentum is the partial derivatives along the component of the momentum multiplied by iħ. This is mysterious but the bottom line is that to build the quantum mechanical operator for a given classical quantity you have to leave unchanged all expressions containing x, y, z and substitute the classical momenta p_{x}, p_{y}, p_{z} with respectively.
Examples
The kinetic energy for a particle moving only along the x direction is given classically by . The quantum version is simply obtained as:
The quantum version of the potential energy of a harmonic oscillator is:
The total energy operator (Hamiltonian) for the harmonic oscillator is:
Eigenvalues and eigenfunctions of an operator[edit]
Given an operator , a function φ such that
(Eq. 3)
is called an eigenfunction of the operator corresponding to the eigenvalue λ. An equation like 3 is called an eigenvalue equation and usually admits a discrete set of eigenvalues.
Measure of a quantity[edit]
So far we have established that for any classical quantity A there is an associated quantum mechanical operator . Another postulate of quantum mechanics states that when measuring A, the only possible results of the measure are eigenvalues of the operator . If the system is in a state that is one of the eigenfunctions of corresponding to the eigenvalue λ, the result of the measure will be λ. If the system is prepared in a generic state ψ, the average value of repeated measures of A of a system prepared in the state ψ is given by:
(Eq. 4)
This is called the expectation value of A and it is one of the fundamental formulas to remember.
For example, if you want to measure the total energy of a system, the corresponding operator is the Hamiltonian Ĥ and the result of the measure will be one of the eigenvalues of the Hamiltonian. If the system was in an eigenstate of Ĥ with eigenvalue E you can repeat the measure and you will always get E. If the system is not in an eigenstate of Ĥ the result each time will be one of the eigenvalues of E and the average result will be (Eq. 5)
Example: expectation values of the particle in the box[edit]
We will calculate now the expectation value of the position, the linear momentum, the kinetic energy and the total energy for a particle in a box in its ground state, i.e. with .
The denominator of Equation 4 is always 1 since the wavefunction is normalized, i.e.
The expectation value of the position is:
The expectation value of the momentum is:
The expectation value of the kinetic energy is:
A position "on average" is in the middle of the box (L/2). It has equal probability of travelling towards the left or right, so the average momentum and velocity must be zero. The average kinetic energy must be equal to the total energy of the ground state of the particle in the box, as there is no other energy component.
Exercise

Next: Lesson 9  Measuring two quantities at the same time: the Heisenberg Principle