Here is a ball moving back and forth with simple harmonic
motion (SHM):

Its position x as a function of time t is:
where A is the amplitude of motion : the distance from the centre
of motion to either extreme
T is the period of motion: the time for one complete cycle of
the motion. 