1. Wave Equation problem

Solve the wave equation subject to the boundary conditions of u(0,t) - 0 for t>=0, and u(L,t)=0, for t>=0.

u(x,0) = f(x) for 0<=x<=L
du/dt (x,0) = g(x)

f(x) = sin (2pix/L) , g(x) = 0

Note: Sorry but I don't even understand what the problem is asking, I have a really bad professor for this course (Applied Math), and to be honest, I had him before and I had to learn everything on my own. But then was Calculus I, and now this is difficult, I don't know even where to start, please help!

Thank you.

Solve the wave equation subject to the boundary conditions of u(0,t) - 0 for t>=0, and u(L,t)=0, for t>=0.

u(x,0) = f(x) for 0<=x<=L
du/dt (x,0) = g(x)

f(x) = sin (2pix/L) , g(x) = 0

Note: Sorry but I don't even understand what the problem is asking, I have a really bad professor for this course (Applied Math), and to be honest, I had him before and I had to learn everything on my own. But then was Calculus I, and now this is difficult, I don't know even where to start, please help!

Thank you.
The problem is to solve:
$\displaystyle u_{tt} - c^2u_{xx} = 0$
given
$\displaystyle u(0, t) = 0$ for $\displaystyle t \geq 0$
and
$\displaystyle u(L, t) = 0$ for $\displaystyle t \geq 0$
and
$\displaystyle u(x, 0) = sin \left ( \frac{2 \pi x}{L} \right )$ for $\displaystyle 0 \leq x \leq L$
and
$\displaystyle u_t(x, 0) = 0$

The general solution of the wave equation is
$\displaystyle u(x, t) = \frac{f(x - ct) + f(x + ct)}{2} + \frac{1}{2c} \int_{x - ct}^{x + ct} g(s) ds$
where
$\displaystyle u(x, 0) = f(x)$
and
$\displaystyle u_t(x, 0) = g(x)$

So the solution will be of the form:
$\displaystyle u(x, t) = \frac{1}{2} sin \left ( \frac{2 \pi (x - ct)}{L} \right ) + \frac{1}{2} sin \left ( \frac{2 \pi (x + ct)}{L} \right )$

You may check that this solution indeed satisfies the boundary conditions.

-Dan

3. Another way which works nicely here is to use seperation of variables. Since $\displaystyle \cos \frac{2\pi x}{L}$ is orthogonal to sines and cosine the infinite series is actually finite. Try it.

I need to leave now. When I come back.

4. I'm still quite lost. So far we still haven't learn this general solution of $\displaystyle u(x, t) = \frac{f(x - ct) + f(x + ct)}{2} + \frac{1}{2c} \int_{x - ct}^{x + ct} g(s) ds$

Is this given or you actually compute it?

My professor did one example, and man, he didn't even get to finish it because he tried to do it in the last few seconds of the class. He has f(x) = 0, g(x) = sin(pi*x/L). Then he took the du/dt, and then he stopped there...

So is that a way to solve it without using the general solution? Like the separation of variables as the last post suggested?

Thank you.

I'm still quite lost. So far we still haven't learn this general solution of $\displaystyle u(x, t) = \frac{f(x - ct) + f(x + ct)}{2} + \frac{1}{2c} \int_{x - ct}^{x + ct} g(s) ds$

Is this given or you actually compute it?

My professor did one example, and man, he didn't even get to finish it because he tried to do it in the last few seconds of the class. He has f(x) = 0, g(x) = sin(pi*x/L). Then he took the du/dt, and then he stopped there...

So is that a way to solve it without using the general solution? Like the separation of variables as the last post suggested?

Thank you.

-Dan

6. Thanks! Now I understand how to get the general solution and how to use it.

I presume that the second part of the general solution, the integral of g(s) will go to zero as g(x) = 0? (1st fundamental theorem of cal?)

Thanks! Now I understand how to get the general solution and how to use it.

I presume that the second part of the general solution, the integral of g(s) will go to zero as g(x) = 0? (1st fundamental theorem of cal?)
Yup!

-Dan

Solve the wave equation subject to the boundary conditions of u(0,t) - 0 for t>=0, and u(L,t)=0, for t>=0.

u(x,0) = f(x) for 0<=x<=L
du/dt (x,0) = g(x)

f(x) = sin (2pix/L) , g(x) = 0
Given the equation,
$\displaystyle \frac{\partial ^ 2 u}{\partial t^2} - c^2 \frac{\partial ^2 u}{\partial x^2} = 0$.

With homogenous boundary value problem,
$\displaystyle u(0,t)=u(L,t)=0$

And initial value problems,
$\displaystyle u(x,0)=f(x) \mbox{ and }u_t(x,0)=g(x)$

The solution is,
$\displaystyle u(x,t) = \sum_{n=1}^{\infty} \left( A_n \cos \frac{\pi n c t}{L} + B_n \sin \frac{\pi n c t}{L}\right) \sin \frac{\pi n x}{L}$

Where,
$\displaystyle A_n = \frac{2}{L} \int_0^L f(x) \sin \frac{\pi n x}{L} dx$
$\displaystyle B_n = \frac{2}{\pi n c}\int_0^L g(x) \sin \frac{\pi n x}{L} dx$

In this problem $\displaystyle g(x) = 0 \mbox{ on }[0,L]$ thus, $\displaystyle B_n = 0$ for all $\displaystyle n\geq 1$.

And, $\displaystyle f(x) = \sin \frac{2\pi x}{L}$.
Thus, $\displaystyle A_n = \frac{2}{L}\int_0^L \sin \frac{2\pi x}{L} \cdot \sin \frac{\pi n x}{L} dx$

Use the following result:
Theorem: The set $\displaystyle \left\{ \sin \frac{\pi n x}{L} \right\}$ is orthogonal on $\displaystyle [-L,L]$.
And furthermore,
$\displaystyle \int_{-L}^L \sin \frac{\pi n x}{L} \sin \frac{\pi m x}{L} dx = L \delta_{nm}$.
(Where $\displaystyle \delta_{nm}$ is the Kronecker Delta.)

Which means,
$\displaystyle \int_0^L \sin \frac{2\pi x}{L} \sin \frac{\pi n x}{L} = \frac{L}{2} \cdot \delta_{2n} = \left\{ \begin{array}{c}\frac{L}{2} \mbox{ if }n=2 \\ 0 \mbox{ if }n\not = 2 \end{array} \right.$

This tells us that $\displaystyle A_1=0,A_2=1,A_3=0,A_4=0,...$.

Hence the solution is,
$\displaystyle u(x,t) = \cos \frac{2\pi ct}{L} \sin \frac{2\pi x}{L}$

NOTE: Topsquark used something called d'Alembert's General Solution.