Correct SHM Equation: Does € Matter?

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 €?
 
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
3K
  • · Replies 21 ·
Replies
21
Views
4K
  • · Replies 3 ·
Replies
3
Views
8K
  • · 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
16K
  • · Replies 3 ·
Replies
3
Views
9K
  • · Replies 1 ·
Replies
1
Views
2K