Solve Heat Equation with Initial Conditions

Click For Summary

Discussion Overview

The discussion revolves around solving the heat equation with specified initial and boundary conditions on a finite interval. Participants explore various methods for approaching the problem, including separation of variables and variable transformations, while addressing the implications of the piecewise definition of the initial condition function.

Discussion Character

  • Technical explanation
  • Mathematical reasoning
  • Debate/contested

Main Points Raised

  • One participant suggests using separation of variables as a standard method for solving the heat equation on the interval [0,1].
  • Another participant proposes a change of variables to transform the equation, although they question the necessity of solving the equation given the original poster's lack of prior instruction.
  • The original poster expresses uncertainty about the separation of variables approach and seeks clarification on how to apply it to the piecewise initial condition.
  • Some participants indicate that a solution might involve a series of functions rather than a single function, depending on the initial conditions.
  • There is a discussion about whether to solve the equation separately for the two intervals defined by the piecewise function, with one participant questioning if this approach makes sense.

Areas of Agreement / Disagreement

Participants do not reach a consensus on the best approach to take, with multiple competing views on how to handle the piecewise nature of the initial condition and the application of separation of variables.

Contextual Notes

The discussion highlights the complexity introduced by the piecewise definition of the initial condition, which may require separate consideration for different intervals. There are also unresolved questions about the applicability of certain methods given the participants' varying levels of experience.

Markov2
Messages
149
Reaction score
0
Solve

$\begin{aligned} & {{u}_{tt}}={{u}_{xx}},\text{ }x\in [0,1],\text{ }t>0, \\
& u(x,0)=f(x), \\
& {{u}_{t}}(x,0)=0,\text{ }u(0,t)=u(1,t)=0 \\
\end{aligned}
$

where $f(x)$ is defined by $f(x)=x$ if $0\le x\le \dfrac12$ and $f(x)=1-x$ if $\dfrac12\le x\le1.$

I'm not sure how to proceed here, what's the standard way?
 
Physics news on Phys.org
Since you're on a finite interval (i.e. [0,1]) use separation of variables.
 
Another way to do this is to change variables: let s= x- y, t= x+ y. $u_x= u_ss_x+ u_tt_x= u_s+ u_t$ so that $u_{xx}= (u_s+ u_t)_x= (u_s+ u_t)_s+ (u_s+ u_t)_t= u_{ss}+ 2u_{st}+ u_{tt}$ and $u_y= u_ss_y+ u_tt_y= -u_s+ u_t$ so that $u_{yy}= -(-u_s+ u_t)_u+ (-u_s+ u_t)_t= u_{ss}- 2y_{st}+ u_{tt}$. Put those into $u_{xx}= u_{tt}$.

May I ask why you are trying to solve such an equation if you have never had any instruction in it?
 
Last edited by a moderator:
My professor is really bad so I started to learn this by myself.

By using separation of variables, I need to set $u(x,t)=f(x)g(t)$ and substitute, right?
 
Yes. Of course, there might not be a function of that form satisfying the initial conditions but then you could use a sum of such things.
 
Okay but do I need to make it twice? I mean working with $0\le x\le\dfrac12,$ and then using separation of variables for the other interval?
 
Jester, we can actually use the direct results by using separation of variables. I know the solution is a series where the coefficients must be found, but I actually want to know is if I need to pick my $f$ on one interval and then pick it from the other interval, which means that I'd have to solve two equations.

It's like:

\begin{aligned} & {{u}_{tt}}={{u}_{xx}},\text{ }x\in [0,1/2],\text{ }t>0, \\ & u(x,0)=x, \\ & {{u}_{t}}(x,0)=0,\text{ }u(0,t)=u(1,t)=0 \\ \end{aligned}

and in the same fashion for the other. Does that make sense?
 

Similar threads

  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 13 ·
Replies
13
Views
3K
  • · Replies 4 ·
Replies
4
Views
4K
  • · Replies 7 ·
Replies
7
Views
4K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K