# Physics equations/Oscillations, waves, and interference
#### Simple harmonic motion

Simple harmonic motion occurs when the restoring force is directly proportional to the displacement. It can serve to model many physical systems. Hooke's law states that the restoring force F of a spring obeys, $\mathbf {F} =-k\mathbf {x} ,$, where k is the spring constant, and x is the displacement from the equilibrium position.
Since a=d$^2$x/dt$^2$, the equation of motion becomes a linear second order differential equation:
    ${\frac {\mathrm {d} ^{2}x}{\mathrm {d} t^{2}}}=-\left({\frac {k}{m}}\right)x=-\omega ^{2}x\;,$
where we define $\omega ={\sqrt {k/m}}$ as a (constant) parameter in the ordinary differential equation.
The general solution can be described in a variety of ways; all have exactly two arbitrary constants of motion that arise from the fact that the initial position and initial velocity must be determined in order to model the system:
    $x(t)=c_{1}\cos \left(\omega t\right)+c_{2}\sin \left(\omega t\right)=A\cos \left(\omega t-\varphi \right)=a_{1}e^{i\omega t}+a_{2}e^{-i\omega t}$
where $\omega ={\sqrt {k/m}}$ is the the angular frequency; ωT = 2π and fT= 1 are useful for relating angular frequency, frequency, and period. Horizontal motion of a pendulum is one of many examples of a system that approximately obeys simple harmonic motion, with ω$^2$ = g/L, where L is the length of the pendulum. The velocity and acceleration as a function of time are:
    $v(t)={\frac {\mathrm {d} x}{\mathrm {d} t}}=-A\omega \sin(\omega t+\varphi ),$
    $a(t)={\frac {\mathrm {d} ^{2}x}{\mathrm {d} t^{2}}}=-A\omega ^{2}\cos(\omega t+\varphi )=-\omega ^{2}x.\!$

#### Energy of simple harmonic motion

The kinetic energy K of the system at time t is
    $K(t)={\frac {1}{2}}mv^{2}(t)={\frac {1}{2}}m\omega ^{2}A^{2}\sin ^{2}(\omega t-\varphi )={\frac {1}{2}}kA^{2}\sin ^{2}(\omega t-\varphi ),$
and the potential energy is
    $U(t)={\frac {1}{2}}kx^{2}(t)={\frac {1}{2}}kA^{2}\cos ^{2}(\omega t-\varphi ).$
The total mechanical energy of the system therefore has the constant value
    $E=K+U={\frac {1}{2}}kA^{2}.$

#### A simple travelling wave

from
Although ψ (psi) is often associated with quantum theory, Lord Rayleigh used that symbol describe sound waves. An idealized model of transverse waves on a stretched string assumes that the string propagates a signal of any shape, without distortion, in either direction. The height of the wave is:
    $\psi (x,t)=F(x-v_{0}t)+G(x+v_{0}t).\,$
The two functions $F$ and $G$ represent two arbitrary wave forms travelling in opposite directions. For example, if $G=0$, the wave has the shape, $F(x)$, and this shape travels to the right at velocity, $v_{0}$. It can be shown that this wave obeys the partial differential equation:
    ${\frac {1}{v_{0}^{2}}}{\frac {\partial ^{2}\psi }{\partial t^{2}}}={\frac {\partial ^{2}\psi }{\partial x^{2}}},\,$ (where $v_{0}$ is a constant).
Travelling wave solutions to this wave equation can take on many forms; a simple but important solution is:
    $\psi (x,t)=A\cos \left(kx-\omega t+\phi _{A}\right)+B\cos \left(kx-\omega t+\phi _{B}\right)$
where (A, B, φ$_A$, φ$_B$ } are arbitrary constants. A and B are called amplitudes, while (φ$_A$, φ$_B$) are phases. Another pair of constants is k and ω (wavenumber and angular frequency); they are constrained by |ω/k| = v$_0$, which is called the phase speed. The relation between ω and is called the dispersion relation. This dispersion relation has two branches, ω(k)=±v$_0$k. Other dispersion relations exist. For example bending waves on a long thin rod have a dispersion with four branches (not all real numbers ): ω$^2$=v$_0$k$^4$.

#### Beats and group velocity

For example, consider two closely space frequencies, $\omega _{1}$ and $\omega _{2}$:
    $\omega _{1}={\bar {\omega }}-{\frac {1}{2}}\Delta \omega$ and $\omega _{2}={\bar {\omega }}+{\frac {1}{2}}\Delta \omega$ (so that $\Delta \omega =\omega _{2}-\omega _{1}$).
It can be shown that for a wave with a sinusoidal time dependence:
    $\psi (t)=\cos(\omega _{1}t)+\cos(\omega _{2}t)=A(t)\cos({\bar {\omega }}t)$ where $A(t)=2\cos \left({\frac {\Delta \omega }{2}}t\right)$ is the envelope.
A 'wavetrain' is the infinite sequence of wavepackets that occurs when two 'plane waves' of equal amplitude are added. A true isolated wavepacket requires an infinite number waves the form cos(kx-ωt) but with a little algebra, one can discern a great deal by studying wavetrains. If $\Delta \omega <<{\bar {\omega }}$ the envelope, A(t), varies so slowly over time that it is essentially constant over many oscillations of the higher frequency. Defining Δt as the time between consecutive zeros of the envelope:
    $(\Delta \omega )(\Delta t)=2\pi \qquad (\Delta k)(\Delta x)=2\pi$
The corresponding result for a wavetrain that varies with x is also shown, as there is a one-to-one correspondence between ω and k in these equations. More rigorous definitions of Δω and Δk lead to Heisenberg's uncertainty principles, (Δω)(Δt) ≥1/2 and(Δk (Δx)≥ 1/2. In this formalism, wavepackets move with the group velocity, dx/dt=∂ω/∂k. Strict plane waves, such as cos(kx-ωt), typically occur only if the medium is homogeneous (in time and space). But if the inhomogeniety is sufficiently gentle (see eikonal approximation), then we have another equation of motion: dk/dt=-∂ω/∂x. In this approximation, wavepackets move exactly as do Newtonian particles.
The Algebra: The trigonometry is often more transparent if we use Euler's equation and take the real part, taking $\psi$ to be the real part of ${\tilde {\psi }}$.
Using well-known properties of exponents:
    ${\tilde {\psi }}(t)=e^{i\omega _{1}t}+e^{i\omega _{2}t}=e^{i{\bar {\omega }}t-i{\frac {1}{2}}\Delta \omega t}+e^{i{\bar {\omega }}t+i{\frac {1}{2}}\Delta \omega t}=e^{i{\bar {\omega }}t}\left(e^{+i{\frac {1}{2}}\Delta \omega t}+e^{-i{\frac {1}{2}}\Delta \omega t}\right)=2cos\left({\frac {\Delta \omega }{2}}\right)e^{i{\bar {\omega }}t}$
It is left as an exercise to the reader to perform this calculation for a travelling wave
    $\exp \left(i(k_{1}x-i\omega _{1}t\right)+\exp \left(i(k_{2}x-i\omega _{2}t\right)=2\cos \left({\frac {\Delta k}{2}}x-{\frac {\Delta \omega }{2}}t\right)e^{i{\bar {k}}x-i{\bar {\omega }}}$

#### A simple standing wave

The second derivative in Newton's second law of motion usually implies that two initial conditions (position and velocity) are necessary and sufficient to establish future motion. With waves it is necessary to establish these initial conditions for each of the infinitely many points along a string. For example, in the previous solutions to the wave equation, there are an infinite number of values that the angular frequency might take. We illustrate this with transverse waves on a string of length L, with both ends of the string held clamped. The general solution for this system can be written as,
    $\psi (x,t)=\sum _{n=1}^{\infty }A_{n}\cos \left(\omega _{n}t-\phi _{n}\right)\sin \left({\frac {n\pi x}{L}}\right)\;,$
where $(A_{n},\phi _{n})$ are arbitrary constants and each angular frequency obeys the dispersion relation, $\omega _{n}=k_{n}v=n\pi v/L$. (For a string of linear mass density μ, the wave speed obeys v$^2$ = T/μ, where T is the tension in the string.) can often be used to find the arbitrary constants. Fourier analysis can be used to find the arbitrary constants, provided the initial conditions are known.
Fourier Series Example:' Suppose the initial conditions at $t=0$ are:
    $\partial \psi /\partial t=0\;,\;$ and
    $\psi =f(x)$
(where f(x) is a known function), then:
    $\psi (x,t)=\sum _{n=1}^{\infty }A_{n}\cos(\omega _{n}t)\sin \left({\frac {n\pi x}{L}}\right)\;,$
Using Fourier analysis, it can be shown that:$A_{n}={\frac {2}{L}}\int _{0}^{L}f(x)\sin {\frac {n\pi x}{L}}dx$
* ↑ https://en.wikipedia.org/w/index.php?title=Wave&oldid=583244795