### Author Topic: FE-P1  (Read 1259 times)

#### Victor Ivrii

• Elder Member
• Posts: 2550
• Karma: 0
##### FE-P1
« on: April 11, 2018, 02:35:31 PM »
Solve by the method of characteristics the BVP for a wave equation
\begin{align}
&u_{tt}-  16 u_{xx}=0,\qquad 0<x<\infty , \; t>0\label{1-1}\\[2pt]
& u(x,0)=f(x),\label{1-2}\\[2pt]
& u_t(x,0)=g(x),\label{1-3}\\[2pt]
& (u_x  -u )(0,t)= h(t)\label{1-4}
\end{align}
with $f(x)=4e^{-2x}$,   $g(x)=16e^{-2x}$ and  $h(t)=e^{-8t}$. You need to find a continuous solution.
« Last Edit: April 11, 2018, 03:06:19 PM by Victor Ivrii »

#### Tristan Fraser

• Full Member
• Posts: 30
• Karma: 11
##### Re: FE-P1
« Reply #1 on: April 11, 2018, 05:55:16 PM »
General solution of

$u = \phi (x+4t) + \psi (x-4t)$
$u_x = \phi'(x+4t) + \psi'(x-4t)$
$u_t = 4(\phi' (x+4t) - \psi' (x-4t)$
For $x>4t$:

$4e^{-2x} = \phi(x) + \psi(x)$
$4e^{-2x} = \phi'(x) - \psi'(x)$
integrate and rearrange to get:

$\phi(x) = e^{-2x}$ and $\psi(x) = 3e^{-2x}$

$$u = e^{-2(x+4t)} + 3e^{-2(x-4t)} \qquad x>4t$$

For the case of $0<x<4t$:
$u_x = \phi'(x+4t) + \psi'(x-4t)$ and $u$ are used in BC:

$\phi'(4t) + \psi'(-4t) - \phi(4t) -\psi(-4t) = e^{-8t}$

Then let $x = -4t$ and move the $\psi(x)$ to one side:

$\psi'(x) - \psi(x) = e^{2x} - \phi'(-x) + \phi(-x)$
We know two things: first the reason we're looking at $\psi$ instead of $\phi$ is that it has a chance of being negative, while the other does not, and thus, the second thing is that we can also plug in our previously used functions for $\phi$. The other nice thing is that you can rearrange to ODE:

$(e^{-x} \psi(x))' = e^{x} + (-2e^{x} + e^{x})$ integrate both sides:

$e^{-x} \psi(x) = C$
Thus:
$\psi(x) = Ce^{x}$

$u = e^{-2(x+4t)} + Ce^{x-4t}$

Then check continuity, plug in for $x = 4t$ for both u(x,t), and make sure they match up:

$u = e^{-16t} + C = e^{-16t} + 3$

Therefore $C= 3$, ensuring continuity.

EDIT: There is a chance I might have misplaced a minus sign, please let me know if I have made such an error, as I will aim to correct it promptly.
« Last Edit: April 12, 2018, 08:45:26 AM by Victor Ivrii »

#### Jingxuan Zhang

• Elder Member
• Posts: 106
• Karma: 20
##### Re: FE-P1
« Reply #2 on: April 11, 2018, 07:20:42 PM »
Tristan,

I think
$$(e^{-x} \psi(x))' = e^{x} + 2e^{x} + e^{x},$$
not minus.

#### Tristan Fraser

• Full Member
• Posts: 30
• Karma: 11
##### Re: FE-P1
« Reply #3 on: April 11, 2018, 08:13:38 PM »
@Jingxuan: Thank you!

$(e^{-x} \psi(x)) = 4e^{x} + C$

and then:

$\psi(x) = 4e^{2x} + Ce^{x}$

Now, this gives us:

$u(x,t) = 4e^{2(x-4t)} + Ce^{x-4t} + e^{-2(x+4t)}$

Then checking continuity gives us (x=4t):

$u(x,t) = 4+ C +e^{-2(8t)} = 3+ e^{-16t}$ implying that $C= -1$.

$$u(x,t) = 4e^{2(x-4t)} - e^{x-4t} + e^{-2(x+4t)}\qquad 0<x<4t$$
« Last Edit: April 12, 2018, 08:45:58 AM by Victor Ivrii »

#### Victor Ivrii

• Elder Member
• Posts: 2550
• Karma: 0
##### Re: FE-P1
« Reply #4 on: April 12, 2018, 05:04:43 AM »
Solution is correct but should be written in the form
u=\left\{\begin{aligned} & ...... && \text{case 1},\\ & ...... && \text{case 2} \end{aligned}\right.
where "case 1" and "case 2" (or may be more cases?) should be described.

So that anyone could easily compare what he or she got with yours. I actually highlighted cases in your posts.

Solution
From  (\ref{1-1}):

u(x,t)=\phi (x+4t)+\psi (x-4t).
\label{1-5}

Plugging to (\ref{1-2})--(\ref{1-3}),   we conclude that for $x>0$  $\phi(x) +\psi(x)=4e^{-2x}$, $4 \phi'(x)-4\psi'(x)=16e^{-2x}$; integrating the second equation we get  $\phi (x)-\psi(x)=-2e^{-2x}$ (since we can select constant equal to $0$ here) and finally

\label{1-6}

We need to find $\psi(x)$ for $x<0$. Plugging (\ref{1-5}) into (\ref{1-4}) we conclude that
\begin{align*}
&&&\psi'(-4t)-\psi(-4t)=4e^{-8t},\\
&\text{and plugging $x=-4t$ we see that}\\
&\text{and solving this ODE}\\
&&&(\psi e^{-x})'= 4e^{x}\implies \psi(x) e^{-x}=4e^{x}+C
\end{align*}
and therefore $\psi(x)=4e^{2x}+Ce^{x}$ for $x<0$. Since $\psi(+0)=3$, $\psi(-0)=4+C$ we need for continuity $C=-1$. So

\label{1-7}

Finally,

u(x,t)= \left\{\begin{aligned}
Almost everybody got correctly $\phi(x),\psi(x)$ for $x>0$ and $u(x,t)$ for $x>4t$.
Most correctly wrote equation $\psi' -\psi =4e^{2x}$ for $x<0$.
But then correctly finding one solution $\psi= 4e^{2x}$ (mostly by the method of undetermined coefficient), they wrote $\psi=4e^{2x}+C$ rather than $\psi=4e^{2x}+Ce^{x}$ (WTH). Which in turn yielded term $-1$ instead of correct one $-e^{x-4t}$ in the very end for $0<x<4t$.