Change variable to solve equation

  • Context: MHB 
  • Thread starter Thread starter evinda
  • Start date Start date
  • Tags Tags
    Change Variable
Click For Summary

Discussion Overview

The discussion revolves around solving the equation $xu_t + uu_x = 0$ with the initial condition $u(x,0) = x$. Participants explore various approaches, including a suggested change of variables from $x$ to $x^2$, and consider alternative methods for solving the equation.

Discussion Character

  • Exploratory
  • Technical explanation
  • Mathematical reasoning
  • Debate/contested

Main Points Raised

  • One participant proposes changing the variable $x$ to $y^2$, leading to a transformed equation but expresses uncertainty about its utility.
  • Another participant suggests dividing the original equation by $x$, resulting in a simpler form $u_t + \frac{u}{x} u_x = 0$ and explores the implications of this transformation.
  • Concerns are raised about the nature of the characteristic lines derived from the equation, questioning whether they remain linear under certain conditions.
  • Participants discuss the implications of their derived solutions, particularly regarding boundary conditions and the behavior of the solution as $t \to 0$.
  • There is a debate about the validity of the solution at $x=0$, with suggestions to define the solution explicitly at this point to ensure continuity.
  • Some participants propose alternative forms of the solution to address issues with sign changes and continuity, including the use of the sign function.
  • Final expressions for the solution are debated, with one participant asserting a piecewise definition to ensure continuity across the domain.

Areas of Agreement / Disagreement

Participants express differing views on the validity of various approaches and solutions. While some agree on the necessity of defining the solution at $x=0$, others question the correctness of the derived expressions and the implications of continuity. The discussion remains unresolved regarding the final form of the solution.

Contextual Notes

Limitations include unresolved assumptions about the behavior of the solution at $x=0$ and the implications of dividing by $x$ in the original equation. The discussion reflects a range of mathematical reasoning and interpretations of the problem.

evinda
Gold Member
MHB
Messages
3,741
Reaction score
0
Hello! (Wave)

I want to solve the equation $xu_t+uu_x=0$ with $u(x,0)=x$. There is a hint to change variables $x \mapsto x^2$.

I have tried the following.

Let $x=y^2$.

Then $u_x=\frac{du}{dy} \frac{dy}{dx}+\frac{du}{dt} \frac{dt}{dx}=u_y \frac{1}{\frac{dx}{dy}}=\frac{1}{2y} u_y$.

Thus, $xu_t+uu_x=0 \Leftrightarrow y^2 u_t+\frac{1}{2y}uu_y=0$. But the latter doesn't help us to use the method of my post [m]Solve equation[/m].

So do we have to make an other change of variables? (Thinking)
 
Physics news on Phys.org
Hey evinda! (Smile)

Suppose we do not use the hint?
We can divide the ewuation by x to make it easier can't we? (Wondering)
 
I like Serena said:
Hey evinda! (Smile)

Suppose we do not use the hint?
We can divide the ewuation by x to make it easier can't we? (Wondering)

Then we have that $u_t+\frac{u}{x} u_x=0$.

$\frac{dx}{dt}=\frac{u}{x}$

$\frac{d}{dt}u(x(t),t)=0$.

Thus, $u(x(t),t)=c$.

The characteristic line that passes through the points $(x,t)$ and $(x_0,0)$ has slope

$\frac{x-x_0}{t-0}=\frac{dx}{dt}=\frac{u}{x}=\frac{x_0}{x}$$x-x_0=t \frac{x_0}{x} \Rightarrow x_0 \left( \frac{t}{x}+1\right)=x \Rightarrow x_0=\frac{x^2}{t+x}$.

So $u(x,t)=\frac{x^2}{t+x}$.

Is everything right?
 
evinda said:
Then we have that $u_t+\frac{u}{x} u_x=0$.

$\frac{dx}{dt}=\frac{u}{x}$

$\frac{d}{dt}u(x(t),t)=0$.

Thus, $u(x(t),t)=c$.

The characteristic line that passes through the points $(x,t)$ and $(x_0,0)$ has slope

$\frac{x-x_0}{t-0}=\frac{dx}{dt}=\frac{u}{x}=\frac{x_0}{x}$

This time it's not a line is it?
After all, $\d xt$ isn't constant although $u$ is.
Shouln't we solve $\d xt=\frac ux$, and then make sure that it satisfies the boundary condition? (Wondering)
 
I like Serena said:
This time it's not a line is it?
After all, $\d xt$ isn't constant although $u$ is.
Shouln't we solve $\d xt=\frac ux$, and then make sure that it satisfies the boundary condition? (Wondering)

So we substitute here $\d xt=\frac ux$ that $u(x(t),t)=x_0$ ?

If so, then is it as follows?

$$\frac{dx}{dt}=\frac{u}{x} \Rightarrow \frac{dx}{dt}=\frac{x_0}{x} \Rightarrow xdx=x_0 dt \Rightarrow \frac{x^2}{2}=x_0 t+c \Rightarrow x^2=2x_0 t+C \Rightarrow 2x_0 t=x^2-C \Rightarrow x_0=\frac{x^2-C}{2t}$$

Thus, $u(x,t)=\frac{x^2-C}{2t}$.

We have that for $t=0$, $u(x,0)=x$. But can that hold? Is it maybe as follows?

Since $\frac{1}{2t} \to \infty$ as $t \to 0$, it has to hold $C=x_0^2$. (Thinking)
 
Last edited:
evinda said:
So we substitute here $\d xt=\frac ux$ that $u(x(t),t)=x_0$ ?

If so, then is it as follows?

$$\frac{dx}{dt}=\frac{u}{x} \Rightarrow \frac{dx}{dt}=\frac{x_0}{x} \Rightarrow xdx=x_0 dt \Rightarrow \frac{x^2}{2}=x_0 t+c \Rightarrow x^2=2x_0 t+C \Rightarrow 2x_0 t=x^2-C \Rightarrow x_0=\frac{x^2-C}{2t}$$

Thus, $u(x,t)=\frac{x^2-C}{2t}$.

We have that for $t=0$, $u(x,0)=x$. But can that hold? Is it maybe as follows?

Since $\frac{1}{2t} \to \infty$ as $t \to 0$, it has to hold $C=x_0^2$.

Yes.
It's a bit clearer if we substitute $t=0$ and $x=x_0$ in the earlier expression $2x_0 t=x^2-C$. (Mmm)
 
I like Serena said:
Yes.
It's a bit clearer if we substitute $t=0$ and $x=x_0$ in the earlier expression $2x_0 t=x^2-C$. (Mmm)

Ok, so then we get that $x_0^2+2 x_0 t-x^2=0$.

$x_0=-t \pm \sqrt{t^2+x^2}$.

Thus, $u(x,t)=-t \pm \sqrt{t^2+x^2}$.

Since $u(x,0)=x$, it follows that $u(x,t)=-t+\sqrt{t^2+x^2}$.

Is this right? Also, do we have to check separately the case $x=0$ since we have divided at the initial equation by $x$ ? (Thinking)
 
evinda said:
Ok, so then we get that $x_0^2+2 x_0 t-x^2=0$.

$x_0=-t \pm \sqrt{t^2+x^2}$.

Thus, $u(x,t)=-t \pm \sqrt{t^2+x^2}$.

Since $u(x,0)=x$, it follows that $u(x,t)=-t+\sqrt{t^2+x^2}$.

Wait! (Wait)
Wouldn't we get that $u(x,0)=|x|$?
That's not correct, is it? (Wondering)

evinda said:
Is this right? Also, do we have to check separately the case $x=0$ since we have divided at the initial equation by $x$ ? (Thinking)

I believe it suffices to observe that $u$ is well-defined for $x=0$. (Wink)
 
I like Serena said:
Wait! (Wait)
Wouldn't we get that $u(x,0)=|x|$?
That's not correct, is it? (Wondering)

Oh yes, right... So have I done something wrong? (Thinking)

I like Serena said:
I believe it suffices to observe that $u$ is well-defined for $x=0$. (Wink)

Why does this suffice? And also how do we deduce it?
 
  • #10
evinda said:
Oh yes, right... So have I done something wrong?

It's just that when x changes sign, the solution changes sign as well.
We can fix it with;
$$u(x,t)=-t+x\sqrt{1+\frac{t^2}{x^2}}$$

evinda said:
Why does this suffice? And also how do we deduce it?

All our functions are continuously differentiable.
Since the solution is valid for $x\ne 0$, it will also be valid for $x=0$ as long as it is defined. (Thinking)
 
  • #11
I like Serena said:
It's just that when x changes sign, the solution changes sign as well.
We can fix it with;
$$u(x,t)=-t+x\sqrt{1+\frac{t^2}{x^2}}$$

Ok.
I like Serena said:
All our functions are continuously differentiable.
Since the solution is valid for $x\ne 0$, it will also be valid for $x=0$ as long as it is defined. (Thinking)

The limit $\lim_{x \to 0} \left( -t+x\sqrt{1+\frac{t^2}{x^2}}\right)$ does not exist.

What does this mean? (Thinking)
 
  • #12
evinda said:
The limit $\lim_{x \to 0} \left( -t+x\sqrt{1+\frac{t^2}{x^2}}\right)$ does not exist.

What does this mean? (Thinking)

Ah yes. It means my solution is not entirely correct. (Blush)
Btw, that limit does exist, doesn't it? It's $0$.
Either way, we should either additionally define $u(0,t)=0$, or we should make it $u(x,t)=-t+\operatorname{sgn}(x)\sqrt{t^2+x^2}$, where $\operatorname{sgn}$ is the sign function. (Thinking)
 
  • #13
We know that the solution is continuous and we have that $\lim_{x \to 0} \left( -t+ x \sqrt{\frac{t^2}{x^2}+1}\right)=0$, so the solution will be

$u(x,t)=\left\{\begin{matrix}
-t+x \sqrt{\frac{t^2}{x^2}+1}, & x \neq 0\\
0,& x=0.
\end{matrix}\right.$

Right?
 
  • #14
evinda said:
We know that the solution is continuous and we have that $\lim_{x \to 0} \left( -t+ x \sqrt{\frac{t^2}{x^2}+1}\right)=0$, so the solution will be

$u(x,t)=\left\{\begin{matrix}
-t+x \sqrt{\frac{t^2}{x^2}+1}, & x \neq 0\\
0,& x=0.
\end{matrix}\right.$

Right?

Yep! (Nod)
 
  • #15
I like Serena said:
Yep! (Nod)

Nice... Thank you! (Smile)
 

Similar threads

  • · Replies 3 ·
Replies
3
Views
7K
Replies
8
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 11 ·
Replies
11
Views
4K
  • · Replies 3 ·
Replies
3
Views
4K
Replies
2
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 7 ·
Replies
7
Views
4K