Solving Heat Equation w/ Neumann BCs Different Domain

In summary, the problem is that I need to find the solution to u(x,0) = u_0(x) = a \exp(- \frac{x^2}{2c^2}) subject to an initial condition and Neumann boundary conditions. I can usually do this no problem assuming the domain is for instance [0,L], but I get stuck with this one. I can use separation of variables to solve for f(x) and g(t) which yields: f(x) = -A \sqrt{\lambda}\sin(\sqrt{\lambda} x) + B \sqrt{\lambda} \cos(\sqrt{\lambda} x) and g(t)
  • #1
maxtor101
24
0
Hi guys!

I'm to find the solution to

[tex]\frac{\partial u}{\partial t} = \frac{\partial^2 u}{\partial x^2} [/tex]

Subject to an initial condition

[tex] u(x,0) = u_0(x) = a \exp(- \frac{x^2}{2c^2}) [/tex]

And Neumann boundary conditions

[tex] \frac{\partial u}{\partial x} (-1,t) = \frac{\partial u}{\partial x} (1,t) = 0 [/tex]

I can usually do this no problem assuming the domain is for instance [0,L], but I get stuck with this one :

Using separation of variables :

[tex] u(x,t) = f(x)g(t) [/tex]

This yields:

[tex] \frac{1}{g} \frac{dg}{dt} = \frac{1}{f} \frac{d^2f}{dx^2} = -\lambda [/tex]


Spatial Part:

[tex] \frac{1}{f} \frac{d^2f}{dx^2} = -\lambda [/tex]

[tex] \frac{d^2f}{dx^2} + \lambda f = 0 [/tex]

Therefore :

[tex] f(x) = A \cos(\sqrt{\lambda} x) + B \sin(\sqrt{\lambda} x) [/tex]

And since I'm considering Neumann Boundary conditions I get the derivative of this

[tex] f \prime (x) = -A \sqrt{\lambda}\sin(\sqrt{\lambda} x) + B \sqrt{\lambda} \cos(\sqrt{\lambda} x) [/tex]


So, [tex] f \prime (-1) = 0 [/tex]

This gives:

[tex] A \sin(\sqrt{\lambda}) + B \cos(\sqrt{\lambda}) = 0[/tex]

And for [tex] f \prime (1) = 0 [/tex]

I get :

[tex] -A \sin(\sqrt{\lambda}) + B \cos(\sqrt{\lambda}) = 0[/tex]

So from these two equations I can conclude that:

Firstly by just adding the two equations

[tex] B \cos(\sqrt{\lambda}) = 0 [/tex]

So either [itex] B = 0 [/itex] or [itex] \cos(\sqrt{\lambda}) = 0 [/itex]

Now substituting [itex] B \cos(\sqrt{\lambda}) = 0 [/itex] back into [itex] A \sin(\sqrt{\lambda}) + B \cos(\sqrt{\lambda}) = 0[/itex]

I also get
[tex] A \sin(\sqrt{\lambda}) = 0 [/tex]

So either [itex] A = 0 [/itex] or [itex] \sin(\sqrt{\lambda}) = 0 [/itex]

Obviously [itex] \sin(\sqrt{\lambda}) [/itex] and [itex] \cos(\sqrt{\lambda}) [/itex] can't both equal zero, so how do I approach this...

Apologies if this is a stupid question..
Any help would be greatly appreciated
Max
 
Physics news on Phys.org
  • #2
Have you tried a transform method? I might be tempted to try a Laplace transform on the t variable. I think that this problem requires a transform solution rather than a separation of variable solution.
 
  • #3
[itex]sin(\sqrt{\lambda})[/itex] and [itex]cos(\sqrt{\lambda})[/itex] don't both have to be 0: one of A and B can be 0 and still give you a non-trivial solution.
 
  • #4
Ah ok I see! Thanks for your help.

So I can choose for example in case 1: A=0 , B=B . case2: B=0 , A=A
 
  • #5


Hi Max,

Thank you for sharing your problem with us. I understand that you are trying to solve the heat equation with Neumann boundary conditions in a different domain than what you are used to. It looks like you have already made some progress with separating the variables and finding the general solution for the spatial part. However, you are stuck with the boundary conditions and are unsure of how to proceed.

Firstly, I want to assure you that this is not a stupid question and it is completely normal to encounter difficulties when solving mathematical problems. I would suggest taking a step back and reviewing the Neumann boundary conditions. These conditions specify that the derivative of the solution with respect to the spatial variable must be zero at the boundaries. In your case, the boundaries are at x = -1 and x = 1.

Now, let's consider the case where A = 0. In this case, the solution for the spatial part would only involve the cosine term, which would result in a constant. However, this would not satisfy the boundary conditions since the derivative of a constant is always zero. Therefore, we can conclude that A cannot be equal to zero.

Next, let's consider the case where B = 0. This would result in the solution for the spatial part only involving the sine term, which would also result in a constant. Again, this would not satisfy the boundary conditions. Therefore, B cannot be equal to zero either.

So, how do we proceed? We can use the fact that both A and B cannot be equal to zero to our advantage. Since we know that both sine and cosine cannot be zero at the same time, we can set up a system of equations to solve for the value of lambda. Using the equations you have derived, we can write:

A\sin(\sqrt{\lambda}) = 0
B\cos(\sqrt{\lambda}) = 0

Since we know that A and B cannot be zero, we can divide both equations by A and B respectively to get:

\sin(\sqrt{\lambda}) = 0
\cos(\sqrt{\lambda}) = 0

Now, we can use the trigonometric identities \sin(\theta) = 0 when \theta = n\pi and \cos(\theta) = 0 when \theta = \frac{(2n+1)\pi}{2}. Substituting these values into our equations, we get:

\sqrt{\lambda} = n\pi
 

Related to Solving Heat Equation w/ Neumann BCs Different Domain

1. What is the heat equation and what is its significance in science?

The heat equation is a partial differential equation that describes how heat is distributed in a given region over time. Its significance lies in its ability to model heat transfer in various physical systems, making it a fundamental tool in fields such as thermodynamics, fluid mechanics, and materials science.

2. What are Neumann boundary conditions and how are they different from other types of boundary conditions?

Neumann boundary conditions specify the rate of heat flow at the boundaries of a region, rather than the temperature itself. This is in contrast to other types of boundary conditions, such as Dirichlet boundary conditions, which specify the temperature at the boundary. Neumann boundary conditions are commonly used in problems involving insulated boundaries or when the temperature at the boundary is not known.

3. Can the heat equation be solved for different domains with Neumann boundary conditions?

Yes, the heat equation can be solved for different domains with Neumann boundary conditions. This involves solving the equation for each individual domain and then using appropriate boundary conditions to connect the solutions at the boundaries of the domains.

4. What are some common techniques for solving the heat equation with Neumann boundary conditions?

Some common techniques for solving the heat equation with Neumann boundary conditions include separation of variables, finite difference methods, and numerical methods such as the finite element method. Each technique has its own advantages and limitations, and the choice of method depends on the specific problem at hand.

5. How is the solution of the heat equation with Neumann boundary conditions affected by changes in the initial conditions or boundary conditions?

The solution of the heat equation with Neumann boundary conditions is highly dependent on the initial conditions and boundary conditions. Even small changes in these conditions can result in significant changes in the temperature distribution over time. Therefore, it is important to carefully consider and accurately specify the initial and boundary conditions when solving the heat equation with Neumann boundary conditions.

Similar threads

  • Differential Equations
Replies
7
Views
553
  • Differential Equations
Replies
3
Views
2K
Replies
4
Views
1K
  • Differential Equations
Replies
1
Views
1K
  • Differential Equations
Replies
1
Views
914
Replies
5
Views
2K
  • Differential Equations
Replies
3
Views
1K
  • Differential Equations
Replies
6
Views
2K
  • Differential Equations
Replies
28
Views
3K
Replies
1
Views
1K
Back
Top