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
SUMMARY

The discussion centers on solving the partial differential equation (PDE) \( u_t = u_{xx} - u_x \) using the method of separation of variables. The user, Uku, attempts to separate the variables into \( u = XT \) and derives equations for \( T \) and \( X \). The solution for \( T \) is correctly identified as \( T = A \cos(\lambda t) + B \sin(\lambda t) \), while the solution for \( X \) involves exponential terms dependent on the parameter \( \lambda \). The conversation highlights the importance of boundary and initial conditions in determining the behavior of \( \lambda \) and the overall solution.

PREREQUISITES
  • Understanding of partial differential equations (PDEs)
  • Familiarity with the method of separation of variables
  • Knowledge of boundary and initial conditions in PDEs
  • Basic proficiency in solving ordinary differential equations (ODEs)
NEXT STEPS
  • Study the method of integral transforms for solving PDEs
  • Learn about Fourier transforms and their application in PDEs
  • Explore the implications of boundary conditions on the solutions of PDEs
  • Investigate the characteristics of linear PDEs with constant coefficients
USEFUL FOR

Mathematicians, physics students, and engineers dealing with heat conduction problems or wave equations, particularly those interested in solving PDEs using separation of variables and integral transforms.

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^{'}=T(X^{''}-X^{'})
After rearranging
\frac{T^{'}}{T}=-\lambda^{2} 1)
\frac{X^{''}}{X} - frac{X^{'}}{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^{'}=T(X^{''}-X^{'})
After rearranging
\frac{T^{'}}{T}=-\lambda^{2} 1)
\frac{X^{''}}{X} - frac{X^{'}}{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
2K
  • · 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
6K
Replies
2
Views
2K
  • · Replies 21 ·
Replies
21
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
Replies
2
Views
2K