Anharmonicity is departure from the motion of a harmonic oscillator, often caused by nonquadratic terms in a potential energy. It can make the oscillation frequency depend on amplitude and generate higher harmonics. A quartic oscillator has one such anharmonic potential energy.