# Example Calculations for the KdV and IST

Nonlinear PDE's Course
Current Topic Example Calculations for the KdV and IST
Next Topic Reaction-Diffusion Systems
Previous Topic Connection betwen KdV and the Schrodinger Equation

We consider here the two examples we treated in Properties of the Linear Schrodinger Equation.

## Example1: $\delta$ function potential

We have already calculated the scattering data for the delta function potential in Properties of the Linear Schrodinger Equation. The scattering data is

$S\left( \lambda,0\right) =\left( k_{1},\sqrt{k_{1}},\frac{u_{0}}{2ik-u_{0} },\frac{2ik}{2ik-u_{0}}\right)$

The spectral data evolves as

$k_{1}=k_{1}$
$c_{1}\left( t\right) =c_{1}\left( 0\right) e^{4k_{1}^{3}t}=\sqrt{k_{1} }e^{4k_{1}^{3}t}$
$r\left( k,t\right) =r\left( k,0\right) e^{8ik^{3}t}$
$a\left( k,t\right) =a\left( k,0\right)$

so that

$S\left( \lambda,t\right) =\left( k_{1},\sqrt{k_{1}}e^{4k_{1}^{3}t} ,\frac{u_{0}}{2ik-u_{0}}e^{8ik^{3}t},\frac{2ik}{2ik-u_{0}}\right)$

## Example 2: Hat Function Potential

We solve for the case when

$u\left( x\right) =\left\{ \begin{matrix} 0, & x\notin\left[ -1,1\right] \\ 20, & x\in\left[ -1,1\right] \end{matrix} \right.$

We have already solved this case in Properties of the Linear Schrodinger Equation. For the even solutions we need to solve

$\tan\kappa=\frac{k}{\kappa}$

where $\kappa=\sqrt{b-k^{2}}$.

For the odd solutions we need to solve and

$\tan\kappa=-\frac{\kappa}{k}$

Recall that the solitons have amplitude $2k_{n}^{2}$ or $-2\lambda_{n}$. This can be seen in the height of the solitary waves.

We cannot work with a hat function numerically, because the jump in $u$ leads to high frequencies which dominate the response.. We can smooth our function by a number of methods. We use here the function $\tanh\left( x\right)$ so we write

$u\left( x\right) =\frac{20}{2}\left( \tanh\left( \nu\left( x+1\right) \right) -\tanh\left( \nu\left( x-1\right) \right) \right)$

where $\nu$ is an appropriate constant to make the function increase in value sufficiently rapidly but not too rapidly.

Animation Three-dimensional plot.