Diff. eq. and boundary conditions

Niles
Messages
1,834
Reaction score
0

Homework Statement


Hi all.

I am given the following differential equation:

X'' - k*X=0.

I am told that k = -m^2, so the general solution is given by:

X = a*cos(m*x)+b*sin(m*x),

where a and b are constants. I am also given boundary conditions:

1) X(-Pi) = X(Pi)
2) X'(-Pi) = X'(Pi).

To satisfy #1, m must be an integer. But in my book the author states that in order to satisfy #1 and #2, m must be a positive integer. But I don't understand why m must be positive, because cosine is even.
 
Physics news on Phys.org
Niles said:

Homework Statement


Hi all.

I am given the following differential equation:

X'' - k*X=0.

I am told that k = -m^2, so the general solution is given by:

X = a*cos(m*x)+b*sin(m*x),

where a and b are constants. I am also given boundary conditions:

1) X(-Pi) = X(Pi)
2) X'(-Pi) = X'(Pi).

To satisfy #1, m must be an integer. But in my book the author states that in order to satisfy #1 and #2, m must be a positive integer. But I don't understand why m must be positive, because cosine is even.
I don't know if you are reading that wrong or the author just said it wrong, but, as you say, m does not have to be a positive integer. But X= a cos(mx)+ b sin(mx)= a cos(-mx)+ (-b)sin(-mx) so changing m for -m just changes the sign on the constant b. We can always assume that m is non-negative, since -m would give nothing new, but cannot assume it is positive: taking m= 0 gives X(x)= a which certainly satisfies both differential equation and boundary conditions.
 
The author says: "For k = -m^2, Nontrivial solutions arise only if m = n for n = 1, 2, 3, ..., and the corresponding solutions are therefore X = a*cos(m*x)+b*sin(m*x).".

I think the reason why we do not want n = 0 is so there are no trivial solutions, i.e. X = const.
 
Seems to me like an eigenvalue problem with periodic boundary condition.
in this case -k is the eigenvalue, and because k<0, so the soultion
<br /> X=a \cos(\sqrt{-k} \space x)+b \sin(\sqrt{-k} \space x)<br />

The periodic boundary condition (heat transfer on a circular ring as a physical example) requires a=\=0 and b=\=0 AND
<br /> \begin{*align}<br /> sin (\sqrt{-k} \space \pi)=0 <br /> \end{*align}<br />
or
<br /> \sqrt{-k} \space \pi =n \pi<br />


note that \sqrt{-k}>0 so n is positive integer.

Niles said:
The author says: "For k = -m^2, Nontrivial solutions arise only if m = n for n = 1, 2, 3, ..., and the corresponding solutions are therefore X = a*cos(m*x)+b*sin(m*x).".

I think the reason why we do not want n = 0 is so there are no trivial solutions, i.e. X = const.
 
Last edited:
There are two things I don't understand about this problem. First, when finding the nth root of a number, there should in theory be n solutions. However, the formula produces n+1 roots. Here is how. The first root is simply ##\left(r\right)^{\left(\frac{1}{n}\right)}##. Then you multiply this first root by n additional expressions given by the formula, as you go through k=0,1,...n-1. So you end up with n+1 roots, which cannot be correct. Let me illustrate what I mean. For this...
Back
Top