How Do You Apply Initial Conditions to Simple Harmonic Motion?
At a glance
- 1. Write the equation
For ideal simple harmonic motion, use acceleration equal to minus omega squared times displacement.
- 2. Use the general solution
Express displacement as a cosine term plus a sine term, with two constants to determine.
- 3. Apply both conditions
Substitute the initial position and velocity to find the two constants.
- 4. Check the result
Differentiate the displacement and verify that it gives the specified initial velocity.
To determine a simple harmonic motion trajectory, you need the oscillator’s angular frequency and its initial position and velocity. The initial position sets where the motion starts; the initial velocity sets which way it is moving and how much of the oscillation is in the sine component.
The most direct method is to use a sine-and-cosine form of the solution. This avoids ambiguity about the phase angle and works for any initial position and velocity.
Start from the equation of motion
For an ideal oscillator, displacement from equilibrium satisfies
where is the angular frequency, measured in radians per unit time. For a mass attached to a spring of stiffness , .
A general solution is
where and are constants. There are two constants because the equation is second order, so you need two independent initial conditions to specify one particular motion.
Apply the initial conditions
Suppose the initial conditions are given at :
First evaluate the displacement at zero. Since and ,
Now differentiate to find velocity:
At , this becomes , so . Therefore,
This form is often the easiest one to use: insert the measured or stated initial position and velocity directly.
Worked example
A particle oscillates with angular frequency . At , it is to the right of equilibrium and moving left at . Thus and . Substituting gives
The negative sine coefficient represents the initial motion to the left. Check the initial values:
The same trajectory can be written as a single cosine, . Comparing coefficients, or using the initial conditions, gives
For this cosine-plus-phase convention, . Here , so an equivalent expression is . The function uses both inputs to select the correct quadrant; this matters when the initial position or velocity is negative.
If the initial time is not zero
If the conditions are specified at time , use elapsed time :
where and . This ensures that substituting returns the stated position and velocity.
Common mistakes
- Using position alone: Knowing does not usually fix the motion. At the same position, the oscillator could be moving in either direction or momentarily at rest. You also need .
- Forgetting the factor of : The sine coefficient is , not . This is necessary because differentiating a sine term introduces a factor of .
- Mixing phase conventions: For , the initial velocity is . Changing the plus sign in the phase to a minus sign changes the phase relationship.
- Using frequency in hertz as angular frequency: If a frequency is given in cycles per second, convert it using before using these formulas.
- Confusing displacement with absolute position: In the oscillator equation, is measured from the equilibrium position. If the equilibrium is at a nonzero coordinate, shift coordinates before applying the formula.
The result assumes ideal, undamped simple harmonic motion with constant angular frequency. Damping, a driving force, or a nonlinear restoring force changes the governing equation and generally changes the solution.
References
- Fundamentals of Physics, Halliday, Resnick, and Walker
Spotted an error? Send a correction. Read how we write and check articles in our editorial policy.