I Is this allowed? - Harmonic oscillation

AI Thread Summary
The discussion centers on the mathematical implications of harmonic oscillation at resonance frequency, particularly regarding phase shifts and the behavior of trigonometric functions. It clarifies that while dividing by zero is typically problematic, in this context, the tangent function becomes undetermined rather than undefined. The conclusion that D = 1/ω is incorrect because the denominator becomes zero, regardless of the numerator's value. The conversation emphasizes the importance of using both sine and cosine to accurately determine angles in polar coordinates, avoiding ambiguities that arise from using tangent alone. Ultimately, the correct approach to calculating angles involves considering both x and y coordinates to ensure accurate results.
APUGYael
Messages
41
Reaction score
1
243667

I divide by zero which is a no-go, but on the other hand: at resonance frequency the phase-shift is 90 degrees.
 
Physics news on Phys.org
Yes, at ##\omega_u = \omega_0## you have ##\cos\phi = 0 ##. You don't actually divide by 0, it's just that the tangent of ##\phi## is undetermined.
 
BvU said:
Yes, at ##\omega_u = \omega_0## you have ##\cos\phi = 0 ##. You don't actually divide by 0, it's just that the tangent of ##\phi## is undetermined.

Is the final conclusion correct too? D=1/ω
Because it uses the same logic but with sine.
 
I missed that question.
The answer is: no. The denominator is zero, the numerator doesn't have to be 1, just non-zero.

##D## is a free parameter, like ##C## and ##J##.
 
  • Like
Likes APUGYael
BvU said:
I missed that question.
The answer is: no. The denominator is zero, the numerator doesn't have to be 1, just non-zero.

##D## is a free parameter, like ##C## and ##J##.

But surely
tan (x) = sin(x)/cos(x) with x = pi/2 means that
sin(pi/2)=1
 
Last edited:
APUGYael said:
But surely
tan (x) = sin(x)/cos(x) with x = pi/2 means that
sin(pi/2)=1
Not with x = pi/2 but via the limit x-> pi/2.
 
A.T. said:
Not with x = pi/2 but via the limit x-> pi/2.

Right. So why is D -> 1/ω as x-> pi/2 not correct?
 
BvU said:
Yes, at ##\omega_u = \omega_0## you have ##\cos\phi = 0 ##. You don't actually divide by 0, it's just that the tangent of ##\phi## is undetermined.
It shows in a drastic way that it's a bad habit to use the tan function to calculate polar angles in polar coordinates (and this example of the phase shift is geometrically interpreted right this). What you really want is to calculate an angle within an interval of the length ##2 \pi## not one of the length ##\pi##.

In this context an interval ##\varphi \in ]-\pi,\pi]## is most convenient. Now take the Cartesian coordinates of a point ##(x,y)## that are related to the polar coordinates by ##(x,y)=r(\cos \varphi,\sin \varphi)##. Then given ##(x,y)## you first get
$$r=\sqrt{x^2+y^2}$$,
and then
$$\cos \varphi=\frac{x}{r}, \quad \sin \varphi=\frac{y}{r}.$$
You have to fulfill both (sic!) equations to get ##\varphi##. The first equation alone is not sufficient, because of ##\cos \varphi=\cos(-\varphi)## you get the same angle ##\varphi \in [0,\pi]## when using the usual arccos function, i.e., the same angle ##\varphi## in this intervall for both points ##(x,y)## and ##(x,-y)##. Now all you need from the second equation is the sign of ##y## since you know that for ##y>0## you must have ##\varphi \in [0,\pi]## and for ##y<0## it must be in ##[-\pi,0]##. Thus you have
$$\varphi = \text{sign} y \arccos(x/r).$$
The only trouble arises if, ##x<0## and ##y=0##. Then ##x=-|x|=-r##, by definition we choose ##\varphi=\arccos(-1)=+\pi##. So the final result is
$$\varphi=\begin{cases}
\text{sign} y \arccos(x/r) &\text{for} \quad y \neq 0, \\
0 & \text{for} x>0, \quad y=0, \\
\pi & \text{for} x<0, \quad y =0.
\end{cases} $$
Then for the special case that ##x=0## you correctly get ##\varphi=\pi/2 \text{sign} y##.
 
Back
Top