A simple harmonic oscillator (SHO) is defined by the condition that the restoring force acting on the oscillating body is directly proportional to its displacement from the equilibrium (mean) position and is always directed towards the equilibrium position. This is mathematically represented as F = - kx, where F is the force, x is the displacement, and k is the force constant. The negative sign indicates the force is in the opposite direction to the displacement.