Diff. eq. and boundary conditions

In summary, the conversation discusses a given differential equation and its general solution, as well as boundary conditions for the solution. It is mentioned that m must be an integer to satisfy the first condition, but the author states it must be a positive integer to satisfy both conditions. However, the expert suggests that m can be non-negative and still satisfy both conditions. The conversation also discusses the physical example of heat transfer on a circular ring and the corresponding periodic boundary conditions.
  • #1
Niles
1,866
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
  • #2
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.
 
  • #3
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.
 
  • #4
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
[tex]
X=a \cos(\sqrt{-k} \space x)+b \sin(\sqrt{-k} \space x)
[/tex]

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


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:

FAQ: Diff. eq. and boundary conditions

What is a differential equation?

A differential equation is an equation that relates a function to its derivatives. It describes the relationship between a quantity and its rate of change. It is commonly used in mathematical modeling to study systems that change over time.

What are boundary conditions?

Boundary conditions are additional information or constraints that are used to solve a differential equation. They are used to specify the values of the function at certain points or to describe the behavior of the function at the boundaries of the system being studied.

How do differential equations and boundary conditions relate?

Boundary conditions are used along with a differential equation to determine the behavior of the function being studied. They help to narrow down the possible solutions of the differential equation and provide a more accurate and relevant solution for the specific system.

What are the different types of boundary conditions?

There are several types of boundary conditions, including Dirichlet, Neumann, and Robin boundary conditions. Dirichlet boundary conditions specify the values of the function at the boundaries, Neumann boundary conditions specify the values of the derivative of the function at the boundaries, and Robin boundary conditions are a combination of the two.

How are differential equations with boundary conditions solved?

Differential equations with boundary conditions can be solved using various techniques, such as separation of variables, method of characteristics, or numerical methods. The specific method used depends on the type of differential equation and boundary conditions being studied.

Back
Top