2
$\begingroup$

If I have this equation:

$$\frac{\partial^2u}{\partial x^2}=\frac{\partial^2u}{\partial t^2}$$

And this general solution:

$$u(x,t)=\sum^\infty_{n=-\infty}\cos k_nx(C_n\cos k_nt+D_n\sin k_nt)$$

Would it then be wrong to write the above solution with only positive values of $n$? In my text book they often write the result from a superposition with only positive values of $n$, becasue the negative values of n already are included in the terms obtained for positive values of $n$.

The boundary condition:

$\frac{\partial u(x,t)}{\partial x}|_{x=0} = \frac{\partial u(x,t)}{\partial x}|_{x=L} = 0$

To get from $$\frac{\partial^2u}{\partial x^2}=\frac{\partial^2u}{\partial t^2}$$ to the solution I have used separation of variables and superposition.

Where I found:

U(x,t) = X(x)T(t)

And

$X^{''}(x) = -k^{2}X(x)$

$T^{''}(t) = -k^{2}T(t)$

Which gives me:

$X(x) = Acos(kx) + Bsin(kx)$

$T(t) = Ccos(kt) + Dsin(kt)$

Using the boundary condition I get: B = 0 and $k = k_{n} = \dfrac{n\pi}{L}$

Then I use superposition to get the solution:

$$u(x,t)=\sum^\infty_{n=-\infty}\cos k_nx(C_n\cos k_nt+D_n\sin k_nt)$$

$\endgroup$
16
  • 1
    $\begingroup$ This is not the general solution of the equation. It only generates even functions of $x$ (at fixed $t$), whereas the solution can be an arbitrary (twice differentiable) function of $x$ (at fixed $t$). $\endgroup$
    – joriki
    Apr 4, 2011 at 12:47
  • $\begingroup$ Please enter your equations here so people don't have to click through. You can include $\LaTeX$ between dollar signs. $\endgroup$ Apr 4, 2011 at 13:11
  • $\begingroup$ What are your $k_n$? It looks like they should be something like $\frac{2n\pi }{L}$ where $L$ is the length of the box you are in. If you are not in a box you should have in integral instead of a sum. $\endgroup$ Apr 4, 2011 at 13:37
  • 1
    $\begingroup$ I suspect that in order to be able to understand any answers given to your question, you will first have to understand why the boundary conditions are an integral part of the definition of the problem (and thus it made no sense to ask the question without mentioning them). $\endgroup$
    – joriki
    Apr 4, 2011 at 15:41
  • 1
    $\begingroup$ @Didier; the $k_n$ had been specified in the meantime (albeit as $K_n$). @Sommerfugl: You should really put all the stuff that you've added in the meantime into the question; you've created quite a mess by not supplying all this essential information right away and then scattering it in comments without fixing the question. $\endgroup$
    – joriki
    Apr 4, 2011 at 16:16

1 Answer 1

1
$\begingroup$

Ignore the chatter, this is a standard undergraduate PDE problem and you're doing it correctly. You may use only $n \geq 0$ as you are doing, and you correctly only have cosine terms in the $x$ variable due to the nature of your boundary conditions.

$\endgroup$

This site is temporarily in read-only mode and not accepting new answers.

Not the answer you're looking for? Browse other questions tagged .