Correct SHM Equation: Does € Matter?

Click For Summary

Discussion Overview

The discussion centers around the equations of motion for simple harmonic motion (SHM), specifically the forms involving sine and cosine functions. Participants explore whether the choice between sine and cosine is a matter of convention or if it is influenced by the phase constant, denoted as €.

Discussion Character

  • Debate/contested
  • Technical explanation
  • Mathematical reasoning

Main Points Raised

  • Some participants assert that both forms of the SHM equations (using sine or cosine) are valid and depend on the phase constant €.
  • One participant emphasizes that the phase angle makes the solution general to all SHM, suggesting that the choice of sine or cosine relates to initial conditions.
  • Another participant points out that sine and cosine are related by a phase shift of π/2, indicating that both functions can represent the same motion under different conditions.
  • Several participants discuss the mathematical equivalence of the sine and cosine forms, referencing trigonometric identities and transformations.
  • There are mentions of the importance of correctly applying the arctan formula when determining phase angles, with caution advised regarding the intervals used.
  • One participant notes that the phase constant allows for adjustments in the initial position and velocity of the oscillator, affecting the representation of the motion.

Areas of Agreement / Disagreement

Participants generally agree that both sine and cosine forms are valid representations of SHM, but they disagree on whether one is more correct than the other. The discussion remains unresolved regarding the implications of the phase constant and the conventions used in different contexts.

Contextual Notes

Limitations include the dependence on initial conditions and the specific definitions of the phase constant. The discussion also highlights unresolved mathematical steps related to the use of trigonometric identities and the application of the arctan function.

Curiosity_0
Messages
6
Reaction score
2
A textbook I am using gives the basic eqn of motion of shm as follows :
X = Asin(wt + €)
V =Awcos(wt+€)
But other textbooks and online sources are interchanging sin and cos in above equations, so which is the correct one? Or does it depend on the phase constant €?
 
Physics news on Phys.org
Curiosity_0 said:
A textbook I am using gives the basic eqn of motion of shm as follows :
X = Asin(wt + €)
V =Awcos(wt+€)
But other textbooks and online sources are interchanging sin and cos in above equations, so which is the correct one? Or does it depend on the phase constant €?
To paraphrase Gertrude Stein: A sine function is a sine function is a sine function. The best way to write the SHO solution is to let ##X(t) = A ~sin( \omega t + \phi )## where the phase angle ## \phi ## is left to the boundary conditions. Yes, the phase angle makes the solution general to all SHO. Applications like a spring or pendulum tend to use cosine because we usually start the motion (t = 0) at an extreme extension and cos(0) = 1 is the maximum of the cosine function.

-Dan
 
  • Like
Likes   Reactions: Ibix
Curiosity_0 said:
which is the correct one
There is no correct or incorrect one. It is simply a matter of convention.
 
  • Like
Likes   Reactions: topsquark and malawi_glenn
Sin and cos are related by a pi/2 phase. Both works
 
  • Like
Likes   Reactions: topsquark
Curiosity_0 said:
A textbook I am using gives the basic eqn of motion of shm as follows :
X = Asin(wt + €)
V =Awcos(wt+€)
But other textbooks and online sources are interchanging sin and cos in above equations, so which is the correct one? Or does it depend on the phase constant €?
Note that $$\cos(wt + \phi) = \sin(wt + \phi + \frac \pi 2)$$In other words, every sine function is also a cosine function with a different phase and vice versa.
 
  • Like
Likes   Reactions: vanhees71, topsquark and Ibix
Also note that, using a standard trig identity, $$\begin{align} & \cancel{A\cos(\omega t+\delta)=A\cos\delta \sin\omega t+A\sin\delta \cos\omega t} \nonumber \\ & A\sin(\omega t+\delta)=A\cos\delta \sin\omega t+A\sin\delta \cos\omega t \nonumber \end{align}$$With the definitions $$C_1\equiv A\cos\delta~;~~C_2\equiv A\sin\delta$$you have $$A\cos(\omega t+\delta)=C_1\sin\omega t + C_2\cos\omega t$$so the expressions are equivalent. Note that the amplitude and constant phase can be found from the definitions, $$A=\sqrt{C_1^2+C_2^2}~;~~\delta = \arctan\left(\frac{C_2}{C_1}\right)$$so you can go back and forth from one convention to the other.

On edit: Fixed wrong trig function on the LHS of the identity. Also, the phase has a sign ambiguity as noted in posts #7, #9 and #10.
 
Last edited:
  • Like
Likes   Reactions: Dale and topsquark
It's more safe to use
$$\delta=\arccos \left (\frac{C_1}{\sqrt{C_1^2+C_2^2}} \right ) \mathrm{sign} \, C_2.$$
 
  • Like
Likes   Reactions: kuruman and topsquark
Curiosity_0 said:
Or does it depend on the phase constant €?
It does indeed. You can turn sine into cosine or vice-versa by changing the value of the phase constant.

Physically, this is equivalent to starting the oscillator in different positions and different velocities. In other words, when ##t=0## you can make ##x## have any value (in the closed interval ##[-A, A]##) by adjusting the value of the phase constant.
 
  • Like
Likes   Reactions: topsquark
kuruman said:
$$A\cos(\omega t+\delta)=C_1\sin\omega t + C_2\cos\omega t$$
I use:
$$A\sin x + B\cos x = sgn(A)\sqrt{A^2+B^2} \sin(x + \delta) \ \ \ (\delta = \tan^{-1}\big (\frac B A \big))$$And
$$A\sin x + B\cos x = sgn(B)\sqrt{A^2+B^2} \cos(x - \delta) \ \ \ (\delta = \tan^{-1}\big (\frac A B\big))$$
 
  • Like
Likes   Reactions: topsquark
  • #10
Also here, be careful with the use of the arctan-formula. You have to make sure to get the phase right. It's much easier to use the formula, adapted to your other conventions, given in #7. For this reason, when programming for that purpose you rather use the function atan2, rather than atan!
 
  • Like
Likes   Reactions: malawi_glenn and topsquark
  • #12
Sigh. I just want to say that you need to be careful with the arctan formula. The result is always a value in the interval ##(-\pi/2,\pi/2)##. What you obviously need to get a unique map between the Cartesian components of an ##\mathbb{R}^2## vector and its polar coordinates is a value within an interval of the length ##2 \pi##. Choosing the interval ##(-\pi,\pi]##, you get ##(x,y)=r(\cos \varphi,\sin \varphi)##, using
$$r=\sqrt{x^2+y^2}, \quad \varphi=\begin{cases} \arccos \left (\frac{x}{r} \right) \text{sign} \, y, &\text{for} \quad y \neq 0, \\ 0 & \text{for} \quad x>0, \quad y=0 \\ \pi & \text{for} \quad x<0, \quad y=0. \end{cases}$$
 
  • Like
Likes   Reactions: topsquark

Similar threads

  • · Replies 21 ·
Replies
21
Views
2K
  • · Replies 21 ·
Replies
21
Views
4K
  • · Replies 3 ·
Replies
3
Views
7K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 6 ·
Replies
6
Views
6K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 11 ·
Replies
11
Views
15K
  • · Replies 3 ·
Replies
3
Views
9K
  • · Replies 1 ·
Replies
1
Views
2K