Toronto Math Forum

APM346-2015F => APM346--Home Assignments => HA4 => Topic started by: Victor Ivrii on October 10, 2015, 07:24:25 AM

Title: HA4-P4
Post by: Victor Ivrii on October 10, 2015, 07:24:25 AM
Problem 8: http://www.math.toronto.edu/courses/apm346h1/20159/PDE-textbook/Chapter2/S2.6.P.html#problem-2.6.8 (http://www.math.toronto.edu/courses/apm346h1/20159/PDE-textbook/Chapter2/S2.6.P.html#problem-2.6.8)

Reflects new numeration of the problems
Title: Re: HA4-P4
Post by: Bruce Wu on October 12, 2015, 04:09:18 PM
a) For $x>3t$ the solution is given by D'Alembert's formula: $$u(x,t)=\frac{1}{6}[\sin(x+3t)-\sin(x-3t)]=\frac{1}{3}\cos(x)\sin(3t)$$
Here we have Dirichlet boundary condition. We use http://www.math.toronto.edu/courses/apm346h1/20159/PDE-textbook/Chapter2/S2.6.html#mjx-eqn-eq-2.6.31. Then for $0<x\leq3t$:$$u(x,t)=\frac{1}{6}[\sin(x+3t)-\sin(3t-x)]=\frac{1}{3}\cos(3t)\sin(x)$$
b) For $x>3t$ the solution is the same as in part a)
Here we have Neumann boundary condition. We use http://www.math.toronto.edu/courses/apm346h1/20159/PDE-textbook/Chapter2/S2.6.html#mjx-eqn-eq-2.6.31-. Then for $0<x\leq3t$:$$u(x,t)=\frac{1}{6}[\sin(x+3t)+\sin(3t-x)]=\frac{1}{3}\cos(x)\sin(3t)$$
c) For $x>3t$: $$u(x,t)=\frac{1}{6}[-\cos(x+3t)+\cos(x-3t)]=-\frac{1}{3}\sin(x)\sin(-3t)=\frac{1}{3}\sin(x)\sin(3t)$$
Dirichlet boundary condition. For $0<x\leq3t$:$$u(x,t)=\frac{1}{6}[-\cos(x+3t)+\cos(3t-x)]=\frac{1}{3}\sin(x)\sin(3t)$$
d) For $x>3t$ the solution is the same as in part c)
Neumann boundary condition. For $0<x\leq3t$:$$u(x,t)=\frac{1}{6}[-\cos(3t-x)+1+-\cos(x+3t)+1]=-\frac{1}{6}[\cos(3t-x)+\cos(x+3t)-2]=-\frac{1}{3}[\cos(3t)\cos(x)-1]$$
Title: Re: HA4-P4
Post by: Zaihao Zhou on October 15, 2015, 11:05:34 AM
Hi for a) and b) I got exact opposite signs in the middle. Did you use the formula given in the textbook? I think there in 2.6 Example 1 equation \begin{equation} \psi(x) = p(-x/c) - \phi(x) \end{equation} is not correct, the correct one should be \begin{equation} \psi(x) = p(-x/c) - \phi(-x) \end{equation}
I think this is the cause of your problem.

Could professor please verify?
Title: Re: HA4-P4
Post by: Victor Ivrii on October 15, 2015, 11:40:51 AM
What about plugging into initial and boundary condition as a mean to verify?