Solve PDE u_t=u_xx-u_x with Separation of Variables

  • Thread starter Thread starter Uku
  • Start date Start date
  • Tags Tags
    Pde
Click For Summary

Homework Help Overview

The discussion revolves around the partial differential equation (PDE) given by u_{t}=u_{xx}-u_{x}. Participants are exploring the possibility of solving this equation using the method of separation of variables.

Discussion Character

  • Exploratory, Assumption checking, Problem interpretation

Approaches and Questions Raised

  • The original poster attempts to apply separation of variables by expressing the solution as a product of functions of x and t. Some participants question the assumptions regarding the constant λ and the implications of boundary conditions on its value. There is also a discussion about the form of the solution and the role of initial and boundary conditions in determining the behavior of λ.

Discussion Status

Participants are actively engaging with the problem, raising questions about the assumptions made in the separation of variables approach and the implications of the initial and boundary conditions. There is a recognition of the need to clarify the role of λ and how it relates to the conditions provided.

Contextual Notes

Initial conditions are specified as u(x,0)=f(x), with the domain being -∞ < x < ∞ and 0 < t < ∞. Participants are discussing how these conditions affect the solution and the interpretation of λ.

Uku
Messages
79
Reaction score
0
Hi! Merry christmas!

Homework Statement


u_{t}=u_{xx}-u_{x}

Can I solve it with separation of variables?

The Attempt at a Solution


u=XT
XT^{&#039;}=T(X^{&#039;&#039;}-X^{&#039;})
After rearranging
\frac{T^{&#039;}}{T}=-\lambda^{2} 1)
\frac{X^{&#039;&#039;}}{X} - frac{X^{&#039;}}{X}=-\lambda^{2}
The solution to 1) is simple
T=Acos(\lambda t)+Bsin(\lambda t)
Now, for the X, I write out a characteristic equation and get that
X=Ce^{\frac{1}{2}+\sqrt{\frac{1}{4} - \lambda^{2}}x}+De^{\frac{1}{2}-\sqrt{\frac{1}{4} - \lambda^{2}}x}
Since u=XT, the solution would be:
XT=(Acos(\lambda t)+Bsin(\lambda t))(Ce^{\frac{1}{2}+\sqrt{\frac{1}{4} - \lambda^{2}}x}+De^{\frac{1}{2} - \sqrt{\frac{1}{4} - \lambda^{2}}x})

Now, have I done it wrong?
(I know that I have not checked, I will do it now)

Thanks,
Uku
 
Last edited:
Physics news on Phys.org
Uku said:
Hi! Merry christmas!

Homework Statement


u_{t}=u_{xx}-u_{x}

Can I solve it with separation of variables?

The Attempt at a Solution


u=XT
XT^{&#039;}=T(X^{&#039;&#039;}-X^{&#039;})
After rearranging
\frac{T^{&#039;}}{T}=-\lambda^{2} 1)
\frac{X^{&#039;&#039;}}{X} - frac{X^{&#039;}}{X}=-\lambda^{2}
Do you know that this constant is negative? That usually is determined by boundary conditions and you don't give any here.

The solution to 1) is simple<br /> T=Acos(\lambda t)+Bsin(\lambda t)<br /> Now, for the X, I write out a characteristic equation and get that<br /> X=Ce^{\frac{1}{2}+\sqrt{\frac{1}{4}-}\lambda^{2}}+De^{\frac{1}{2}-\sqrt{\frac{1}{4} - \lambda^{2}}}
<br /> Only if \lambda^2&amp;lt; 1/4, otherwise you will have trig functions. Also you have forgotten the variable, x!<br /> <br /> <blockquote data-attributes="" data-quote="" data-source="" class="bbCodeBlock bbCodeBlock--expandable bbCodeBlock--quote js-expandWatch"> <div class="bbCodeBlock-content"> <div class="bbCodeBlock-expandContent js-expandContent "> Since u=XT, the solution would be:<br /> XT=(Acos(\lambda t)+Bsin(\lambda t))(Ce^{\frac{1}{2}+\sqrt{\frac{1}{4}-}\lambda^{2}}+De^{\frac{1}{2}-\sqrt{\frac{1}{4} - \lambda^{2}}})<br /> <br /> Now, have I done it wrong? <br /> (I know that I have not checked, I will do it now)<br /> <br /> Thanks,<br /> Uku </div> </div> </blockquote> What boundary and initial conditions do you have? With partial differential equations, even the form of the solution will depend on them.
 
Hi Uku! :smile:

(have a lambda: λ :wink:)

You're getting confused between λ and λ2 in both your X and T equations. :wink:
 
The equation is linear and with constant coefficients. If you present it in the form:

<br /> u(x, t) = e^{a x + b t} \, v(x, t)<br />

you can choose a and b to cancel the first partial derivative w.r.t. x and the term with no partial derivatives:

<br /> v_{t} + b v = v_{x x} +2 a v_{x} + a^{2} v - v_{x} - a v<br />

Choosing:

<br /> \left\{\begin{array}{l}<br /> 2 a - 1 = 0 \\<br /> <br /> a^2 - a = b<br /> \end{array}\right.<br />

after which the equation becomes a pure parabolic equation:

<br /> v_{t} = v_{x x}<br />

You can solve this PDE by the method of integral transforms. For example, represent the x-dependence as a Fourier transform:

<br /> v(x, t) = \int_{-\infty}^{\infty}{\tilde{v}(k, t) \exp(i k x) \, \frac{d k}{2 \pi}}<br />

after which you get the 1st order ODE

<br /> \tilde{v}_{t} + k^{2} \, \tilde{v} = 0<br />

which has the simple solution:

<br /> \tilde{v}(t, k) = \tilde{v}(0, k) e^{-k^{2} t}<br />

where the initial condition is given by:

<br /> \tilde{v}(0, k) = \int_{-\infty}^{\infty}{v(0, \xi) \exp(-i k \xi) d\xi}, \; v(0, x) = e^{-a x} u(0, x)<br />

After you combine everything together and do the integral over k which is gaussian, you will get the general solution as an integral over the initial value.
 
Hi!

I messed up on the lamdas, yes. On T it should be just \lambda.
My initial conditions are:
-\infty &lt; x &lt; \infty
0 &lt; t &lt; \infty
u(x,0)=f(x)

How do these tell me wether lamda is negative or not? I got a book, but I'm not getting to the point from it.

EDIT: I forgot the x from the exponential in the initial post, I added it.
 
Hi Uku! :smile:

(what happened to that λ I gave you? :confused:)
Uku said:
How do these tell me wether lamda is negative or not?

λ is a constant of integration.

It can be anything … you find it from your initial (or boundary) conditions …

what are they?​
 
Tim, thanks for the lamda? :)

I have an initial condition
u(x,0)=f(x)
telling me that at t=0 the temperature (the equation looks as a heat conduction eq for a bar of something) depends on position only.

Then I have boundary conditions for the variables
- \infty &lt; x &lt; \infty
telling me that the bar is infinite in both directions, and
0 &lt; t &lt; \infty
telling me that the time changes from 0 to inf.

As I understand the lamda comes from assuming that once the variables are separated, each side depends on only X (or Y). For the equality to hold the constant needs to be the same for both sides, hence the X'/X=c Y'/Y=c part.

If I try to link a boundary to c, I can think of, in
X'-Xc=0
that c scales the position X, so in that case c also must subdue to
-infinity < c < infinity?

I don't yet see a clear link with the initial (bound.) conditions.

Uku
 
Last edited:
Hi Uku! :smile:

What is f(x)?

On its own, u(x,0)=f(x) is only stating the obvious … "u(x,0) does not depend on t".

And (-∞.∞) isn't a boundary condition, it's only a boundary.
 
dont mind me, keep explaining.:zzz:
 

Similar threads

Replies
6
Views
3K
  • · Replies 6 ·
Replies
6
Views
1K
Replies
1
Views
2K
  • · Replies 11 ·
Replies
11
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 105 ·
4
Replies
105
Views
10K
Replies
2
Views
2K
  • · Replies 21 ·
Replies
21
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
Replies
2
Views
2K