# Deriving the formula for sine waves

• Nick Jackson
In summary: The boundary condition is a bit more complicated. It has to be satisfied for all values of ##x## within the range ##[0,L]##. We can expand the ##\phi(0,x)## into a sum of terms$$\phi(x,0)=\phi(x,L)=u_0(x)+v_0(L),$$since ##v_0(x)## is independent of ##x## within the range ##[0,L]. The last term in this sum is
Nick Jackson
Can anybody out there show me how the sine wave formula $$y=Acos(kx - ωt + φ_{0})$$ or $$y=Acos(kx + ωt + φ_{0})$$ is the direct solution of the wave equation $$\frac{\partial^2 y}{\partial t^2} = v^2 \frac{\partial^2 y}{\partial x^2}$$ ? I mean I looked it over on the Internet but everybody keeps showing either the Fourier series solution of the wave equation or another integral equation that is derived by the homogeneous and the inhomogeneous transport equation. Only a few people are approaching this by separation of variables, assuming that $$y(x,t)=f(x)*g(t)$$ and rearranging the wave equation and setting the result to be a constant k that they assume to be of the form -ω^2, like this: $$\frac{1}{v^2} \frac{g^{''}(t)}{g(t)}=\frac{f^{''}(x)}{f(x)}=k$$
The result is immediate and correct.
However what I don't understand is why k has to be negative. Shouldn't $$\frac{g^{''}(t)}{g(t)}$$ and $$\frac{f^{''}(x)}{f(x)}$$ be any non-zero number since the change of displacement in oscillation can be either positive or negative? That said, shouldn't the wave equation give also formulas of hyperbolic sines and cosines for specific parts of the oscillation?

P.S. I am most interested in deriving the E/M sine wave formulas:
$$E=E_{max}cos(kx - ωt + φ_{0})$$ or $$E=E_{max}cos(kx + ωt + φ_{0})$$
$$B=B_{max}cos(kx - ωt + φ_{0})$$ or $$B=B_{max}cos(kx + ωt + φ_{0})$$

Thank you very much!

Try substituting y = f (x - vt) or y = f (x + vt) into the differential equation and see if it satisfies it.

Chet

I never encountered one that really need to use wave equation, but such constants are usually determined by the boundary conditions. For instance, standing wave boundary requires amplitude to vanish, but it is impossible for hyperbolic solutions.

Evanescent waves assume hyperbolic forms, but due to finite energy, they could only be exponential decay and does not propagate.

Chestermiller, if you're reffering to the d'Alembertian, I've already mentioned that the equation is correct for these result that are a function of x+vt and x-vt. However, my point is that to know if a sine wave is such we have to either observe it from experiments or to predict it mathematically. How do we know which one is it??

Which solution of the wave equation (e.g., applied to the motion of a string on a violin or guitar) is realized, is due to the initial and boundary conditions, you have to apply to make the solution of the wave-equation unique. The example of the string shows that there are very many different solutions to this problem, giving rise to all the different tunes various string instruments can deliver. You can hear a pretty large variety of tunes from different string instruments. A violine produces a pretty different tone when bowed than a guitar when plugged or a piono, where a little hammer hits the string(s). Part of the different tunes are of course also due to the different form of the reonating bodies mediating the oscillations of the string to the vibrations of the air that make up the sound waves we finally hear.

So we have to think a bit about the math of the wave equation. For the 1+1-dimensional wave equation, you easily find the full solution exactly. It was already given above. I'll give the systematic derivation below. Another technique is to use Fourier decomposition, which also works in higher dimensions.

Let's set the wave velocity ##c=1## to make the notation simpler. Then the (homogeneous) wave equation reads
$$\partial_t^2 \phi-\partial_x^2 \phi=0.$$
Now from the physics problem of the string (##\phi(t,x)## is the small perpendicular displacement of a line element on the string at position ##x##) it's clear that we need the following initial conditions:
$$\phi(t=0,x)=u_0(x), \quad \dot{\phi}(t,x)=v_0(x) \quad \text{for} \quad x \in [0,L],$$
i.e., at the initial time we need to know the position and velocity of each little line element along the string of length ##L##. Further we have to state that the string is fixed at it's ends:
$$\phi(t,0)=\phi(t,L)=0$$
for all ##t##. This implies that the boundary condition must be fullfilled for the initial conditions too, i.e.,
$$u_0(0)=v_0(0)=u_0(L)=v_0(L)=0.$$
Now we introduce the new variables
$$\tau=x-t, \quad \xi=x+t.$$
One can derive, why this is a clever choice, by making use of the method of characteristics, but that's a bit complicated to explain, but you should look it up in some textbook on pde's. Here we just use that the wave equation is equivalent to the equation
$$\partial_{\tau} \partial_{\xi} \phi=0.$$
That's pretty easy to evaluate! We just have to integrate with respect to ##\tau##, which gives
$$\partial_{\xi} \phi=\tilde{f}(\xi),$$
where ##\tilde{f}## is any function. With ##f(\xi)=\int \mathrm{d} \xi \tilde{f}(\xi)## the remaining equation yields the most general solution
$$\phi=f(\xi)+g(\tau),$$
where ##f## and ##g## are arbitrary functions (which of course should be sufficiently well behaved, i.e., at least twice differentiable etc.).

Substituting back, the most general solution reads
$$\phi(t,x)=f(x+t)+g(x-t).$$
Now we have to work on the initial and boundary conditions. The initial conditions read
$$f(x)+g(x)=u_0(x), \quad f'(x)-g'(x)=v_0(x).$$
Integrating the second condition yields
$$f(x)-g(x)=\int_0^x \mathrm{d} x v_0(x):=V(x).$$
So we find
$$f(x)=\frac{1}{2} [u_0(x)+V(x)], \quad g(x)=\frac{1}{2} [u_0(x)-V(x)].$$
So the solution of the initial-value problem is
$$\phi(t,x)=\frac{1}{2} [u_0(x+t)+V(x+t)]+\frac{1}{2} [u_0(x-t)-V(x-t)].$$
Further we have to fulfill the boundary conditions
$$\phi(t,0)=0 \; \Rightarrow \; \frac{1}{2} [u_0(t)+V(t)+u_0(-t)-V(-t)].$$
This boundary condition tells us that we should continue the function ##u_0## to an odd and the function ##V## to an even function outside of the interval ##[0,L]##, where they are fixed by the initial conditions. This determines the functions ##f## and ##g## for the interval ##[-L,L]##.

Th2nd boundary condition gives
$$\phi(t,L)=0 \; \Rightarrow \; \frac{1}{2} [u_0(t+L)+V(t+L)+u_0(L-t)-V(L-t)]=0.$$
This is fulfilled by the symmetry conditions (odd and even continuation of ##u_0## and ##v_0##) under the condition that we continuate them outside of the intervall ##[-L,L]]## to be ##2L##-periodic. because then
$$u_0(t+L)+u_0(L-t)=u_0(t+L)+u_0(L-t-2L)=u_0(t+L)+u_0(-t-L)=0,$$
because ##u_0## is odd by definition. The same works for ##V##:
$$V(t+L)-V(L-t)=V(t+L)-V(L-t-2L) = V(t+L)-V(-t-L)=0,$$
because ##V## is even by construction. This solves the initial-value-boundary problem for the 1+1-dimensional wave equation completely.

## 1. What is a sine wave?

A sine wave is a mathematical function that describes a smooth oscillation or vibration. It is a fundamental waveform that appears in many natural phenomena, such as sound, light, and water waves.

## 2. How is the formula for sine waves derived?

The formula for sine waves is derived from the trigonometric relationship between the sides and angles of a right triangle. The sine function is defined as the ratio of the opposite side to the hypotenuse in a right triangle.

## 3. What is the significance of the formula for sine waves?

The formula for sine waves is significant because it allows us to mathematically model and analyze various phenomena, such as sound and light waves. It also has numerous applications in fields like engineering, physics, and mathematics.

## 4. Can the formula for sine waves be generalized for different frequencies and amplitudes?

Yes, the formula for sine waves can be generalized to include different frequencies and amplitudes. The general formula for a sine wave is y = A sin (ωx + φ), where A is the amplitude, ω is the angular frequency, and φ is the phase shift.

## 5. How is the formula for sine waves used in practical applications?

The formula for sine waves is used in various practical applications, such as audio and radio signals, electromagnetic waves in communication systems, and signal processing techniques. It is also used in fields such as acoustics, optics, and vibrations analysis to understand and manipulate waves.

• Classical Physics
Replies
1
Views
531
• Classical Physics
Replies
3
Views
434
• Classical Physics
Replies
5
Views
710
• Classical Physics
Replies
4
Views
969
• Classical Physics
Replies
12
Views
1K
• Classical Physics
Replies
1
Views
981
• Classical Physics
Replies
2
Views
884
• Classical Physics
Replies
7
Views
741
• Classical Physics
Replies
0
Views
71
• Classical Physics
Replies
5
Views
857