<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.wikiwaves.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Sean+Curry</id>
	<title>WikiWaves - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://www.wikiwaves.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Sean+Curry"/>
	<link rel="alternate" type="text/html" href="https://www.wikiwaves.org/index.php/Special:Contributions/Sean_Curry"/>
	<updated>2026-04-17T20:13:44Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.1</generator>
	<entry>
		<id>https://www.wikiwaves.org/index.php?title=Category:Multipole_Methods_for_Linear_Water_Waves&amp;diff=11033</id>
		<title>Category:Multipole Methods for Linear Water Waves</title>
		<link rel="alternate" type="text/html" href="https://www.wikiwaves.org/index.php?title=Category:Multipole_Methods_for_Linear_Water_Waves&amp;diff=11033"/>
		<updated>2010-02-19T00:19:13Z</updated>

		<summary type="html">&lt;p&gt;Sean Curry: /* With the Free Surface BC */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{incomplete pages}}&lt;br /&gt;
&lt;br /&gt;
== Multipole Expansions ==&lt;br /&gt;
&lt;br /&gt;
Multipole expansions are a technique used in linear water wave theory where the potential is represented as a sum of singularities (multipoles) placed within any structures that are present. Multipoles can be constructed with their singularity submerged or on the free surface and these are treated separately.&lt;br /&gt;
&lt;br /&gt;
Multipoles satisfy:&lt;br /&gt;
&lt;br /&gt;
{{Standard linear wave scattering equations without body condition}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{sommerfeld radiation condition two dimensions}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A linear combination of these multipoles can then be made to satisfy the body boundary conditions.&lt;br /&gt;
&lt;br /&gt;
== 2D Exterior Neumann Problem ==&lt;br /&gt;
&lt;br /&gt;
We start by developing the theory for Laplace&#039;s equation without the free surface for&lt;br /&gt;
a disk of radius &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; centered at the origin. The equation in polar coordinates is&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\nabla^2 \phi = \left[   \partial_r^2 + \frac{1}{r}\partial_r + \frac{1}{r^2} \partial_\theta^2  \right] \phi= 0 \quad &lt;br /&gt;
\mathrm{for} \quad r&amp;gt;a &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt; &lt;br /&gt;
&amp;lt;math&amp;gt;\partial_n \phi |_{r=a} = 0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
|\nabla\phi| \rightarrow 0 \quad as \quad r \rightarrow \infty &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
Using [http://en.wikipedia.org/wiki/Separation_of_Variables separation of variables] &lt;br /&gt;
we write&lt;br /&gt;
&amp;lt;math&amp;gt;\phi = R(r)\Theta(\theta).\,&amp;lt;/math&amp;gt; Substituting into Laplace&#039;s equations gives&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{r^2}{R}\partial_r^2 R + \frac{r}{R}\partial_r R = - \frac{1}{\Theta}\partial_\theta^2 \Theta = m^2 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
The equation for &amp;lt;math&amp;gt;\Theta\,&amp;lt;/math&amp;gt; is&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\quad \partial_\theta^2 \Theta = -m^2\Theta &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\Rightarrow \Theta = A(m) \cos(m\theta) + B(m) \sin(m\theta) \quad for \quad  m \neq 0 &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When m=0 the solution is &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \Theta = A(0) + B(0)\theta \,&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt; &amp;lt;math&amp;gt;\Theta(\theta + 2\pi) = \Theta(\theta) \Rightarrow  m \in Z \,\, and \,\, B(0) = 0\,&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The equation for R is &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \quad r^2\partial_r^2 R + r\partial_rR = m^2 R &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
This is a standard DE, to solve we substitute R = r^n giving:&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;n(n-1)r^n + nr^n = m^2r^n \Rightarrow n^2 = m^2 \Rightarrow n= \pm m&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
This gives two independent solutions for all m except m = 0, where we only get the constant solution. &lt;br /&gt;
&lt;br /&gt;
Noting that:&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;  \nabla^2 \left( \ln(r) \right) = \frac{-1}{r^2} + \frac{1}{r^2}  = 0 &amp;lt;/math&amp;gt; &amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So along with the obvious constant function we have two independant sotutions. Thus for m=0 we can write:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;R = C\left(0\right) + D(0) \ln(r)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and for &amp;lt;math&amp;gt;m\neq 0:&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;R = C\left(m\right)r^m + D(m)r^{-m}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The derivatives of the radial eigenfunctions must go to zero indicating zero fluid flow at infinity:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;|\nabla\phi| \rightarrow 0 \,\, as \,\, r \rightarrow \infty \Rightarrow\partial_r R \rightarrow 0 \,\, as \,\, r \rightarrow \infty &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\Rightarrow C(m)= 0 \,\, \forall m &amp;gt; 0 \,\,\, and \,\,\, D(m)=0 \,\, \forall m&amp;lt;0&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hence the general solution can be expressed as:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi = C(0) + D(0) \ln(r) + \sum_{m=1}^\infty \left( a(m)\frac{\cos(m\theta)}{r^m} +  b(m)\frac{\sin(m\theta)}{r^m}  \right) &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We don&#039;t need to include the negative m terms because of the symmetry of the sine and cosine eigenfunctions means these solutions are not independent.&lt;br /&gt;
&lt;br /&gt;
The solution can also be expressed simply in terms of complex exponentials.&lt;br /&gt;
&lt;br /&gt;
== With the Free Surface BC ==&lt;br /&gt;
&lt;br /&gt;
When we introduce the free surface BC we need to find a new set of eigenfunctions. We can use eigenfunctions from the infinite domain problem to construct them.&lt;br /&gt;
&lt;br /&gt;
Note that the origin is in the free surface directly above the center of the disc for cartesian coordinates. However the origin for the polar coordinates is still at the center of the disk.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We add a solution of Laplace&#039;s equation to the eigenfunctions for the infinite domain problem and require that these new functions(multipoles) satisfy the free surface condition.&lt;br /&gt;
&lt;br /&gt;
For n&amp;gt;0&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi_n = \frac{e^{in\theta}}{r^n} + \psi_n&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
and for m=0&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi_0 = \ln(r) + \psi_0 \,&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Where&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\nabla^2 \psi_n = 0 \quad for \quad n = 0,1,2, \ldots&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We want the multipoles to satisfy the free surface condition&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\partial_z \phi_n |_{z=0} = K\phi_n|_{z=0} \quad \forall n = 0,1,2, \ldots&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For n=0 the free surface condition gives our boundary condition for &amp;lt;math&amp;gt;\psi_0\,&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;f_0(x) = (\partial_z  - K)\psi_0|_{z=0} = (K - \partial_z) \left(ln\left(\frac{r}{a}\right)\right)|_{z=0} &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\Rightarrow f_0(x) = K \ln\left(\frac{\sqrt{x^2 + f^2}}{a}\right) - \int_0^\infty e^{-\omega f}\cos(\omega x)d\omega &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where we used the expansion&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\ln(r) = \int_0^\infty (e^{-\omega}- e^{-\omega|z+f|}\cos(\omega x))\frac{d\omega}{\omega}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For n&amp;gt;0 the free surface condition yields the boundary condition for &amp;lt;math&amp;gt;\psi_m\,&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;f_n(x) = (\partial_z - K)\psi_n|_{z=0} = \left(K  - \partial_z \right) \left(\frac{e^{in\theta}}{r^n}\right)|_{z=0} &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \Rightarrow f_n(x) = \frac{(-1)^n}{(n-1)!} \int_0^\infty(K+\omega)\omega^{n-1}e^{-\omega f}e^{-i\omega x} d\omega  \quad \quad (*)&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where we used the expansion (valid for z&amp;gt;-f)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \frac{e^{in\theta}}{r^n} = \frac{(-1)^n}{(n-1)!} \int_0^\infty\omega^{n-1}e^{-\omega(z+f) }e^{-i\omega x} d\omega &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So our psi functions satisfy the following problem:&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\nabla^2 \psi_n = 0 \quad for \quad n = 0,1,2, \ldots \quad \ldots (1)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
  &lt;br /&gt;
  &amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\psi_n \rightarrow 0 \quad as \quad z \rightarrow -\infty \quad \ldots (2)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
  &lt;br /&gt;
  &amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\partial_z \psi_n |_{z=0} - K\psi_n|_{z=0} = f_n(x) \quad \ldots (3)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We solve for &amp;lt;math&amp;gt;\hat{\psi}_n\,&amp;lt;/math&amp;gt; by taking a Fourier transform in x to simplify Laplace&#039;s equation&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\hat{\psi}_n(\omega,z) = \int_{-\infty}^\infty \psi_n(x,z) e^{i\omega x}dx&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;(1) \Rightarrow \partial_z^2 \hat{\psi}_n = \omega^2\hat{\psi}_n \Rightarrow \hat{\psi}_n = A_n(\omega)e^{\omega z} + B_n(\omega)e^{-\omega z}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;but \quad (2) \Rightarrow B_n(\omega) = 0 \quad \forall n&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;(3) \Rightarrow \partial_z \hat{\psi}_n |_{z=0} - K\hat{\psi}_n|_{z=0} = (\omega - K)\hat{\psi}_n|_{z=0} &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\Rightarrow  \hat{f}_n(\omega) = (\omega - K)A_n(\omega) &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Hence&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;A_n(\omega) = \frac{\hat{f}_n(\omega)}{\omega - K}  &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and we obtaion &amp;lt;math&amp;gt;\psi\,&amp;lt;/math&amp;gt; by the inverse Fourier transform:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\psi_n = \frac{1}{2\pi}\int_{-\infty}^\infty \hat{\psi}_n e^{-i\omega x}d\omega = \frac{1}{2\pi}\int_{-\infty}^\infty  \frac{\hat{f}_n(\omega)}{\omega - K} e^{\omega z}  e^{-i\omega x}d\omega&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For n&amp;gt;0 the form of &amp;lt;math&amp;gt;\hat{f}_n(\omega)&amp;lt;/math&amp;gt; can be obtained from the expansion of &amp;lt;math&amp;gt;f_n(x)\,&amp;lt;/math&amp;gt; labelled &amp;lt;math&amp;gt;(*)\,&amp;lt;/math&amp;gt; above by rewriting it as a Fourier transform. Substituting the result into the expression above, &amp;lt;math&amp;gt;\psi_n\,&amp;lt;/math&amp;gt; easily simplifies to:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\psi_n = \frac{(-1)^n}{(n-1)!}  \int_0^\infty  \frac{\omega + K}{\omega - K} \omega^{n-1} e^{\omega (z-f)}  e^{-i\omega x}d\omega&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
for n&amp;gt;0. Note: the integral above goes under the singularity at &amp;lt;math&amp;gt;\omega=K&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\psi_n\,&amp;lt;/math&amp;gt; can be expanded in a power series:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\psi_n = \sum_{m=0}^\infty A_{mn}r^m e^{im\theta},\,\,\,\textrm{for}\,\,\, m&amp;gt;0&amp;lt;/math&amp;gt; &amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;A_{mn}= \frac{(-1)^{m+n}}{m!(n-1)!}  \int_0^\infty  \frac{\omega + K}{\omega - K} \omega^{m+n-1} e^{-2\omega f}  d\omega&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
Note: the integral above goes under the singularity at &amp;lt;math&amp;gt;\omega=K&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Which comes from the substiuting the identity &amp;lt;center&amp;gt;&amp;lt;math&amp;gt;e^{\omega z} e^{-i\omega x} = e^{-\omega f}\sum_{m=0}^\infty \frac{(-1)^m}{m!} \omega^m r^m e^{im\theta}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
into the expression for &amp;lt;math&amp;gt;\psi_n\,&amp;lt;/math&amp;gt;. The identity is derived by expanding &amp;lt;math&amp;gt; e^{\omega z}e^{-i\omega x}e^{\omega f}  = e^{\omega(z+f-ix)} \,&amp;lt;/math&amp;gt; as a power series and using &amp;lt;math&amp;gt;z+f = -r\cos\theta \,\, and \,\, x=r\sin\theta&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 Working to get &amp;lt;math&amp;gt;\hat{f}_n(\omega)&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
We can write:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;f_n(x) = \int_0^\infty g(\omega)e^{-i\omega x} d\omega&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
where&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;g(\omega)= \frac{(-1)^n}{(n-1)!}(K+\omega)\omega^{n-1}e^{-\omega f}  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
We can rewrite &amp;lt;math&amp;gt;f_n(x)\,&amp;lt;/math&amp;gt; as an inverse fourier transform by using the euler identity and the odd and even properties of sine and cosine. Allowing us to obtain &amp;lt;math&amp;gt;\hat{f}_n(\omega)&amp;lt;/math&amp;gt;:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;f_n(x) = \int_0^\infty g(\omega)\cos(\omega x) d\omega -i \int_0^\infty g(\omega)\sin(\omega x) d\omega&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\Rightarrow f_n(x) = \frac{1}{2}\int_{-\infty}^\infty g(|\omega|)\cos(\omega x) d\omega -\frac{i}{2} \int_{-\infty}^\infty \frac{\omega}{|\omega|}g(|\omega|)\sin(\omega x) d\omega&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
Since &amp;lt;math&amp;gt;g(|\omega|)\,&amp;lt;/math&amp;gt; is even, its integral against sine over all x is zero so we can replace the cosine with a complex exponential in the first integral (similarly we replace -i*sine for the second).&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\Rightarrow f_n(x) = \frac{1}{2}\int_{-\infty}^\infty g(|\omega|)e^{-i\omega x} d\omega + \frac{1}{2} \int_{-\infty}^\infty \frac{\omega}{|\omega|}g(|\omega|)e^{-i\omega x} d\omega&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
Finally, combining the integrals, &amp;lt;math&amp;gt;\hat{f}_n(\omega)&amp;lt;/math&amp;gt; emerges:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\Rightarrow f_n(x) = \int_{-\infty}^\infty \frac{1}{2}\left( g(|\omega|) +  \frac{\omega}{|\omega|}g(|\omega|)\right) e^{-i\omega x} d\omega&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;math&amp;gt;\psi_0 \,&amp;lt;/math&amp;gt; remains to be derived.&lt;br /&gt;
&lt;br /&gt;
  In order to have a complete set to expand our flud potential we need to include &amp;lt;math&amp;gt;\bar{\phi}_n&amp;lt;/math&amp;gt; for n&amp;gt;0. &lt;br /&gt;
  This accounts for the second linearly independent solution for n&amp;gt;0.&lt;br /&gt;
&lt;br /&gt;
== Wave-Free Potentials ==&lt;br /&gt;
&lt;br /&gt;
The combination &amp;lt;math&amp;gt;\phi_{n+1} + Kn^{-1}\phi_n\,&amp;lt;/math&amp;gt;, n=1,2,3,... corresponds to a wave free singularity ie. no waves are radiated to infinity so the potential dies off in the far field.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi_{n+1} + Kn^{-1}\phi_n = \frac{e^{i(n+1)\theta}}{r^{(n+1)}} + \frac{(-1)^{(n+1)}}{n!}  \int_0^\infty  \frac{\omega + K}{\omega - K} \omega^{n} e^{\omega (z-f)}  e^{-i\omega x}d\omega &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
+\frac{K}{n}\left( \frac{e^{in\theta}}{r^n} + \frac{(-1)^n}{(n-1)!}  \int_0^\infty  \frac{\omega + K}{\omega - K} \omega^{n-1} e^{\omega (z-f)}  e^{-i\omega x}d\omega \right)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  This can be simplified by using the coordinate relationships: (need a picture)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;r = \sqrt{x^2 + (z+f)^2}, \quad r_1 = \sqrt{x^2 + (z-f)^2},&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;x = r \sin(\theta) = r_1 \sin(\theta_1),\,&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;-z-f = r \cos(\theta), \quad z-f = r_1 \cos(\theta_1).&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Resulting  in the expression:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi_{n+1} + Kn^{-1}\phi_n = \frac{e^{i(n+1)\theta}}{r^{(n+1)}}   + \frac{K}{n}\frac{e^{in\theta}}{r^n}  + \frac{e^{-i(n+1)\theta_1}}{r_1^{(n+1)}} - \frac{K}{n}\frac{e^{-in\theta_1}}{r_1^n}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
ie.&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi_{n+1} + Kn^{-1}\phi_n = \left( \frac{e^{i(n+1)\theta}}{r^{(n+1)}} + \frac{e^{-i(n+1)\theta_1}}{r_1^{(n+1)}} \right) +  \frac{K}{n} \left( \frac{e^{in\theta}}{r^n} - \frac{e^{-in\theta_1}}{r_1^n} \right)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Once again to obtain a complete set we also use the compex conjugates of these potentials.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
These idntities have been used:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;math&amp;gt; -\frac{e^{-in\theta_1}}{r_1^n} = \frac{(-1)^n}{(n-1)!}  \int_0^\infty  \frac{\omega + K}{\omega - K} \omega^{n-1} e^{\omega (z-f)}  e^{-i\omega x}d\omega  &amp;lt;/math&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
 &amp;lt;math&amp;gt; \frac{e^{-i(n+1)\theta_1}}{r_1^{(n+1)}} = \frac{(-1)^{(n+1)}}{n!}  \int_0^\infty  \frac{\omega + K}{\omega - K} \omega^{n} e^{\omega (z-f)}  e^{-i\omega x}d\omega&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Example: 2D Wave Scattering for a Submerged Horizontal Cylinder (in Infinite Depth)==&lt;br /&gt;
&lt;br /&gt;
***Picture to show problem set up***&lt;br /&gt;
&lt;br /&gt;
The potential for the scattering problem splits as incident and diffracted potentials and also into symmetric and antisymmetric parts.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi = \phi_I + \phi_D = \phi^+ + \phi^-\,&amp;lt;/math&amp;gt; &amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \partial_r \phi_I |_{r=a} = - \partial_r \phi_D |_{r=a} &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and &amp;lt;math&amp;gt;\phi^+, \,\, \phi^-&amp;lt;/math&amp;gt; are the symmetric and antisymmetric parts of &amp;lt;math&amp;gt;\phi \,&amp;lt;/math&amp;gt; respectively.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For a wave incident from the left we have&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi_I = e^{Kz} e^{iKx} = e^{-Kf}\sum_{n=0}^\infty \frac{(-Kr)^n }{n!} e^{-in\theta}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi_D = \sum_{n=1}^{\infty}a^n \alpha_n \phi_n^+ + \sum_{n=1}^{\infty}a^n \beta_n \phi_n^- &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi^+ = e^{Kz} \cos(Kx) + \sum_{n=1}^{\infty}a^n \alpha_n \phi_n^+&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and &amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi^- = ie^{Kz} \sin(Kx) + \sum_{n=1}^{\infty}a^n \beta_n \phi_n^- &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Converting &amp;lt;math&amp;gt;\phi^+\,&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\phi^-\,&amp;lt;/math&amp;gt; into the polar coordinate system:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi^+ = e^{-Kf}\sum_{n=0}^\infty \frac{(-Kr)^n }{n!} \cos(n\theta) + \sum_{n=1}^{\infty}a^n \alpha_n \left(\frac{\cos(n\theta)}{r^n} + \sum_{m=0}^\infty A_{mn}^+ r^m \cos(m\theta)\right)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi^- = ie^{-Kf}\sum_{n=0}^\infty \frac{(-Kr)^n }{n!} \sin(n\theta) + \sum_{n=1}^{\infty}a^n \beta_n \left(\frac{\sin(n\theta)}{r^n} + \sum_{m=0}^\infty A_{mn}^+ r^m \sin(m\theta)\right)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The above power series converge for r &amp;lt; 2f and the coefficients are given by&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; A_{mn} = \frac{(-1)^{m+n}}{m!(n-1)!} \quad SingularIntegral_0^\infty \quad \frac{\mu + K}{\mu - K} \mu ^{m+n-1} e^{-2\mu f}d\mu &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Applying the body boundary condition &amp;lt;math&amp;gt;\partial_r \phi^\pm |_{r=a} = 0&amp;lt;/math&amp;gt; and noting that the cosines are orthogonal over &amp;lt;math&amp;gt;\theta \in  (-\pi,\pi]&amp;lt;/math&amp;gt; gives the results&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \alpha_m - \sum_{n=1}^{\infty}a^{n+m} A_{mn} \alpha_n = e^{-Kf}\frac {(-Ka)^m}{m!}; m=1,2,3,\ldots&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \beta_m - \sum_{n=1}^{\infty}a^{n+m} A_{mn} \beta_n = -ie^{-Kf}\frac {(-Ka)^m}{m!}; m=1,2,3,\ldots&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
From which we can see that &amp;lt;math&amp;gt;\beta_n = -i\alpha_n\,&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The above sums can be truncated at the Nth term yielding NxN system of linear equations that can be solved for the coefficients &amp;lt;math&amp;gt;\alpha_n&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hence we can calculate &amp;lt;math&amp;gt;\phi\,&amp;lt;/math&amp;gt; from:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi = \phi^+ + \phi^- = \phi_I + \sum_{n=1}^{\infty}a^n \alpha_n ( \phi^+_n + \phi^-_n )&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This expression also gives the values of the reflection and transmission coefficients when we substitute the far field expressions for the symmetric and antisymmetric multipoles. In the far field:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \phi^+_n \sim \frac{2\pi i (-K)^n}{(n-1)!} e^{K(z-f)} e^{\pm Kx} &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math &amp;gt; \phi^-_n \sim \mp \frac{2\pi (-K)^n}{(n-1)!} e^{K(z-f)} e^{\pm Kx} &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Giving:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;R=0, \quad T = 1 + 4 \pi i e^{-Kf}  \sum_{n=1}^{\infty} \alpha_n \frac{(-Ka)^n}{(n-1)!} &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Hydrodynamic Forces ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Linear Water-Wave Theory]]&lt;/div&gt;</summary>
		<author><name>Sean Curry</name></author>
	</entry>
	<entry>
		<id>https://www.wikiwaves.org/index.php?title=Category:Multipole_Methods_for_Linear_Water_Waves&amp;diff=11005</id>
		<title>Category:Multipole Methods for Linear Water Waves</title>
		<link rel="alternate" type="text/html" href="https://www.wikiwaves.org/index.php?title=Category:Multipole_Methods_for_Linear_Water_Waves&amp;diff=11005"/>
		<updated>2010-02-17T01:21:40Z</updated>

		<summary type="html">&lt;p&gt;Sean Curry: /* With the Free Surface BC */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{incomplete pages}}&lt;br /&gt;
&lt;br /&gt;
== Multipole Expansions ==&lt;br /&gt;
&lt;br /&gt;
Multipole expansions are a technique used in linear water wave theory where the potential is represented as a sum of singularities (multipoles) placed within any structures that are present. Multipoles can be constructed with their singularity submerged or on the free surface and these are treated separately.&lt;br /&gt;
&lt;br /&gt;
Multipoles satisfy:&lt;br /&gt;
&lt;br /&gt;
{{Standard linear wave scattering equations without body condition}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{sommerfeld radiation condition two dimensions}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A linear combination of these multipoles can then be made to satisfy the body boundary conditions.&lt;br /&gt;
&lt;br /&gt;
== 2D Exterior Neumann Problem ==&lt;br /&gt;
&lt;br /&gt;
We start by developing the theory for Laplace&#039;s equation without the free surface for&lt;br /&gt;
a disk of radius &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; centered at the origin. The equation in polar coordinates is&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\nabla^2 \phi = \left[   \partial_r^2 + \frac{1}{r}\partial_r + \frac{1}{r^2} \partial_\theta^2  \right] \phi= 0 \quad &lt;br /&gt;
\mathrm{for} \quad r&amp;gt;a &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt; &lt;br /&gt;
&amp;lt;math&amp;gt;\partial_n \phi |_{r=a} = 0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
|\nabla\phi| \rightarrow 0 \quad as \quad r \rightarrow \infty &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
Using [http://en.wikipedia.org/wiki/Separation_of_Variables separation of variables] &lt;br /&gt;
we write&lt;br /&gt;
&amp;lt;math&amp;gt;\phi = R(r)\Theta(\theta).\,&amp;lt;/math&amp;gt; Substituting into Laplace&#039;s equations gives&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{r^2}{R}\partial_r^2 R + \frac{r}{R}\partial_r R = - \frac{1}{\Theta}\partial_\theta^2 \Theta = m^2 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
The equation for &amp;lt;math&amp;gt;\Theta\,&amp;lt;/math&amp;gt; is&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\quad \partial_\theta^2 \Theta = -m^2\Theta &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\Rightarrow \Theta = A(m) \cos(m\theta) + B(m) \sin(m\theta) \quad for \quad  m \neq 0 &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When m=0 the solution is &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \Theta = A(0) + B(0)\theta \,&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt; &amp;lt;math&amp;gt;\Theta(\theta + 2\pi) = \Theta(\theta) \Rightarrow  m \in Z \,\, and \,\, B(0) = 0\,&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The equation for R is &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \quad r^2\partial_r^2 R + r\partial_rR = m^2 R &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
This is a standard DE, to solve we substitute R = r^n giving:&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;n(n-1)r^n + nr^n = m^2r^n \Rightarrow n^2 = m^2 \Rightarrow n= \pm m&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
This gives two independent solutions for all m except m = 0, where we only get the constant solution. &lt;br /&gt;
&lt;br /&gt;
Noting that:&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;  \nabla^2 \left( \ln(r) \right) = \frac{-1}{r^2} + \frac{1}{r^2}  = 0 &amp;lt;/math&amp;gt; &amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So along with the obvious constant function we have two independant sotutions. Thus for m=0 we can write:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;R = C\left(0\right) + D(0) \ln(r)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and for &amp;lt;math&amp;gt;m\neq 0:&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;R = C\left(m\right)r^m + D(m)r^{-m}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The derivatives of the radial eigenfunctions must go to zero indicating zero fluid flow at infinity:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;|\nabla\phi| \rightarrow 0 \,\, as \,\, r \rightarrow \infty \Rightarrow\partial_r R \rightarrow 0 \,\, as \,\, r \rightarrow \infty &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\Rightarrow C(m)= 0 \,\, \forall m &amp;gt; 0 \,\,\, and \,\,\, D(m)=0 \,\, \forall m&amp;lt;0&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hence the general solution can be expressed as:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi = C(0) + D(0) \ln(r) + \sum_{m=1}^\infty \left( a(m)\frac{\cos(m\theta)}{r^m} +  b(m)\frac{\sin(m\theta)}{r^m}  \right) &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We don&#039;t need to include the negative m terms because of the symmetry of the sine and cosine eigenfunctions means these solutions are not independent.&lt;br /&gt;
&lt;br /&gt;
The solution can also be expressed simply in terms of complex exponentials.&lt;br /&gt;
&lt;br /&gt;
== With the Free Surface BC ==&lt;br /&gt;
&lt;br /&gt;
When we introduce the free surface BC we need to find a new set of eigenfunctions. We can use eigenfunctions from the infinite domain problem to construct them.&lt;br /&gt;
&lt;br /&gt;
Note that the origin is in the free surface directly above the center of the disc for cartesian coordinates. However the origin for the polar coordinates is still at the center of the disk.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We add a solution of Laplace&#039;s equation to the eigenfunctions for the infinite domain problem and require that these new functions(multipoles) satisfy the free surface condition.&lt;br /&gt;
&lt;br /&gt;
For n&amp;gt;0&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi_n = \frac{e^{in\theta}}{r^n} + \psi_n&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
and for m=0&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi_0 = \ln(r) + \psi_0 \,&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Where&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\nabla^2 \psi_n = 0 \quad for \quad n = 0,1,2, \ldots&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We want the multipoles to satisfy the free surface condition&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\partial_z \phi_n |_{z=0} = K\phi_n|_{z=0} \quad \forall n = 0,1,2, \ldots&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For n=0 the free surface condition gives our boundary condition for &amp;lt;math&amp;gt;\psi_0\,&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;f_0(x) = (\partial_z  - K)\psi_0|_{z=0} = (K - \partial_z) \left(ln\left(\frac{r}{a}\right)\right)|_{z=0} &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\Rightarrow f_0(x) = K \ln\left(\frac{\sqrt{x^2 + f^2}}{a}\right) - \int_0^\infty e^{-\omega f}\cos(\omega x)d\omega &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where we used the expansion&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\ln(r) = \int_0^\infty (e^{-\omega}- e^{-\omega|z+f|}\cos(\omega x))\frac{d\omega}{\omega}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For n&amp;gt;0 the free surface condition yields the boundary condition for &amp;lt;math&amp;gt;\psi_m\,&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;f_n(x) = (\partial_z - K)\psi_n|_{z=0} = \left(K  - \partial_z \right) \left(\frac{e^{in\theta}}{r^n}\right)|_{z=0} &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \Rightarrow f_n(x) = \frac{(-1)^n}{(n-1)!} \int_0^\infty(K+\omega)\omega^{n-1}e^{-\omega f}e^{-i\omega x} d\omega  \quad \quad (*)&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where we used the expansion (valid for z&amp;gt;-f)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \frac{e^{in\theta}}{r^n} = \frac{(-1)^n}{(n-1)!} \int_0^\infty\omega^{n-1}e^{-\omega(z+f) }e^{-i\omega x} d\omega &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So our psi functions satisfy the following problem:&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\nabla^2 \psi_n = 0 \quad for \quad n = 0,1,2, \ldots \quad \ldots (1)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
  &lt;br /&gt;
  &amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\psi_n \rightarrow 0 \quad as \quad z \rightarrow -\infty \quad \ldots (2)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
  &lt;br /&gt;
  &amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\partial_z \psi_n |_{z=0} - K\psi_n|_{z=0} = f_n(x) \quad \ldots (3)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We solve for &amp;lt;math&amp;gt;\hat{\psi}_n\,&amp;lt;/math&amp;gt; by taking a Fourier transform in x to simplify Laplace&#039;s equation&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\hat{\psi}_n(\omega,z) = \int_{-\infty}^\infty \psi_n(x,z) e^{i\omega x}dx&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;(1) \Rightarrow \partial_z^2 \hat{\psi}_n = \omega^2\hat{\psi}_n \Rightarrow \hat{\psi}_n = A_n(\omega)e^{\omega z} + B_n(\omega)e^{-\omega z}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;but \quad (2) \Rightarrow B_n(\omega) = 0 \quad \forall n&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;(3) \Rightarrow \partial_z \hat{\psi}_n |_{z=0} - K\hat{\psi}_n|_{z=0} = (\omega - K)\hat{\psi}_n|_{z=0} &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\Rightarrow  \hat{f}_n(\omega) = (\omega - K)A_n(\omega) &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Hence&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;A_n(\omega) = \frac{\hat{f}_n(\omega)}{\omega - K}  &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and we obtaion &amp;lt;math&amp;gt;\psi\,&amp;lt;/math&amp;gt; by the inverse Fourier transform:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\psi_n = \frac{1}{2\pi}\int_{-\infty}^\infty \hat{\psi}_n e^{-i\omega x}d\omega = \frac{1}{2\pi}\int_{-\infty}^\infty  \frac{\hat{f}_n(\omega)}{\omega - K} e^{\omega z}  e^{-i\omega x}d\omega&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For n&amp;gt;0 the form of &amp;lt;math&amp;gt;\hat{f}_n(\omega)&amp;lt;/math&amp;gt; can be obtained from the expansion of &amp;lt;math&amp;gt;f_n(x)\,&amp;lt;/math&amp;gt; labelled &amp;lt;math&amp;gt;(*)\,&amp;lt;/math&amp;gt; above by rewriting it as a Fourier transform. Substituting the result into the expression above, &amp;lt;math&amp;gt;\psi_n\,&amp;lt;/math&amp;gt; easily simplifies to:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\psi_n = \frac{(-1)^n}{(n-1)!}  \int_0^\infty  \frac{\omega + K}{\omega - K} \omega^{n-1} e^{\omega (z-f)}  e^{-i\omega x}d\omega&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
for n&amp;gt;0. Note: the integral above goes under the singularity at &amp;lt;math&amp;gt;\omega=K&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 Working to get &amp;lt;math&amp;gt;\hat{f}_n(\omega)&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
We can write:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;f_n(x) = \int_0^\infty g(\omega)e^{-i\omega x} d\omega&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
where&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;g(\omega)= \frac{(-1)^n}{(n-1)!}(K+\omega)\omega^{n-1}e^{-\omega f}  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
We can rewrite &amp;lt;math&amp;gt;f_n(x)\,&amp;lt;/math&amp;gt; as an inverse fourier transform by using the euler identity and the odd and even properties of sine and cosine. Allowing us to obtain &amp;lt;math&amp;gt;\hat{f}_n(\omega)&amp;lt;/math&amp;gt;:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;f_n(x) = \int_0^\infty g(\omega)\cos(\omega x) d\omega -i \int_0^\infty g(\omega)\sin(\omega x) d\omega&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\Rightarrow f_n(x) = \frac{1}{2}\int_{-\infty}^\infty g(|\omega|)\cos(\omega x) d\omega -\frac{i}{2} \int_{-\infty}^\infty \frac{\omega}{|\omega|}g(|\omega|)\sin(\omega x) d\omega&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
Since &amp;lt;math&amp;gt;g(|\omega|)\,&amp;lt;/math&amp;gt; is even, its integral against sine over all x is zero so we can replace the cosine with a complex exponential in the first integral (similarly we replace -i*sine for the second).&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\Rightarrow f_n(x) = \frac{1}{2}\int_{-\infty}^\infty g(|\omega|)e^{-i\omega x} d\omega + \frac{1}{2} \int_{-\infty}^\infty \frac{\omega}{|\omega|}g(|\omega|)e^{-i\omega x} d\omega&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
Finally, combining the integrals, &amp;lt;math&amp;gt;\hat{f}_n(\omega)&amp;lt;/math&amp;gt; emerges:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\Rightarrow f_n(x) = \int_{-\infty}^\infty \frac{1}{2}\left( g(|\omega|) +  \frac{\omega}{|\omega|}g(|\omega|)\right) e^{-i\omega x} d\omega&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;math&amp;gt;\psi_0 \,&amp;lt;/math&amp;gt; remains to be derived.&lt;br /&gt;
&lt;br /&gt;
  In order to have a complete set to expand our flud potential we need to include &amp;lt;math&amp;gt;\bar{\phi}_m&amp;lt;/math&amp;gt; for m&amp;gt;0. &lt;br /&gt;
  This accounts for the second linearly independent solution for m&amp;gt;0.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\psi_m\,&amp;lt;/math&amp;gt; can be expanded in a power series:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\psi_m = \sum_{m=0}^\infty A_{mn}r^m e^{im\theta},\,\,\,\textrm{for}\,\,\, m&amp;gt;0&amp;lt;/math&amp;gt; &amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;A_{mn}= \frac{(-1)^{m+n}}{m!(n-1)!}  \int_0^\infty  \frac{\omega + K}{\omega - K} \omega^{m+n-1} e^{-2\omega f}  d\omega&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
Note: the integral above goes under the singularity at &amp;lt;math&amp;gt;\omega=K&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
  Which comes from the identity (to be derived)&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;e^{\omega z} e^{i\omega x} = e^{-\omega f}\sum_{m=0}^\infty \frac{(-1)^m}{m!} \omega^m r^m e^{im\theta}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Wave-Free Potentials ==&lt;br /&gt;
&lt;br /&gt;
The combination &amp;lt;math&amp;gt;\phi_{n+1} + Kn^{-1}\phi_n\,&amp;lt;/math&amp;gt;, n=1,2,3,... corresponds to a wave free singularity ie. no waves are radiated to infinity so the potential dies off in the far field.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi_{n+1} + Kn^{-1}\phi_n = \frac{e^{i(n+1)\theta}}{r^{(n+1)}} + \frac{(-1)^{(n+1)}}{n!}  \int_0^\infty  \frac{\omega + K}{\omega - K} \omega^{n} e^{\omega (z-f)}  e^{-i\omega x}d\omega &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
+\frac{K}{n}\left( \frac{e^{in\theta}}{r^n} + \frac{(-1)^n}{(n-1)!}  \int_0^\infty  \frac{\omega + K}{\omega - K} \omega^{n-1} e^{\omega (z-f)}  e^{-i\omega x}d\omega \right)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  This can be simplified by using the coordinate relationships: (need a picture)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;r = \sqrt{x^2 + (z+f)^2}, \quad r_1 = \sqrt{x^2 + (z-f)^2},&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;x = r \sin(\theta) = r_1 \sin(\theta_1),\,&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;-z-f = r \cos(\theta), \quad z-f = r_1 \cos(\theta_1).&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Resulting  in the expression:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi_{n+1} + Kn^{-1}\phi_n = \frac{e^{i(n+1)\theta}}{r^{(n+1)}}   + \frac{K}{n}\frac{e^{in\theta}}{r^n}  + \frac{e^{-i(n+1)\theta_1}}{r_1^{(n+1)}} - \frac{K}{n}\frac{e^{-in\theta_1}}{r_1^n}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
ie.&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi_{n+1} + Kn^{-1}\phi_n = \left( \frac{e^{i(n+1)\theta}}{r^{(n+1)}} + \frac{e^{-i(n+1)\theta_1}}{r_1^{(n+1)}} \right) +  \frac{K}{n} \left( \frac{e^{in\theta}}{r^n} - \frac{e^{-in\theta_1}}{r_1^n} \right)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Once again to obtain a complete set we also use the compex conjugates of these potentials.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
These idntities have been used:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;math&amp;gt; -\frac{e^{-in\theta_1}}{r_1^n} = \frac{(-1)^n}{(n-1)!}  \int_0^\infty  \frac{\omega + K}{\omega - K} \omega^{n-1} e^{\omega (z-f)}  e^{-i\omega x}d\omega  &amp;lt;/math&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
 &amp;lt;math&amp;gt; \frac{e^{-i(n+1)\theta_1}}{r_1^{(n+1)}} = \frac{(-1)^{(n+1)}}{n!}  \int_0^\infty  \frac{\omega + K}{\omega - K} \omega^{n} e^{\omega (z-f)}  e^{-i\omega x}d\omega&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Example: 2D Wave Scattering for a Submerged Horizontal Cylinder (in Infinite Depth)==&lt;br /&gt;
&lt;br /&gt;
***Picture to show problem set up***&lt;br /&gt;
&lt;br /&gt;
The potential for the scattering problem splits as incident and diffracted potentials and also into symmetric and antisymmetric parts.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi = \phi_I + \phi_D = \phi^+ + \phi^-\,&amp;lt;/math&amp;gt; &amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \partial_r \phi_I |_{r=a} = - \partial_r \phi_D |_{r=a} &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and &amp;lt;math&amp;gt;\phi^+, \,\, \phi^-&amp;lt;/math&amp;gt; are the symmetric and antisymmetric parts of &amp;lt;math&amp;gt;\phi \,&amp;lt;/math&amp;gt; respectively.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For a wave incident from the left we have&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi_I = e^{Kz} e^{iKx} = e^{-Kf}\sum_{n=0}^\infty \frac{(-Kr)^n }{n!} e^{-in\theta}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi_D = \sum_{n=1}^{\infty}a^n \alpha_n \phi_n^+ + \sum_{n=1}^{\infty}a^n \beta_n \phi_n^- &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi^+ = e^{Kz} \cos(Kx) + \sum_{n=1}^{\infty}a^n \alpha_n \phi_n^+&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and &amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi^- = ie^{Kz} \sin(Kx) + \sum_{n=1}^{\infty}a^n \beta_n \phi_n^- &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Converting &amp;lt;math&amp;gt;\phi^+\,&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\phi^-\,&amp;lt;/math&amp;gt; into the polar coordinate system:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi^+ = e^{-Kf}\sum_{n=0}^\infty \frac{(-Kr)^n }{n!} \cos(n\theta) + \sum_{n=1}^{\infty}a^n \alpha_n \left(\frac{\cos(n\theta)}{r^n} + \sum_{m=0}^\infty A_{mn}^+ r^m \cos(m\theta)\right)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi^- = ie^{-Kf}\sum_{n=0}^\infty \frac{(-Kr)^n }{n!} \sin(n\theta) + \sum_{n=1}^{\infty}a^n \beta_n \left(\frac{\sin(n\theta)}{r^n} + \sum_{m=0}^\infty A_{mn}^+ r^m \sin(m\theta)\right)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The above power series converge for r &amp;lt; 2f and the coefficients are given by&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; A_{mn} = \frac{(-1)^{m+n}}{m!(n-1)!} \quad SingularIntegral_0^\infty \quad \frac{\mu + K}{\mu - K} \mu ^{m+n-1} e^{-2\mu f}d\mu &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Applying the body boundary condition &amp;lt;math&amp;gt;\partial_r \phi^\pm |_{r=a} = 0&amp;lt;/math&amp;gt; and noting that the cosines are orthogonal over &amp;lt;math&amp;gt;\theta \in  (-\pi,\pi]&amp;lt;/math&amp;gt; gives the results&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \alpha_m - \sum_{n=1}^{\infty}a^{n+m} A_{mn} \alpha_n = e^{-Kf}\frac {(-Ka)^m}{m!}; m=1,2,3,\ldots&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \beta_m - \sum_{n=1}^{\infty}a^{n+m} A_{mn} \beta_n = -ie^{-Kf}\frac {(-Ka)^m}{m!}; m=1,2,3,\ldots&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
From which we can see that &amp;lt;math&amp;gt;\beta_n = -i\alpha_n\,&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The above sums can be truncated at the Nth term yielding NxN system of linear equations that can be solved for the coefficients &amp;lt;math&amp;gt;\alpha_n&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hence we can calculate &amp;lt;math&amp;gt;\phi\,&amp;lt;/math&amp;gt; from:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi = \phi^+ + \phi^- = \phi_I + \sum_{n=1}^{\infty}a^n \alpha_n ( \phi^+_n + \phi^-_n )&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This expression also gives the values of the reflection and transmission coefficients when we substitute the far field expressions for the symmetric and antisymmetric multipoles. In the far field:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \phi^+_n \sim \frac{2\pi i (-K)^n}{(n-1)!} e^{K(z-f)} e^{\pm Kx} &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math &amp;gt; \phi^-_n \sim \mp \frac{2\pi (-K)^n}{(n-1)!} e^{K(z-f)} e^{\pm Kx} &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Giving:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;R=0, \quad T = 1 + 4 \pi i e^{-Kf}  \sum_{n=1}^{\infty} \alpha_n \frac{(-Ka)^n}{(n-1)!} &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Hydrodynamic Forces ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Linear Water-Wave Theory]]&lt;/div&gt;</summary>
		<author><name>Sean Curry</name></author>
	</entry>
	<entry>
		<id>https://www.wikiwaves.org/index.php?title=Category:Multipole_Methods_for_Linear_Water_Waves&amp;diff=11003</id>
		<title>Category:Multipole Methods for Linear Water Waves</title>
		<link rel="alternate" type="text/html" href="https://www.wikiwaves.org/index.php?title=Category:Multipole_Methods_for_Linear_Water_Waves&amp;diff=11003"/>
		<updated>2010-02-17T00:50:02Z</updated>

		<summary type="html">&lt;p&gt;Sean Curry: /* Example: 2D Wave Scattering for a Submerged Horizontal Cylinder (in Infinite Depth) */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{incomplete pages}}&lt;br /&gt;
&lt;br /&gt;
== Multipole Expansions ==&lt;br /&gt;
&lt;br /&gt;
Multipole expansions are a technique used in linear water wave theory where the potential is represented as a sum of singularities (multipoles) placed within any structures that are present. Multipoles can be constructed with their singularity submerged or on the free surface and these are treated separately.&lt;br /&gt;
&lt;br /&gt;
Multipoles satisfy:&lt;br /&gt;
&lt;br /&gt;
{{Standard linear wave scattering equations without body condition}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{sommerfeld radiation condition two dimensions}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A linear combination of these multipoles can then be made to satisfy the body boundary conditions.&lt;br /&gt;
&lt;br /&gt;
== 2D Exterior Neumann Problem ==&lt;br /&gt;
&lt;br /&gt;
We start by developing the theory for Laplace&#039;s equation without the free surface for&lt;br /&gt;
a disk of radius &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; centered at the origin. The equation in polar coordinates is&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\nabla^2 \phi = \left[   \partial_r^2 + \frac{1}{r}\partial_r + \frac{1}{r^2} \partial_\theta^2  \right] \phi= 0 \quad &lt;br /&gt;
\mathrm{for} \quad r&amp;gt;a &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt; &lt;br /&gt;
&amp;lt;math&amp;gt;\partial_n \phi |_{r=a} = 0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
|\nabla\phi| \rightarrow 0 \quad as \quad r \rightarrow \infty &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
Using [http://en.wikipedia.org/wiki/Separation_of_Variables separation of variables] &lt;br /&gt;
we write&lt;br /&gt;
&amp;lt;math&amp;gt;\phi = R(r)\Theta(\theta).\,&amp;lt;/math&amp;gt; Substituting into Laplace&#039;s equations gives&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{r^2}{R}\partial_r^2 R + \frac{r}{R}\partial_r R = - \frac{1}{\Theta}\partial_\theta^2 \Theta = m^2 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
The equation for &amp;lt;math&amp;gt;\Theta\,&amp;lt;/math&amp;gt; is&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\quad \partial_\theta^2 \Theta = -m^2\Theta &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\Rightarrow \Theta = A(m) \cos(m\theta) + B(m) \sin(m\theta) \quad for \quad  m \neq 0 &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When m=0 the solution is &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \Theta = A(0) + B(0)\theta \,&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt; &amp;lt;math&amp;gt;\Theta(\theta + 2\pi) = \Theta(\theta) \Rightarrow  m \in Z \,\, and \,\, B(0) = 0\,&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The equation for R is &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \quad r^2\partial_r^2 R + r\partial_rR = m^2 R &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
This is a standard DE, to solve we substitute R = r^n giving:&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;n(n-1)r^n + nr^n = m^2r^n \Rightarrow n^2 = m^2 \Rightarrow n= \pm m&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
This gives two independent solutions for all m except m = 0, where we only get the constant solution. &lt;br /&gt;
&lt;br /&gt;
Noting that:&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;  \nabla^2 \left( \ln(r) \right) = \frac{-1}{r^2} + \frac{1}{r^2}  = 0 &amp;lt;/math&amp;gt; &amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So along with the obvious constant function we have two independant sotutions. Thus for m=0 we can write:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;R = C\left(0\right) + D(0) \ln(r)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and for &amp;lt;math&amp;gt;m\neq 0:&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;R = C\left(m\right)r^m + D(m)r^{-m}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The derivatives of the radial eigenfunctions must go to zero indicating zero fluid flow at infinity:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;|\nabla\phi| \rightarrow 0 \,\, as \,\, r \rightarrow \infty \Rightarrow\partial_r R \rightarrow 0 \,\, as \,\, r \rightarrow \infty &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\Rightarrow C(m)= 0 \,\, \forall m &amp;gt; 0 \,\,\, and \,\,\, D(m)=0 \,\, \forall m&amp;lt;0&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hence the general solution can be expressed as:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi = C(0) + D(0) \ln(r) + \sum_{m=1}^\infty \left( a(m)\frac{\cos(m\theta)}{r^m} +  b(m)\frac{\sin(m\theta)}{r^m}  \right) &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We don&#039;t need to include the negative m terms because of the symmetry of the sine and cosine eigenfunctions means these solutions are not independent.&lt;br /&gt;
&lt;br /&gt;
The solution can also be expressed simply in terms of complex exponentials.&lt;br /&gt;
&lt;br /&gt;
== With the Free Surface BC ==&lt;br /&gt;
&lt;br /&gt;
When we introduce the free surface BC we need to find a new set of eigenfunctions. We can use eigenfunctions from the infinite domain problem to construct them.&lt;br /&gt;
&lt;br /&gt;
Note that the origin is in the free surface directly above the center of the disc for cartesian coordinates. However the origin for the polar coordinates is still at the center of the disk.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We add a solution of Laplace&#039;s equation to the eigenfunctions for the infinite domain problem and require that these new functions(multipoles) satisfy the free surface condition.&lt;br /&gt;
&lt;br /&gt;
For n&amp;gt;0&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi_n = \frac{e^{in\theta}}{r^n} + \psi_n&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
and for m=0&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi_0 = \ln(r) + \psi_0 \,&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Where&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\nabla^2 \psi_n = 0 \quad for \quad n = 0,1,2, \ldots&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We want the multipoles to satisfy the free surface condition&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\partial_z \phi_n |_{z=0} = K\phi_n|_{z=0} \quad \forall n = 0,1,2, \ldots&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For n=0 the free surface condition gives our boundary condition for &amp;lt;math&amp;gt;\psi_0\,&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;f_0(x) = (\partial_z  - K)\psi_0|_{z=0} = (K - \partial_z) \left(ln\left(\frac{r}{a}\right)\right)|_{z=0} &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\Rightarrow f_0(x) = K \ln\left(\frac{\sqrt{x^2 + f^2}}{a}\right) - \int_0^\infty e^{-\omega f}\cos(\omega x)d\omega &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where we used the expansion&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\ln(r) = \int_0^\infty (e^{-\omega}- e^{-\omega|z+f|}\cos(\omega x))\frac{d\omega}{\omega}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For n&amp;gt;0 the free surface condition yields the boundary condition for &amp;lt;math&amp;gt;\psi_m\,&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;f_n(x) = (\partial_z - K)\psi_n|_{z=0} = \left(K  - \partial_z \right) \left(\frac{e^{in\theta}}{r^n}\right)|_{z=0} &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \Rightarrow f_n(x) = \frac{(-1)^n}{(n-1)!} \int_0^\infty(K+\omega)\omega^{n-1}e^{-\omega f}e^{-i\omega x} d\omega  \quad \quad (*)&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where we used the expansion (valid for z&amp;gt;-f)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \frac{e^{in\theta}}{r^n} = \frac{(-1)^n}{(n-1)!} \int_0^\infty\omega^{n-1}e^{-\omega(z+f) }e^{-i\omega x} d\omega &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So our psi functions satisfy the following problem:&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\nabla^2 \psi_n = 0 \quad for \quad n = 0,1,2, \ldots \quad \ldots (1)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
  &lt;br /&gt;
  &amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\psi_n \rightarrow 0 \quad as \quad z \rightarrow -\infty \quad \ldots (2)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
  &lt;br /&gt;
  &amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\partial_z \psi_n |_{z=0} - K\psi_n|_{z=0} = f_n(x) \quad \ldots (3)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We solve for &amp;lt;math&amp;gt;\hat{\psi}_n\,&amp;lt;/math&amp;gt; by taking a Fourier transform in x to simplify Laplace&#039;s equation&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\hat{\psi}_n(\omega,z) = \int_{-\infty}^\infty \psi_n(x,z) e^{i\omega x}dx&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;(1) \Rightarrow \partial_z^2 \hat{\psi}_n = \omega^2\hat{\psi}_n \Rightarrow \hat{\psi}_n = A_n(\omega)e^{\omega z} + B_n(\omega)e^{-\omega z}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;but \quad (2) \Rightarrow B_n(\omega) = 0 \quad \forall n&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;(3) \Rightarrow \partial_z \hat{\psi}_n |_{z=0} - K\hat{\psi}_n|_{z=0} = (\omega - K)\hat{\psi}_n|_{z=0} &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\Rightarrow  \hat{f}_n(\omega) = (\omega - K)A_n(\omega) &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Hence&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;A_n(\omega) = \frac{\hat{f}_n(\omega)}{\omega - K}  &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and we obtaion &amp;lt;math&amp;gt;\psi\,&amp;lt;/math&amp;gt; by the inverse Fourier transform:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\psi_n = \frac{1}{2\pi}\int_{-\infty}^\infty \hat{\psi}_n e^{-i\omega x}d\omega = \frac{1}{2\pi}\int_{-\infty}^\infty  \frac{\hat{f}_n(\omega)}{\omega - K} e^{\omega z}  e^{-i\omega x}d\omega&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For n&amp;gt;0 the form of &amp;lt;math&amp;gt;\hat{f}_n(\omega)&amp;lt;/math&amp;gt; can be obtained from the expansion of &amp;lt;math&amp;gt;f_n(x)\,&amp;lt;/math&amp;gt; labelled &amp;lt;math&amp;gt;(*)\,&amp;lt;/math&amp;gt; above by rewriting it as a Fourier transform. Substituting the result into the expression above, &amp;lt;math&amp;gt;\psi_n\,&amp;lt;/math&amp;gt; easily simplifies to:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\psi_n = \frac{(-1)^n}{(n-1)!}  \int_0^\infty  \frac{\omega + K}{\omega - K} \omega^{n-1} e^{\omega (z-f)}  e^{-i\omega x}d\omega&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
for n&amp;gt;0. Note: the integral above goes under the singularity at &amp;lt;math&amp;gt;\omega=K&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 Working to get &amp;lt;math&amp;gt;\hat{f}_n(\omega)&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
We can write:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;f_n(x) = \int_0^\infty g(\omega)e^{-i\omega x} d\omega&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
where&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;g(\omega)= \frac{(-1)^n}{(n-1)!}(K+\omega)\omega^{n-1}e^{-\omega f}  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
We can rewrite &amp;lt;math&amp;gt;f_n(x)\,&amp;lt;/math&amp;gt; as an inverse fourier transform by using the euler identity and the odd and even properties of sine and cosine. Allowing us to obtain &amp;lt;math&amp;gt;\hat{f}_n(\omega)&amp;lt;/math&amp;gt;:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;f_n(x) = \int_0^\infty g(\omega)\cos(\omega x) d\omega -i \int_0^\infty g(\omega)\sin(\omega x) d\omega&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\Rightarrow f_n(x) = \frac{1}{2}\int_{-\infty}^\infty g(|\omega|)\cos(\omega x) d\omega -\frac{i}{2} \int_{-\infty}^\infty \frac{\omega}{|\omega|}g(|\omega|)\sin(\omega x) d\omega&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
Since &amp;lt;math&amp;gt;g(|\omega|)\,&amp;lt;/math&amp;gt; is even, its integral against sine over all x is zero so we can replace the cosine with a complex exponential in the first integral (similarly we replace -i*sine for the second).&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\Rightarrow f_n(x) = \frac{1}{2}\int_{-\infty}^\infty g(|\omega|)e^{-i\omega x} d\omega + \frac{1}{2} \int_{-\infty}^\infty \frac{\omega}{|\omega|}g(|\omega|)e^{-i\omega x} d\omega&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
Finally, combining the integrals, &amp;lt;math&amp;gt;\hat{f}_n(\omega)&amp;lt;/math&amp;gt; emerges:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\Rightarrow f_n(x) = \int_{-\infty}^\infty \frac{1}{2}\left( g(|\omega|) +  \frac{\omega}{|\omega|}g(|\omega|)\right) e^{-i\omega x} d\omega&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;math&amp;gt;\psi_0 \,&amp;lt;/math&amp;gt; remains to be derived.&lt;br /&gt;
&lt;br /&gt;
  In order to have a complete set to expand our flud potential we need to include &amp;lt;math&amp;gt;\bar{\phi}_m&amp;lt;/math&amp;gt; for m&amp;gt;0. &lt;br /&gt;
  This accounts for the second linearly independent solution for m&amp;gt;0.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\psi_m\,&amp;lt;/math&amp;gt; can be expanded in a power series:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\psi_m = \sum_{m=0}^\infty A_{mn}r^m \cos(m\theta),\,\,\,\textrm{for}\,\,\, m&amp;gt;0&amp;lt;/math&amp;gt; &amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;A_{mn}= \frac{(-1)^{m+n}}{m!(n-1)!}  \int_0^\infty  \frac{\omega + K}{\omega - K} \omega^{m+n-1} e^{-2\omega f}  d\omega&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
Note: the integral above goes under the singularity at &amp;lt;math&amp;gt;\omega=K&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
  Which comes from the identity (to be derived)&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;e^{\omega z} \cos(\omega x) = e^{-\omega f}\sum_{m=0}^\infty \frac{(-1)^m}{m!} \omega^m r^m\cos(m\theta)&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Wave-Free Potentials ==&lt;br /&gt;
&lt;br /&gt;
The combination &amp;lt;math&amp;gt;\phi_{n+1} + Kn^{-1}\phi_n\,&amp;lt;/math&amp;gt;, n=1,2,3,... corresponds to a wave free singularity ie. no waves are radiated to infinity so the potential dies off in the far field.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi_{n+1} + Kn^{-1}\phi_n = \frac{e^{i(n+1)\theta}}{r^{(n+1)}} + \frac{(-1)^{(n+1)}}{n!}  \int_0^\infty  \frac{\omega + K}{\omega - K} \omega^{n} e^{\omega (z-f)}  e^{-i\omega x}d\omega &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
+\frac{K}{n}\left( \frac{e^{in\theta}}{r^n} + \frac{(-1)^n}{(n-1)!}  \int_0^\infty  \frac{\omega + K}{\omega - K} \omega^{n-1} e^{\omega (z-f)}  e^{-i\omega x}d\omega \right)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  This can be simplified by using the coordinate relationships: (need a picture)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;r = \sqrt{x^2 + (z+f)^2}, \quad r_1 = \sqrt{x^2 + (z-f)^2},&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;x = r \sin(\theta) = r_1 \sin(\theta_1),\,&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;-z-f = r \cos(\theta), \quad z-f = r_1 \cos(\theta_1).&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Resulting  in the expression:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi_{n+1} + Kn^{-1}\phi_n = \frac{e^{i(n+1)\theta}}{r^{(n+1)}}   + \frac{K}{n}\frac{e^{in\theta}}{r^n}  + \frac{e^{-i(n+1)\theta_1}}{r_1^{(n+1)}} - \frac{K}{n}\frac{e^{-in\theta_1}}{r_1^n}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
ie.&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi_{n+1} + Kn^{-1}\phi_n = \left( \frac{e^{i(n+1)\theta}}{r^{(n+1)}} + \frac{e^{-i(n+1)\theta_1}}{r_1^{(n+1)}} \right) +  \frac{K}{n} \left( \frac{e^{in\theta}}{r^n} - \frac{e^{-in\theta_1}}{r_1^n} \right)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Once again to obtain a complete set we also use the compex conjugates of these potentials.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
These idntities have been used:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;math&amp;gt; -\frac{e^{-in\theta_1}}{r_1^n} = \frac{(-1)^n}{(n-1)!}  \int_0^\infty  \frac{\omega + K}{\omega - K} \omega^{n-1} e^{\omega (z-f)}  e^{-i\omega x}d\omega  &amp;lt;/math&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
 &amp;lt;math&amp;gt; \frac{e^{-i(n+1)\theta_1}}{r_1^{(n+1)}} = \frac{(-1)^{(n+1)}}{n!}  \int_0^\infty  \frac{\omega + K}{\omega - K} \omega^{n} e^{\omega (z-f)}  e^{-i\omega x}d\omega&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Example: 2D Wave Scattering for a Submerged Horizontal Cylinder (in Infinite Depth)==&lt;br /&gt;
&lt;br /&gt;
***Picture to show problem set up***&lt;br /&gt;
&lt;br /&gt;
The potential for the scattering problem splits as incident and diffracted potentials and also into symmetric and antisymmetric parts.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi = \phi_I + \phi_D = \phi^+ + \phi^-\,&amp;lt;/math&amp;gt; &amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \partial_r \phi_I |_{r=a} = - \partial_r \phi_D |_{r=a} &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and &amp;lt;math&amp;gt;\phi^+, \,\, \phi^-&amp;lt;/math&amp;gt; are the symmetric and antisymmetric parts of &amp;lt;math&amp;gt;\phi \,&amp;lt;/math&amp;gt; respectively.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For a wave incident from the left we have&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi_I = e^{Kz} e^{iKx} = e^{-Kf}\sum_{n=0}^\infty \frac{(-Kr)^n }{n!} e^{-in\theta}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi_D = \sum_{n=1}^{\infty}a^n \alpha_n \phi_n^+ + \sum_{n=1}^{\infty}a^n \beta_n \phi_n^- &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi^+ = e^{Kz} \cos(Kx) + \sum_{n=1}^{\infty}a^n \alpha_n \phi_n^+&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and &amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi^- = ie^{Kz} \sin(Kx) + \sum_{n=1}^{\infty}a^n \beta_n \phi_n^- &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Converting &amp;lt;math&amp;gt;\phi^+\,&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\phi^-\,&amp;lt;/math&amp;gt; into the polar coordinate system:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi^+ = e^{-Kf}\sum_{n=0}^\infty \frac{(-Kr)^n }{n!} \cos(n\theta) + \sum_{n=1}^{\infty}a^n \alpha_n \left(\frac{\cos(n\theta)}{r^n} + \sum_{m=0}^\infty A_{mn}^+ r^m \cos(m\theta)\right)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi^- = ie^{-Kf}\sum_{n=0}^\infty \frac{(-Kr)^n }{n!} \sin(n\theta) + \sum_{n=1}^{\infty}a^n \beta_n \left(\frac{\sin(n\theta)}{r^n} + \sum_{m=0}^\infty A_{mn}^+ r^m \sin(m\theta)\right)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The above power series converge for r &amp;lt; 2f and the coefficients are given by&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; A_{mn} = \frac{(-1)^{m+n}}{m!(n-1)!} \quad SingularIntegral_0^\infty \quad \frac{\mu + K}{\mu - K} \mu ^{m+n-1} e^{-2\mu f}d\mu &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Applying the body boundary condition &amp;lt;math&amp;gt;\partial_r \phi^\pm |_{r=a} = 0&amp;lt;/math&amp;gt; and noting that the cosines are orthogonal over &amp;lt;math&amp;gt;\theta \in  (-\pi,\pi]&amp;lt;/math&amp;gt; gives the results&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \alpha_m - \sum_{n=1}^{\infty}a^{n+m} A_{mn} \alpha_n = e^{-Kf}\frac {(-Ka)^m}{m!}; m=1,2,3,\ldots&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \beta_m - \sum_{n=1}^{\infty}a^{n+m} A_{mn} \beta_n = -ie^{-Kf}\frac {(-Ka)^m}{m!}; m=1,2,3,\ldots&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
From which we can see that &amp;lt;math&amp;gt;\beta_n = -i\alpha_n\,&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The above sums can be truncated at the Nth term yielding NxN system of linear equations that can be solved for the coefficients &amp;lt;math&amp;gt;\alpha_n&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hence we can calculate &amp;lt;math&amp;gt;\phi\,&amp;lt;/math&amp;gt; from:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi = \phi^+ + \phi^- = \phi_I + \sum_{n=1}^{\infty}a^n \alpha_n ( \phi^+_n + \phi^-_n )&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This expression also gives the values of the reflection and transmission coefficients when we substitute the far field expressions for the symmetric and antisymmetric multipoles. In the far field:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \phi^+_n \sim \frac{2\pi i (-K)^n}{(n-1)!} e^{K(z-f)} e^{\pm Kx} &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math &amp;gt; \phi^-_n \sim \mp \frac{2\pi (-K)^n}{(n-1)!} e^{K(z-f)} e^{\pm Kx} &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Giving:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;R=0, \quad T = 1 + 4 \pi i e^{-Kf}  \sum_{n=1}^{\infty} \alpha_n \frac{(-Ka)^n}{(n-1)!} &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Hydrodynamic Forces ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Linear Water-Wave Theory]]&lt;/div&gt;</summary>
		<author><name>Sean Curry</name></author>
	</entry>
	<entry>
		<id>https://www.wikiwaves.org/index.php?title=Category:Multipole_Methods_for_Linear_Water_Waves&amp;diff=11001</id>
		<title>Category:Multipole Methods for Linear Water Waves</title>
		<link rel="alternate" type="text/html" href="https://www.wikiwaves.org/index.php?title=Category:Multipole_Methods_for_Linear_Water_Waves&amp;diff=11001"/>
		<updated>2010-02-17T00:27:30Z</updated>

		<summary type="html">&lt;p&gt;Sean Curry: /* With the Free Surface BC */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{incomplete pages}}&lt;br /&gt;
&lt;br /&gt;
== Multipole Expansions ==&lt;br /&gt;
&lt;br /&gt;
Multipole expansions are a technique used in linear water wave theory where the potential is represented as a sum of singularities (multipoles) placed within any structures that are present. Multipoles can be constructed with their singularity submerged or on the free surface and these are treated separately.&lt;br /&gt;
&lt;br /&gt;
Multipoles satisfy:&lt;br /&gt;
&lt;br /&gt;
{{Standard linear wave scattering equations without body condition}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{sommerfeld radiation condition two dimensions}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A linear combination of these multipoles can then be made to satisfy the body boundary conditions.&lt;br /&gt;
&lt;br /&gt;
== 2D Exterior Neumann Problem ==&lt;br /&gt;
&lt;br /&gt;
We start by developing the theory for Laplace&#039;s equation without the free surface for&lt;br /&gt;
a disk of radius &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; centered at the origin. The equation in polar coordinates is&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\nabla^2 \phi = \left[   \partial_r^2 + \frac{1}{r}\partial_r + \frac{1}{r^2} \partial_\theta^2  \right] \phi= 0 \quad &lt;br /&gt;
\mathrm{for} \quad r&amp;gt;a &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt; &lt;br /&gt;
&amp;lt;math&amp;gt;\partial_n \phi |_{r=a} = 0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
|\nabla\phi| \rightarrow 0 \quad as \quad r \rightarrow \infty &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
Using [http://en.wikipedia.org/wiki/Separation_of_Variables separation of variables] &lt;br /&gt;
we write&lt;br /&gt;
&amp;lt;math&amp;gt;\phi = R(r)\Theta(\theta).\,&amp;lt;/math&amp;gt; Substituting into Laplace&#039;s equations gives&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{r^2}{R}\partial_r^2 R + \frac{r}{R}\partial_r R = - \frac{1}{\Theta}\partial_\theta^2 \Theta = m^2 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
The equation for &amp;lt;math&amp;gt;\Theta\,&amp;lt;/math&amp;gt; is&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\quad \partial_\theta^2 \Theta = -m^2\Theta &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\Rightarrow \Theta = A(m) \cos(m\theta) + B(m) \sin(m\theta) \quad for \quad  m \neq 0 &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When m=0 the solution is &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \Theta = A(0) + B(0)\theta \,&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt; &amp;lt;math&amp;gt;\Theta(\theta + 2\pi) = \Theta(\theta) \Rightarrow  m \in Z \,\, and \,\, B(0) = 0\,&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The equation for R is &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \quad r^2\partial_r^2 R + r\partial_rR = m^2 R &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
This is a standard DE, to solve we substitute R = r^n giving:&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;n(n-1)r^n + nr^n = m^2r^n \Rightarrow n^2 = m^2 \Rightarrow n= \pm m&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
This gives two independent solutions for all m except m = 0, where we only get the constant solution. &lt;br /&gt;
&lt;br /&gt;
Noting that:&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;  \nabla^2 \left( \ln(r) \right) = \frac{-1}{r^2} + \frac{1}{r^2}  = 0 &amp;lt;/math&amp;gt; &amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So along with the obvious constant function we have two independant sotutions. Thus for m=0 we can write:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;R = C\left(0\right) + D(0) \ln(r)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and for &amp;lt;math&amp;gt;m\neq 0:&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;R = C\left(m\right)r^m + D(m)r^{-m}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The derivatives of the radial eigenfunctions must go to zero indicating zero fluid flow at infinity:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;|\nabla\phi| \rightarrow 0 \,\, as \,\, r \rightarrow \infty \Rightarrow\partial_r R \rightarrow 0 \,\, as \,\, r \rightarrow \infty &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\Rightarrow C(m)= 0 \,\, \forall m &amp;gt; 0 \,\,\, and \,\,\, D(m)=0 \,\, \forall m&amp;lt;0&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hence the general solution can be expressed as:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi = C(0) + D(0) \ln(r) + \sum_{m=1}^\infty \left( a(m)\frac{\cos(m\theta)}{r^m} +  b(m)\frac{\sin(m\theta)}{r^m}  \right) &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We don&#039;t need to include the negative m terms because of the symmetry of the sine and cosine eigenfunctions means these solutions are not independent.&lt;br /&gt;
&lt;br /&gt;
The solution can also be expressed simply in terms of complex exponentials.&lt;br /&gt;
&lt;br /&gt;
== With the Free Surface BC ==&lt;br /&gt;
&lt;br /&gt;
When we introduce the free surface BC we need to find a new set of eigenfunctions. We can use eigenfunctions from the infinite domain problem to construct them.&lt;br /&gt;
&lt;br /&gt;
Note that the origin is in the free surface directly above the center of the disc for cartesian coordinates. However the origin for the polar coordinates is still at the center of the disk.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We add a solution of Laplace&#039;s equation to the eigenfunctions for the infinite domain problem and require that these new functions(multipoles) satisfy the free surface condition.&lt;br /&gt;
&lt;br /&gt;
For n&amp;gt;0&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi_n = \frac{e^{in\theta}}{r^n} + \psi_n&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
and for m=0&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi_0 = \ln(r) + \psi_0 \,&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Where&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\nabla^2 \psi_n = 0 \quad for \quad n = 0,1,2, \ldots&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We want the multipoles to satisfy the free surface condition&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\partial_z \phi_n |_{z=0} = K\phi_n|_{z=0} \quad \forall n = 0,1,2, \ldots&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For n=0 the free surface condition gives our boundary condition for &amp;lt;math&amp;gt;\psi_0\,&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;f_0(x) = (\partial_z  - K)\psi_0|_{z=0} = (K - \partial_z) \left(ln\left(\frac{r}{a}\right)\right)|_{z=0} &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\Rightarrow f_0(x) = K \ln\left(\frac{\sqrt{x^2 + f^2}}{a}\right) - \int_0^\infty e^{-\omega f}\cos(\omega x)d\omega &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where we used the expansion&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\ln(r) = \int_0^\infty (e^{-\omega}- e^{-\omega|z+f|}\cos(\omega x))\frac{d\omega}{\omega}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For n&amp;gt;0 the free surface condition yields the boundary condition for &amp;lt;math&amp;gt;\psi_m\,&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;f_n(x) = (\partial_z - K)\psi_n|_{z=0} = \left(K  - \partial_z \right) \left(\frac{e^{in\theta}}{r^n}\right)|_{z=0} &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \Rightarrow f_n(x) = \frac{(-1)^n}{(n-1)!} \int_0^\infty(K+\omega)\omega^{n-1}e^{-\omega f}e^{-i\omega x} d\omega  \quad \quad (*)&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where we used the expansion (valid for z&amp;gt;-f)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \frac{e^{in\theta}}{r^n} = \frac{(-1)^n}{(n-1)!} \int_0^\infty\omega^{n-1}e^{-\omega(z+f) }e^{-i\omega x} d\omega &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So our psi functions satisfy the following problem:&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\nabla^2 \psi_n = 0 \quad for \quad n = 0,1,2, \ldots \quad \ldots (1)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
  &lt;br /&gt;
  &amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\psi_n \rightarrow 0 \quad as \quad z \rightarrow -\infty \quad \ldots (2)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
  &lt;br /&gt;
  &amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\partial_z \psi_n |_{z=0} - K\psi_n|_{z=0} = f_n(x) \quad \ldots (3)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We solve for &amp;lt;math&amp;gt;\hat{\psi}_n\,&amp;lt;/math&amp;gt; by taking a Fourier transform in x to simplify Laplace&#039;s equation&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\hat{\psi}_n(\omega,z) = \int_{-\infty}^\infty \psi_n(x,z) e^{i\omega x}dx&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;(1) \Rightarrow \partial_z^2 \hat{\psi}_n = \omega^2\hat{\psi}_n \Rightarrow \hat{\psi}_n = A_n(\omega)e^{\omega z} + B_n(\omega)e^{-\omega z}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;but \quad (2) \Rightarrow B_n(\omega) = 0 \quad \forall n&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;(3) \Rightarrow \partial_z \hat{\psi}_n |_{z=0} - K\hat{\psi}_n|_{z=0} = (\omega - K)\hat{\psi}_n|_{z=0} &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\Rightarrow  \hat{f}_n(\omega) = (\omega - K)A_n(\omega) &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Hence&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;A_n(\omega) = \frac{\hat{f}_n(\omega)}{\omega - K}  &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and we obtaion &amp;lt;math&amp;gt;\psi\,&amp;lt;/math&amp;gt; by the inverse Fourier transform:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\psi_n = \frac{1}{2\pi}\int_{-\infty}^\infty \hat{\psi}_n e^{-i\omega x}d\omega = \frac{1}{2\pi}\int_{-\infty}^\infty  \frac{\hat{f}_n(\omega)}{\omega - K} e^{\omega z}  e^{-i\omega x}d\omega&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For n&amp;gt;0 the form of &amp;lt;math&amp;gt;\hat{f}_n(\omega)&amp;lt;/math&amp;gt; can be obtained from the expansion of &amp;lt;math&amp;gt;f_n(x)\,&amp;lt;/math&amp;gt; labelled &amp;lt;math&amp;gt;(*)\,&amp;lt;/math&amp;gt; above by rewriting it as a Fourier transform. Substituting the result into the expression above, &amp;lt;math&amp;gt;\psi_n\,&amp;lt;/math&amp;gt; easily simplifies to:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\psi_n = \frac{(-1)^n}{(n-1)!}  \int_0^\infty  \frac{\omega + K}{\omega - K} \omega^{n-1} e^{\omega (z-f)}  e^{-i\omega x}d\omega&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
for n&amp;gt;0. Note: the integral above goes under the singularity at &amp;lt;math&amp;gt;\omega=K&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 Working to get &amp;lt;math&amp;gt;\hat{f}_n(\omega)&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
We can write:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;f_n(x) = \int_0^\infty g(\omega)e^{-i\omega x} d\omega&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
where&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;g(\omega)= \frac{(-1)^n}{(n-1)!}(K+\omega)\omega^{n-1}e^{-\omega f}  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
We can rewrite &amp;lt;math&amp;gt;f_n(x)\,&amp;lt;/math&amp;gt; as an inverse fourier transform by using the euler identity and the odd and even properties of sine and cosine. Allowing us to obtain &amp;lt;math&amp;gt;\hat{f}_n(\omega)&amp;lt;/math&amp;gt;:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;f_n(x) = \int_0^\infty g(\omega)\cos(\omega x) d\omega -i \int_0^\infty g(\omega)\sin(\omega x) d\omega&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\Rightarrow f_n(x) = \frac{1}{2}\int_{-\infty}^\infty g(|\omega|)\cos(\omega x) d\omega -\frac{i}{2} \int_{-\infty}^\infty \frac{\omega}{|\omega|}g(|\omega|)\sin(\omega x) d\omega&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
Since &amp;lt;math&amp;gt;g(|\omega|)\,&amp;lt;/math&amp;gt; is even, its integral against sine over all x is zero so we can replace the cosine with a complex exponential in the first integral (similarly we replace -i*sine for the second).&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\Rightarrow f_n(x) = \frac{1}{2}\int_{-\infty}^\infty g(|\omega|)e^{-i\omega x} d\omega + \frac{1}{2} \int_{-\infty}^\infty \frac{\omega}{|\omega|}g(|\omega|)e^{-i\omega x} d\omega&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
Finally, combining the integrals, &amp;lt;math&amp;gt;\hat{f}_n(\omega)&amp;lt;/math&amp;gt; emerges:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\Rightarrow f_n(x) = \int_{-\infty}^\infty \frac{1}{2}\left( g(|\omega|) +  \frac{\omega}{|\omega|}g(|\omega|)\right) e^{-i\omega x} d\omega&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;math&amp;gt;\psi_0 \,&amp;lt;/math&amp;gt; remains to be derived.&lt;br /&gt;
&lt;br /&gt;
  In order to have a complete set to expand our flud potential we need to include &amp;lt;math&amp;gt;\bar{\phi}_m&amp;lt;/math&amp;gt; for m&amp;gt;0. &lt;br /&gt;
  This accounts for the second linearly independent solution for m&amp;gt;0.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\psi_m\,&amp;lt;/math&amp;gt; can be expanded in a power series:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\psi_m = \sum_{m=0}^\infty A_{mn}r^m \cos(m\theta),\,\,\,\textrm{for}\,\,\, m&amp;gt;0&amp;lt;/math&amp;gt; &amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;A_{mn}= \frac{(-1)^{m+n}}{m!(n-1)!}  \int_0^\infty  \frac{\omega + K}{\omega - K} \omega^{m+n-1} e^{-2\omega f}  d\omega&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
Note: the integral above goes under the singularity at &amp;lt;math&amp;gt;\omega=K&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
  Which comes from the identity (to be derived)&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;e^{\omega z} \cos(\omega x) = e^{-\omega f}\sum_{m=0}^\infty \frac{(-1)^m}{m!} \omega^m r^m\cos(m\theta)&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Wave-Free Potentials ==&lt;br /&gt;
&lt;br /&gt;
The combination &amp;lt;math&amp;gt;\phi_{n+1} + Kn^{-1}\phi_n\,&amp;lt;/math&amp;gt;, n=1,2,3,... corresponds to a wave free singularity ie. no waves are radiated to infinity so the potential dies off in the far field.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi_{n+1} + Kn^{-1}\phi_n = \frac{e^{i(n+1)\theta}}{r^{(n+1)}} + \frac{(-1)^{(n+1)}}{n!}  \int_0^\infty  \frac{\omega + K}{\omega - K} \omega^{n} e^{\omega (z-f)}  e^{-i\omega x}d\omega &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
+\frac{K}{n}\left( \frac{e^{in\theta}}{r^n} + \frac{(-1)^n}{(n-1)!}  \int_0^\infty  \frac{\omega + K}{\omega - K} \omega^{n-1} e^{\omega (z-f)}  e^{-i\omega x}d\omega \right)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  This can be simplified by using the coordinate relationships: (need a picture)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;r = \sqrt{x^2 + (z+f)^2}, \quad r_1 = \sqrt{x^2 + (z-f)^2},&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;x = r \sin(\theta) = r_1 \sin(\theta_1),\,&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;-z-f = r \cos(\theta), \quad z-f = r_1 \cos(\theta_1).&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Resulting  in the expression:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi_{n+1} + Kn^{-1}\phi_n = \frac{e^{i(n+1)\theta}}{r^{(n+1)}}   + \frac{K}{n}\frac{e^{in\theta}}{r^n}  + \frac{e^{-i(n+1)\theta_1}}{r_1^{(n+1)}} - \frac{K}{n}\frac{e^{-in\theta_1}}{r_1^n}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
ie.&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi_{n+1} + Kn^{-1}\phi_n = \left( \frac{e^{i(n+1)\theta}}{r^{(n+1)}} + \frac{e^{-i(n+1)\theta_1}}{r_1^{(n+1)}} \right) +  \frac{K}{n} \left( \frac{e^{in\theta}}{r^n} - \frac{e^{-in\theta_1}}{r_1^n} \right)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Once again to obtain a complete set we also use the compex conjugates of these potentials.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
These idntities have been used:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;math&amp;gt; -\frac{e^{-in\theta_1}}{r_1^n} = \frac{(-1)^n}{(n-1)!}  \int_0^\infty  \frac{\omega + K}{\omega - K} \omega^{n-1} e^{\omega (z-f)}  e^{-i\omega x}d\omega  &amp;lt;/math&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
 &amp;lt;math&amp;gt; \frac{e^{-i(n+1)\theta_1}}{r_1^{(n+1)}} = \frac{(-1)^{(n+1)}}{n!}  \int_0^\infty  \frac{\omega + K}{\omega - K} \omega^{n} e^{\omega (z-f)}  e^{-i\omega x}d\omega&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Example: 2D Wave Scattering for a Submerged Horizontal Cylinder (in Infinite Depth)==&lt;br /&gt;
&lt;br /&gt;
***Picture to show problem set up***&lt;br /&gt;
&lt;br /&gt;
The potential for the scattering problem splits as incident and diffracted potentials and also into symmetric and antisymmetric parts.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi = \phi_I + \phi_D = \phi^+ + \phi^-\,&amp;lt;/math&amp;gt; &amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \partial_r \phi_I |_{r=a} = - \partial_r \phi_D |_{r=a} &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and &amp;lt;math&amp;gt;\phi^+, \,\, \phi^-&amp;lt;/math&amp;gt; are the symmetric and antisymmetric parts of &amp;lt;math&amp;gt;\phi \,&amp;lt;/math&amp;gt; respectively.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For a wave incident from the left we have&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi_I = e^{Kz} e^{iKx} = e^{-Kf}\sum_{n=0}^\infty \frac{(-Kr)^n }{n!} e^{-in\theta}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi_D = \sum_{n=1}^{\infty}a^n \alpha_n \phi_n^+ + \sum_{n=1}^{\infty}a^n \beta_n \phi_n^- &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi^+ = e^{Kz} \cos(Kx) + \sum_{n=1}^{\infty}a^n \alpha_n \phi_n^+&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and &amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi^- = ie^{Kz} \sin(Kx) + \sum_{n=1}^{\infty}a^n \beta_n \phi_n^- &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Converting &amp;lt;math&amp;gt;\phi^+\,&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\phi^-\,&amp;lt;/math&amp;gt; into the polar coordinate system:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi^+ = e^{-Kf}\sum_{n=0}^\infty \frac{(-Kr)^n }{n!} \cos(n\theta) + \sum_{n=1}^{\infty}a^n \alpha_n \left(\frac{\cos(n\theta)}{r^n} + \sum_{m=0}^\infty A_{mn}^+ r^m \cos(m\theta)\right)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi^- = ie^{-Kf}\sum_{n=0}^\infty \frac{(-Kr)^n }{n!} \sin(n\theta) + \sum_{n=1}^{\infty}a^n \alpha_n \left(\frac{\sin(n\theta)}{r^n} + \sum_{m=0}^\infty A_{mn}^+ r^m \sin(m\theta)\right)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The above power series converge for r &amp;lt; 2f and the coefficients are given by&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; A_{mn} = \frac{(-1)^{m+n}}{m!(n-1)!} \quad SingularIntegral_0^\infty \quad \frac{\mu + K}{\mu - K} \mu ^{m+n-1} e^{-2\mu f}d\mu &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Applying the body boundary condition &amp;lt;math&amp;gt;\partial_r \phi^\pm |_{r=a} = 0&amp;lt;/math&amp;gt; and noting that the cosines are orthogonal over &amp;lt;math&amp;gt;\theta \in  (-\pi,\pi]&amp;lt;/math&amp;gt; gives the results&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \alpha_m - \sum_{n=1}^{\infty}a^{n+m} A_{mn} \alpha_n = e^{-Kf}\frac {(-Ka)^m}{m!}; m=1,2,3,\ldots&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \beta_m - \sum_{n=1}^{\infty}a^{n+m} A_{mn} \beta_n = -ie^{-Kf}\frac {(-Ka)^m}{m!}; m=1,2,3,\ldots&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
From which we can see that &amp;lt;math&amp;gt;\beta_n = -i\alpha_n\,&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The above sums can be truncated at the Nth term yielding NxN system of linear equations that can be solved for the coefficients &amp;lt;math&amp;gt;\alpha_n&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hence we can calculate &amp;lt;math&amp;gt;\phi\,&amp;lt;/math&amp;gt; from:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi = \phi^+ + \phi^- = \phi_I + \sum_{n=1}^{\infty}a^n \alpha_n ( \phi^+_n + \phi^-_n )&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This expression also gives the values of the reflection and transmission coefficients when we substitute the far field expressions for the symmetric and antisymmetric multipoles. In the far field:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \phi^+_n \sim \frac{2\pi i (-K)^n}{(n-1)!} e^{K(z-f)} e^{\pm Kx} &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math &amp;gt; \phi^-_n \sim \mp \frac{2\pi (-K)^n}{(n-1)!} e^{K(z-f)} e^{\pm Kx} &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Giving:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;R=0, \quad T = 1 + 4 \pi i e^{-Kf}  \sum_{n=1}^{\infty} \alpha_n \frac{(-Ka)^n}{(n-1)!} &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Hydrodynamic Forces ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Linear Water-Wave Theory]]&lt;/div&gt;</summary>
		<author><name>Sean Curry</name></author>
	</entry>
	<entry>
		<id>https://www.wikiwaves.org/index.php?title=Category:Multipole_Methods_for_Linear_Water_Waves&amp;diff=10887</id>
		<title>Category:Multipole Methods for Linear Water Waves</title>
		<link rel="alternate" type="text/html" href="https://www.wikiwaves.org/index.php?title=Category:Multipole_Methods_for_Linear_Water_Waves&amp;diff=10887"/>
		<updated>2010-02-11T21:41:52Z</updated>

		<summary type="html">&lt;p&gt;Sean Curry: /* Wave-Free Potentials */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{incomplete pages}}&lt;br /&gt;
&lt;br /&gt;
== Multipole Expansions ==&lt;br /&gt;
&lt;br /&gt;
Multipole expansions are a technique used in linear water wave theory where the potential is represented as a sum of singularities (multipoles) placed within any structures that are present. Multipoles can be constructed with their singularity submerged or on the free surface and these are treated separately.&lt;br /&gt;
&lt;br /&gt;
Multipoles satisfy:&lt;br /&gt;
&lt;br /&gt;
{{Standard linear wave scattering equations without body condition}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{sommerfeld radiation condition two dimensions}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A linear combination of these multipoles can then be made to satisfy the body boundary conditions.&lt;br /&gt;
&lt;br /&gt;
== 2D Exterior Neumann Problem ==&lt;br /&gt;
&lt;br /&gt;
We start by developing the theory for Laplace&#039;s equation without the free surface for&lt;br /&gt;
a disk of radius &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; centered at the origin. The equation in polar coordinates is&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\nabla^2 \phi = \left[   \partial_r^2 + \frac{1}{r}\partial_r + \frac{1}{r^2} \partial_\theta^2  \right] \phi= 0 \quad &lt;br /&gt;
\mathrm{for} \quad r&amp;gt;a &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt; &lt;br /&gt;
&amp;lt;math&amp;gt;\partial_n \phi |_{r=a} = 0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
|\nabla\phi| \rightarrow 0 \quad as \quad r \rightarrow \infty &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
Using [http://en.wikipedia.org/wiki/Separation_of_Variables separation of variables] &lt;br /&gt;
we write&lt;br /&gt;
&amp;lt;math&amp;gt;\phi = R(r)\Theta(\theta).\,&amp;lt;/math&amp;gt; Substituting into Laplace&#039;s equations gives&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{r^2}{R}\partial_r^2 R + \frac{r}{R}\partial_r R = - \frac{1}{\Theta}\partial_\theta^2 \Theta = m^2 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
The equation for &amp;lt;math&amp;gt;\Theta\,&amp;lt;/math&amp;gt; is&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\quad \partial_\theta^2 \Theta = -m^2\Theta &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\Rightarrow \Theta = A(m) \cos(m\theta) + B(m) \sin(m\theta) \quad for \quad  m \neq 0 &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When m=0 the solution is &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \Theta = A(0) + B(0)\theta \,&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt; &amp;lt;math&amp;gt;\Theta(\theta + 2\pi) = \Theta(\theta) \Rightarrow  m \in Z \,\, and \,\, B(0) = 0\,&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The equation for R is &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \quad r^2\partial_r^2 R + r\partial_rR = m^2 R &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
This is a standard DE, to solve we substitute R = r^n giving:&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;n(n-1)r^n + nr^n = m^2r^n \Rightarrow n^2 = m^2 \Rightarrow n= \pm m&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
This gives two independent solutions for all m except m = 0, where we only get the constant solution. &lt;br /&gt;
&lt;br /&gt;
Noting that:&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;  \nabla^2 \left( \ln(r) \right) = \frac{-1}{r^2} + \frac{1}{r^2}  = 0 &amp;lt;/math&amp;gt; &amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So along with the obvious constant function we have two independant sotutions. Thus for m=0 we can write:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;R = C\left(0\right) + D(0) \ln(r)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and for &amp;lt;math&amp;gt;m\neq 0:&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;R = C\left(m\right)r^m + D(m)r^{-m}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The derivatives of the radial eigenfunctions must go to zero indicating zero fluid flow at infinity:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;|\nabla\phi| \rightarrow 0 \,\, as \,\, r \rightarrow \infty \Rightarrow\partial_r R \rightarrow 0 \,\, as \,\, r \rightarrow \infty &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\Rightarrow C(m)= 0 \,\, \forall m &amp;gt; 0 \,\,\, and \,\,\, D(m)=0 \,\, \forall m&amp;lt;0&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hence the general solution can be expressed as:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi = C(0) + D(0) \ln(r) + \sum_{m=1}^\infty \left( a(m)\frac{\cos(m\theta)}{r^m} +  b(m)\frac{\sin(m\theta)}{r^m}  \right) &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We don&#039;t need to include the negative m terms because of the symmetry of the sine and cosine eigenfunctions means these solutions are not independent.&lt;br /&gt;
&lt;br /&gt;
The solution can also be expressed simply in terms of complex exponentials.&lt;br /&gt;
&lt;br /&gt;
== With the Free Surface BC ==&lt;br /&gt;
&lt;br /&gt;
When we introduce the free surface BC we need to find a new set of eigenfunctions. We can use eigenfunctions from the infinite domain problem to construct them.&lt;br /&gt;
&lt;br /&gt;
Note that the origin is in the free surface directly above the center of the disc for cartesian coordinates. However the origin for the polar coordinates is still at the center of the disk.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We add a solution of Laplace&#039;s equation to the eigenfunctions for the infinite domain problem and require that these new functions(multipoles) satisfy the free surface condition.&lt;br /&gt;
&lt;br /&gt;
For n&amp;gt;0&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi_n = \frac{e^{in\theta}}{r^n} + \psi_n&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
and for m=0&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi_0 = \ln(r) + \psi_0 \,&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Where&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\nabla^2 \psi_n = 0 \quad for \quad n = 0,1,2, \ldots&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We want the multipoles to satisfy the free surface condition&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\partial_z \phi_n |_{z=0} = K\phi_n|_{z=0} \quad \forall n = 0,1,2, \ldots&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For n=0 the free surface condition gives our boundary condition for &amp;lt;math&amp;gt;\psi_0\,&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;f_0(x) = (\partial_z  - K)\psi_0|_{z=0} = (K - \partial_z) \left(ln\left(\frac{r}{a}\right)\right)|_{z=0} &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\Rightarrow f_0(x) = K \ln\left(\frac{\sqrt{x^2 + f^2}}{a}\right) - \int_0^\infty e^{-\omega f}\cos(\omega x)d\omega &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where we used the expansion&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\ln(r) = \int_0^\infty (e^{-\omega}- e^{-\omega|z+f|}\cos(\omega x))\frac{d\omega}{\omega}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For n&amp;gt;0 the free surface condition yields the boundary condition for &amp;lt;math&amp;gt;\psi_m\,&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;f_n(x) = (\partial_z - K)\psi_n|_{z=0} = \left(K  - \partial_z \right) \left(\frac{e^{in\theta}}{r^n}\right)|_{z=0} &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \Rightarrow f_n(x) = \frac{(-1)^n}{(n-1)!} \int_0^\infty(K+\omega)\omega^{n-1}e^{-\omega f}e^{-i\omega x} d\omega  \quad \quad (*)&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where we used the expansion (valid for z&amp;gt;-f)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \frac{e^{in\theta}}{r^n} = \frac{(-1)^n}{(n-1)!} \int_0^\infty\omega^{n-1}e^{-\omega(z+f) }e^{-i\omega x} d\omega &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So our psi functions satisfy the following problem:&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\nabla^2 \psi_n = 0 \quad for \quad n = 0,1,2, \ldots \quad \ldots (1)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
  &lt;br /&gt;
  &amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\psi_n \rightarrow 0 \quad as \quad z \rightarrow -\infty \quad \ldots (2)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
  &lt;br /&gt;
  &amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\partial_z \psi_n |_{z=0} - K\psi_n|_{z=0} = f_n(x) \quad \ldots (3)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We solve for &amp;lt;math&amp;gt;\hat{\psi}_n\,&amp;lt;/math&amp;gt; by taking a Fourier transform in x to simplify Laplace&#039;s equation&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\hat{\psi}_n(\omega,z) = \int_{-\infty}^\infty \psi_n(x,z) e^{i\omega x}dx&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;(1) \Rightarrow \partial_z^2 \hat{\psi}_n = \omega^2\hat{\psi}_n \Rightarrow \hat{\psi}_n = A_n(\omega)e^{\omega z} + B_n(\omega)e^{-\omega z}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;but \quad (2) \Rightarrow B_n(\omega) = 0 \quad \forall n&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;(3) \Rightarrow \partial_z \hat{\psi}_n |_{z=0} - K\hat{\psi}_n|_{z=0} = (\omega - K)\hat{\psi}_n|_{z=0} &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\Rightarrow  \hat{f}_n(\omega) = (\omega - K)A_n(\omega) &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Hence&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;A_n(\omega) = \frac{\hat{f}_n(\omega)}{\omega - K}  &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and we obtaion &amp;lt;math&amp;gt;\psi\,&amp;lt;/math&amp;gt; by the inverse Fourier transform:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\psi_n = \frac{1}{2\pi}\int_{-\infty}^\infty \hat{\psi}_n e^{-i\omega x}d\omega = \frac{1}{2\pi}\int_{-\infty}^\infty  \frac{\hat{f}_n(\omega)}{\omega - K} e^{\omega z}  e^{-i\omega x}d\omega&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For n&amp;gt;0 the form of &amp;lt;math&amp;gt;\hat{f}_n(\omega)&amp;lt;/math&amp;gt; can be obtained from the expansion of &amp;lt;math&amp;gt;f_n(x)\,&amp;lt;/math&amp;gt; labelled &amp;lt;math&amp;gt;(*)\,&amp;lt;/math&amp;gt; above by rewriting it as a Fourier transform. Substituting the result into the expression above, &amp;lt;math&amp;gt;\psi_n\,&amp;lt;/math&amp;gt; easily simplifies to:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\psi_n = \frac{(-1)^n}{(n-1)!}  \int_0^\infty  \frac{\omega + K}{\omega - K} \omega^{n-1} e^{\omega (z-f)}  e^{-i\omega x}d\omega&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
for n&amp;gt;0. Note: the integral above goes under the singularity at &amp;lt;math&amp;gt;\omega=K&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 Working to get &amp;lt;math&amp;gt;\hat{f}_n(\omega)&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
We can write:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;f_n(x) = \int_0^\infty g(\omega)e^{-i\omega x} d\omega&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
where&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;g(\omega)= \frac{(-1)^n}{(n-1)!}(K+\omega)\omega^{n-1}e^{-\omega f}  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
We can rewrite &amp;lt;math&amp;gt;f_n(x)\,&amp;lt;/math&amp;gt; as an inverse fourier transform by using the euler identity and the odd and even properties of sine and cosine. Allowing us to obtain &amp;lt;math&amp;gt;\hat{f}_n(\omega)&amp;lt;/math&amp;gt;:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;f_n(x) = \int_0^\infty g(\omega)\cos(\omega x) d\omega -i \int_0^\infty g(\omega)\sin(\omega x) d\omega&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\Rightarrow f_n(x) = \frac{1}{2}\int_{-\infty}^\infty g(|\omega|)\cos(\omega x) d\omega -\frac{i}{2} \int_{-\infty}^\infty \frac{\omega}{|\omega|}g(|\omega|)\sin(\omega x) d\omega&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
Since &amp;lt;math&amp;gt;g(|\omega|)\,&amp;lt;/math&amp;gt; is even, its integral against sine over all x is zero so we can replace the cosine with a complex exponential in the first integral (similarly we replace -i*sine for the second).&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\Rightarrow f_n(x) = \frac{1}{2}\int_{-\infty}^\infty g(|\omega|)e^{-i\omega x} d\omega + \frac{1}{2} \int_{-\infty}^\infty \frac{\omega}{|\omega|}g(|\omega|)e^{-i\omega x} d\omega&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
Finally, combining the integrals, &amp;lt;math&amp;gt;\hat{f}_n(\omega)&amp;lt;/math&amp;gt; emerges:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\Rightarrow f_n(x) = \int_{-\infty}^\infty \frac{1}{2}\left( g(|\omega|) +  \frac{\omega}{|\omega|}g(|\omega|)\right) e^{-i\omega x} d\omega&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;math&amp;gt;\psi_0 \,&amp;lt;/math&amp;gt; remains to be derived.&lt;br /&gt;
&lt;br /&gt;
  In order to have a complete set to expand our flud potential we need to include &amp;lt;math&amp;gt;\bar{\phi}_m&amp;lt;/math&amp;gt; for m&amp;gt;0. &lt;br /&gt;
  This accounts for the second linearly independent solution for m&amp;gt;0.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\psi_m\,&amp;lt;/math&amp;gt; can be expanded in a power series:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\psi_m = \sum_m=0^\infty A_{mn}r^m \cos(m\theta),\,\,\,\textrm{for}\,\,\, m&amp;gt;0&amp;lt;/math&amp;gt; &amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;A_{mn}= \frac{(-1)^{m+n}}{m!(n-1)!}  \int_0^\infty  \frac{\omega + K}{\omega - K} \omega^{m+n-1} e^{-2\omega f}  d\omega&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
Note: the integral above goes under the singularity at &amp;lt;math&amp;gt;\omega=K&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
  Which comes from the identity (to be derived)&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;e^{\omega z} \cos(\omega x) = e^{-\omega f}\sum_{m=0}^\infty \frac{(-1)^m}{m!} \omega^m r^m\cos(m\theta)&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Wave-Free Potentials ==&lt;br /&gt;
&lt;br /&gt;
The combination &amp;lt;math&amp;gt;\phi_{n+1} + Kn^{-1}\phi_n\,&amp;lt;/math&amp;gt;, n=1,2,3,... corresponds to a wave free singularity ie. no waves are radiated to infinity so the potential dies off in the far field.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi_{n+1} + Kn^{-1}\phi_n = \frac{e^{i(n+1)\theta}}{r^{(n+1)}} + \frac{(-1)^{(n+1)}}{n!}  \int_0^\infty  \frac{\omega + K}{\omega - K} \omega^{n} e^{\omega (z-f)}  e^{-i\omega x}d\omega &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
+\frac{K}{n}\left( \frac{e^{in\theta}}{r^n} + \frac{(-1)^n}{(n-1)!}  \int_0^\infty  \frac{\omega + K}{\omega - K} \omega^{n-1} e^{\omega (z-f)}  e^{-i\omega x}d\omega \right)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  This can be simplified by using the coordinate relationships: (need a picture)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;r = \sqrt{x^2 + (z+f)^2}, \quad r_1 = \sqrt{x^2 + (z-f)^2},&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;x = r \sin(\theta) = r_1 \sin(\theta_1),\,&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;-z-f = r \cos(\theta), \quad z-f = r_1 \cos(\theta_1).&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Resulting  in the expression:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi_{n+1} + Kn^{-1}\phi_n = \frac{e^{i(n+1)\theta}}{r^{(n+1)}}   + \frac{K}{n}\frac{e^{in\theta}}{r^n}  + \frac{e^{-i(n+1)\theta_1}}{r_1^{(n+1)}} - \frac{K}{n}\frac{e^{-in\theta_1}}{r_1^n}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
ie.&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi_{n+1} + Kn^{-1}\phi_n = \left( \frac{e^{i(n+1)\theta}}{r^{(n+1)}} + \frac{e^{-i(n+1)\theta_1}}{r_1^{(n+1)}} \right) +  \frac{K}{n} \left( \frac{e^{in\theta}}{r^n} - \frac{e^{-in\theta_1}}{r_1^n} \right)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Once again to obtain a complete set we also use the compex conjugates of these potentials.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
These idntities have been used:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;math&amp;gt; -\frac{e^{-in\theta_1}}{r_1^n} = \frac{(-1)^n}{(n-1)!}  \int_0^\infty  \frac{\omega + K}{\omega - K} \omega^{n-1} e^{\omega (z-f)}  e^{-i\omega x}d\omega  &amp;lt;/math&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
 &amp;lt;math&amp;gt; \frac{e^{-i(n+1)\theta_1}}{r_1^{(n+1)}} = \frac{(-1)^{(n+1)}}{n!}  \int_0^\infty  \frac{\omega + K}{\omega - K} \omega^{n} e^{\omega (z-f)}  e^{-i\omega x}d\omega&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Example: 2D Wave Scattering for a Submerged Horizontal Cylinder (in Infinite Depth)==&lt;br /&gt;
&lt;br /&gt;
***Picture to show problem set up***&lt;br /&gt;
&lt;br /&gt;
The potential for the scattering problem splits as incident and diffracted potentials and also into symmetric and antisymmetric parts.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi = \phi_I + \phi_D = \phi^+ + \phi^-\,&amp;lt;/math&amp;gt; &amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \partial_r \phi_I |_{r=a} = - \partial_r \phi_D |_{r=a} &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and &amp;lt;math&amp;gt;\phi^+, \,\, \phi^-&amp;lt;/math&amp;gt; are the symmetric and antisymmetric parts of &amp;lt;math&amp;gt;\phi \,&amp;lt;/math&amp;gt; respectively.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For a wave incident from the left we have&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi_I = e^{Kz} e^{iKx} = e^{-Kf}\sum_{n=0}^\infty \frac{(-Kr)^n }{n!} e^{-in\theta}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi_D = \sum_{n=1}^{\infty}a^n \alpha_n \phi_n^+ + \sum_{n=1}^{\infty}a^n \beta_n \phi_n^- &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi^+ = e^{Kz} \cos(Kx) + \sum_{n=1}^{\infty}a^n \alpha_n \phi_n^+&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and &amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi^- = ie^{Kz} \sin(Kx) + \sum_{n=1}^{\infty}a^n \beta_n \phi_n^- &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Converting &amp;lt;math&amp;gt;\phi^+\,&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\phi^-\,&amp;lt;/math&amp;gt; into the polar coordinate system:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi^+ = e^{-Kf}\sum_{n=0}^\infty \frac{(-Kr)^n }{n!} \cos(n\theta) + \sum_{n=1}^{\infty}a^n \alpha_n \left(\frac{\cos(n\theta)}{r^n} + \sum_{m=0}^\infty A_{mn}^+ r^m \cos(m\theta)\right)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi^- = ie^{-Kf}\sum_{n=0}^\infty \frac{(-Kr)^n }{n!} \sin(n\theta) + \sum_{n=1}^{\infty}a^n \alpha_n \left(\frac{\sin(n\theta)}{r^n} + \sum_{m=0}^\infty A_{mn}^+ r^m \sin(m\theta)\right)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The above power series converge for r &amp;lt; 2f and the coefficients are given by&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; A_{mn} = \frac{(-1)^{m+n}}{m!(n-1)!} \quad SingularIntegral_0^\infty \quad \frac{\mu + K}{\mu - K} \mu ^{m+n-1} e^{-2\mu f}d\mu &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Applying the body boundary condition &amp;lt;math&amp;gt;\partial_r \phi^\pm |_{r=a} = 0&amp;lt;/math&amp;gt; and noting that the cosines are orthogonal over &amp;lt;math&amp;gt;\theta \in  (-\pi,\pi]&amp;lt;/math&amp;gt; gives the results&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \alpha_m - \sum_{n=1}^{\infty}a^{n+m} A_{mn} \alpha_n = e^{-Kf}\frac {(-Ka)^m}{m!}; m=1,2,3,\ldots&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \beta_m - \sum_{n=1}^{\infty}a^{n+m} A_{mn} \beta_n = -ie^{-Kf}\frac {(-Ka)^m}{m!}; m=1,2,3,\ldots&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
From which we can see that &amp;lt;math&amp;gt;\beta_n = -i\alpha_n\,&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The above sums can be truncated at the Nth term yielding NxN system of linear equations that can be solved for the coefficients &amp;lt;math&amp;gt;\alpha_n&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hence we can calculate &amp;lt;math&amp;gt;\phi\,&amp;lt;/math&amp;gt; from:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi = \phi^+ + \phi^- = \phi_I + \sum_{n=1}^{\infty}a^n \alpha_n ( \phi^+_n + \phi^-_n )&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This expression also gives the values of the reflection and transmission coefficients when we substitute the far field expressions for the symmetric and antisymmetric multipoles. In the far field:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \phi^+_n \sim \frac{2\pi i (-K)^n}{(n-1)!} e^{K(z-f)} e^{\pm Kx} &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math &amp;gt; \phi^-_n \sim \mp \frac{2\pi (-K)^n}{(n-1)!} e^{K(z-f)} e^{\pm Kx} &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Giving:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;R=0, \quad T = 1 + 4 \pi i e^{-Kf}  \sum_{n=1}^{\infty} \alpha_n \frac{(-Ka)^n}{(n-1)!} &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Hydrodynamic Forces ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Linear Water-Wave Theory]]&lt;/div&gt;</summary>
		<author><name>Sean Curry</name></author>
	</entry>
	<entry>
		<id>https://www.wikiwaves.org/index.php?title=Category:Multipole_Methods_for_Linear_Water_Waves&amp;diff=10885</id>
		<title>Category:Multipole Methods for Linear Water Waves</title>
		<link rel="alternate" type="text/html" href="https://www.wikiwaves.org/index.php?title=Category:Multipole_Methods_for_Linear_Water_Waves&amp;diff=10885"/>
		<updated>2010-02-11T21:38:52Z</updated>

		<summary type="html">&lt;p&gt;Sean Curry: /* Wave-Free Potentials */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{incomplete pages}}&lt;br /&gt;
&lt;br /&gt;
== Multipole Expansions ==&lt;br /&gt;
&lt;br /&gt;
Multipole expansions are a technique used in linear water wave theory where the potential is represented as a sum of singularities (multipoles) placed within any structures that are present. Multipoles can be constructed with their singularity submerged or on the free surface and these are treated separately.&lt;br /&gt;
&lt;br /&gt;
Multipoles satisfy:&lt;br /&gt;
&lt;br /&gt;
{{Standard linear wave scattering equations without body condition}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{sommerfeld radiation condition two dimensions}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A linear combination of these multipoles can then be made to satisfy the body boundary conditions.&lt;br /&gt;
&lt;br /&gt;
== 2D Exterior Neumann Problem ==&lt;br /&gt;
&lt;br /&gt;
We start by developing the theory for Laplace&#039;s equation without the free surface for&lt;br /&gt;
a disk of radius &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; centered at the origin. The equation in polar coordinates is&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\nabla^2 \phi = \left[   \partial_r^2 + \frac{1}{r}\partial_r + \frac{1}{r^2} \partial_\theta^2  \right] \phi= 0 \quad &lt;br /&gt;
\mathrm{for} \quad r&amp;gt;a &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt; &lt;br /&gt;
&amp;lt;math&amp;gt;\partial_n \phi |_{r=a} = 0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
|\nabla\phi| \rightarrow 0 \quad as \quad r \rightarrow \infty &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
Using [http://en.wikipedia.org/wiki/Separation_of_Variables separation of variables] &lt;br /&gt;
we write&lt;br /&gt;
&amp;lt;math&amp;gt;\phi = R(r)\Theta(\theta).\,&amp;lt;/math&amp;gt; Substituting into Laplace&#039;s equations gives&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{r^2}{R}\partial_r^2 R + \frac{r}{R}\partial_r R = - \frac{1}{\Theta}\partial_\theta^2 \Theta = m^2 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
The equation for &amp;lt;math&amp;gt;\Theta\,&amp;lt;/math&amp;gt; is&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\quad \partial_\theta^2 \Theta = -m^2\Theta &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\Rightarrow \Theta = A(m) \cos(m\theta) + B(m) \sin(m\theta) \quad for \quad  m \neq 0 &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When m=0 the solution is &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \Theta = A(0) + B(0)\theta \,&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt; &amp;lt;math&amp;gt;\Theta(\theta + 2\pi) = \Theta(\theta) \Rightarrow  m \in Z \,\, and \,\, B(0) = 0\,&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The equation for R is &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \quad r^2\partial_r^2 R + r\partial_rR = m^2 R &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
This is a standard DE, to solve we substitute R = r^n giving:&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;n(n-1)r^n + nr^n = m^2r^n \Rightarrow n^2 = m^2 \Rightarrow n= \pm m&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
This gives two independent solutions for all m except m = 0, where we only get the constant solution. &lt;br /&gt;
&lt;br /&gt;
Noting that:&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;  \nabla^2 \left( \ln(r) \right) = \frac{-1}{r^2} + \frac{1}{r^2}  = 0 &amp;lt;/math&amp;gt; &amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So along with the obvious constant function we have two independant sotutions. Thus for m=0 we can write:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;R = C\left(0\right) + D(0) \ln(r)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and for &amp;lt;math&amp;gt;m\neq 0:&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;R = C\left(m\right)r^m + D(m)r^{-m}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The derivatives of the radial eigenfunctions must go to zero indicating zero fluid flow at infinity:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;|\nabla\phi| \rightarrow 0 \,\, as \,\, r \rightarrow \infty \Rightarrow\partial_r R \rightarrow 0 \,\, as \,\, r \rightarrow \infty &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\Rightarrow C(m)= 0 \,\, \forall m &amp;gt; 0 \,\,\, and \,\,\, D(m)=0 \,\, \forall m&amp;lt;0&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hence the general solution can be expressed as:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi = C(0) + D(0) \ln(r) + \sum_{m=1}^\infty \left( a(m)\frac{\cos(m\theta)}{r^m} +  b(m)\frac{\sin(m\theta)}{r^m}  \right) &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We don&#039;t need to include the negative m terms because of the symmetry of the sine and cosine eigenfunctions means these solutions are not independent.&lt;br /&gt;
&lt;br /&gt;
The solution can also be expressed simply in terms of complex exponentials.&lt;br /&gt;
&lt;br /&gt;
== With the Free Surface BC ==&lt;br /&gt;
&lt;br /&gt;
When we introduce the free surface BC we need to find a new set of eigenfunctions. We can use eigenfunctions from the infinite domain problem to construct them.&lt;br /&gt;
&lt;br /&gt;
Note that the origin is in the free surface directly above the center of the disc for cartesian coordinates. However the origin for the polar coordinates is still at the center of the disk.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We add a solution of Laplace&#039;s equation to the eigenfunctions for the infinite domain problem and require that these new functions(multipoles) satisfy the free surface condition.&lt;br /&gt;
&lt;br /&gt;
For n&amp;gt;0&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi_n = \frac{e^{in\theta}}{r^n} + \psi_n&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
and for m=0&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi_0 = \ln(r) + \psi_0 \,&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Where&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\nabla^2 \psi_n = 0 \quad for \quad n = 0,1,2, \ldots&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We want the multipoles to satisfy the free surface condition&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\partial_z \phi_n |_{z=0} = K\phi_n|_{z=0} \quad \forall n = 0,1,2, \ldots&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For n=0 the free surface condition gives our boundary condition for &amp;lt;math&amp;gt;\psi_0\,&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;f_0(x) = (\partial_z  - K)\psi_0|_{z=0} = (K - \partial_z) \left(ln\left(\frac{r}{a}\right)\right)|_{z=0} &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\Rightarrow f_0(x) = K \ln\left(\frac{\sqrt{x^2 + f^2}}{a}\right) - \int_0^\infty e^{-\omega f}\cos(\omega x)d\omega &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where we used the expansion&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\ln(r) = \int_0^\infty (e^{-\omega}- e^{-\omega|z+f|}\cos(\omega x))\frac{d\omega}{\omega}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For n&amp;gt;0 the free surface condition yields the boundary condition for &amp;lt;math&amp;gt;\psi_m\,&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;f_n(x) = (\partial_z - K)\psi_n|_{z=0} = \left(K  - \partial_z \right) \left(\frac{e^{in\theta}}{r^n}\right)|_{z=0} &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \Rightarrow f_n(x) = \frac{(-1)^n}{(n-1)!} \int_0^\infty(K+\omega)\omega^{n-1}e^{-\omega f}e^{-i\omega x} d\omega  \quad \quad (*)&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where we used the expansion (valid for z&amp;gt;-f)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \frac{e^{in\theta}}{r^n} = \frac{(-1)^n}{(n-1)!} \int_0^\infty\omega^{n-1}e^{-\omega(z+f) }e^{-i\omega x} d\omega &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So our psi functions satisfy the following problem:&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\nabla^2 \psi_n = 0 \quad for \quad n = 0,1,2, \ldots \quad \ldots (1)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
  &lt;br /&gt;
  &amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\psi_n \rightarrow 0 \quad as \quad z \rightarrow -\infty \quad \ldots (2)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
  &lt;br /&gt;
  &amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\partial_z \psi_n |_{z=0} - K\psi_n|_{z=0} = f_n(x) \quad \ldots (3)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We solve for &amp;lt;math&amp;gt;\hat{\psi}_n\,&amp;lt;/math&amp;gt; by taking a Fourier transform in x to simplify Laplace&#039;s equation&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\hat{\psi}_n(\omega,z) = \int_{-\infty}^\infty \psi_n(x,z) e^{i\omega x}dx&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;(1) \Rightarrow \partial_z^2 \hat{\psi}_n = \omega^2\hat{\psi}_n \Rightarrow \hat{\psi}_n = A_n(\omega)e^{\omega z} + B_n(\omega)e^{-\omega z}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;but \quad (2) \Rightarrow B_n(\omega) = 0 \quad \forall n&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;(3) \Rightarrow \partial_z \hat{\psi}_n |_{z=0} - K\hat{\psi}_n|_{z=0} = (\omega - K)\hat{\psi}_n|_{z=0} &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\Rightarrow  \hat{f}_n(\omega) = (\omega - K)A_n(\omega) &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Hence&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;A_n(\omega) = \frac{\hat{f}_n(\omega)}{\omega - K}  &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and we obtaion &amp;lt;math&amp;gt;\psi\,&amp;lt;/math&amp;gt; by the inverse Fourier transform:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\psi_n = \frac{1}{2\pi}\int_{-\infty}^\infty \hat{\psi}_n e^{-i\omega x}d\omega = \frac{1}{2\pi}\int_{-\infty}^\infty  \frac{\hat{f}_n(\omega)}{\omega - K} e^{\omega z}  e^{-i\omega x}d\omega&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For n&amp;gt;0 the form of &amp;lt;math&amp;gt;\hat{f}_n(\omega)&amp;lt;/math&amp;gt; can be obtained from the expansion of &amp;lt;math&amp;gt;f_n(x)\,&amp;lt;/math&amp;gt; labelled &amp;lt;math&amp;gt;(*)\,&amp;lt;/math&amp;gt; above by rewriting it as a Fourier transform. Substituting the result into the expression above, &amp;lt;math&amp;gt;\psi_n\,&amp;lt;/math&amp;gt; easily simplifies to:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\psi_n = \frac{(-1)^n}{(n-1)!}  \int_0^\infty  \frac{\omega + K}{\omega - K} \omega^{n-1} e^{\omega (z-f)}  e^{-i\omega x}d\omega&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
for n&amp;gt;0. Note: the integral above goes under the singularity at &amp;lt;math&amp;gt;\omega=K&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 Working to get &amp;lt;math&amp;gt;\hat{f}_n(\omega)&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
We can write:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;f_n(x) = \int_0^\infty g(\omega)e^{-i\omega x} d\omega&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
where&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;g(\omega)= \frac{(-1)^n}{(n-1)!}(K+\omega)\omega^{n-1}e^{-\omega f}  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
We can rewrite &amp;lt;math&amp;gt;f_n(x)\,&amp;lt;/math&amp;gt; as an inverse fourier transform by using the euler identity and the odd and even properties of sine and cosine. Allowing us to obtain &amp;lt;math&amp;gt;\hat{f}_n(\omega)&amp;lt;/math&amp;gt;:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;f_n(x) = \int_0^\infty g(\omega)\cos(\omega x) d\omega -i \int_0^\infty g(\omega)\sin(\omega x) d\omega&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\Rightarrow f_n(x) = \frac{1}{2}\int_{-\infty}^\infty g(|\omega|)\cos(\omega x) d\omega -\frac{i}{2} \int_{-\infty}^\infty \frac{\omega}{|\omega|}g(|\omega|)\sin(\omega x) d\omega&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
Since &amp;lt;math&amp;gt;g(|\omega|)\,&amp;lt;/math&amp;gt; is even, its integral against sine over all x is zero so we can replace the cosine with a complex exponential in the first integral (similarly we replace -i*sine for the second).&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\Rightarrow f_n(x) = \frac{1}{2}\int_{-\infty}^\infty g(|\omega|)e^{-i\omega x} d\omega + \frac{1}{2} \int_{-\infty}^\infty \frac{\omega}{|\omega|}g(|\omega|)e^{-i\omega x} d\omega&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
Finally, combining the integrals, &amp;lt;math&amp;gt;\hat{f}_n(\omega)&amp;lt;/math&amp;gt; emerges:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\Rightarrow f_n(x) = \int_{-\infty}^\infty \frac{1}{2}\left( g(|\omega|) +  \frac{\omega}{|\omega|}g(|\omega|)\right) e^{-i\omega x} d\omega&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;math&amp;gt;\psi_0 \,&amp;lt;/math&amp;gt; remains to be derived.&lt;br /&gt;
&lt;br /&gt;
  In order to have a complete set to expand our flud potential we need to include &amp;lt;math&amp;gt;\bar{\phi}_m&amp;lt;/math&amp;gt; for m&amp;gt;0. &lt;br /&gt;
  This accounts for the second linearly independent solution for m&amp;gt;0.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\psi_m\,&amp;lt;/math&amp;gt; can be expanded in a power series:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\psi_m = \sum_m=0^\infty A_{mn}r^m \cos(m\theta),\,\,\,\textrm{for}\,\,\, m&amp;gt;0&amp;lt;/math&amp;gt; &amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;A_{mn}= \frac{(-1)^{m+n}}{m!(n-1)!}  \int_0^\infty  \frac{\omega + K}{\omega - K} \omega^{m+n-1} e^{-2\omega f}  d\omega&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
Note: the integral above goes under the singularity at &amp;lt;math&amp;gt;\omega=K&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
  Which comes from the identity (to be derived)&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;e^{\omega z} \cos(\omega x) = e^{-\omega f}\sum_{m=0}^\infty \frac{(-1)^m}{m!} \omega^m r^m\cos(m\theta)&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Wave-Free Potentials ==&lt;br /&gt;
&lt;br /&gt;
The combination &amp;lt;math&amp;gt;\phi_{n+1} + Kn^{-1}\phi_n&amp;lt;/math&amp;gt;, n=1,2,3,... corresponds to a wave free singularity ie. no waves are radiated to infinity so the potential dies off in the far field.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi_{n+1} + Kn^{-1}\phi_n = \frac{e^{i(n+1)\theta}}{r^{(n+1)}} + \frac{(-1)^{(n+1)}}{n!}  \int_0^\infty  \frac{\omega + K}{\omega - K} \omega^{n} e^{\omega (z-f)}  e^{-i\omega x}d\omega + \frac{K}{n}\left( \frac{e^{in\theta}}{r^n} + \frac{(-1)^n}{(n-1)!}  \int_0^\infty  \frac{\omega + K}{\omega - K} \omega^{n-1} e^{\omega (z-f)}  e^{-i\omega x}d\omega \right)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  This can be simplified by using the coordinate relationships: (need a picture)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;r = \sqrt{x^2 + (z+f)^2}, \quad r_1 = \sqrt{x^2 + (z-f)^2},&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;x = r \sin(\theta) = r_1 \sin(\theta_1),\,&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;-z-f = r \cos(\theta), \quad z-f = r_1 \cos(\theta_1).&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Resulting  in the expression:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi_{n+1} + Kn^{-1}\phi_n = \frac{e^{i(n+1)\theta}}{r^{(n+1)}}   + \frac{K}{n}\frac{e^{in\theta}}{r^n}  + \frac{e^{-i(n+1)\theta_1}}{r_1^{(n+1)}} - \frac{K}{n}\frac{e^{-in\theta_1}}{r_1^n}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
ie.&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi_{n+1} + Kn^{-1}\phi_n = \left( \frac{e^{i(n+1)\theta}}{r^{(n+1)}} + \frac{e^{-i(n+1)\theta_1}}{r_1^{(n+1)}} \right) +  \frac{K}{n} \left( \frac{e^{in\theta}}{r^n} - \frac{e^{-in\theta_1}}{r_1^n} \right)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Once again to obtain a complete set we also use the compex conjugates of these potentials.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
These idntities have been used:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;math&amp;gt; -\frac{e^{-in\theta_1}}{r_1^n} = \frac{(-1)^n}{(n-1)!}  \int_0^\infty  \frac{\omega + K}{\omega - K} \omega^{n-1} e^{\omega (z-f)}  e^{-i\omega x}d\omega  &amp;lt;/math&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
 &amp;lt;math&amp;gt; \frac{e^{-i(n+1)\theta_1}}{r_1^{(n+1)}} = \frac{(-1)^{(n+1)}}{n!}  \int_0^\infty  \frac{\omega + K}{\omega - K} \omega^{n} e^{\omega (z-f)}  e^{-i\omega x}d\omega&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Example: 2D Wave Scattering for a Submerged Horizontal Cylinder (in Infinite Depth)==&lt;br /&gt;
&lt;br /&gt;
***Picture to show problem set up***&lt;br /&gt;
&lt;br /&gt;
The potential for the scattering problem splits as incident and diffracted potentials and also into symmetric and antisymmetric parts.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi = \phi_I + \phi_D = \phi^+ + \phi^-\,&amp;lt;/math&amp;gt; &amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \partial_r \phi_I |_{r=a} = - \partial_r \phi_D |_{r=a} &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and &amp;lt;math&amp;gt;\phi^+, \,\, \phi^-&amp;lt;/math&amp;gt; are the symmetric and antisymmetric parts of &amp;lt;math&amp;gt;\phi \,&amp;lt;/math&amp;gt; respectively.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For a wave incident from the left we have&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi_I = e^{Kz} e^{iKx} = e^{-Kf}\sum_{n=0}^\infty \frac{(-Kr)^n }{n!} e^{-in\theta}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi_D = \sum_{n=1}^{\infty}a^n \alpha_n \phi_n^+ + \sum_{n=1}^{\infty}a^n \beta_n \phi_n^- &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi^+ = e^{Kz} \cos(Kx) + \sum_{n=1}^{\infty}a^n \alpha_n \phi_n^+&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and &amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi^- = ie^{Kz} \sin(Kx) + \sum_{n=1}^{\infty}a^n \beta_n \phi_n^- &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Converting &amp;lt;math&amp;gt;\phi^+\,&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\phi^-\,&amp;lt;/math&amp;gt; into the polar coordinate system:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi^+ = e^{-Kf}\sum_{n=0}^\infty \frac{(-Kr)^n }{n!} \cos(n\theta) + \sum_{n=1}^{\infty}a^n \alpha_n \left(\frac{\cos(n\theta)}{r^n} + \sum_{m=0}^\infty A_{mn}^+ r^m \cos(m\theta)\right)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi^- = ie^{-Kf}\sum_{n=0}^\infty \frac{(-Kr)^n }{n!} \sin(n\theta) + \sum_{n=1}^{\infty}a^n \alpha_n \left(\frac{\sin(n\theta)}{r^n} + \sum_{m=0}^\infty A_{mn}^+ r^m \sin(m\theta)\right)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The above power series converge for r &amp;lt; 2f and the coefficients are given by&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; A_{mn} = \frac{(-1)^{m+n}}{m!(n-1)!} \quad SingularIntegral_0^\infty \quad \frac{\mu + K}{\mu - K} \mu ^{m+n-1} e^{-2\mu f}d\mu &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Applying the body boundary condition &amp;lt;math&amp;gt;\partial_r \phi^\pm |_{r=a} = 0&amp;lt;/math&amp;gt; and noting that the cosines are orthogonal over &amp;lt;math&amp;gt;\theta \in  (-\pi,\pi]&amp;lt;/math&amp;gt; gives the results&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \alpha_m - \sum_{n=1}^{\infty}a^{n+m} A_{mn} \alpha_n = e^{-Kf}\frac {(-Ka)^m}{m!}; m=1,2,3,\ldots&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \beta_m - \sum_{n=1}^{\infty}a^{n+m} A_{mn} \beta_n = -ie^{-Kf}\frac {(-Ka)^m}{m!}; m=1,2,3,\ldots&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
From which we can see that &amp;lt;math&amp;gt;\beta_n = -i\alpha_n\,&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The above sums can be truncated at the Nth term yielding NxN system of linear equations that can be solved for the coefficients &amp;lt;math&amp;gt;\alpha_n&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hence we can calculate &amp;lt;math&amp;gt;\phi\,&amp;lt;/math&amp;gt; from:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi = \phi^+ + \phi^- = \phi_I + \sum_{n=1}^{\infty}a^n \alpha_n ( \phi^+_n + \phi^-_n )&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This expression also gives the values of the reflection and transmission coefficients when we substitute the far field expressions for the symmetric and antisymmetric multipoles. In the far field:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \phi^+_n \sim \frac{2\pi i (-K)^n}{(n-1)!} e^{K(z-f)} e^{\pm Kx} &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math &amp;gt; \phi^-_n \sim \mp \frac{2\pi (-K)^n}{(n-1)!} e^{K(z-f)} e^{\pm Kx} &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Giving:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;R=0, \quad T = 1 + 4 \pi i e^{-Kf}  \sum_{n=1}^{\infty} \alpha_n \frac{(-Ka)^n}{(n-1)!} &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Hydrodynamic Forces ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Linear Water-Wave Theory]]&lt;/div&gt;</summary>
		<author><name>Sean Curry</name></author>
	</entry>
	<entry>
		<id>https://www.wikiwaves.org/index.php?title=Category:Multipole_Methods_for_Linear_Water_Waves&amp;diff=10883</id>
		<title>Category:Multipole Methods for Linear Water Waves</title>
		<link rel="alternate" type="text/html" href="https://www.wikiwaves.org/index.php?title=Category:Multipole_Methods_for_Linear_Water_Waves&amp;diff=10883"/>
		<updated>2010-02-11T21:30:45Z</updated>

		<summary type="html">&lt;p&gt;Sean Curry: /* Wave-Free Potentials */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{incomplete pages}}&lt;br /&gt;
&lt;br /&gt;
== Multipole Expansions ==&lt;br /&gt;
&lt;br /&gt;
Multipole expansions are a technique used in linear water wave theory where the potential is represented as a sum of singularities (multipoles) placed within any structures that are present. Multipoles can be constructed with their singularity submerged or on the free surface and these are treated separately.&lt;br /&gt;
&lt;br /&gt;
Multipoles satisfy:&lt;br /&gt;
&lt;br /&gt;
{{Standard linear wave scattering equations without body condition}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{sommerfeld radiation condition two dimensions}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A linear combination of these multipoles can then be made to satisfy the body boundary conditions.&lt;br /&gt;
&lt;br /&gt;
== 2D Exterior Neumann Problem ==&lt;br /&gt;
&lt;br /&gt;
We start by developing the theory for Laplace&#039;s equation without the free surface for&lt;br /&gt;
a disk of radius &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; centered at the origin. The equation in polar coordinates is&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\nabla^2 \phi = \left[   \partial_r^2 + \frac{1}{r}\partial_r + \frac{1}{r^2} \partial_\theta^2  \right] \phi= 0 \quad &lt;br /&gt;
\mathrm{for} \quad r&amp;gt;a &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt; &lt;br /&gt;
&amp;lt;math&amp;gt;\partial_n \phi |_{r=a} = 0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
|\nabla\phi| \rightarrow 0 \quad as \quad r \rightarrow \infty &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
Using [http://en.wikipedia.org/wiki/Separation_of_Variables separation of variables] &lt;br /&gt;
we write&lt;br /&gt;
&amp;lt;math&amp;gt;\phi = R(r)\Theta(\theta).\,&amp;lt;/math&amp;gt; Substituting into Laplace&#039;s equations gives&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{r^2}{R}\partial_r^2 R + \frac{r}{R}\partial_r R = - \frac{1}{\Theta}\partial_\theta^2 \Theta = m^2 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
The equation for &amp;lt;math&amp;gt;\Theta\,&amp;lt;/math&amp;gt; is&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\quad \partial_\theta^2 \Theta = -m^2\Theta &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\Rightarrow \Theta = A(m) \cos(m\theta) + B(m) \sin(m\theta) \quad for \quad  m \neq 0 &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When m=0 the solution is &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \Theta = A(0) + B(0)\theta \,&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt; &amp;lt;math&amp;gt;\Theta(\theta + 2\pi) = \Theta(\theta) \Rightarrow  m \in Z \,\, and \,\, B(0) = 0\,&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The equation for R is &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \quad r^2\partial_r^2 R + r\partial_rR = m^2 R &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
This is a standard DE, to solve we substitute R = r^n giving:&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;n(n-1)r^n + nr^n = m^2r^n \Rightarrow n^2 = m^2 \Rightarrow n= \pm m&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
This gives two independent solutions for all m except m = 0, where we only get the constant solution. &lt;br /&gt;
&lt;br /&gt;
Noting that:&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;  \nabla^2 \left( \ln(r) \right) = \frac{-1}{r^2} + \frac{1}{r^2}  = 0 &amp;lt;/math&amp;gt; &amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So along with the obvious constant function we have two independant sotutions. Thus for m=0 we can write:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;R = C\left(0\right) + D(0) \ln(r)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and for &amp;lt;math&amp;gt;m\neq 0:&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;R = C\left(m\right)r^m + D(m)r^{-m}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The derivatives of the radial eigenfunctions must go to zero indicating zero fluid flow at infinity:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;|\nabla\phi| \rightarrow 0 \,\, as \,\, r \rightarrow \infty \Rightarrow\partial_r R \rightarrow 0 \,\, as \,\, r \rightarrow \infty &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\Rightarrow C(m)= 0 \,\, \forall m &amp;gt; 0 \,\,\, and \,\,\, D(m)=0 \,\, \forall m&amp;lt;0&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hence the general solution can be expressed as:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi = C(0) + D(0) \ln(r) + \sum_{m=1}^\infty \left( a(m)\frac{\cos(m\theta)}{r^m} +  b(m)\frac{\sin(m\theta)}{r^m}  \right) &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We don&#039;t need to include the negative m terms because of the symmetry of the sine and cosine eigenfunctions means these solutions are not independent.&lt;br /&gt;
&lt;br /&gt;
The solution can also be expressed simply in terms of complex exponentials.&lt;br /&gt;
&lt;br /&gt;
== With the Free Surface BC ==&lt;br /&gt;
&lt;br /&gt;
When we introduce the free surface BC we need to find a new set of eigenfunctions. We can use eigenfunctions from the infinite domain problem to construct them.&lt;br /&gt;
&lt;br /&gt;
Note that the origin is in the free surface directly above the center of the disc for cartesian coordinates. However the origin for the polar coordinates is still at the center of the disk.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We add a solution of Laplace&#039;s equation to the eigenfunctions for the infinite domain problem and require that these new functions(multipoles) satisfy the free surface condition.&lt;br /&gt;
&lt;br /&gt;
For n&amp;gt;0&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi_n = \frac{e^{in\theta}}{r^n} + \psi_n&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
and for m=0&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi_0 = \ln(r) + \psi_0 \,&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Where&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\nabla^2 \psi_n = 0 \quad for \quad n = 0,1,2, \ldots&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We want the multipoles to satisfy the free surface condition&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\partial_z \phi_n |_{z=0} = K\phi_n|_{z=0} \quad \forall n = 0,1,2, \ldots&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For n=0 the free surface condition gives our boundary condition for &amp;lt;math&amp;gt;\psi_0\,&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;f_0(x) = (\partial_z  - K)\psi_0|_{z=0} = (K - \partial_z) \left(ln\left(\frac{r}{a}\right)\right)|_{z=0} &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\Rightarrow f_0(x) = K \ln\left(\frac{\sqrt{x^2 + f^2}}{a}\right) - \int_0^\infty e^{-\omega f}\cos(\omega x)d\omega &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where we used the expansion&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\ln(r) = \int_0^\infty (e^{-\omega}- e^{-\omega|z+f|}\cos(\omega x))\frac{d\omega}{\omega}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For n&amp;gt;0 the free surface condition yields the boundary condition for &amp;lt;math&amp;gt;\psi_m\,&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;f_n(x) = (\partial_z - K)\psi_n|_{z=0} = \left(K  - \partial_z \right) \left(\frac{e^{in\theta}}{r^n}\right)|_{z=0} &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \Rightarrow f_n(x) = \frac{(-1)^n}{(n-1)!} \int_0^\infty(K+\omega)\omega^{n-1}e^{-\omega f}e^{-i\omega x} d\omega  \quad \quad (*)&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where we used the expansion (valid for z&amp;gt;-f)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \frac{e^{in\theta}}{r^n} = \frac{(-1)^n}{(n-1)!} \int_0^\infty\omega^{n-1}e^{-\omega(z+f) }e^{-i\omega x} d\omega &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So our psi functions satisfy the following problem:&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\nabla^2 \psi_n = 0 \quad for \quad n = 0,1,2, \ldots \quad \ldots (1)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
  &lt;br /&gt;
  &amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\psi_n \rightarrow 0 \quad as \quad z \rightarrow -\infty \quad \ldots (2)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
  &lt;br /&gt;
  &amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\partial_z \psi_n |_{z=0} - K\psi_n|_{z=0} = f_n(x) \quad \ldots (3)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We solve for &amp;lt;math&amp;gt;\hat{\psi}_n\,&amp;lt;/math&amp;gt; by taking a Fourier transform in x to simplify Laplace&#039;s equation&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\hat{\psi}_n(\omega,z) = \int_{-\infty}^\infty \psi_n(x,z) e^{i\omega x}dx&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;(1) \Rightarrow \partial_z^2 \hat{\psi}_n = \omega^2\hat{\psi}_n \Rightarrow \hat{\psi}_n = A_n(\omega)e^{\omega z} + B_n(\omega)e^{-\omega z}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;but \quad (2) \Rightarrow B_n(\omega) = 0 \quad \forall n&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;(3) \Rightarrow \partial_z \hat{\psi}_n |_{z=0} - K\hat{\psi}_n|_{z=0} = (\omega - K)\hat{\psi}_n|_{z=0} &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\Rightarrow  \hat{f}_n(\omega) = (\omega - K)A_n(\omega) &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Hence&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;A_n(\omega) = \frac{\hat{f}_n(\omega)}{\omega - K}  &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and we obtaion &amp;lt;math&amp;gt;\psi\,&amp;lt;/math&amp;gt; by the inverse Fourier transform:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\psi_n = \frac{1}{2\pi}\int_{-\infty}^\infty \hat{\psi}_n e^{-i\omega x}d\omega = \frac{1}{2\pi}\int_{-\infty}^\infty  \frac{\hat{f}_n(\omega)}{\omega - K} e^{\omega z}  e^{-i\omega x}d\omega&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For n&amp;gt;0 the form of &amp;lt;math&amp;gt;\hat{f}_n(\omega)&amp;lt;/math&amp;gt; can be obtained from the expansion of &amp;lt;math&amp;gt;f_n(x)\,&amp;lt;/math&amp;gt; labelled &amp;lt;math&amp;gt;(*)\,&amp;lt;/math&amp;gt; above by rewriting it as a Fourier transform. Substituting the result into the expression above, &amp;lt;math&amp;gt;\psi_n\,&amp;lt;/math&amp;gt; easily simplifies to:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\psi_n = \frac{(-1)^n}{(n-1)!}  \int_0^\infty  \frac{\omega + K}{\omega - K} \omega^{n-1} e^{\omega (z-f)}  e^{-i\omega x}d\omega&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
for n&amp;gt;0. Note: the integral above goes under the singularity at &amp;lt;math&amp;gt;\omega=K&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 Working to get &amp;lt;math&amp;gt;\hat{f}_n(\omega)&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
We can write:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;f_n(x) = \int_0^\infty g(\omega)e^{-i\omega x} d\omega&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
where&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;g(\omega)= \frac{(-1)^n}{(n-1)!}(K+\omega)\omega^{n-1}e^{-\omega f}  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
We can rewrite &amp;lt;math&amp;gt;f_n(x)\,&amp;lt;/math&amp;gt; as an inverse fourier transform by using the euler identity and the odd and even properties of sine and cosine. Allowing us to obtain &amp;lt;math&amp;gt;\hat{f}_n(\omega)&amp;lt;/math&amp;gt;:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;f_n(x) = \int_0^\infty g(\omega)\cos(\omega x) d\omega -i \int_0^\infty g(\omega)\sin(\omega x) d\omega&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\Rightarrow f_n(x) = \frac{1}{2}\int_{-\infty}^\infty g(|\omega|)\cos(\omega x) d\omega -\frac{i}{2} \int_{-\infty}^\infty \frac{\omega}{|\omega|}g(|\omega|)\sin(\omega x) d\omega&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
Since &amp;lt;math&amp;gt;g(|\omega|)\,&amp;lt;/math&amp;gt; is even, its integral against sine over all x is zero so we can replace the cosine with a complex exponential in the first integral (similarly we replace -i*sine for the second).&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\Rightarrow f_n(x) = \frac{1}{2}\int_{-\infty}^\infty g(|\omega|)e^{-i\omega x} d\omega + \frac{1}{2} \int_{-\infty}^\infty \frac{\omega}{|\omega|}g(|\omega|)e^{-i\omega x} d\omega&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
Finally, combining the integrals, &amp;lt;math&amp;gt;\hat{f}_n(\omega)&amp;lt;/math&amp;gt; emerges:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\Rightarrow f_n(x) = \int_{-\infty}^\infty \frac{1}{2}\left( g(|\omega|) +  \frac{\omega}{|\omega|}g(|\omega|)\right) e^{-i\omega x} d\omega&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;math&amp;gt;\psi_0 \,&amp;lt;/math&amp;gt; remains to be derived.&lt;br /&gt;
&lt;br /&gt;
  In order to have a complete set to expand our flud potential we need to include &amp;lt;math&amp;gt;\bar{\phi}_m&amp;lt;/math&amp;gt; for m&amp;gt;0. &lt;br /&gt;
  This accounts for the second linearly independent solution for m&amp;gt;0.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\psi_m\,&amp;lt;/math&amp;gt; can be expanded in a power series:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\psi_m = \sum_m=0^\infty A_{mn}r^m \cos(m\theta),\,\,\,\textrm{for}\,\,\, m&amp;gt;0&amp;lt;/math&amp;gt; &amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;A_{mn}= \frac{(-1)^{m+n}}{m!(n-1)!}  \int_0^\infty  \frac{\omega + K}{\omega - K} \omega^{m+n-1} e^{-2\omega f}  d\omega&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
Note: the integral above goes under the singularity at &amp;lt;math&amp;gt;\omega=K&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
  Which comes from the identity (to be derived)&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;e^{\omega z} \cos(\omega x) = e^{-\omega f}\sum_{m=0}^\infty \frac{(-1)^m}{m!} \omega^m r^m\cos(m\theta)&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Wave-Free Potentials ==&lt;br /&gt;
&lt;br /&gt;
The combination &amp;lt;math&amp;gt;\phi_{n+1} + Kn^{-1}\phi_n&amp;lt;/math&amp;gt;, n=1,2,3,... corresponds to a wave free singularity ie. no waves are radiated to infinity so the potential dies off in the far field.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi_{n+1} + Kn^{-1}\phi_n = \frac{e^{i(n+1)\theta}}{r^{(n+1)}} + \frac{(-1)^{(n+1)}}{n!}  \int_0^\infty  \frac{\omega + K}{\omega - K} \omega^{n} e^{\omega (z-f)}  e^{-i\omega x}d\omega + \frac{K}{n}\left( \frac{e^{in\theta}}{r^n} + \frac{(-1)^n}{(n-1)!}  \int_0^\infty  \frac{\omega + K}{\omega - K} \omega^{n-1} e^{\omega (z-f)}  e^{-i\omega x}d\omega \right)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  This can be simplified by using the coordinate relationships: (need a picture)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;r = \sqrt{x^2 + (z+f)^2}, \quad r_1 = \sqrt{x^2 + (z-f)^2},&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;x = r \sin(\theta) = r_1 \sin(\theta_1),\,&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;-z-f = r \cos(\theta), \quad z-f = r_1 \cos(\theta_1).&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Resulting  in the expression:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi_{n+1} + Kn^{-1}\phi_n = \frac{e^{i(n+1)\theta}}{r^{(n+1)}}   + \frac{K}{n}\frac{e^{in\theta}}{r^n}  + \frac{e^{-i(n+1)\theta_1}}{r_1^{(n+1)}} - \frac{K}{n}\frac{e^{-in\theta_1}}{r_1^n}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
ie.&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi_{n+1} + Kn^{-1}\phi_n = \left( \frac{e^{i(n+1)\theta}}{r^{(n+1)}} + \frac{e^{-i(n+1)\theta_1}}{r_1^{(n+1)}} \right) +  \frac{K}{n} \left( \frac{e^{in\theta}}{r^n} - \frac{e^{-in\theta_1}}{r_1^n} \right)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Example: 2D Wave Scattering for a Submerged Horizontal Cylinder (in Infinite Depth)==&lt;br /&gt;
&lt;br /&gt;
***Picture to show problem set up***&lt;br /&gt;
&lt;br /&gt;
The potential for the scattering problem splits as incident and diffracted potentials and also into symmetric and antisymmetric parts.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi = \phi_I + \phi_D = \phi^+ + \phi^-\,&amp;lt;/math&amp;gt; &amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \partial_r \phi_I |_{r=a} = - \partial_r \phi_D |_{r=a} &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and &amp;lt;math&amp;gt;\phi^+, \,\, \phi^-&amp;lt;/math&amp;gt; are the symmetric and antisymmetric parts of &amp;lt;math&amp;gt;\phi \,&amp;lt;/math&amp;gt; respectively.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For a wave incident from the left we have&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi_I = e^{Kz} e^{iKx} = e^{-Kf}\sum_{n=0}^\infty \frac{(-Kr)^n }{n!} e^{-in\theta}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi_D = \sum_{n=1}^{\infty}a^n \alpha_n \phi_n^+ + \sum_{n=1}^{\infty}a^n \beta_n \phi_n^- &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi^+ = e^{Kz} \cos(Kx) + \sum_{n=1}^{\infty}a^n \alpha_n \phi_n^+&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and &amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi^- = ie^{Kz} \sin(Kx) + \sum_{n=1}^{\infty}a^n \beta_n \phi_n^- &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Converting &amp;lt;math&amp;gt;\phi^+\,&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\phi^-\,&amp;lt;/math&amp;gt; into the polar coordinate system:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi^+ = e^{-Kf}\sum_{n=0}^\infty \frac{(-Kr)^n }{n!} \cos(n\theta) + \sum_{n=1}^{\infty}a^n \alpha_n \left(\frac{\cos(n\theta)}{r^n} + \sum_{m=0}^\infty A_{mn}^+ r^m \cos(m\theta)\right)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi^- = ie^{-Kf}\sum_{n=0}^\infty \frac{(-Kr)^n }{n!} \sin(n\theta) + \sum_{n=1}^{\infty}a^n \alpha_n \left(\frac{\sin(n\theta)}{r^n} + \sum_{m=0}^\infty A_{mn}^+ r^m \sin(m\theta)\right)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The above power series converge for r &amp;lt; 2f and the coefficients are given by&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; A_{mn} = \frac{(-1)^{m+n}}{m!(n-1)!} \quad SingularIntegral_0^\infty \quad \frac{\mu + K}{\mu - K} \mu ^{m+n-1} e^{-2\mu f}d\mu &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Applying the body boundary condition &amp;lt;math&amp;gt;\partial_r \phi^\pm |_{r=a} = 0&amp;lt;/math&amp;gt; and noting that the cosines are orthogonal over &amp;lt;math&amp;gt;\theta \in  (-\pi,\pi]&amp;lt;/math&amp;gt; gives the results&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \alpha_m - \sum_{n=1}^{\infty}a^{n+m} A_{mn} \alpha_n = e^{-Kf}\frac {(-Ka)^m}{m!}; m=1,2,3,\ldots&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \beta_m - \sum_{n=1}^{\infty}a^{n+m} A_{mn} \beta_n = -ie^{-Kf}\frac {(-Ka)^m}{m!}; m=1,2,3,\ldots&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
From which we can see that &amp;lt;math&amp;gt;\beta_n = -i\alpha_n\,&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The above sums can be truncated at the Nth term yielding NxN system of linear equations that can be solved for the coefficients &amp;lt;math&amp;gt;\alpha_n&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hence we can calculate &amp;lt;math&amp;gt;\phi\,&amp;lt;/math&amp;gt; from:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi = \phi^+ + \phi^- = \phi_I + \sum_{n=1}^{\infty}a^n \alpha_n ( \phi^+_n + \phi^-_n )&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This expression also gives the values of the reflection and transmission coefficients when we substitute the far field expressions for the symmetric and antisymmetric multipoles. In the far field:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \phi^+_n \sim \frac{2\pi i (-K)^n}{(n-1)!} e^{K(z-f)} e^{\pm Kx} &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math &amp;gt; \phi^-_n \sim \mp \frac{2\pi (-K)^n}{(n-1)!} e^{K(z-f)} e^{\pm Kx} &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Giving:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;R=0, \quad T = 1 + 4 \pi i e^{-Kf}  \sum_{n=1}^{\infty} \alpha_n \frac{(-Ka)^n}{(n-1)!} &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Hydrodynamic Forces ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Linear Water-Wave Theory]]&lt;/div&gt;</summary>
		<author><name>Sean Curry</name></author>
	</entry>
	<entry>
		<id>https://www.wikiwaves.org/index.php?title=Category:Multipole_Methods_for_Linear_Water_Waves&amp;diff=10881</id>
		<title>Category:Multipole Methods for Linear Water Waves</title>
		<link rel="alternate" type="text/html" href="https://www.wikiwaves.org/index.php?title=Category:Multipole_Methods_for_Linear_Water_Waves&amp;diff=10881"/>
		<updated>2010-02-11T21:18:05Z</updated>

		<summary type="html">&lt;p&gt;Sean Curry: /* With the Free Surface BC */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{incomplete pages}}&lt;br /&gt;
&lt;br /&gt;
== Multipole Expansions ==&lt;br /&gt;
&lt;br /&gt;
Multipole expansions are a technique used in linear water wave theory where the potential is represented as a sum of singularities (multipoles) placed within any structures that are present. Multipoles can be constructed with their singularity submerged or on the free surface and these are treated separately.&lt;br /&gt;
&lt;br /&gt;
Multipoles satisfy:&lt;br /&gt;
&lt;br /&gt;
{{Standard linear wave scattering equations without body condition}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{sommerfeld radiation condition two dimensions}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A linear combination of these multipoles can then be made to satisfy the body boundary conditions.&lt;br /&gt;
&lt;br /&gt;
== 2D Exterior Neumann Problem ==&lt;br /&gt;
&lt;br /&gt;
We start by developing the theory for Laplace&#039;s equation without the free surface for&lt;br /&gt;
a disk of radius &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; centered at the origin. The equation in polar coordinates is&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\nabla^2 \phi = \left[   \partial_r^2 + \frac{1}{r}\partial_r + \frac{1}{r^2} \partial_\theta^2  \right] \phi= 0 \quad &lt;br /&gt;
\mathrm{for} \quad r&amp;gt;a &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt; &lt;br /&gt;
&amp;lt;math&amp;gt;\partial_n \phi |_{r=a} = 0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
|\nabla\phi| \rightarrow 0 \quad as \quad r \rightarrow \infty &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
Using [http://en.wikipedia.org/wiki/Separation_of_Variables separation of variables] &lt;br /&gt;
we write&lt;br /&gt;
&amp;lt;math&amp;gt;\phi = R(r)\Theta(\theta).\,&amp;lt;/math&amp;gt; Substituting into Laplace&#039;s equations gives&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{r^2}{R}\partial_r^2 R + \frac{r}{R}\partial_r R = - \frac{1}{\Theta}\partial_\theta^2 \Theta = m^2 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
The equation for &amp;lt;math&amp;gt;\Theta\,&amp;lt;/math&amp;gt; is&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\quad \partial_\theta^2 \Theta = -m^2\Theta &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\Rightarrow \Theta = A(m) \cos(m\theta) + B(m) \sin(m\theta) \quad for \quad  m \neq 0 &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When m=0 the solution is &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \Theta = A(0) + B(0)\theta \,&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt; &amp;lt;math&amp;gt;\Theta(\theta + 2\pi) = \Theta(\theta) \Rightarrow  m \in Z \,\, and \,\, B(0) = 0\,&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The equation for R is &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \quad r^2\partial_r^2 R + r\partial_rR = m^2 R &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
This is a standard DE, to solve we substitute R = r^n giving:&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;n(n-1)r^n + nr^n = m^2r^n \Rightarrow n^2 = m^2 \Rightarrow n= \pm m&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
This gives two independent solutions for all m except m = 0, where we only get the constant solution. &lt;br /&gt;
&lt;br /&gt;
Noting that:&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;  \nabla^2 \left( \ln(r) \right) = \frac{-1}{r^2} + \frac{1}{r^2}  = 0 &amp;lt;/math&amp;gt; &amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So along with the obvious constant function we have two independant sotutions. Thus for m=0 we can write:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;R = C\left(0\right) + D(0) \ln(r)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and for &amp;lt;math&amp;gt;m\neq 0:&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;R = C\left(m\right)r^m + D(m)r^{-m}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The derivatives of the radial eigenfunctions must go to zero indicating zero fluid flow at infinity:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;|\nabla\phi| \rightarrow 0 \,\, as \,\, r \rightarrow \infty \Rightarrow\partial_r R \rightarrow 0 \,\, as \,\, r \rightarrow \infty &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\Rightarrow C(m)= 0 \,\, \forall m &amp;gt; 0 \,\,\, and \,\,\, D(m)=0 \,\, \forall m&amp;lt;0&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hence the general solution can be expressed as:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi = C(0) + D(0) \ln(r) + \sum_{m=1}^\infty \left( a(m)\frac{\cos(m\theta)}{r^m} +  b(m)\frac{\sin(m\theta)}{r^m}  \right) &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We don&#039;t need to include the negative m terms because of the symmetry of the sine and cosine eigenfunctions means these solutions are not independent.&lt;br /&gt;
&lt;br /&gt;
The solution can also be expressed simply in terms of complex exponentials.&lt;br /&gt;
&lt;br /&gt;
== With the Free Surface BC ==&lt;br /&gt;
&lt;br /&gt;
When we introduce the free surface BC we need to find a new set of eigenfunctions. We can use eigenfunctions from the infinite domain problem to construct them.&lt;br /&gt;
&lt;br /&gt;
Note that the origin is in the free surface directly above the center of the disc for cartesian coordinates. However the origin for the polar coordinates is still at the center of the disk.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We add a solution of Laplace&#039;s equation to the eigenfunctions for the infinite domain problem and require that these new functions(multipoles) satisfy the free surface condition.&lt;br /&gt;
&lt;br /&gt;
For n&amp;gt;0&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi_n = \frac{e^{in\theta}}{r^n} + \psi_n&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
and for m=0&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi_0 = \ln(r) + \psi_0 \,&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Where&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\nabla^2 \psi_n = 0 \quad for \quad n = 0,1,2, \ldots&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We want the multipoles to satisfy the free surface condition&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\partial_z \phi_n |_{z=0} = K\phi_n|_{z=0} \quad \forall n = 0,1,2, \ldots&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For n=0 the free surface condition gives our boundary condition for &amp;lt;math&amp;gt;\psi_0\,&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;f_0(x) = (\partial_z  - K)\psi_0|_{z=0} = (K - \partial_z) \left(ln\left(\frac{r}{a}\right)\right)|_{z=0} &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\Rightarrow f_0(x) = K \ln\left(\frac{\sqrt{x^2 + f^2}}{a}\right) - \int_0^\infty e^{-\omega f}\cos(\omega x)d\omega &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where we used the expansion&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\ln(r) = \int_0^\infty (e^{-\omega}- e^{-\omega|z+f|}\cos(\omega x))\frac{d\omega}{\omega}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For n&amp;gt;0 the free surface condition yields the boundary condition for &amp;lt;math&amp;gt;\psi_m\,&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;f_n(x) = (\partial_z - K)\psi_n|_{z=0} = \left(K  - \partial_z \right) \left(\frac{e^{in\theta}}{r^n}\right)|_{z=0} &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \Rightarrow f_n(x) = \frac{(-1)^n}{(n-1)!} \int_0^\infty(K+\omega)\omega^{n-1}e^{-\omega f}e^{-i\omega x} d\omega  \quad \quad (*)&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where we used the expansion (valid for z&amp;gt;-f)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \frac{e^{in\theta}}{r^n} = \frac{(-1)^n}{(n-1)!} \int_0^\infty\omega^{n-1}e^{-\omega(z+f) }e^{-i\omega x} d\omega &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So our psi functions satisfy the following problem:&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\nabla^2 \psi_n = 0 \quad for \quad n = 0,1,2, \ldots \quad \ldots (1)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
  &lt;br /&gt;
  &amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\psi_n \rightarrow 0 \quad as \quad z \rightarrow -\infty \quad \ldots (2)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
  &lt;br /&gt;
  &amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\partial_z \psi_n |_{z=0} - K\psi_n|_{z=0} = f_n(x) \quad \ldots (3)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We solve for &amp;lt;math&amp;gt;\hat{\psi}_n\,&amp;lt;/math&amp;gt; by taking a Fourier transform in x to simplify Laplace&#039;s equation&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\hat{\psi}_n(\omega,z) = \int_{-\infty}^\infty \psi_n(x,z) e^{i\omega x}dx&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;(1) \Rightarrow \partial_z^2 \hat{\psi}_n = \omega^2\hat{\psi}_n \Rightarrow \hat{\psi}_n = A_n(\omega)e^{\omega z} + B_n(\omega)e^{-\omega z}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;but \quad (2) \Rightarrow B_n(\omega) = 0 \quad \forall n&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;(3) \Rightarrow \partial_z \hat{\psi}_n |_{z=0} - K\hat{\psi}_n|_{z=0} = (\omega - K)\hat{\psi}_n|_{z=0} &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\Rightarrow  \hat{f}_n(\omega) = (\omega - K)A_n(\omega) &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Hence&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;A_n(\omega) = \frac{\hat{f}_n(\omega)}{\omega - K}  &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and we obtaion &amp;lt;math&amp;gt;\psi\,&amp;lt;/math&amp;gt; by the inverse Fourier transform:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\psi_n = \frac{1}{2\pi}\int_{-\infty}^\infty \hat{\psi}_n e^{-i\omega x}d\omega = \frac{1}{2\pi}\int_{-\infty}^\infty  \frac{\hat{f}_n(\omega)}{\omega - K} e^{\omega z}  e^{-i\omega x}d\omega&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For n&amp;gt;0 the form of &amp;lt;math&amp;gt;\hat{f}_n(\omega)&amp;lt;/math&amp;gt; can be obtained from the expansion of &amp;lt;math&amp;gt;f_n(x)\,&amp;lt;/math&amp;gt; labelled &amp;lt;math&amp;gt;(*)\,&amp;lt;/math&amp;gt; above by rewriting it as a Fourier transform. Substituting the result into the expression above, &amp;lt;math&amp;gt;\psi_n\,&amp;lt;/math&amp;gt; easily simplifies to:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\psi_n = \frac{(-1)^n}{(n-1)!}  \int_0^\infty  \frac{\omega + K}{\omega - K} \omega^{n-1} e^{\omega (z-f)}  e^{-i\omega x}d\omega&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
for n&amp;gt;0. Note: the integral above goes under the singularity at &amp;lt;math&amp;gt;\omega=K&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 Working to get &amp;lt;math&amp;gt;\hat{f}_n(\omega)&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
We can write:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;f_n(x) = \int_0^\infty g(\omega)e^{-i\omega x} d\omega&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
where&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;g(\omega)= \frac{(-1)^n}{(n-1)!}(K+\omega)\omega^{n-1}e^{-\omega f}  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
We can rewrite &amp;lt;math&amp;gt;f_n(x)\,&amp;lt;/math&amp;gt; as an inverse fourier transform by using the euler identity and the odd and even properties of sine and cosine. Allowing us to obtain &amp;lt;math&amp;gt;\hat{f}_n(\omega)&amp;lt;/math&amp;gt;:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;f_n(x) = \int_0^\infty g(\omega)\cos(\omega x) d\omega -i \int_0^\infty g(\omega)\sin(\omega x) d\omega&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\Rightarrow f_n(x) = \frac{1}{2}\int_{-\infty}^\infty g(|\omega|)\cos(\omega x) d\omega -\frac{i}{2} \int_{-\infty}^\infty \frac{\omega}{|\omega|}g(|\omega|)\sin(\omega x) d\omega&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
Since &amp;lt;math&amp;gt;g(|\omega|)\,&amp;lt;/math&amp;gt; is even, its integral against sine over all x is zero so we can replace the cosine with a complex exponential in the first integral (similarly we replace -i*sine for the second).&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\Rightarrow f_n(x) = \frac{1}{2}\int_{-\infty}^\infty g(|\omega|)e^{-i\omega x} d\omega + \frac{1}{2} \int_{-\infty}^\infty \frac{\omega}{|\omega|}g(|\omega|)e^{-i\omega x} d\omega&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
Finally, combining the integrals, &amp;lt;math&amp;gt;\hat{f}_n(\omega)&amp;lt;/math&amp;gt; emerges:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\Rightarrow f_n(x) = \int_{-\infty}^\infty \frac{1}{2}\left( g(|\omega|) +  \frac{\omega}{|\omega|}g(|\omega|)\right) e^{-i\omega x} d\omega&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;math&amp;gt;\psi_0 \,&amp;lt;/math&amp;gt; remains to be derived.&lt;br /&gt;
&lt;br /&gt;
  In order to have a complete set to expand our flud potential we need to include &amp;lt;math&amp;gt;\bar{\phi}_m&amp;lt;/math&amp;gt; for m&amp;gt;0. &lt;br /&gt;
  This accounts for the second linearly independent solution for m&amp;gt;0.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\psi_m\,&amp;lt;/math&amp;gt; can be expanded in a power series:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\psi_m = \sum_m=0^\infty A_{mn}r^m \cos(m\theta),\,\,\,\textrm{for}\,\,\, m&amp;gt;0&amp;lt;/math&amp;gt; &amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;A_{mn}= \frac{(-1)^{m+n}}{m!(n-1)!}  \int_0^\infty  \frac{\omega + K}{\omega - K} \omega^{m+n-1} e^{-2\omega f}  d\omega&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
Note: the integral above goes under the singularity at &amp;lt;math&amp;gt;\omega=K&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
  Which comes from the identity (to be derived)&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;e^{\omega z} \cos(\omega x) = e^{-\omega f}\sum_{m=0}^\infty \frac{(-1)^m}{m!} \omega^m r^m\cos(m\theta)&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Wave-Free Potentials ==&lt;br /&gt;
&lt;br /&gt;
The combination &amp;lt;math&amp;gt;\phi_{n+1} + Kn^{-1}\phi_n&amp;lt;/math&amp;gt;, n=1,2,3,... corresponds to a wave free singularity ie. no waves are radiated to infinity so the potential dies off in the far field.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi_{n+1} + Kn^{-1}\phi_n = \frac{e^{i(n+1)\theta}}{r^{(n+1)}} + \frac{(-1)^{(n+1)}}{n!}  \int_0^\infty  \frac{\omega + K}{\omega - K} \omega^{n} e^{\omega (z-f)}  e^{-i\omega x}d\omega + Kn^{-1}\left( \frac{e^{in\theta}}{r^n} + \frac{(-1)^n}{(n-1)!}  \int_0^\infty  \frac{\omega + K}{\omega - K} \omega^{n-1} e^{\omega (z-f)}  e^{-i\omega x}d\omega \right)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  This can be simplified by using the coordinate relationships:&lt;br /&gt;
&lt;br /&gt;
== Example: 2D Wave Scattering for a Submerged Horizontal Cylinder (in Infinite Depth)==&lt;br /&gt;
&lt;br /&gt;
***Picture to show problem set up***&lt;br /&gt;
&lt;br /&gt;
The potential for the scattering problem splits as incident and diffracted potentials and also into symmetric and antisymmetric parts.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi = \phi_I + \phi_D = \phi^+ + \phi^-\,&amp;lt;/math&amp;gt; &amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \partial_r \phi_I |_{r=a} = - \partial_r \phi_D |_{r=a} &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and &amp;lt;math&amp;gt;\phi^+, \,\, \phi^-&amp;lt;/math&amp;gt; are the symmetric and antisymmetric parts of &amp;lt;math&amp;gt;\phi \,&amp;lt;/math&amp;gt; respectively.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For a wave incident from the left we have&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi_I = e^{Kz} e^{iKx} = e^{-Kf}\sum_{n=0}^\infty \frac{(-Kr)^n }{n!} e^{-in\theta}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi_D = \sum_{n=1}^{\infty}a^n \alpha_n \phi_n^+ + \sum_{n=1}^{\infty}a^n \beta_n \phi_n^- &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi^+ = e^{Kz} \cos(Kx) + \sum_{n=1}^{\infty}a^n \alpha_n \phi_n^+&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and &amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi^- = ie^{Kz} \sin(Kx) + \sum_{n=1}^{\infty}a^n \beta_n \phi_n^- &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Converting &amp;lt;math&amp;gt;\phi^+\,&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\phi^-\,&amp;lt;/math&amp;gt; into the polar coordinate system:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi^+ = e^{-Kf}\sum_{n=0}^\infty \frac{(-Kr)^n }{n!} \cos(n\theta) + \sum_{n=1}^{\infty}a^n \alpha_n \left(\frac{\cos(n\theta)}{r^n} + \sum_{m=0}^\infty A_{mn}^+ r^m \cos(m\theta)\right)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi^- = ie^{-Kf}\sum_{n=0}^\infty \frac{(-Kr)^n }{n!} \sin(n\theta) + \sum_{n=1}^{\infty}a^n \alpha_n \left(\frac{\sin(n\theta)}{r^n} + \sum_{m=0}^\infty A_{mn}^+ r^m \sin(m\theta)\right)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The above power series converge for r &amp;lt; 2f and the coefficients are given by&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; A_{mn} = \frac{(-1)^{m+n}}{m!(n-1)!} \quad SingularIntegral_0^\infty \quad \frac{\mu + K}{\mu - K} \mu ^{m+n-1} e^{-2\mu f}d\mu &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Applying the body boundary condition &amp;lt;math&amp;gt;\partial_r \phi^\pm |_{r=a} = 0&amp;lt;/math&amp;gt; and noting that the cosines are orthogonal over &amp;lt;math&amp;gt;\theta \in  (-\pi,\pi]&amp;lt;/math&amp;gt; gives the results&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \alpha_m - \sum_{n=1}^{\infty}a^{n+m} A_{mn} \alpha_n = e^{-Kf}\frac {(-Ka)^m}{m!}; m=1,2,3,\ldots&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \beta_m - \sum_{n=1}^{\infty}a^{n+m} A_{mn} \beta_n = -ie^{-Kf}\frac {(-Ka)^m}{m!}; m=1,2,3,\ldots&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
From which we can see that &amp;lt;math&amp;gt;\beta_n = -i\alpha_n\,&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The above sums can be truncated at the Nth term yielding NxN system of linear equations that can be solved for the coefficients &amp;lt;math&amp;gt;\alpha_n&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hence we can calculate &amp;lt;math&amp;gt;\phi\,&amp;lt;/math&amp;gt; from:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi = \phi^+ + \phi^- = \phi_I + \sum_{n=1}^{\infty}a^n \alpha_n ( \phi^+_n + \phi^-_n )&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This expression also gives the values of the reflection and transmission coefficients when we substitute the far field expressions for the symmetric and antisymmetric multipoles. In the far field:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \phi^+_n \sim \frac{2\pi i (-K)^n}{(n-1)!} e^{K(z-f)} e^{\pm Kx} &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math &amp;gt; \phi^-_n \sim \mp \frac{2\pi (-K)^n}{(n-1)!} e^{K(z-f)} e^{\pm Kx} &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Giving:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;R=0, \quad T = 1 + 4 \pi i e^{-Kf}  \sum_{n=1}^{\infty} \alpha_n \frac{(-Ka)^n}{(n-1)!} &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Hydrodynamic Forces ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Linear Water-Wave Theory]]&lt;/div&gt;</summary>
		<author><name>Sean Curry</name></author>
	</entry>
	<entry>
		<id>https://www.wikiwaves.org/index.php?title=Category:Multipole_Methods_for_Linear_Water_Waves&amp;diff=10879</id>
		<title>Category:Multipole Methods for Linear Water Waves</title>
		<link rel="alternate" type="text/html" href="https://www.wikiwaves.org/index.php?title=Category:Multipole_Methods_for_Linear_Water_Waves&amp;diff=10879"/>
		<updated>2010-02-11T20:51:12Z</updated>

		<summary type="html">&lt;p&gt;Sean Curry: /* With the Free Surface BC */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{incomplete pages}}&lt;br /&gt;
&lt;br /&gt;
== Multipole Expansions ==&lt;br /&gt;
&lt;br /&gt;
Multipole expansions are a technique used in linear water wave theory where the potential is represented as a sum of singularities (multipoles) placed within any structures that are present. Multipoles can be constructed with their singularity submerged or on the free surface and these are treated separately.&lt;br /&gt;
&lt;br /&gt;
Multipoles satisfy:&lt;br /&gt;
&lt;br /&gt;
{{Standard linear wave scattering equations without body condition}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{sommerfeld radiation condition two dimensions}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A linear combination of these multipoles can then be made to satisfy the body boundary conditions.&lt;br /&gt;
&lt;br /&gt;
== 2D Exterior Neumann Problem ==&lt;br /&gt;
&lt;br /&gt;
We start by developing the theory for Laplace&#039;s equation without the free surface for&lt;br /&gt;
a disk of radius &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; centered at the origin. The equation in polar coordinates is&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\nabla^2 \phi = \left[   \partial_r^2 + \frac{1}{r}\partial_r + \frac{1}{r^2} \partial_\theta^2  \right] \phi= 0 \quad &lt;br /&gt;
\mathrm{for} \quad r&amp;gt;a &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt; &lt;br /&gt;
&amp;lt;math&amp;gt;\partial_n \phi |_{r=a} = 0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
|\nabla\phi| \rightarrow 0 \quad as \quad r \rightarrow \infty &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
Using [http://en.wikipedia.org/wiki/Separation_of_Variables separation of variables] &lt;br /&gt;
we write&lt;br /&gt;
&amp;lt;math&amp;gt;\phi = R(r)\Theta(\theta).\,&amp;lt;/math&amp;gt; Substituting into Laplace&#039;s equations gives&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{r^2}{R}\partial_r^2 R + \frac{r}{R}\partial_r R = - \frac{1}{\Theta}\partial_\theta^2 \Theta = m^2 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
The equation for &amp;lt;math&amp;gt;\Theta\,&amp;lt;/math&amp;gt; is&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\quad \partial_\theta^2 \Theta = -m^2\Theta &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\Rightarrow \Theta = A(m) \cos(m\theta) + B(m) \sin(m\theta) \quad for \quad  m \neq 0 &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When m=0 the solution is &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \Theta = A(0) + B(0)\theta \,&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt; &amp;lt;math&amp;gt;\Theta(\theta + 2\pi) = \Theta(\theta) \Rightarrow  m \in Z \,\, and \,\, B(0) = 0\,&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The equation for R is &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \quad r^2\partial_r^2 R + r\partial_rR = m^2 R &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
This is a standard DE, to solve we substitute R = r^n giving:&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;n(n-1)r^n + nr^n = m^2r^n \Rightarrow n^2 = m^2 \Rightarrow n= \pm m&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
This gives two independent solutions for all m except m = 0, where we only get the constant solution. &lt;br /&gt;
&lt;br /&gt;
Noting that:&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;  \nabla^2 \left( \ln(r) \right) = \frac{-1}{r^2} + \frac{1}{r^2}  = 0 &amp;lt;/math&amp;gt; &amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So along with the obvious constant function we have two independant sotutions. Thus for m=0 we can write:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;R = C\left(0\right) + D(0) \ln(r)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and for &amp;lt;math&amp;gt;m\neq 0:&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;R = C\left(m\right)r^m + D(m)r^{-m}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The derivatives of the radial eigenfunctions must go to zero indicating zero fluid flow at infinity:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;|\nabla\phi| \rightarrow 0 \,\, as \,\, r \rightarrow \infty \Rightarrow\partial_r R \rightarrow 0 \,\, as \,\, r \rightarrow \infty &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\Rightarrow C(m)= 0 \,\, \forall m &amp;gt; 0 \,\,\, and \,\,\, D(m)=0 \,\, \forall m&amp;lt;0&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hence the general solution can be expressed as:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi = C(0) + D(0) \ln(r) + \sum_{m=1}^\infty \left( a(m)\frac{\cos(m\theta)}{r^m} +  b(m)\frac{\sin(m\theta)}{r^m}  \right) &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We don&#039;t need to include the negative m terms because of the symmetry of the sine and cosine eigenfunctions means these solutions are not independent.&lt;br /&gt;
&lt;br /&gt;
The solution can also be expressed simply in terms of complex exponentials.&lt;br /&gt;
&lt;br /&gt;
== With the Free Surface BC ==&lt;br /&gt;
&lt;br /&gt;
When we introduce the free surface BC we need to find a new set of eigenfunctions. We can use eigenfunctions from the infinite domain problem to construct them.&lt;br /&gt;
&lt;br /&gt;
Note that the origin is in the free surface directly above the center of the disc for cartesian coordinates. However the origin for the polar coordinates is still at the center of the disk.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We add a solution of Laplace&#039;s equation to the eigenfunctions for the infinite domain problem and require that these new functions(multipoles) satisfy the free surface condition.&lt;br /&gt;
&lt;br /&gt;
For n&amp;gt;0&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi_n = \frac{e^{in\theta}}{r^n} + \psi_n&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
and for m=0&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi_0 = \ln(r) + \psi_0 \,&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Where&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\nabla^2 \psi_n = 0 \quad for \quad n = 0,1,2, \ldots&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We want the multipoles to satisfy the free surface condition&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\partial_z \phi_n |_{z=0} = K\phi_n|_{z=0} \quad \forall n = 0,1,2, \ldots&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For n=0 the free surface condition gives our boundary condition for &amp;lt;math&amp;gt;\psi_0\,&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;f_0(x) = (\partial_z  - K)\psi_0|_{z=0} = (K - \partial_z) \left(ln\left(\frac{r}{a}\right)\right)|_{z=0} &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\Rightarrow f_0(x) = K \ln\left(\frac{\sqrt{x^2 + f^2}}{a}\right) - \int_0^\infty e^{-\omega f}\cos(\omega x)d\omega &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where we used the expansion&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\ln(r) = \int_0^\infty (e^{-\omega}- e^{-\omega|z+f|}\cos(\omega x))\frac{d\omega}{\omega}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For n&amp;gt;0 the free surface condition yields the boundary condition for &amp;lt;math&amp;gt;\psi_m\,&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;f_n(x) = (\partial_z - K)\psi_n|_{z=0} = \left(K  - \partial_z \right) \left(\frac{e^{in\theta}}{r^n}\right)|_{z=0} &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \Rightarrow f_n(x) = \frac{(-1)^n}{(n-1)!} \int_0^\infty(K+\omega)\omega^{n-1}e^{-\omega f}e^{-i\omega x} d\omega  \quad \quad (*)&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where we used the expansion (valid for z&amp;gt;-f)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \frac{e^{in\theta}}{r^n} = \frac{(-1)^n}{(n-1)!} \int_0^\infty\omega^{n-1}e^{-\omega(z+f) }e^{-i\omega x} d\omega &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So our psi functions satisfy the following problem:&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\nabla^2 \psi_n = 0 \quad for \quad n = 0,1,2, \ldots \quad \ldots (1)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
  &lt;br /&gt;
  &amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\psi_n \rightarrow 0 \quad as \quad z \rightarrow -\infty \quad \ldots (2)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
  &lt;br /&gt;
  &amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\partial_z \psi_n |_{z=0} - K\psi_n|_{z=0} = f_n(x) \quad \ldots (3)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We solve for &amp;lt;math&amp;gt;\hat{\psi}_n\,&amp;lt;/math&amp;gt; by taking a Fourier transform in x to simplify Laplace&#039;s equation&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\hat{\psi}_n(\omega,z) = \int_{-\infty}^\infty \psi_n(x,z) e^{i\omega x}dx&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;(1) \Rightarrow \partial_z^2 \hat{\psi}_n = \omega^2\hat{\psi}_n \Rightarrow \hat{\psi}_n = A_n(\omega)e^{\omega z} + B_n(\omega)e^{-\omega z}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;but \quad (2) \Rightarrow B_n(\omega) = 0 \quad \forall n&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;(3) \Rightarrow \partial_z \hat{\psi}_n |_{z=0} - K\hat{\psi}_n|_{z=0} = (\omega - K)\hat{\psi}_n|_{z=0} &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\Rightarrow  \hat{f}_n(\omega) = (\omega - K)A_n(\omega) &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Hence&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;A_n(\omega) = \frac{\hat{f}_n(\omega)}{\omega - K}  &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and we obtaion &amp;lt;math&amp;gt;\psi\,&amp;lt;/math&amp;gt; by the inverse Fourier transform:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\psi_n = \frac{1}{2\pi}\int_{-\infty}^\infty \hat{\psi}_n e^{-i\omega x}d\omega = \frac{1}{2\pi}\int_{-\infty}^\infty  \frac{\hat{f}_n(\omega)}{\omega - K} e^{\omega z}  e^{-i\omega x}d\omega&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For n&amp;gt;0 the form of &amp;lt;math&amp;gt;\hat{f}_n(\omega)&amp;lt;/math&amp;gt; can be obtained from the expansion of &amp;lt;math&amp;gt;f_n(x)\,&amp;lt;/math&amp;gt; labelled &amp;lt;math&amp;gt;(*)\,&amp;lt;/math&amp;gt; above by rewriting it as a Fourier transform. Substituting the result into the expression above, &amp;lt;math&amp;gt;\psi_n\,&amp;lt;/math&amp;gt; easily simplifies to:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\psi_n = \frac{(-1)^n}{(n-1)!}  \int_0^\infty  \frac{\omega + K}{\omega - K} \omega^{n-1} e^{\omega (z-f)}  e^{-i\omega x}d\omega&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
for n&amp;gt;0. Note: the integral above goes under the singularity at &amp;lt;math&amp;gt;\omega=K&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 Working to get &amp;lt;math&amp;gt;\hat{f}_n(\omega)&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
We can write:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;f_n(x) = \int_0^\infty g(\omega)e^{-i\omega x} d\omega&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
where&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;g(\omega)= \frac{(-1)^n}{(n-1)!}(K+\omega)\omega^{n-1}e^{-\omega f}  &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
We can rewrite &amp;lt;math&amp;gt;f_n(x)\,&amp;lt;/math&amp;gt; as an inverse fourier transform by using the euler identity and the odd and even properties of sine and cosine. Allowing us to obtain &amp;lt;math&amp;gt;\hat{f}_n(\omega)&amp;lt;/math&amp;gt;:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;f_n(x) = \int_0^\infty g(\omega)\cos(\omega x) d\omega -i \int_0^\infty g(\omega)\sin(\omega x) d\omega&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\Rightarrow f_n(x) = \frac{1}{2}\int_{-\infty}^\infty g(|\omega|)\cos(\omega x) d\omega -\frac{i}{2} \int_{-\infty}^\infty \frac{\omega}{|\omega|}g(|\omega|)\sin(\omega x) d\omega&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
Since &amp;lt;math&amp;gt;g(|\omega|)\,&amp;lt;/math&amp;gt; is even, its integral against sine over all x is zero so we can replace the cosine with a complex exponential in the first integral (similarly we replace -i*sine for the second).&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\Rightarrow f_n(x) = \frac{1}{2}\int_{-\infty}^\infty g(|\omega|)e^{-i\omega x} d\omega + \frac{1}{2} \int_{-\infty}^\infty \frac{\omega}{|\omega|}g(|\omega|)e^{-i\omega x} d\omega&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
Finally, combining the integrals, &amp;lt;math&amp;gt;\hat{f}_n(\omega)&amp;lt;/math&amp;gt; emerges:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\Rightarrow f_n(x) = \int_{-\infty}^\infty \frac{1}{2}\left( g(|\omega|) +  \frac{\omega}{|\omega|}g(|\omega|)\right) e^{-i\omega x} d\omega&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;math&amp;gt;\psi_0 \,&amp;lt;/math&amp;gt; remains to be derived.&lt;br /&gt;
&lt;br /&gt;
  In order to have a complete set to expand our flud potential we need to include &amp;lt;math&amp;gt;\bar{\phi}_m&amp;lt;/math&amp;gt; for m&amp;gt;0. &lt;br /&gt;
  This accounts for the second linearly independent solution for m&amp;gt;0.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\psi_m\,&amp;lt;/math&amp;gt; can be expanded in a power series:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\psi_m = \sum_m=0^\infty A_{mn}r^m \cos(m\theta),\,\,\,\textrm{for}\,\,\, m&amp;gt;0&amp;lt;/math&amp;gt; &amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;A_{mn}= \frac{(-1)^{m+n}}{m!(n-1)!}  \int_0^\infty  \frac{\omega + K}{\omega - K} \omega^{m+n-1} e^{-2\omega f}  d\omega&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
Note: the integral above goes under the singularity at &amp;lt;math&amp;gt;\omega=K&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
  Which comes from the identity (to be derived)&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;e^{\omega z} \cos(\omega x) = e^{-\omega f}\sum_{m=0}^\infty \frac{(-1)^m}{m!} \omega^m r^m\cos(m\theta)&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Example: 2D Wave Scattering for a Submerged Horizontal Cylinder (in Infinite Depth)==&lt;br /&gt;
&lt;br /&gt;
***Picture to show problem set up***&lt;br /&gt;
&lt;br /&gt;
The potential for the scattering problem splits as incident and diffracted potentials and also into symmetric and antisymmetric parts.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi = \phi_I + \phi_D = \phi^+ + \phi^-\,&amp;lt;/math&amp;gt; &amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \partial_r \phi_I |_{r=a} = - \partial_r \phi_D |_{r=a} &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and &amp;lt;math&amp;gt;\phi^+, \,\, \phi^-&amp;lt;/math&amp;gt; are the symmetric and antisymmetric parts of &amp;lt;math&amp;gt;\phi \,&amp;lt;/math&amp;gt; respectively.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For a wave incident from the left we have&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi_I = e^{Kz} e^{iKx} = e^{-Kf}\sum_{n=0}^\infty \frac{(-Kr)^n }{n!} e^{-in\theta}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi_D = \sum_{n=1}^{\infty}a^n \alpha_n \phi_n^+ + \sum_{n=1}^{\infty}a^n \beta_n \phi_n^- &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi^+ = e^{Kz} \cos(Kx) + \sum_{n=1}^{\infty}a^n \alpha_n \phi_n^+&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and &amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi^- = ie^{Kz} \sin(Kx) + \sum_{n=1}^{\infty}a^n \beta_n \phi_n^- &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Converting &amp;lt;math&amp;gt;\phi^+\,&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\phi^-\,&amp;lt;/math&amp;gt; into the polar coordinate system:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi^+ = e^{-Kf}\sum_{n=0}^\infty \frac{(-Kr)^n }{n!} \cos(n\theta) + \sum_{n=1}^{\infty}a^n \alpha_n \left(\frac{\cos(n\theta)}{r^n} + \sum_{m=0}^\infty A_{mn}^+ r^m \cos(m\theta)\right)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi^- = ie^{-Kf}\sum_{n=0}^\infty \frac{(-Kr)^n }{n!} \sin(n\theta) + \sum_{n=1}^{\infty}a^n \alpha_n \left(\frac{\sin(n\theta)}{r^n} + \sum_{m=0}^\infty A_{mn}^+ r^m \sin(m\theta)\right)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The above power series converge for r &amp;lt; 2f and the coefficients are given by&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; A_{mn} = \frac{(-1)^{m+n}}{m!(n-1)!} \quad SingularIntegral_0^\infty \quad \frac{\mu + K}{\mu - K} \mu ^{m+n-1} e^{-2\mu f}d\mu &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Applying the body boundary condition &amp;lt;math&amp;gt;\partial_r \phi^\pm |_{r=a} = 0&amp;lt;/math&amp;gt; and noting that the cosines are orthogonal over &amp;lt;math&amp;gt;\theta \in  (-\pi,\pi]&amp;lt;/math&amp;gt; gives the results&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \alpha_m - \sum_{n=1}^{\infty}a^{n+m} A_{mn} \alpha_n = e^{-Kf}\frac {(-Ka)^m}{m!}; m=1,2,3,\ldots&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \beta_m - \sum_{n=1}^{\infty}a^{n+m} A_{mn} \beta_n = -ie^{-Kf}\frac {(-Ka)^m}{m!}; m=1,2,3,\ldots&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
From which we can see that &amp;lt;math&amp;gt;\beta_n = -i\alpha_n\,&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The above sums can be truncated at the Nth term yielding NxN system of linear equations that can be solved for the coefficients &amp;lt;math&amp;gt;\alpha_n&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hence we can calculate &amp;lt;math&amp;gt;\phi\,&amp;lt;/math&amp;gt; from:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi = \phi^+ + \phi^- = \phi_I + \sum_{n=1}^{\infty}a^n \alpha_n ( \phi^+_n + \phi^-_n )&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This expression also gives the values of the reflection and transmission coefficients when we substitute the far field expressions for the symmetric and antisymmetric multipoles. In the far field:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \phi^+_n \sim \frac{2\pi i (-K)^n}{(n-1)!} e^{K(z-f)} e^{\pm Kx} &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math &amp;gt; \phi^-_n \sim \mp \frac{2\pi (-K)^n}{(n-1)!} e^{K(z-f)} e^{\pm Kx} &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Giving:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;R=0, \quad T = 1 + 4 \pi i e^{-Kf}  \sum_{n=1}^{\infty} \alpha_n \frac{(-Ka)^n}{(n-1)!} &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Hydrodynamic Forces ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Linear Water-Wave Theory]]&lt;/div&gt;</summary>
		<author><name>Sean Curry</name></author>
	</entry>
	<entry>
		<id>https://www.wikiwaves.org/index.php?title=Category:Multipole_Methods_for_Linear_Water_Waves&amp;diff=10877</id>
		<title>Category:Multipole Methods for Linear Water Waves</title>
		<link rel="alternate" type="text/html" href="https://www.wikiwaves.org/index.php?title=Category:Multipole_Methods_for_Linear_Water_Waves&amp;diff=10877"/>
		<updated>2010-02-11T20:13:26Z</updated>

		<summary type="html">&lt;p&gt;Sean Curry: /* With the Free Surface BC */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{incomplete pages}}&lt;br /&gt;
&lt;br /&gt;
== Multipole Expansions ==&lt;br /&gt;
&lt;br /&gt;
Multipole expansions are a technique used in linear water wave theory where the potential is represented as a sum of singularities (multipoles) placed within any structures that are present. Multipoles can be constructed with their singularity submerged or on the free surface and these are treated separately.&lt;br /&gt;
&lt;br /&gt;
Multipoles satisfy:&lt;br /&gt;
&lt;br /&gt;
{{Standard linear wave scattering equations without body condition}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{sommerfeld radiation condition two dimensions}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A linear combination of these multipoles can then be made to satisfy the body boundary conditions.&lt;br /&gt;
&lt;br /&gt;
== 2D Exterior Neumann Problem ==&lt;br /&gt;
&lt;br /&gt;
We start by developing the theory for Laplace&#039;s equation without the free surface for&lt;br /&gt;
a disk of radius &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; centered at the origin. The equation in polar coordinates is&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\nabla^2 \phi = \left[   \partial_r^2 + \frac{1}{r}\partial_r + \frac{1}{r^2} \partial_\theta^2  \right] \phi= 0 \quad &lt;br /&gt;
\mathrm{for} \quad r&amp;gt;a &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt; &lt;br /&gt;
&amp;lt;math&amp;gt;\partial_n \phi |_{r=a} = 0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
|\nabla\phi| \rightarrow 0 \quad as \quad r \rightarrow \infty &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
Using [http://en.wikipedia.org/wiki/Separation_of_Variables separation of variables] &lt;br /&gt;
we write&lt;br /&gt;
&amp;lt;math&amp;gt;\phi = R(r)\Theta(\theta).\,&amp;lt;/math&amp;gt; Substituting into Laplace&#039;s equations gives&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{r^2}{R}\partial_r^2 R + \frac{r}{R}\partial_r R = - \frac{1}{\Theta}\partial_\theta^2 \Theta = m^2 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
The equation for &amp;lt;math&amp;gt;\Theta\,&amp;lt;/math&amp;gt; is&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\quad \partial_\theta^2 \Theta = -m^2\Theta &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\Rightarrow \Theta = A(m) \cos(m\theta) + B(m) \sin(m\theta) \quad for \quad  m \neq 0 &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When m=0 the solution is &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \Theta = A(0) + B(0)\theta \,&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt; &amp;lt;math&amp;gt;\Theta(\theta + 2\pi) = \Theta(\theta) \Rightarrow  m \in Z \,\, and \,\, B(0) = 0\,&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The equation for R is &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \quad r^2\partial_r^2 R + r\partial_rR = m^2 R &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
This is a standard DE, to solve we substitute R = r^n giving:&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;n(n-1)r^n + nr^n = m^2r^n \Rightarrow n^2 = m^2 \Rightarrow n= \pm m&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
This gives two independent solutions for all m except m = 0, where we only get the constant solution. &lt;br /&gt;
&lt;br /&gt;
Noting that:&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;  \nabla^2 \left( \ln(r) \right) = \frac{-1}{r^2} + \frac{1}{r^2}  = 0 &amp;lt;/math&amp;gt; &amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So along with the obvious constant function we have two independant sotutions. Thus for m=0 we can write:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;R = C\left(0\right) + D(0) \ln(r)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and for &amp;lt;math&amp;gt;m\neq 0:&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;R = C\left(m\right)r^m + D(m)r^{-m}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The derivatives of the radial eigenfunctions must go to zero indicating zero fluid flow at infinity:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;|\nabla\phi| \rightarrow 0 \,\, as \,\, r \rightarrow \infty \Rightarrow\partial_r R \rightarrow 0 \,\, as \,\, r \rightarrow \infty &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\Rightarrow C(m)= 0 \,\, \forall m &amp;gt; 0 \,\,\, and \,\,\, D(m)=0 \,\, \forall m&amp;lt;0&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hence the general solution can be expressed as:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi = C(0) + D(0) \ln(r) + \sum_{m=1}^\infty \left( a(m)\frac{\cos(m\theta)}{r^m} +  b(m)\frac{\sin(m\theta)}{r^m}  \right) &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We don&#039;t need to include the negative m terms because of the symmetry of the sine and cosine eigenfunctions means these solutions are not independent.&lt;br /&gt;
&lt;br /&gt;
The solution can also be expressed simply in terms of complex exponentials.&lt;br /&gt;
&lt;br /&gt;
== With the Free Surface BC ==&lt;br /&gt;
&lt;br /&gt;
When we introduce the free surface BC we need to find a new set of eigenfunctions. We can use eigenfunctions from the infinite domain problem to construct them.&lt;br /&gt;
&lt;br /&gt;
Note that the origin is in the free surface directly above the center of the disc for cartesian coordinates. However the origin for the polar coordinates is still at the center of the disk.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We add a solution of Laplace&#039;s equation to the eigenfunctions for the infinite domain problem and require that these new functions(multipoles) satisfy the free surface condition.&lt;br /&gt;
&lt;br /&gt;
For n&amp;gt;0&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi_n = \frac{e^{in\theta}}{r^n} + \psi_n&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
and for m=0&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi_0 = \ln(r) + \psi_0 \,&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Where&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\nabla^2 \psi_n = 0 \quad for \quad n = 0,1,2, \ldots&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We want the multipoles to satisfy the free surface condition&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\partial_z \phi_n |_{z=0} = K\phi_n|_{z=0} \quad \forall n = 0,1,2, \ldots&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For n=0 the free surface condition gives our boundary condition for &amp;lt;math&amp;gt;\psi_0\,&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;f_0(x) = (\partial_z  - K)\psi_0|_{z=0} = (K - \partial_z) \left(ln\left(\frac{r}{a}\right)\right)|_{z=0} &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\Rightarrow f_0(x) = K \ln\left(\frac{\sqrt{x^2 + f^2}}{a}\right) - \int_0^\infty e^{-\omega f}\cos(\omega x)d\omega &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where we used the expansion&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\ln(r) = \int_0^\infty (e^{-\omega}- e^{-\omega|z+f|}\cos(\omega x))\frac{d\omega}{\omega}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For n&amp;gt;0 the free surface condition yields the boundary condition for &amp;lt;math&amp;gt;\psi_m\,&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;f_n(x) = (\partial_z - K)\psi_n|_{z=0} = \left(K  - \partial_z \right) \left(\frac{e^{in\theta}}{r^n}\right)|_{z=0} &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \Rightarrow f_n(x) = \frac{(-1)^n}{(n-1)!} \int_0^\infty(K+\omega)\omega^{n-1}e^{-\omega f}e^{-i\omega x} d\omega  \quad \quad (*)&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where we used the expansion (valid for z&amp;gt;-f)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \frac{e^{in\theta}}{r^n} = \frac{(-1)^n}{(n-1)!} \int_0^\infty\omega^{n-1}e^{-\omega(z+f) }e^{-i\omega x} d\omega &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So our psi functions satisfy the following problem:&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\nabla^2 \psi_n = 0 \quad for \quad n = 0,1,2, \ldots \quad \ldots (1)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
  &lt;br /&gt;
  &amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\psi_n \rightarrow 0 \quad as \quad z \rightarrow -\infty \quad \ldots (2)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
  &lt;br /&gt;
  &amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\partial_z \psi_n |_{z=0} - K\psi_n|_{z=0} = f_n(x) \quad \ldots (3)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We solve for &amp;lt;math&amp;gt;\hat{\psi}_n\,&amp;lt;/math&amp;gt; by taking a Fourier transform in x to simplify Laplace&#039;s equation&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\hat{\psi}_n = \int_{-\infty}^\infty \psi_n e^{i\omega x}dx&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;(1) \Rightarrow \partial_z^2 \hat{\psi}_n = \omega^2\hat{\psi}_n \Rightarrow \hat{\psi}_n = A_n(\omega)e^{\omega z} + B_n(\omega)e^{-\omega z}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;but \quad (2) \Rightarrow B_n(\omega) = 0 \quad \forall n&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;(3) \Rightarrow \partial_z \hat{\psi}_n |_{z=0} - K\hat{\psi}_n|_{z=0} = (\omega - K)\hat{\psi}_n|_{z=0} = (\omega - K)A(\omega) = \hat{f}_n(\omega)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Hence&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;A(\omega) = \frac{\hat{f}_n(\omega)}{\omega - K}  &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and we obtaion &amp;lt;math&amp;gt;\psi\,&amp;lt;/math&amp;gt; by the inverse Fourier transform:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\psi_n = \frac{1}{2\pi}\int_{-\infty}^\infty \hat{\psi}_n e^{-i\omega x}d\omega = \frac{1}{2\pi}\int_{-\infty}^\infty  \frac{\hat{f}_n(\omega)}{\omega - K} e^{\omega z}  e^{-i\omega x}d\omega&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For n&amp;gt;0 the form of &amp;lt;math&amp;gt;\hat{f}_n(\omega)&amp;lt;/math&amp;gt; can be obtained from the expansion of &amp;lt;math&amp;gt;f_n(x)\,&amp;lt;/math&amp;gt; labelled &amp;lt;math&amp;gt;(*)\,&amp;lt;/math&amp;gt; above by rewriting it as a Fourier transform. Substituting the result into the expression above, &amp;lt;math&amp;gt;\psi_n\,&amp;lt;/math&amp;gt; easily simplifies to:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\psi_n = \frac{(-1)^n}{(n-1)!}  \int_0^\infty  \frac{\omega + K}{\omega - K} \omega^{n-1} e^{\omega (z-f)}  e^{-i\omega x}d\omega&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
for n&amp;gt;0. Note: the integral above goes under the singularity at &amp;lt;math&amp;gt;\omega=K&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;math&amp;gt;\psi_0 \,&amp;lt;/math&amp;gt; remains to be derived.&lt;br /&gt;
&lt;br /&gt;
  In order to have a complete set to expand our flud potential we need to include &amp;lt;math&amp;gt;\bar{\phi}_m&amp;lt;/math&amp;gt; for m&amp;gt;0. &lt;br /&gt;
  This accounts for the second linearly independent solution for m&amp;gt;0.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\psi_m\,&amp;lt;/math&amp;gt; can be expanded in a power series:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\psi_m = \sum_m=0^\infty A_{mn}r^m \cos(m\theta),\,\,\,\textrm{for}\,\,\, m&amp;gt;0&amp;lt;/math&amp;gt; &amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;A_{mn}= \frac{(-1)^{m+n}}{m!(n-1)!}  \int_0^\infty  \frac{\omega + K}{\omega - K} \omega^{m+n-1} e^{-2\omega f}  d\omega&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
Note: the integral above goes under the singularity at &amp;lt;math&amp;gt;\omega=K&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
  Which comes from the identity (to be derived)&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;e^{\omega z} \cos(\omega x) = e^{-\omega f}\sum_{m=0}^\infty \frac{(-1)^m}{m!} \omega^m r^m\cos(m\theta)&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Example: 2D Wave Scattering for a Submerged Horizontal Cylinder (in Infinite Depth)==&lt;br /&gt;
&lt;br /&gt;
***Picture to show problem set up***&lt;br /&gt;
&lt;br /&gt;
The potential for the scattering problem splits as incident and diffracted potentials and also into symmetric and antisymmetric parts.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi = \phi_I + \phi_D = \phi^+ + \phi^-\,&amp;lt;/math&amp;gt; &amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \partial_r \phi_I |_{r=a} = - \partial_r \phi_D |_{r=a} &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and &amp;lt;math&amp;gt;\phi^+, \,\, \phi^-&amp;lt;/math&amp;gt; are the symmetric and antisymmetric parts of &amp;lt;math&amp;gt;\phi \,&amp;lt;/math&amp;gt; respectively.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For a wave incident from the left we have&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi_I = e^{Kz} e^{iKx} = e^{-Kf}\sum_{n=0}^\infty \frac{(-Kr)^n }{n!} e^{-in\theta}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi_D = \sum_{n=1}^{\infty}a^n \alpha_n \phi_n^+ + \sum_{n=1}^{\infty}a^n \beta_n \phi_n^- &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi^+ = e^{Kz} \cos(Kx) + \sum_{n=1}^{\infty}a^n \alpha_n \phi_n^+&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and &amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi^- = ie^{Kz} \sin(Kx) + \sum_{n=1}^{\infty}a^n \beta_n \phi_n^- &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Converting &amp;lt;math&amp;gt;\phi^+\,&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\phi^-\,&amp;lt;/math&amp;gt; into the polar coordinate system:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi^+ = e^{-Kf}\sum_{n=0}^\infty \frac{(-Kr)^n }{n!} \cos(n\theta) + \sum_{n=1}^{\infty}a^n \alpha_n \left(\frac{\cos(n\theta)}{r^n} + \sum_{m=0}^\infty A_{mn}^+ r^m \cos(m\theta)\right)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi^- = ie^{-Kf}\sum_{n=0}^\infty \frac{(-Kr)^n }{n!} \sin(n\theta) + \sum_{n=1}^{\infty}a^n \alpha_n \left(\frac{\sin(n\theta)}{r^n} + \sum_{m=0}^\infty A_{mn}^+ r^m \sin(m\theta)\right)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The above power series converge for r &amp;lt; 2f and the coefficients are given by&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; A_{mn} = \frac{(-1)^{m+n}}{m!(n-1)!} \quad SingularIntegral_0^\infty \quad \frac{\mu + K}{\mu - K} \mu ^{m+n-1} e^{-2\mu f}d\mu &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Applying the body boundary condition &amp;lt;math&amp;gt;\partial_r \phi^\pm |_{r=a} = 0&amp;lt;/math&amp;gt; and noting that the cosines are orthogonal over &amp;lt;math&amp;gt;\theta \in  (-\pi,\pi]&amp;lt;/math&amp;gt; gives the results&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \alpha_m - \sum_{n=1}^{\infty}a^{n+m} A_{mn} \alpha_n = e^{-Kf}\frac {(-Ka)^m}{m!}; m=1,2,3,\ldots&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \beta_m - \sum_{n=1}^{\infty}a^{n+m} A_{mn} \beta_n = -ie^{-Kf}\frac {(-Ka)^m}{m!}; m=1,2,3,\ldots&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
From which we can see that &amp;lt;math&amp;gt;\beta_n = -i\alpha_n\,&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The above sums can be truncated at the Nth term yielding NxN system of linear equations that can be solved for the coefficients &amp;lt;math&amp;gt;\alpha_n&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hence we can calculate &amp;lt;math&amp;gt;\phi\,&amp;lt;/math&amp;gt; from:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi = \phi^+ + \phi^- = \phi_I + \sum_{n=1}^{\infty}a^n \alpha_n ( \phi^+_n + \phi^-_n )&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This expression also gives the values of the reflection and transmission coefficients when we substitute the far field expressions for the symmetric and antisymmetric multipoles. In the far field:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \phi^+_n \sim \frac{2\pi i (-K)^n}{(n-1)!} e^{K(z-f)} e^{\pm Kx} &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math &amp;gt; \phi^-_n \sim \mp \frac{2\pi (-K)^n}{(n-1)!} e^{K(z-f)} e^{\pm Kx} &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Giving:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;R=0, \quad T = 1 + 4 \pi i e^{-Kf}  \sum_{n=1}^{\infty} \alpha_n \frac{(-Ka)^n}{(n-1)!} &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Hydrodynamic Forces ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Linear Water-Wave Theory]]&lt;/div&gt;</summary>
		<author><name>Sean Curry</name></author>
	</entry>
	<entry>
		<id>https://www.wikiwaves.org/index.php?title=Category:Multipole_Methods_for_Linear_Water_Waves&amp;diff=10875</id>
		<title>Category:Multipole Methods for Linear Water Waves</title>
		<link rel="alternate" type="text/html" href="https://www.wikiwaves.org/index.php?title=Category:Multipole_Methods_for_Linear_Water_Waves&amp;diff=10875"/>
		<updated>2010-02-11T19:25:31Z</updated>

		<summary type="html">&lt;p&gt;Sean Curry: /* With the Free Surface BC */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{incomplete pages}}&lt;br /&gt;
&lt;br /&gt;
== Multipole Expansions ==&lt;br /&gt;
&lt;br /&gt;
Multipole expansions are a technique used in linear water wave theory where the potential is represented as a sum of singularities (multipoles) placed within any structures that are present. Multipoles can be constructed with their singularity submerged or on the free surface and these are treated separately.&lt;br /&gt;
&lt;br /&gt;
Multipoles satisfy:&lt;br /&gt;
&lt;br /&gt;
{{Standard linear wave scattering equations without body condition}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{sommerfeld radiation condition two dimensions}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A linear combination of these multipoles can then be made to satisfy the body boundary conditions.&lt;br /&gt;
&lt;br /&gt;
== 2D Exterior Neumann Problem ==&lt;br /&gt;
&lt;br /&gt;
We start by developing the theory for Laplace&#039;s equation without the free surface for&lt;br /&gt;
a disk of radius &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; centered at the origin. The equation in polar coordinates is&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\nabla^2 \phi = \left[   \partial_r^2 + \frac{1}{r}\partial_r + \frac{1}{r^2} \partial_\theta^2  \right] \phi= 0 \quad &lt;br /&gt;
\mathrm{for} \quad r&amp;gt;a &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt; &lt;br /&gt;
&amp;lt;math&amp;gt;\partial_n \phi |_{r=a} = 0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
|\nabla\phi| \rightarrow 0 \quad as \quad r \rightarrow \infty &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
Using [http://en.wikipedia.org/wiki/Separation_of_Variables separation of variables] &lt;br /&gt;
we write&lt;br /&gt;
&amp;lt;math&amp;gt;\phi = R(r)\Theta(\theta).\,&amp;lt;/math&amp;gt; Substituting into Laplace&#039;s equations gives&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{r^2}{R}\partial_r^2 R + \frac{r}{R}\partial_r R = - \frac{1}{\Theta}\partial_\theta^2 \Theta = m^2 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
The equation for &amp;lt;math&amp;gt;\Theta\,&amp;lt;/math&amp;gt; is&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\quad \partial_\theta^2 \Theta = -m^2\Theta &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\Rightarrow \Theta = A(m) \cos(m\theta) + B(m) \sin(m\theta) \quad for \quad  m \neq 0 &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When m=0 the solution is &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \Theta = A(0) + B(0)\theta \,&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt; &amp;lt;math&amp;gt;\Theta(\theta + 2\pi) = \Theta(\theta) \Rightarrow  m \in Z \,\, and \,\, B(0) = 0\,&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The equation for R is &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \quad r^2\partial_r^2 R + r\partial_rR = m^2 R &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
This is a standard DE, to solve we substitute R = r^n giving:&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;n(n-1)r^n + nr^n = m^2r^n \Rightarrow n^2 = m^2 \Rightarrow n= \pm m&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
This gives two independent solutions for all m except m = 0, where we only get the constant solution. &lt;br /&gt;
&lt;br /&gt;
Noting that:&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;  \nabla^2 \left( \ln(r) \right) = \frac{-1}{r^2} + \frac{1}{r^2}  = 0 &amp;lt;/math&amp;gt; &amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So along with the obvious constant function we have two independant sotutions. Thus for m=0 we can write:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;R = C\left(0\right) + D(0) \ln(r)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and for &amp;lt;math&amp;gt;m\neq 0:&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;R = C\left(m\right)r^m + D(m)r^{-m}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The derivatives of the radial eigenfunctions must go to zero indicating zero fluid flow at infinity:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;|\nabla\phi| \rightarrow 0 \,\, as \,\, r \rightarrow \infty \Rightarrow\partial_r R \rightarrow 0 \,\, as \,\, r \rightarrow \infty &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\Rightarrow C(m)= 0 \,\, \forall m &amp;gt; 0 \,\,\, and \,\,\, D(m)=0 \,\, \forall m&amp;lt;0&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hence the general solution can be expressed as:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi = C(0) + D(0) \ln(r) + \sum_{m=1}^\infty \left( a(m)\frac{\cos(m\theta)}{r^m} +  b(m)\frac{\sin(m\theta)}{r^m}  \right) &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We don&#039;t need to include the negative m terms because of the symmetry of the sine and cosine eigenfunctions means these solutions are not independent.&lt;br /&gt;
&lt;br /&gt;
The solution can also be expressed simply in terms of complex exponentials.&lt;br /&gt;
&lt;br /&gt;
== With the Free Surface BC ==&lt;br /&gt;
&lt;br /&gt;
When we introduce the free surface BC we need to find a new set of eigenfunctions. We can use eigenfunctions from the infinite domain problem to construct them.&lt;br /&gt;
&lt;br /&gt;
Note that the origin is in the free surface directly above the center of the disc for cartesian coordinates. However the origin for the polar coordinates is still at the center of the disk.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We add a solution of Laplace&#039;s equation to the eigenfunctions for the infinite domain problem and require that these new functions(multipoles) satisfy the free surface condition.&lt;br /&gt;
&lt;br /&gt;
For m&amp;gt;0&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi_m = \frac{e^{im\theta}}{r^m} + \psi_m&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
and for m=0&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi_0 = \ln(r) + \psi_0 \,&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Where&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\nabla^2 \psi_m = 0 \quad for \quad m = 0,1,2, \ldots&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We want the multipoles to satisfy the free surface condition&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\partial_z \phi |_{z=0} = K\phi|_{z=0} \quad \forall m = 0,1,2, \ldots&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For m=0 the free surface condition gives our boundary condition for &amp;lt;math&amp;gt;\psi_0\,&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;f_0(x) = (\partial_z  - K)\psi_0|_{z=0} = (K - \partial_z) \left(ln\left(\frac{r}{a}\right)\right)|_{z=0} &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\Rightarrow f_0(x) = K \ln\left(\frac{\sqrt{x^2 + f^2}}{a}\right) - \int_0^\infty e^{-\omega f}\cos(\omega x)d\omega &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where we used the expansion&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\ln(r) = \int_0^\infty (e^{-\omega}- e^{-\omega|z+f|}\cos(\omega x))\frac{d\omega}{\omega}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For m&amp;gt;0 the free surface condition yields the boundary condition for &amp;lt;math&amp;gt;\psi_m\,&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;f_m(x) = (\partial_z - K)\psi_m|_{z=0} = \left(K  - \partial_z \right) \left(\frac{e^{im\theta}}{r^m}\right)|_{z=0} &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \Rightarrow f_m(x) = \frac{(-1)^m}{(m-1)!} \int_0^\infty(K+\omega)\omega^{m-1}e^{-\omega f}e^{-i\omega x} d\omega  \quad \quad (*)&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where we used the expansion (valid for z&amp;gt;-f)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \frac{e^{im\theta}}{r^m} = \frac{(-1)^m}{(m-1)!} \int_0^\infty\omega^{m-1}e^{-\omega(z+f) }e^{-i\omega x} d\omega &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So our psi functions satisfy the following problem:&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\nabla^2 \psi_m = 0 \quad for \quad m = 0,1,2, \ldots \quad \ldots (1)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
  &lt;br /&gt;
  &amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\psi_m \rightarrow 0 \quad as \quad z \rightarrow -\infty \quad \ldots (2)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
  &lt;br /&gt;
  &amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\partial_z \psi_m |_{z=0} - K\psi_m|_{z=0} = f_m(x) \quad \ldots (3)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We solve for &amp;lt;math&amp;gt;\hat{\psi}_m\,&amp;lt;/math&amp;gt; by taking a Fourier transform in x to simplify Laplace&#039;s equation&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\hat{\psi}_m = \int_{-\infty}^\infty \psi_m e^{i\omega x}dx&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;(1) \Rightarrow \partial_z^2 \hat{\psi}_m = \omega^2\hat{\psi}_m \Rightarrow \hat{\psi}_m = A_m(\omega)e^{\omega z} + B_m(\omega)e^{-\omega z}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;but \quad (2) \Rightarrow B_m(\omega) = 0 \quad \forall m&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;(3) \Rightarrow \partial_z \hat{\psi}_m |_{z=0} - K\hat{\psi}_m|_{z=0} = (\omega - K)\hat{\psi}_m|_{z=0} = (\omega - K)A(\omega) = \hat{f}_m(\omega)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Hence&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;A(\omega) = \frac{\hat{f}_m(\omega)}{\omega - K}  &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and we obtaion &amp;lt;math&amp;gt;\psi\,&amp;lt;/math&amp;gt; by the inverse Fourier transform:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\psi_m = \frac{1}{2\pi}\int_{-\infty}^\infty \hat{\psi}_m e^{-i\omega x}d\omega = \frac{1}{2\pi}\int_{-\infty}^\infty  \frac{\hat{f}_m(\omega)}{\omega - K} e^{\omega z}  e^{-i\omega x}d\omega&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For m&amp;gt;0 the form of &amp;lt;math&amp;gt;\hat{f}_m(\omega)&amp;lt;/math&amp;gt; can be obtained from the expansion of &amp;lt;math&amp;gt;f_m(x)\,&amp;lt;/math&amp;gt; labelled &amp;lt;math&amp;gt;(*)\,&amp;lt;/math&amp;gt; above by rewriting it as a Fourier transform. Substituting the result into the expression above, &amp;lt;math&amp;gt;\psi_m\,&amp;lt;/math&amp;gt; easily simplifies to:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\psi_m = \frac{(-1)^m}{(m-1)!}  \int_{-\infty}^\infty  \frac{\omega + K}{\omega - K} \omega^{m-1} e^{\omega (z-f)}  e^{-i\omega x}d\omega&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
for m&amp;gt;0.&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;math&amp;gt;\psi_0 \,&amp;lt;/math&amp;gt; remains to be derived.&lt;br /&gt;
&lt;br /&gt;
  In order to have a complete set to expand our flud potential we need to include &amp;lt;math&amp;gt;\bar{\phi}_m&amp;lt;/math&amp;gt; for m&amp;gt;0. &lt;br /&gt;
  This accounts for the second linearly independent solution for m&amp;gt;0.&lt;br /&gt;
&lt;br /&gt;
== Example: 2D Wave Scattering for a Submerged Horizontal Cylinder (in Infinite Depth)==&lt;br /&gt;
&lt;br /&gt;
***Picture to show problem set up***&lt;br /&gt;
&lt;br /&gt;
The potential for the scattering problem splits as incident and diffracted potentials and also into symmetric and antisymmetric parts.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi = \phi_I + \phi_D = \phi^+ + \phi^-\,&amp;lt;/math&amp;gt; &amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \partial_r \phi_I |_{r=a} = - \partial_r \phi_D |_{r=a} &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and &amp;lt;math&amp;gt;\phi^+, \,\, \phi^-&amp;lt;/math&amp;gt; are the symmetric and antisymmetric parts of &amp;lt;math&amp;gt;\phi \,&amp;lt;/math&amp;gt; respectively.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For a wave incident from the left we have&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi_I = e^{Kz} e^{iKx} = e^{-Kf}\sum_{n=0}^\infty \frac{(-Kr)^n }{n!} e^{-in\theta}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi_D = \sum_{n=1}^{\infty}a^n \alpha_n \phi_n^+ + \sum_{n=1}^{\infty}a^n \beta_n \phi_n^- &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi^+ = e^{Kz} \cos(Kx) + \sum_{n=1}^{\infty}a^n \alpha_n \phi_n^+&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and &amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi^- = ie^{Kz} \sin(Kx) + \sum_{n=1}^{\infty}a^n \beta_n \phi_n^- &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Converting &amp;lt;math&amp;gt;\phi^+\,&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\phi^-\,&amp;lt;/math&amp;gt; into the polar coordinate system:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi^+ = e^{-Kf}\sum_{n=0}^\infty \frac{(-Kr)^n }{n!} \cos(n\theta) + \sum_{n=1}^{\infty}a^n \alpha_n \left(\frac{\cos(n\theta)}{r^n} + \sum_{m=0}^\infty A_{mn}^+ r^m \cos(m\theta)\right)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi^- = ie^{-Kf}\sum_{n=0}^\infty \frac{(-Kr)^n }{n!} \sin(n\theta) + \sum_{n=1}^{\infty}a^n \alpha_n \left(\frac{\sin(n\theta)}{r^n} + \sum_{m=0}^\infty A_{mn}^+ r^m \sin(m\theta)\right)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The above power series converge for r &amp;lt; 2f and the coefficients are given by&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; A_{mn} = \frac{(-1)^{m+n}}{m!(n-1)!} \quad SingularIntegral_0^\infty \quad \frac{\mu + K}{\mu - K} \mu ^{m+n-1} e^{-2\mu f}d\mu &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Applying the body boundary condition &amp;lt;math&amp;gt;\partial_r \phi^\pm |_{r=a} = 0&amp;lt;/math&amp;gt; and noting that the cosines are orthogonal over &amp;lt;math&amp;gt;\theta \in  (-\pi,\pi]&amp;lt;/math&amp;gt; gives the results&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \alpha_m - \sum_{n=1}^{\infty}a^{n+m} A_{mn} \alpha_n = e^{-Kf}\frac {(-Ka)^m}{m!}; m=1,2,3,\ldots&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \beta_m - \sum_{n=1}^{\infty}a^{n+m} A_{mn} \beta_n = -ie^{-Kf}\frac {(-Ka)^m}{m!}; m=1,2,3,\ldots&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
From which we can see that &amp;lt;math&amp;gt;\beta_n = -i\alpha_n\,&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The above sums can be truncated at the Nth term yielding NxN system of linear equations that can be solved for the coefficients &amp;lt;math&amp;gt;\alpha_n&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hence we can calculate &amp;lt;math&amp;gt;\phi\,&amp;lt;/math&amp;gt; from:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi = \phi^+ + \phi^- = \phi_I + \sum_{n=1}^{\infty}a^n \alpha_n ( \phi^+_n + \phi^-_n )&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This expression also gives the values of the reflection and transmission coefficients when we substitute the far field expressions for the symmetric and antisymmetric multipoles. In the far field:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \phi^+_n \sim \frac{2\pi i (-K)^n}{(n-1)!} e^{K(z-f)} e^{\pm Kx} &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math &amp;gt; \phi^-_n \sim \mp \frac{2\pi (-K)^n}{(n-1)!} e^{K(z-f)} e^{\pm Kx} &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Giving:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;R=0, \quad T = 1 + 4 \pi i e^{-Kf}  \sum_{n=1}^{\infty} \alpha_n \frac{(-Ka)^n}{(n-1)!} &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Hydrodynamic Forces ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Linear Water-Wave Theory]]&lt;/div&gt;</summary>
		<author><name>Sean Curry</name></author>
	</entry>
	<entry>
		<id>https://www.wikiwaves.org/index.php?title=Category:Multipole_Methods_for_Linear_Water_Waves&amp;diff=10873</id>
		<title>Category:Multipole Methods for Linear Water Waves</title>
		<link rel="alternate" type="text/html" href="https://www.wikiwaves.org/index.php?title=Category:Multipole_Methods_for_Linear_Water_Waves&amp;diff=10873"/>
		<updated>2010-02-11T02:45:04Z</updated>

		<summary type="html">&lt;p&gt;Sean Curry: /* With the Free Surface BC */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{incomplete pages}}&lt;br /&gt;
&lt;br /&gt;
== Multipole Expansions ==&lt;br /&gt;
&lt;br /&gt;
Multipole expansions are a technique used in linear water wave theory where the potential is represented as a sum of singularities (multipoles) placed within any structures that are present. Multipoles can be constructed with their singularity submerged or on the free surface and these are treated separately.&lt;br /&gt;
&lt;br /&gt;
Multipoles satisfy:&lt;br /&gt;
&lt;br /&gt;
{{Standard linear wave scattering equations without body condition}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{sommerfeld radiation condition two dimensions}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A linear combination of these multipoles can then be made to satisfy the body boundary conditions.&lt;br /&gt;
&lt;br /&gt;
== 2D Exterior Neumann Problem ==&lt;br /&gt;
&lt;br /&gt;
We start by developing the theory for Laplace&#039;s equation without the free surface for&lt;br /&gt;
a disk of radius &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; centered at the origin. The equation in polar coordinates is&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\nabla^2 \phi = \left[   \partial_r^2 + \frac{1}{r}\partial_r + \frac{1}{r^2} \partial_\theta^2  \right] \phi= 0 \quad &lt;br /&gt;
\mathrm{for} \quad r&amp;gt;a &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt; &lt;br /&gt;
&amp;lt;math&amp;gt;\partial_n \phi |_{r=a} = 0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
|\nabla\phi| \rightarrow 0 \quad as \quad r \rightarrow \infty &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
Using [http://en.wikipedia.org/wiki/Separation_of_Variables separation of variables] &lt;br /&gt;
we write&lt;br /&gt;
&amp;lt;math&amp;gt;\phi = R(r)\Theta(\theta).\,&amp;lt;/math&amp;gt; Substituting into Laplace&#039;s equations gives&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{r^2}{R}\partial_r^2 R + \frac{r}{R}\partial_r R = - \frac{1}{\Theta}\partial_\theta^2 \Theta = m^2 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
The equation for &amp;lt;math&amp;gt;\Theta\,&amp;lt;/math&amp;gt; is&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\quad \partial_\theta^2 \Theta = -m^2\Theta &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\Rightarrow \Theta = A(m) \cos(m\theta) + B(m) \sin(m\theta) \quad for \quad  m \neq 0 &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When m=0 the solution is &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \Theta = A(0) + B(0)\theta \,&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt; &amp;lt;math&amp;gt;\Theta(\theta + 2\pi) = \Theta(\theta) \Rightarrow  m \in Z \,\, and \,\, B(0) = 0\,&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The equation for R is &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \quad r^2\partial_r^2 R + r\partial_rR = m^2 R &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
This is a standard DE, to solve we substitute R = r^n giving:&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;n(n-1)r^n + nr^n = m^2r^n \Rightarrow n^2 = m^2 \Rightarrow n= \pm m&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
This gives two independent solutions for all m except m = 0, where we only get the constant solution. &lt;br /&gt;
&lt;br /&gt;
Noting that:&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;  \nabla^2 \left( \ln(r) \right) = \frac{-1}{r^2} + \frac{1}{r^2}  = 0 &amp;lt;/math&amp;gt; &amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So along with the obvious constant function we have two independant sotutions. Thus for m=0 we can write:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;R = C\left(0\right) + D(0) \ln(r)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and for &amp;lt;math&amp;gt;m\neq 0:&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;R = C\left(m\right)r^m + D(m)r^{-m}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The derivatives of the radial eigenfunctions must go to zero indicating zero fluid flow at infinity:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;|\nabla\phi| \rightarrow 0 \,\, as \,\, r \rightarrow \infty \Rightarrow\partial_r R \rightarrow 0 \,\, as \,\, r \rightarrow \infty &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\Rightarrow C(m)= 0 \,\, \forall m &amp;gt; 0 \,\,\, and \,\,\, D(m)=0 \,\, \forall m&amp;lt;0&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hence the general solution can be expressed as:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi = C(0) + D(0) \ln(r) + \sum_{m=1}^\infty \left( a(m)\frac{\cos(m\theta)}{r^m} +  b(m)\frac{\sin(m\theta)}{r^m}  \right) &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We don&#039;t need to include the negative m terms because of the symmetry of the sine and cosine eigenfunctions means these solutions are not independent.&lt;br /&gt;
&lt;br /&gt;
The solution can also be expressed simply in terms of complex exponentials.&lt;br /&gt;
&lt;br /&gt;
== With the Free Surface BC ==&lt;br /&gt;
&lt;br /&gt;
When we introduce the free surface BC we need to find a new set of eigenfunctions. We can use eigenfunctions from the infinite domain problem to construct them.&lt;br /&gt;
&lt;br /&gt;
Note that the origin is in the free surface directly above the center of the disc for cartesian coordinates. However the origin for the polar coordinates is still at the center of the disk.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We add a solution of Laplace&#039;s equation to the eigenfunctions for the infinite domain problem and require that these new functions(multipoles) satisfy the free surface condition.&lt;br /&gt;
&lt;br /&gt;
For m&amp;gt;0&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi_m = \frac{e^{im\theta}}{r^m} + \psi_m&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
and for m=0&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi_0 = \ln\left(\frac{r}{a}\right) + \psi_0 &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Where&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\nabla^2 \psi_m = 0 \quad for \quad m = 0,1,2, \ldots&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We want the multipoles to satisfy the free surface condition&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\partial_z \phi |_{z=0} = K\phi|_{z=0} \quad \forall m = 0,1,2, \ldots&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For m=0 the free surface condition gives our boundary condition for &amp;lt;math&amp;gt;\psi_0\,&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;f_0(x) = (\partial_z  - K)\psi_0|_{z=0} = (K - \partial_z) \left(ln\left(\frac{r}{a}\right)\right)|_{z=0} &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\Rightarrow f_0(x) = K \ln\left(\frac{\sqrt{x^2 + f^2}}{a}\right) - \int_0^\infty e^{-\omega f}\cos(\omega x)d\omega &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where we used the expansion&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\ln(r) = \int_0^\infty (e^{-\omega}- e^{-\omega|z+f|}\cos(\omega x))\frac{d\omega}{\omega}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For m&amp;gt;0 the free surface condition yields the boundary condition for &amp;lt;math&amp;gt;\psi_m\,&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;f_m(x) = (\partial_z - K)\psi_m|_{z=0} = \left(K  - \partial_z \right) \left(\frac{e^{im\theta}}{r^m}\right)|_{z=0} &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \Rightarrow f_m(x) = \frac{(-1)^m}{(m-1)!} \int_0^\infty(K+\omega)\omega^{m-1}e^{-\omega f}e^{-i\omega x} d\omega  \quad \quad (*)&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where we used the expansion (valid for z&amp;gt;-f)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \frac{e^{im\theta}}{r^m} = \frac{(-1)^m}{(m-1)!} \int_0^\infty\omega^{m-1}e^{-\omega(z+f) }e^{-i\omega x} d\omega &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So our psi functions satisfy the following problem:&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\nabla^2 \psi_m = 0 \quad for \quad m = 0,1,2, \ldots \quad \ldots (1)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
  &lt;br /&gt;
  &amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\psi_m \rightarrow 0 \quad as \quad z \rightarrow -\infty \quad \ldots (2)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
  &lt;br /&gt;
  &amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\partial_z \psi_m |_{z=0} - K\psi_m|_{z=0} = f_m(x) \quad \ldots (3)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We solve for &amp;lt;math&amp;gt;\hat{\psi}_m\,&amp;lt;/math&amp;gt; by taking a Fourier transform in x to simplify Laplace&#039;s equation&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\hat{\psi}_m = \int_{-\infty}^\infty \psi_m e^{i\omega x}dx&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;(1) \Rightarrow \partial_z^2 \hat{\psi}_m = \omega^2\hat{\psi}_m \Rightarrow \hat{\psi}_m = A_m(\omega)e^{\omega z} + B_m(\omega)e^{-\omega z}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;but \quad (2) \Rightarrow B_m(\omega) = 0 \quad \forall m&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;(3) \Rightarrow \partial_z \hat{\psi}_m |_{z=0} - K\hat{\psi}_m|_{z=0} = (\omega - K)\hat{\psi}_m|_{z=0} = (\omega - K)A(\omega) = \hat{f}_m(\omega)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Hence&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;A(\omega) = \frac{\hat{f}_m(\omega)}{\omega - K}  &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and we obtaion &amp;lt;math&amp;gt;\psi\,&amp;lt;/math&amp;gt; by the inverse Fourier transform:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\psi_m = \frac{1}{2\pi}\int_{-\infty}^\infty \hat{\psi}_m e^{-i\omega x}d\omega = \frac{1}{2\pi}\int_{-\infty}^\infty  \frac{\hat{f}_m(\omega)}{\omega - K} e^{\omega z}  e^{-i\omega x}d\omega&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For m&amp;gt;0 the form of &amp;lt;math&amp;gt;\hat{f}_m(\omega)&amp;lt;/math&amp;gt; can be obtained from the expansion of &amp;lt;math&amp;gt;f_m(x)\,&amp;lt;/math&amp;gt; labelled &amp;lt;math&amp;gt;(*)\,&amp;lt;/math&amp;gt; above by rewriting it as a Fourier transform. Substituting the result into the expression above, &amp;lt;math&amp;gt;\psi_m\,&amp;lt;/math&amp;gt; easily simplifies to:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\psi_m = \frac{(-1)^m}{(m-1)!}  \int_{-\infty}^\infty  \frac{\omega + K}{\omega - K} \omega^{m-1} e^{\omega (z-f)}  e^{-i\omega x}d\omega&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
for m&amp;gt;0.&lt;br /&gt;
&lt;br /&gt;
== Example: 2D Wave Scattering for a Submerged Horizontal Cylinder (in Infinite Depth)==&lt;br /&gt;
&lt;br /&gt;
***Picture to show problem set up***&lt;br /&gt;
&lt;br /&gt;
The potential for the scattering problem splits as incident and diffracted potentials and also into symmetric and antisymmetric parts.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi = \phi_I + \phi_D = \phi^+ + \phi^-\,&amp;lt;/math&amp;gt; &amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \partial_r \phi_I |_{r=a} = - \partial_r \phi_D |_{r=a} &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and &amp;lt;math&amp;gt;\phi^+, \,\, \phi^-&amp;lt;/math&amp;gt; are the symmetric and antisymmetric parts of &amp;lt;math&amp;gt;\phi \,&amp;lt;/math&amp;gt; respectively.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For a wave incident from the left we have&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi_I = e^{Kz} e^{iKx} = e^{-Kf}\sum_{n=0}^\infty \frac{(-Kr)^n }{n!} e^{-in\theta}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi_D = \sum_{n=1}^{\infty}a^n \alpha_n \phi_n^+ + \sum_{n=1}^{\infty}a^n \beta_n \phi_n^- &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi^+ = e^{Kz} \cos(Kx) + \sum_{n=1}^{\infty}a^n \alpha_n \phi_n^+&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and &amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi^- = ie^{Kz} \sin(Kx) + \sum_{n=1}^{\infty}a^n \beta_n \phi_n^- &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Converting &amp;lt;math&amp;gt;\phi^+\,&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\phi^-\,&amp;lt;/math&amp;gt; into the polar coordinate system:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi^+ = e^{-Kf}\sum_{n=0}^\infty \frac{(-Kr)^n }{n!} \cos(n\theta) + \sum_{n=1}^{\infty}a^n \alpha_n \left(\frac{\cos(n\theta)}{r^n} + \sum_{m=0}^\infty A_{mn}^+ r^m \cos(m\theta)\right)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi^- = ie^{-Kf}\sum_{n=0}^\infty \frac{(-Kr)^n }{n!} \sin(n\theta) + \sum_{n=1}^{\infty}a^n \alpha_n \left(\frac{\sin(n\theta)}{r^n} + \sum_{m=0}^\infty A_{mn}^+ r^m \sin(m\theta)\right)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The above power series converge for r &amp;lt; 2f and the coefficients are given by&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; A_{mn} = \frac{(-1)^{m+n}}{m!(n-1)!} \quad SingularIntegral_0^\infty \quad \frac{\mu + K}{\mu - K} \mu ^{m+n-1} e^{-2\mu f}d\mu &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Applying the body boundary condition &amp;lt;math&amp;gt;\partial_r \phi^\pm |_{r=a} = 0&amp;lt;/math&amp;gt; and noting that the cosines are orthogonal over &amp;lt;math&amp;gt;\theta \in  (-\pi,\pi]&amp;lt;/math&amp;gt; gives the results&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \alpha_m - \sum_{n=1}^{\infty}a^{n+m} A_{mn} \alpha_n = e^{-Kf}\frac {(-Ka)^m}{m!}; m=1,2,3,\ldots&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \beta_m - \sum_{n=1}^{\infty}a^{n+m} A_{mn} \beta_n = -ie^{-Kf}\frac {(-Ka)^m}{m!}; m=1,2,3,\ldots&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
From which we can see that &amp;lt;math&amp;gt;\beta_n = -i\alpha_n\,&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The above sums can be truncated at the Nth term yielding NxN system of linear equations that can be solved for the coefficients &amp;lt;math&amp;gt;\alpha_n&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hence we can calculate &amp;lt;math&amp;gt;\phi\,&amp;lt;/math&amp;gt; from:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi = \phi^+ + \phi^- = \phi_I + \sum_{n=1}^{\infty}a^n \alpha_n ( \phi^+_n + \phi^-_n )&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This expression also gives the values of the reflection and transmission coefficients when we substitute the far field expressions for the symmetric and antisymmetric multipoles. In the far field:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \phi^+_n \sim \frac{2\pi i (-K)^n}{(n-1)!} e^{K(z-f)} e^{\pm Kx} &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math &amp;gt; \phi^-_n \sim \mp \frac{2\pi (-K)^n}{(n-1)!} e^{K(z-f)} e^{\pm Kx} &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Giving:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;R=0, \quad T = 1 + 4 \pi i e^{-Kf}  \sum_{n=1}^{\infty} \alpha_n \frac{(-Ka)^n}{(n-1)!} &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Hydrodynamic Forces ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Linear Water-Wave Theory]]&lt;/div&gt;</summary>
		<author><name>Sean Curry</name></author>
	</entry>
	<entry>
		<id>https://www.wikiwaves.org/index.php?title=Category:Multipole_Methods_for_Linear_Water_Waves&amp;diff=10833</id>
		<title>Category:Multipole Methods for Linear Water Waves</title>
		<link rel="alternate" type="text/html" href="https://www.wikiwaves.org/index.php?title=Category:Multipole_Methods_for_Linear_Water_Waves&amp;diff=10833"/>
		<updated>2010-02-10T21:15:14Z</updated>

		<summary type="html">&lt;p&gt;Sean Curry: /* With the Free Surface BC */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{incomplete pages}}&lt;br /&gt;
&lt;br /&gt;
== Multipole Expansions ==&lt;br /&gt;
&lt;br /&gt;
Multipole expansions are a technique used in linear water wave theory where the potential is represented as a sum of singularities (multipoles) placed within any structures that are present. Multipoles can be constructed with their singularity submerged or on the free surface and these are treated separately.&lt;br /&gt;
&lt;br /&gt;
Multipoles satisfy:&lt;br /&gt;
&lt;br /&gt;
{{Standard linear wave scattering equations without body condition}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{sommerfeld radiation condition two dimensions}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A linear combination of these multipoles can then be made to satisfy the body boundary conditions.&lt;br /&gt;
&lt;br /&gt;
== 2D Exterior Neumann Problem ==&lt;br /&gt;
&lt;br /&gt;
We start by developing the theory for Laplace&#039;s equation without the free surface for&lt;br /&gt;
a disk of radius &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; centered at the origin. The equation in polar coordinates is&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\nabla^2 \phi = \left[   \partial_r^2 + \frac{1}{r}\partial_r + \frac{1}{r^2} \partial_\theta^2  \right] \phi= 0 \quad &lt;br /&gt;
\mathrm{for} \quad r&amp;gt;a &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt; &lt;br /&gt;
&amp;lt;math&amp;gt;\partial_n \phi |_{r=a} = 0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
|\nabla\phi| \rightarrow 0 \quad as \quad r \rightarrow \infty &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
Using [http://en.wikipedia.org/wiki/Separation_of_Variables separation of variables] &lt;br /&gt;
we write&lt;br /&gt;
&amp;lt;math&amp;gt;\phi = R(r)\Theta(\theta).\,&amp;lt;/math&amp;gt; Substituting into Laplace&#039;s equations gives&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{r^2}{R}\partial_r^2 R + \frac{r}{R}\partial_r R = - \frac{1}{\Theta}\partial_\theta^2 \Theta = m^2 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
The equation for &amp;lt;math&amp;gt;\Theta\,&amp;lt;/math&amp;gt; is&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\quad \partial_\theta^2 \Theta = -m^2\Theta &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\Rightarrow \Theta = A(m) \cos(m\theta) + B(m) \sin(m\theta) \quad for \quad  m \neq 0 &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When m=0 the solution is &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \Theta = A(0) + B(0)\theta \,&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt; &amp;lt;math&amp;gt;\Theta(\theta + 2\pi) = \Theta(\theta) \Rightarrow  m \in Z \,\, and \,\, B(0) = 0\,&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The equation for R is &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \quad r^2\partial_r^2 R + r\partial_rR = m^2 R &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
This is a standard DE, to solve we substitute R = r^n giving:&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;n(n-1)r^n + nr^n = m^2r^n \Rightarrow n^2 = m^2 \Rightarrow n= \pm m&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
This gives two independent solutions for all m except m = 0, where we only get the constant solution. &lt;br /&gt;
&lt;br /&gt;
Noting that:&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;  \nabla^2 \left( \ln(r) \right) = \frac{-1}{r^2} + \frac{1}{r^2}  = 0 &amp;lt;/math&amp;gt; &amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So along with the obvious constant function we have two independant sotutions. Thus for m=0 we can write:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;R = C\left(0\right) + D(0) \ln(r)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and for &amp;lt;math&amp;gt;m\neq 0:&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;R = C\left(m\right)r^m + D(m)r^{-m}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The derivatives of the radial eigenfunctions must go to zero indicating zero fluid flow at infinity:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;|\nabla\phi| \rightarrow 0 \,\, as \,\, r \rightarrow \infty \Rightarrow\partial_r R \rightarrow 0 \,\, as \,\, r \rightarrow \infty &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\Rightarrow C(m)= 0 \,\, \forall m &amp;gt; 0 \,\,\, and \,\,\, D(m)=0 \,\, \forall m&amp;lt;0&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hence the general solution can be expressed as:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi = C(0) + D(0) \ln(r) + \sum_{m=1}^\infty \left( a(m)\frac{\cos(m\theta)}{r^m} +  b(m)\frac{\sin(m\theta)}{r^m}  \right) &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We don&#039;t need to include the negative m terms because of the symmetry of the sine and cosine eigenfunctions means these solutions are not independent.&lt;br /&gt;
&lt;br /&gt;
The solution can also be expressed simply in terms of complex exponentials.&lt;br /&gt;
&lt;br /&gt;
== With the Free Surface BC ==&lt;br /&gt;
&lt;br /&gt;
When we introduce the free surface BC we need to find a new set of eigenfunctions. We can use eigenfunctions from the infinite domain problem to construct them.&lt;br /&gt;
&lt;br /&gt;
Note that the origin is in the free surface directly above the center of the disc for cartesian coordinates. However the origin for the polar coordinates is still at the center of the disk.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We add a solution of Laplace&#039;s equation to the eigenfunctions for the infinite domain problem and require that these new functions(multipoles) satisfy the free surface condition.&lt;br /&gt;
&lt;br /&gt;
For m&amp;gt;0&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi_m = \frac{e^{im\theta}}{r^m} + \psi_m&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
and for m=0&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi_0 = \ln\left(\frac{r}{a}\right) + \psi_0 &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Where&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\nabla^2 \psi_m = 0 \quad for \quad m = 0,1,2, \ldots&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We want the multipoles to satisfy the free surface condition&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\partial_z \phi |_{z=0} = K\phi|_{z=0} \quad \forall m = 0,1,2, \ldots&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For m=0 the free surface condition gives our boundary condition for &amp;lt;math&amp;gt;\psi_0\,&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;(\partial_z  - K)\psi_0|_{z=0} = (K - \partial_z) \left(ln\left(\frac{r}{a}\right)\right)|_{z=0} = K \ln\left(\frac{\sqrt{x^2 + f^2}}{a}\right) - \int_0^\infty e^{-\omega f}\cos(\omega x)d\omega = f_0(x)&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where we used the expansion&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\ln(r) = \int_0^\infty (e^{-\omega}- e^{-\omega|z+f|}\cos(\omega x))\frac{d\omega}{\omega}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For m&amp;gt;0 the free surface condition yields the boundary condition for &amp;lt;math&amp;gt;\psi_m\,&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;(\partial_z - K)\psi_m|_{z=0} = \left(K  - \partial_z \right) \left(\frac{e^{im\theta}}{r^m}\right)|_{z=0} &lt;br /&gt;
= \frac{(-1)^m}{(m-1)!} \int_0^\infty(K+\omega)\omega^{m-1}e^{-\omega f}e^{-i\omega x} d\omega = f_m(x) \quad \quad (*)&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where we used the expansion (valid for z&amp;gt;-f)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \frac{e^{im\theta}}{r^m} = \frac{(-1)^m}{(m-1)!} \int_0^\infty\omega^{m-1}e^{-\omega(z+f) }e^{-i\omega x} d\omega &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So our psi functions satisfy the following problem:&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\nabla^2 \psi_m = 0 \quad for \quad m = 0,1,2, \ldots \quad \ldots (1)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
  &lt;br /&gt;
  &amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\psi_m \rightarrow 0 \quad as \quad z \rightarrow -\infty \quad \ldots (2)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
  &lt;br /&gt;
  &amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\partial_z \psi_m |_{z=0} - K\psi_m|_{z=0} = f_m(x) \quad \ldots (3)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We solve for &amp;lt;math&amp;gt;\hat{\psi}_m\,&amp;lt;/math&amp;gt; by taking a Fourier transform in x to simplify Laplace&#039;s equation&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\hat{\psi}_m = \int_{-\infty}^\infty \psi_m e^{i\omega x}dx&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;(1) \Rightarrow \partial_z^2 \hat{\psi}_m = \omega^2\hat{\psi}_m \Rightarrow \hat{\psi}_m = A_m(\omega)e^{\omega z} + B_m(\omega)e^{-\omega z}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;but \quad (2) \Rightarrow B_m(\omega) = 0 \quad \forall m&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;(3) \Rightarrow \partial_z \hat{\psi}_m |_{z=0} - K\hat{\psi}_m|_{z=0} = (\omega - K)\hat{\psi}_m|_{z=0} = (\omega - K)A(\omega) = \hat{f}_m(\omega)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Hence&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;A(\omega) = \frac{\hat{f}_m(\omega)}{\omega - K}  &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and we obtaion &amp;lt;math&amp;gt;\psi\,&amp;lt;/math&amp;gt; by the inverse Fourier transform:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\psi_m = \frac{1}{2\pi}\int_{-\infty}^\infty \hat{\psi}_m e^{-i\omega x}d\omega = \frac{1}{2\pi}\int_{-\infty}^\infty  \frac{\hat{f}_m(\omega)}{\omega - K} e^{\omega z}  e^{-i\omega x}d\omega&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For m&amp;gt;0 the form of &amp;lt;math&amp;gt;\hat{f}_m(\omega)&amp;lt;/math&amp;gt; can be obtained from the expansion of &amp;lt;math&amp;gt;f_m(x)\,&amp;lt;/math&amp;gt; labelled &amp;lt;math&amp;gt;(*)\,&amp;lt;/math&amp;gt; above by rewriting it as a Fourier transform. Substituting the result into the expression above, &amp;lt;math&amp;gt;\psi_m\,&amp;lt;/math&amp;gt; easily simplifies to:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\psi_m = \frac{(-1)^m}{(m-1)!}  \int_{-\infty}^\infty  \frac{\omega + K}{\omega - K} \omega^{m-1} e^{\omega (z-f)}  e^{-i\omega x}d\omega&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
for m&amp;gt;0.&lt;br /&gt;
&lt;br /&gt;
== Example: 2D Wave Scattering for a Submerged Horizontal Cylinder (in Infinite Depth)==&lt;br /&gt;
&lt;br /&gt;
***Picture to show problem set up***&lt;br /&gt;
&lt;br /&gt;
The potential for the scattering problem splits as incident and diffracted potentials and also into symmetric and antisymmetric parts.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi = \phi_I + \phi_D = \phi^+ + \phi^-\,&amp;lt;/math&amp;gt; &amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \partial_r \phi_I |_{r=a} = - \partial_r \phi_D |_{r=a} &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and &amp;lt;math&amp;gt;\phi^+, \,\, \phi^-&amp;lt;/math&amp;gt; are the symmetric and antisymmetric parts of &amp;lt;math&amp;gt;\phi \,&amp;lt;/math&amp;gt; respectively.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For a wave incident from the left we have&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi_I = e^{Kz} e^{iKx} = e^{-Kf}\sum_{n=0}^\infty \frac{(-Kr)^n }{n!} e^{-in\theta}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi_D = \sum_{n=1}^{\infty}a^n \alpha_n \phi_n^+ + \sum_{n=1}^{\infty}a^n \beta_n \phi_n^- &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi^+ = e^{Kz} \cos(Kx) + \sum_{n=1}^{\infty}a^n \alpha_n \phi_n^+&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and &amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi^- = ie^{Kz} \sin(Kx) + \sum_{n=1}^{\infty}a^n \beta_n \phi_n^- &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Converting &amp;lt;math&amp;gt;\phi^+\,&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\phi^-\,&amp;lt;/math&amp;gt; into the polar coordinate system:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi^+ = e^{-Kf}\sum_{n=0}^\infty \frac{(-Kr)^n }{n!} \cos(n\theta) + \sum_{n=1}^{\infty}a^n \alpha_n \left(\frac{\cos(n\theta)}{r^n} + \sum_{m=0}^\infty A_{mn}^+ r^m \cos(m\theta)\right)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi^- = ie^{-Kf}\sum_{n=0}^\infty \frac{(-Kr)^n }{n!} \sin(n\theta) + \sum_{n=1}^{\infty}a^n \alpha_n \left(\frac{\sin(n\theta)}{r^n} + \sum_{m=0}^\infty A_{mn}^+ r^m \sin(m\theta)\right)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The above power series converge for r &amp;lt; 2f and the coefficients are given by&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; A_{mn} = \frac{(-1)^{m+n}}{m!(n-1)!} \quad SingularIntegral_0^\infty \quad \frac{\mu + K}{\mu - K} \mu ^{m+n-1} e^{-2\mu f}d\mu &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Applying the body boundary condition &amp;lt;math&amp;gt;\partial_r \phi^\pm |_{r=a} = 0&amp;lt;/math&amp;gt; and noting that the cosines are orthogonal over &amp;lt;math&amp;gt;\theta \in  (-\pi,\pi]&amp;lt;/math&amp;gt; gives the results&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \alpha_m - \sum_{n=1}^{\infty}a^{n+m} A_{mn} \alpha_n = e^{-Kf}\frac {(-Ka)^m}{m!}; m=1,2,3,\ldots&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \beta_m - \sum_{n=1}^{\infty}a^{n+m} A_{mn} \beta_n = -ie^{-Kf}\frac {(-Ka)^m}{m!}; m=1,2,3,\ldots&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
From which we can see that &amp;lt;math&amp;gt;\beta_n = -i\alpha_n\,&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The above sums can be truncated at the Nth term yielding NxN system of linear equations that can be solved for the coefficients &amp;lt;math&amp;gt;\alpha_n&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hence we can calculate &amp;lt;math&amp;gt;\phi\,&amp;lt;/math&amp;gt; from:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi = \phi^+ + \phi^- = \phi_I + \sum_{n=1}^{\infty}a^n \alpha_n ( \phi^+_n + \phi^-_n )&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This expression also gives the values of the reflection and transmission coefficients when we substitute the far field expressions for the symmetric and antisymmetric multipoles. In the far field:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \phi^+_n \sim \frac{2\pi i (-K)^n}{(n-1)!} e^{K(z-f)} e^{\pm Kx} &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math &amp;gt; \phi^-_n \sim \mp \frac{2\pi (-K)^n}{(n-1)!} e^{K(z-f)} e^{\pm Kx} &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Giving:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;R=0, \quad T = 1 + 4 \pi i e^{-Kf}  \sum_{n=1}^{\infty} \alpha_n \frac{(-Ka)^n}{(n-1)!} &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Hydrodynamic Forces ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Linear Water-Wave Theory]]&lt;/div&gt;</summary>
		<author><name>Sean Curry</name></author>
	</entry>
	<entry>
		<id>https://www.wikiwaves.org/index.php?title=Category:Multipole_Methods_for_Linear_Water_Waves&amp;diff=10831</id>
		<title>Category:Multipole Methods for Linear Water Waves</title>
		<link rel="alternate" type="text/html" href="https://www.wikiwaves.org/index.php?title=Category:Multipole_Methods_for_Linear_Water_Waves&amp;diff=10831"/>
		<updated>2010-02-10T21:11:33Z</updated>

		<summary type="html">&lt;p&gt;Sean Curry: /* With the Free Surface BC */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{incomplete pages}}&lt;br /&gt;
&lt;br /&gt;
== Multipole Expansions ==&lt;br /&gt;
&lt;br /&gt;
Multipole expansions are a technique used in linear water wave theory where the potential is represented as a sum of singularities (multipoles) placed within any structures that are present. Multipoles can be constructed with their singularity submerged or on the free surface and these are treated separately.&lt;br /&gt;
&lt;br /&gt;
Multipoles satisfy:&lt;br /&gt;
&lt;br /&gt;
{{Standard linear wave scattering equations without body condition}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{sommerfeld radiation condition two dimensions}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A linear combination of these multipoles can then be made to satisfy the body boundary conditions.&lt;br /&gt;
&lt;br /&gt;
== 2D Exterior Neumann Problem ==&lt;br /&gt;
&lt;br /&gt;
We start by developing the theory for Laplace&#039;s equation without the free surface for&lt;br /&gt;
a disk of radius &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; centered at the origin. The equation in polar coordinates is&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\nabla^2 \phi = \left[   \partial_r^2 + \frac{1}{r}\partial_r + \frac{1}{r^2} \partial_\theta^2  \right] \phi= 0 \quad &lt;br /&gt;
\mathrm{for} \quad r&amp;gt;a &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt; &lt;br /&gt;
&amp;lt;math&amp;gt;\partial_n \phi |_{r=a} = 0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
|\nabla\phi| \rightarrow 0 \quad as \quad r \rightarrow \infty &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
Using [http://en.wikipedia.org/wiki/Separation_of_Variables separation of variables] &lt;br /&gt;
we write&lt;br /&gt;
&amp;lt;math&amp;gt;\phi = R(r)\Theta(\theta).\,&amp;lt;/math&amp;gt; Substituting into Laplace&#039;s equations gives&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{r^2}{R}\partial_r^2 R + \frac{r}{R}\partial_r R = - \frac{1}{\Theta}\partial_\theta^2 \Theta = m^2 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
The equation for &amp;lt;math&amp;gt;\Theta\,&amp;lt;/math&amp;gt; is&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\quad \partial_\theta^2 \Theta = -m^2\Theta &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\Rightarrow \Theta = A(m) \cos(m\theta) + B(m) \sin(m\theta) \quad for \quad  m \neq 0 &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When m=0 the solution is &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \Theta = A(0) + B(0)\theta \,&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt; &amp;lt;math&amp;gt;\Theta(\theta + 2\pi) = \Theta(\theta) \Rightarrow  m \in Z \,\, and \,\, B(0) = 0\,&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The equation for R is &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \quad r^2\partial_r^2 R + r\partial_rR = m^2 R &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
This is a standard DE, to solve we substitute R = r^n giving:&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;n(n-1)r^n + nr^n = m^2r^n \Rightarrow n^2 = m^2 \Rightarrow n= \pm m&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
This gives two independent solutions for all m except m = 0, where we only get the constant solution. &lt;br /&gt;
&lt;br /&gt;
Noting that:&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;  \nabla^2 \left( \ln(r) \right) = \frac{-1}{r^2} + \frac{1}{r^2}  = 0 &amp;lt;/math&amp;gt; &amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So along with the obvious constant function we have two independant sotutions. Thus for m=0 we can write:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;R = C\left(0\right) + D(0) \ln(r)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and for &amp;lt;math&amp;gt;m\neq 0:&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;R = C\left(m\right)r^m + D(m)r^{-m}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The derivatives of the radial eigenfunctions must go to zero indicating zero fluid flow at infinity:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;|\nabla\phi| \rightarrow 0 \,\, as \,\, r \rightarrow \infty \Rightarrow\partial_r R \rightarrow 0 \,\, as \,\, r \rightarrow \infty &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\Rightarrow C(m)= 0 \,\, \forall m &amp;gt; 0 \,\,\, and \,\,\, D(m)=0 \,\, \forall m&amp;lt;0&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hence the general solution can be expressed as:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi = C(0) + D(0) \ln(r) + \sum_{m=1}^\infty \left( a(m)\frac{\cos(m\theta)}{r^m} +  b(m)\frac{\sin(m\theta)}{r^m}  \right) &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We don&#039;t need to include the negative m terms because of the symmetry of the sine and cosine eigenfunctions means these solutions are not independent.&lt;br /&gt;
&lt;br /&gt;
The solution can also be expressed simply in terms of complex exponentials.&lt;br /&gt;
&lt;br /&gt;
== With the Free Surface BC ==&lt;br /&gt;
&lt;br /&gt;
When we introduce the free surface BC we need to find a new set of eigenfunctions. We can use eigenfunctions from the infinite domain problem to construct them.&lt;br /&gt;
&lt;br /&gt;
Note that the origin is in the free surface directly above the center of the disc for cartesian coordinates. However the origin for the polar coordinates is still at the center of the disk.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We add a solution of Laplace&#039;s equation to the eigenfunctions for the infinite domain problem and require that these new functions(multipoles) satisfy the free surface condition.&lt;br /&gt;
&lt;br /&gt;
For m&amp;gt;0&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi_m = \frac{e^{im\theta}}{r^m} + \psi_m&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
and for m=0&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi_0 = \ln\left(\frac{r}{a}\right) + \psi_0 &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Where&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\nabla^2 \psi_m = 0 \quad for \quad m = 0,1,2, \ldots&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We want the multipoles to satisfy the free surface condition&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\partial_z \phi |_{z=0} = K\phi|_{z=0} \quad \forall m = 0,1,2, \ldots&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For m=0 the free surface condition gives our boundary condition for &amp;lt;math&amp;gt;\psi_0\,&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;(\partial_z  - K)\psi_0|_{z=0} = (K - \partial_z) \left(ln\left(\frac{r}{a}\right)\right)|_{z=0} = K \ln\left(\frac{\sqrt{x^2 + f^2}}{a}\right) - \int_0^\infty e^{-\omega f}\cos(\omega x)d\omega = f_0(x)&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where we used the expansion&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\ln(r) = \int_0^\infty (e^{-\omega}- e^{-\omega|z+f|}\cos(\omega x))\frac{d\omega}{\omega}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For m&amp;gt;0 the free surface condition yields the boundary condition for &amp;lt;math&amp;gt;\psi_m\,&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;(\partial_z - K)\psi_m|_{z=0} = \left(K  - \partial_z \right) \left(\frac{e^{im\theta}}{r^m}\right)|_{z=0} &lt;br /&gt;
= \frac{(-1)^m}{(m-1)!} \int_0^\infty(K+\omega)\omega^{m-1}e^{-\omega f}e^{-i\omega x} d\omega = f_m(x) \quad \quad (*)&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where we used the expansion (valid for z&amp;gt;-f)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \frac{e^{im\theta}}{r^m} = \frac{(-1)^m}{(m-1)!} \int_0^\infty\omega^{m-1}e^{-\omega(z+f) }e^{-i\omega x} d\omega &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So our psi functions satisfy the following problem:&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\nabla^2 \psi_m = 0 \quad for \quad m = 0,1,2, \ldots \quad \ldots (1)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
  &lt;br /&gt;
  &amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\psi_m \rightarrow 0 \quad as \quad z \rightarrow -\infty \quad \ldots (2)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
  &lt;br /&gt;
  &amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\partial_z \psi_m |_{z=0} - K\psi_m|_{z=0} = f_m(x) \quad \ldots (3)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We solve for &amp;lt;math&amp;gt;\hat{\psi}_m\,&amp;lt;/math&amp;gt; by taking a Fourier transform in x to simplify Laplace&#039;s equation&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\hat{\psi}_m = \int_{-\infty}^\infty \psi_m e^{i\omega x}dx&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;(1) \Rightarrow \partial_z^2 \hat{\psi}_m = \omega^2\hat{\psi}_m \Rightarrow \hat{\psi}_m = A_m(\omega)e^{\omega z} + B_m(\omega)e^{-\omega z}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;but \quad (2) \Rightarrow B_m(\omega) = 0 \quad \forall m&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;(3) \Rightarrow \partial_z \hat{\psi}_m |_{z=0} - K\hat{\psi}_m|_{z=0} = (\omega - K)\hat{\psi}_m|_{z=0} = (\omega - K)A(\omega) = \hat{f}_m(\omega)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Hence&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;A(\omega) = \frac{\hat{f}_m(\omega)}{\omega - K}  &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and we obtaion &amp;lt;math&amp;gt;\psi\,&amp;lt;/math&amp;gt; by the inverse Fourier transform:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\psi_m = \frac{1}{2\pi}\int_{-\infty}^\infty \hat{\psi}_m e^{-i\omega x}d\omega = \frac{1}{2\pi}\int_{-\infty}^\infty  \frac{\hat{f}_m(\omega)}{\omega - K} e^{\omega z}  e^{-i\omega x}d\omega&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For m&amp;gt;0 the form of &amp;lt;math&amp;gt;\hat{f}_m(\omega)&amp;lt;/math&amp;gt; can be obtained from the expansion of &amp;lt;math&amp;gt;f_m(x)\,&amp;lt;/math&amp;gt; labelled &amp;lt;math&amp;gt;(*)\,&amp;lt;/math&amp;gt; above by rewriting it as a Fourier transform. Substituting the result into the expression above, &amp;lt;math&amp;gt;\psi_m\,&amp;lt;/math&amp;gt; easily simplifies to:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\psi_m = \frac{(-1)^m}{(m-1)!}  \int_{-\infty}^\infty  \frac{\omega + K}{\omega - K} \omega^{m-1} e^{\omega (z-f)}  e^{-i\omega x}d\omega&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For m&amp;gt;0.&lt;br /&gt;
&lt;br /&gt;
== Example: 2D Wave Scattering for a Submerged Horizontal Cylinder (in Infinite Depth)==&lt;br /&gt;
&lt;br /&gt;
***Picture to show problem set up***&lt;br /&gt;
&lt;br /&gt;
The potential for the scattering problem splits as incident and diffracted potentials and also into symmetric and antisymmetric parts.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi = \phi_I + \phi_D = \phi^+ + \phi^-\,&amp;lt;/math&amp;gt; &amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \partial_r \phi_I |_{r=a} = - \partial_r \phi_D |_{r=a} &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and &amp;lt;math&amp;gt;\phi^+, \,\, \phi^-&amp;lt;/math&amp;gt; are the symmetric and antisymmetric parts of &amp;lt;math&amp;gt;\phi \,&amp;lt;/math&amp;gt; respectively.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For a wave incident from the left we have&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi_I = e^{Kz} e^{iKx} = e^{-Kf}\sum_{n=0}^\infty \frac{(-Kr)^n }{n!} e^{-in\theta}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi_D = \sum_{n=1}^{\infty}a^n \alpha_n \phi_n^+ + \sum_{n=1}^{\infty}a^n \beta_n \phi_n^- &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi^+ = e^{Kz} \cos(Kx) + \sum_{n=1}^{\infty}a^n \alpha_n \phi_n^+&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and &amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi^- = ie^{Kz} \sin(Kx) + \sum_{n=1}^{\infty}a^n \beta_n \phi_n^- &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Converting &amp;lt;math&amp;gt;\phi^+\,&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\phi^-\,&amp;lt;/math&amp;gt; into the polar coordinate system:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi^+ = e^{-Kf}\sum_{n=0}^\infty \frac{(-Kr)^n }{n!} \cos(n\theta) + \sum_{n=1}^{\infty}a^n \alpha_n \left(\frac{\cos(n\theta)}{r^n} + \sum_{m=0}^\infty A_{mn}^+ r^m \cos(m\theta)\right)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi^- = ie^{-Kf}\sum_{n=0}^\infty \frac{(-Kr)^n }{n!} \sin(n\theta) + \sum_{n=1}^{\infty}a^n \alpha_n \left(\frac{\sin(n\theta)}{r^n} + \sum_{m=0}^\infty A_{mn}^+ r^m \sin(m\theta)\right)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The above power series converge for r &amp;lt; 2f and the coefficients are given by&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; A_{mn} = \frac{(-1)^{m+n}}{m!(n-1)!} \quad SingularIntegral_0^\infty \quad \frac{\mu + K}{\mu - K} \mu ^{m+n-1} e^{-2\mu f}d\mu &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Applying the body boundary condition &amp;lt;math&amp;gt;\partial_r \phi^\pm |_{r=a} = 0&amp;lt;/math&amp;gt; and noting that the cosines are orthogonal over &amp;lt;math&amp;gt;\theta \in  (-\pi,\pi]&amp;lt;/math&amp;gt; gives the results&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \alpha_m - \sum_{n=1}^{\infty}a^{n+m} A_{mn} \alpha_n = e^{-Kf}\frac {(-Ka)^m}{m!}; m=1,2,3,\ldots&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \beta_m - \sum_{n=1}^{\infty}a^{n+m} A_{mn} \beta_n = -ie^{-Kf}\frac {(-Ka)^m}{m!}; m=1,2,3,\ldots&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
From which we can see that &amp;lt;math&amp;gt;\beta_n = -i\alpha_n\,&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The above sums can be truncated at the Nth term yielding NxN system of linear equations that can be solved for the coefficients &amp;lt;math&amp;gt;\alpha_n&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hence we can calculate &amp;lt;math&amp;gt;\phi\,&amp;lt;/math&amp;gt; from:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi = \phi^+ + \phi^- = \phi_I + \sum_{n=1}^{\infty}a^n \alpha_n ( \phi^+_n + \phi^-_n )&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This expression also gives the values of the reflection and transmission coefficients when we substitute the far field expressions for the symmetric and antisymmetric multipoles. In the far field:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \phi^+_n \sim \frac{2\pi i (-K)^n}{(n-1)!} e^{K(z-f)} e^{\pm Kx} &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math &amp;gt; \phi^-_n \sim \mp \frac{2\pi (-K)^n}{(n-1)!} e^{K(z-f)} e^{\pm Kx} &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Giving:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;R=0, \quad T = 1 + 4 \pi i e^{-Kf}  \sum_{n=1}^{\infty} \alpha_n \frac{(-Ka)^n}{(n-1)!} &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Hydrodynamic Forces ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Linear Water-Wave Theory]]&lt;/div&gt;</summary>
		<author><name>Sean Curry</name></author>
	</entry>
	<entry>
		<id>https://www.wikiwaves.org/index.php?title=Category:Multipole_Methods_for_Linear_Water_Waves&amp;diff=10811</id>
		<title>Category:Multipole Methods for Linear Water Waves</title>
		<link rel="alternate" type="text/html" href="https://www.wikiwaves.org/index.php?title=Category:Multipole_Methods_for_Linear_Water_Waves&amp;diff=10811"/>
		<updated>2010-02-10T02:57:15Z</updated>

		<summary type="html">&lt;p&gt;Sean Curry: /* Example: 2D Wave Scattering for a Submerged Horizontal Cylinder (in Infinite Depth) */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{incomplete pages}}&lt;br /&gt;
&lt;br /&gt;
== Multipole Expansions ==&lt;br /&gt;
&lt;br /&gt;
Multipole expansions are a technique used in linear water wave theory where the potential is represented as a sum of singularities (multipoles) placed within any structures that are present. Multipoles can be constructed with their singularity submerged or on the free surface and these are treated separately.&lt;br /&gt;
&lt;br /&gt;
Multipoles satisfy:&lt;br /&gt;
&lt;br /&gt;
{{Standard linear wave scattering equations without body condition}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{sommerfeld radiation condition two dimensions}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A linear combination of these multipoles can then be made to satisfy the body boundary conditions.&lt;br /&gt;
&lt;br /&gt;
== 2D Exterior Neumann Problem ==&lt;br /&gt;
&lt;br /&gt;
We start by developing the theory for Laplace&#039;s equation without the free surface for&lt;br /&gt;
a disk of radius &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; centered at the origin. The equation in polar coordinates is&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\nabla^2 \phi = \left[   \partial_r^2 + \frac{1}{r}\partial_r + \frac{1}{r^2} \partial_\theta^2  \right] \phi= 0 \quad &lt;br /&gt;
\mathrm{for} \quad r&amp;gt;a &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt; &lt;br /&gt;
&amp;lt;math&amp;gt;\partial_n \phi |_{r=a} = 0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
|\nabla\phi| \rightarrow 0 \quad as \quad r \rightarrow \infty &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
Using [http://en.wikipedia.org/wiki/Separation_of_Variables separation of variables] &lt;br /&gt;
we write&lt;br /&gt;
&amp;lt;math&amp;gt;\phi = R(r)\Theta(\theta).\,&amp;lt;/math&amp;gt; Substituting into Laplace&#039;s equations gives&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{r^2}{R}\partial_r^2 R + \frac{r}{R}\partial_r R = - \frac{1}{\Theta}\partial_\theta^2 \Theta = m^2 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
The equation for &amp;lt;math&amp;gt;\Theta\,&amp;lt;/math&amp;gt; is&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\quad \partial_\theta^2 \Theta = -m^2\Theta &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\Rightarrow \Theta = A(m) \cos(m\theta) + B(m) \sin(m\theta) \quad for \quad  m \neq 0 &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When m=0 the solution is &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \Theta = A(0) + B(0)\theta \,&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt; &amp;lt;math&amp;gt;\Theta(\theta + 2\pi) = \Theta(\theta) \Rightarrow  m \in Z \,\, and \,\, B(0) = 0\,&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The equation for R is &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \quad r^2\partial_r^2 R + r\partial_rR = m^2 R &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
This is a standard DE, to solve we substitute R = r^n giving:&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;n(n-1)r^n + nr^n = m^2r^n \Rightarrow n^2 = m^2 \Rightarrow n= \pm m&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
This gives two independent solutions for all m except m = 0, where we only get the constant solution. &lt;br /&gt;
&lt;br /&gt;
Noting that:&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;  \nabla^2 \left( \ln(r) \right) = \frac{-1}{r^2} + \frac{1}{r^2}  = 0 &amp;lt;/math&amp;gt; &amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So along with the obvious constant function we have two independant sotutions. Thus for m=0 we can write:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;R = C\left(0\right) + D(0) \ln(r)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and for &amp;lt;math&amp;gt;m\neq 0:&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;R = C\left(m\right)r^m + D(m)r^{-m}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The derivatives of the radial eigenfunctions must go to zero indicating zero fluid flow at infinity:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;|\nabla\phi| \rightarrow 0 \,\, as \,\, r \rightarrow \infty \Rightarrow\partial_r R \rightarrow 0 \,\, as \,\, r \rightarrow \infty &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\Rightarrow C(m)= 0 \,\, \forall m &amp;gt; 0 \,\,\, and \,\,\, D(m)=0 \,\, \forall m&amp;lt;0&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hence the general solution can be expressed as:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi = C(0) + D(0) \ln(r) + \sum_{m=1}^\infty \left( a(m)\frac{\cos(m\theta)}{r^m} +  b(m)\frac{\sin(m\theta)}{r^m}  \right) &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We don&#039;t need to include the negative m terms because of the symmetry of the sine and cosine eigenfunctions means these solutions are not independent.&lt;br /&gt;
&lt;br /&gt;
The solution can also be expressed simply in terms of complex exponentials.&lt;br /&gt;
&lt;br /&gt;
== With the Free Surface BC ==&lt;br /&gt;
&lt;br /&gt;
When we introduce the free surface BC we need to find a new set of eigenfunctions. We can use eigenfunctions from the infinite domain problem to construct them.&lt;br /&gt;
&lt;br /&gt;
Note that the origin is in the free surface directly above the center of the disc for cartesian coordinates. However the origin for the polar coordinates is still at the center of the disk.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We add a solution of Laplace&#039;s equation to the eigenfunctions for the infinite domain problem and require that these new functions(multipoles) satisfy the free surface condition.&lt;br /&gt;
&lt;br /&gt;
For m&amp;gt;0&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi_m = \frac{e^{im\theta}}{r^m} + \psi_m&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
and for m=0&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi_0 = \ln\left(\frac{r}{a}\right) + \psi_0 &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Where&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\nabla^2 \psi_m = 0 \quad for \quad m = 0,1,2, \ldots&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We want the multipoles to satisfy the free surface condition&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\partial_z \phi |_{z=0} = K\phi|_{z=0} \quad \forall m = 0,1,2, \ldots&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For m=0 the free surface condition gives our boundary condition for &amp;lt;math&amp;gt;\psi_0\,&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;(\partial_z  - K)\psi_0|_{z=0} = (K - \partial_z) \left(ln\left(\frac{r}{a}\right)\right)|_{z=0} = K \ln\left(\frac{\sqrt{x^2 + f^2}}{a}\right) - \int_0^\infty e^{-\omega f}\cos(\omega x)d\omega = f_0(x)&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where we used the expansion&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\ln(r) = \int_0^\infty (e^{-\omega}- e^{-\omega|z+f|}\cos(\omega x))\frac{d\omega}{\omega}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For m&amp;gt;0 the free surface condition yields the boundary condition for &amp;lt;math&amp;gt;\psi_m\,&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;(\partial_z - K)\psi_m|_{z=0} = \left(K  - \partial_z \right) \left(\frac{e^{im\theta}}{r^m}\right)|_{z=0} &lt;br /&gt;
= \frac{(-1)^m}{(m-1)!} \int_0^\infty(K+\omega)\omega^{m-1}e^{-\omega f}e^{-i\omega x} d\omega = f_m(x) \quad \quad (*)&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where we used the expansion (valid for z&amp;gt;-f)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \frac{e^{im\theta}}{r^m} = \frac{(-1)^m}{(m-1)!} \int_0^\infty\omega^{m-1}e^{-\omega(z+f) }e^{-i\omega x} d\omega &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So our psi functions satisfy the following problem:&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\nabla^2 \psi_m = 0 \quad for \quad m = 0,1,2, \ldots \quad \ldots (1)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
  &lt;br /&gt;
  &amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\psi_m \rightarrow 0 \quad as \quad z \rightarrow -\infty \quad \ldots (2)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
  &lt;br /&gt;
  &amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\partial_z \psi_m |_{z=0} - K\psi_m|_{z=0} = f_m(x) \quad \ldots (3)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We solve for &amp;lt;math&amp;gt;\hat{\psi}_m\,&amp;lt;/math&amp;gt; by taking a Fourier transform in x to simplify Laplace&#039;s equation&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\hat{\psi}_m = \int_{-\infty}^\infty \psi_m e^{i\omega x}dx&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;(1) \Rightarrow \partial_z^2 \hat{\psi}_m = \omega^2\hat{\psi}_m \Rightarrow \hat{\psi}_m = A_m(\omega)e^{\omega z} + B_m(\omega)e^{-\omega z}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;but \quad (2) \Rightarrow B_m(\omega) = 0 \quad \forall m&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;(3) \Rightarrow \partial_z \hat{\psi}_m |_{z=0} - K\hat{\psi}_m|_{z=0} = (\omega - K)\hat{\psi}_m|_{z=0} = (\omega - K)A(\omega) = \hat{f}_m(\omega)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Hence&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;A(\omega) = \frac{\hat{f}_m(\omega)}{\omega - K}  &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and we obtaion &amp;lt;math&amp;gt;\psi\,&amp;lt;/math&amp;gt; by the inverse Fourier transform:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\psi_m = \frac{1}{2\pi}\int_{-\infty}^\infty \hat{\psi}_m e^{-i\omega x}d\omega = \frac{1}{2\pi}\int_{-\infty}^\infty  \frac{\hat{f}_m(\omega)}{\omega - K} e^{\omega z}  e^{-i\omega x}d\omega&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For m&amp;gt;0 the form of &amp;lt;math&amp;gt;\hat{f}_m(\omega)&amp;lt;/math&amp;gt; can be obtained from the expansion of &amp;lt;math&amp;gt;f_m(x)\,&amp;lt;/math&amp;gt; labelled &amp;lt;math&amp;gt;(*)\,&amp;lt;/math&amp;gt; above by rewriting it as a Fourier transform. Substituting the result into the expression above, &amp;lt;math&amp;gt;\psi_m\,&amp;lt;/math&amp;gt; easily simplifies to:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\psi_m = \frac{(-1)^m}{(m-1)!}  \int_{-\infty}^\infty  \frac{\omega + K}{\omega - K} \omega^{m-1} e^{\omega (z-f)}  e^{-i\omega x}d\omega&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Example: 2D Wave Scattering for a Submerged Horizontal Cylinder (in Infinite Depth)==&lt;br /&gt;
&lt;br /&gt;
***Picture to show problem set up***&lt;br /&gt;
&lt;br /&gt;
The potential for the scattering problem splits as incident and diffracted potentials and also into symmetric and antisymmetric parts.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi = \phi_I + \phi_D = \phi^+ + \phi^-\,&amp;lt;/math&amp;gt; &amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \partial_r \phi_I |_{r=a} = - \partial_r \phi_D |_{r=a} &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and &amp;lt;math&amp;gt;\phi^+, \,\, \phi^-&amp;lt;/math&amp;gt; are the symmetric and antisymmetric parts of &amp;lt;math&amp;gt;\phi \,&amp;lt;/math&amp;gt; respectively.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For a wave incident from the left we have&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi_I = e^{Kz} e^{iKx} = e^{-Kf}\sum_{n=0}^\infty \frac{(-Kr)^n }{n!} e^{-in\theta}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi_D = \sum_{n=1}^{\infty}a^n \alpha_n \phi_n^+ + \sum_{n=1}^{\infty}a^n \beta_n \phi_n^- &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi^+ = e^{Kz} \cos(Kx) + \sum_{n=1}^{\infty}a^n \alpha_n \phi_n^+&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and &amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi^- = ie^{Kz} \sin(Kx) + \sum_{n=1}^{\infty}a^n \beta_n \phi_n^- &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Converting &amp;lt;math&amp;gt;\phi^+\,&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\phi^-\,&amp;lt;/math&amp;gt; into the polar coordinate system:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi^+ = e^{-Kf}\sum_{n=0}^\infty \frac{(-Kr)^n }{n!} \cos(n\theta) + \sum_{n=1}^{\infty}a^n \alpha_n \left(\frac{\cos(n\theta)}{r^n} + \sum_{m=0}^\infty A_{mn}^+ r^m \cos(m\theta)\right)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi^- = ie^{-Kf}\sum_{n=0}^\infty \frac{(-Kr)^n }{n!} \sin(n\theta) + \sum_{n=1}^{\infty}a^n \alpha_n \left(\frac{\sin(n\theta)}{r^n} + \sum_{m=0}^\infty A_{mn}^+ r^m \sin(m\theta)\right)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The above power series converge for r &amp;lt; 2f and the coefficients are given by&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; A_{mn} = \frac{(-1)^{m+n}}{m!(n-1)!} \quad SingularIntegral_0^\infty \quad \frac{\mu + K}{\mu - K} \mu ^{m+n-1} e^{-2\mu f}d\mu &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Applying the body boundary condition &amp;lt;math&amp;gt;\partial_r \phi^\pm |_{r=a} = 0&amp;lt;/math&amp;gt; and noting that the cosines are orthogonal over &amp;lt;math&amp;gt;\theta \in  (-\pi,\pi]&amp;lt;/math&amp;gt; gives the results&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \alpha_m - \sum_{n=1}^{\infty}a^{n+m} A_{mn} \alpha_n = e^{-Kf}\frac {(-Ka)^m}{m!}; m=1,2,3,\ldots&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \beta_m - \sum_{n=1}^{\infty}a^{n+m} A_{mn} \beta_n = -ie^{-Kf}\frac {(-Ka)^m}{m!}; m=1,2,3,\ldots&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
From which we can see that &amp;lt;math&amp;gt;\beta_n = -i\alpha_n\,&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The above sums can be truncated at the Nth term yielding NxN system of linear equations that can be solved for the coefficients &amp;lt;math&amp;gt;\alpha_n&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hence we can calculate &amp;lt;math&amp;gt;\phi\,&amp;lt;/math&amp;gt; from:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi = \phi^+ + \phi^- = \phi_I + \sum_{n=1}^{\infty}a^n \alpha_n ( \phi^+_n + \phi^-_n )&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This expression also gives the values of the reflection and transmission coefficients when we substitute the far field expressions for the symmetric and antisymmetric multipoles. In the far field:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \phi^+_n \sim \frac{2\pi i (-K)^n}{(n-1)!} e^{K(z-f)} e^{\pm Kx} &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math &amp;gt; \phi^-_n \sim \mp \frac{2\pi (-K)^n}{(n-1)!} e^{K(z-f)} e^{\pm Kx} &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Giving:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;R=0, \quad T = 1 + 4 \pi i e^{-Kf}  \sum_{n=1}^{\infty} \alpha_n \frac{(-Ka)^n}{(n-1)!} &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Hydrodynamic Forces ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Linear Water-Wave Theory]]&lt;/div&gt;</summary>
		<author><name>Sean Curry</name></author>
	</entry>
	<entry>
		<id>https://www.wikiwaves.org/index.php?title=Category:Multipole_Methods_for_Linear_Water_Waves&amp;diff=10809</id>
		<title>Category:Multipole Methods for Linear Water Waves</title>
		<link rel="alternate" type="text/html" href="https://www.wikiwaves.org/index.php?title=Category:Multipole_Methods_for_Linear_Water_Waves&amp;diff=10809"/>
		<updated>2010-02-10T02:51:36Z</updated>

		<summary type="html">&lt;p&gt;Sean Curry: /* With the Free Surface BC */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{incomplete pages}}&lt;br /&gt;
&lt;br /&gt;
== Multipole Expansions ==&lt;br /&gt;
&lt;br /&gt;
Multipole expansions are a technique used in linear water wave theory where the potential is represented as a sum of singularities (multipoles) placed within any structures that are present. Multipoles can be constructed with their singularity submerged or on the free surface and these are treated separately.&lt;br /&gt;
&lt;br /&gt;
Multipoles satisfy:&lt;br /&gt;
&lt;br /&gt;
{{Standard linear wave scattering equations without body condition}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{sommerfeld radiation condition two dimensions}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A linear combination of these multipoles can then be made to satisfy the body boundary conditions.&lt;br /&gt;
&lt;br /&gt;
== 2D Exterior Neumann Problem ==&lt;br /&gt;
&lt;br /&gt;
We start by developing the theory for Laplace&#039;s equation without the free surface for&lt;br /&gt;
a disk of radius &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; centered at the origin. The equation in polar coordinates is&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\nabla^2 \phi = \left[   \partial_r^2 + \frac{1}{r}\partial_r + \frac{1}{r^2} \partial_\theta^2  \right] \phi= 0 \quad &lt;br /&gt;
\mathrm{for} \quad r&amp;gt;a &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt; &lt;br /&gt;
&amp;lt;math&amp;gt;\partial_n \phi |_{r=a} = 0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
|\nabla\phi| \rightarrow 0 \quad as \quad r \rightarrow \infty &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
Using [http://en.wikipedia.org/wiki/Separation_of_Variables separation of variables] &lt;br /&gt;
we write&lt;br /&gt;
&amp;lt;math&amp;gt;\phi = R(r)\Theta(\theta).\,&amp;lt;/math&amp;gt; Substituting into Laplace&#039;s equations gives&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{r^2}{R}\partial_r^2 R + \frac{r}{R}\partial_r R = - \frac{1}{\Theta}\partial_\theta^2 \Theta = m^2 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
The equation for &amp;lt;math&amp;gt;\Theta\,&amp;lt;/math&amp;gt; is&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\quad \partial_\theta^2 \Theta = -m^2\Theta &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\Rightarrow \Theta = A(m) \cos(m\theta) + B(m) \sin(m\theta) \quad for \quad  m \neq 0 &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When m=0 the solution is &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \Theta = A(0) + B(0)\theta \,&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt; &amp;lt;math&amp;gt;\Theta(\theta + 2\pi) = \Theta(\theta) \Rightarrow  m \in Z \,\, and \,\, B(0) = 0\,&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The equation for R is &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \quad r^2\partial_r^2 R + r\partial_rR = m^2 R &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
This is a standard DE, to solve we substitute R = r^n giving:&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;n(n-1)r^n + nr^n = m^2r^n \Rightarrow n^2 = m^2 \Rightarrow n= \pm m&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
This gives two independent solutions for all m except m = 0, where we only get the constant solution. &lt;br /&gt;
&lt;br /&gt;
Noting that:&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;  \nabla^2 \left( \ln(r) \right) = \frac{-1}{r^2} + \frac{1}{r^2}  = 0 &amp;lt;/math&amp;gt; &amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So along with the obvious constant function we have two independant sotutions. Thus for m=0 we can write:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;R = C\left(0\right) + D(0) \ln(r)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and for &amp;lt;math&amp;gt;m\neq 0:&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;R = C\left(m\right)r^m + D(m)r^{-m}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The derivatives of the radial eigenfunctions must go to zero indicating zero fluid flow at infinity:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;|\nabla\phi| \rightarrow 0 \,\, as \,\, r \rightarrow \infty \Rightarrow\partial_r R \rightarrow 0 \,\, as \,\, r \rightarrow \infty &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\Rightarrow C(m)= 0 \,\, \forall m &amp;gt; 0 \,\,\, and \,\,\, D(m)=0 \,\, \forall m&amp;lt;0&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hence the general solution can be expressed as:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi = C(0) + D(0) \ln(r) + \sum_{m=1}^\infty \left( a(m)\frac{\cos(m\theta)}{r^m} +  b(m)\frac{\sin(m\theta)}{r^m}  \right) &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We don&#039;t need to include the negative m terms because of the symmetry of the sine and cosine eigenfunctions means these solutions are not independent.&lt;br /&gt;
&lt;br /&gt;
The solution can also be expressed simply in terms of complex exponentials.&lt;br /&gt;
&lt;br /&gt;
== With the Free Surface BC ==&lt;br /&gt;
&lt;br /&gt;
When we introduce the free surface BC we need to find a new set of eigenfunctions. We can use eigenfunctions from the infinite domain problem to construct them.&lt;br /&gt;
&lt;br /&gt;
Note that the origin is in the free surface directly above the center of the disc for cartesian coordinates. However the origin for the polar coordinates is still at the center of the disk.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We add a solution of Laplace&#039;s equation to the eigenfunctions for the infinite domain problem and require that these new functions(multipoles) satisfy the free surface condition.&lt;br /&gt;
&lt;br /&gt;
For m&amp;gt;0&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi_m = \frac{e^{im\theta}}{r^m} + \psi_m&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
and for m=0&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi_0 = \ln\left(\frac{r}{a}\right) + \psi_0 &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Where&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\nabla^2 \psi_m = 0 \quad for \quad m = 0,1,2, \ldots&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We want the multipoles to satisfy the free surface condition&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\partial_z \phi |_{z=0} = K\phi|_{z=0} \quad \forall m = 0,1,2, \ldots&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For m=0 the free surface condition gives our boundary condition for &amp;lt;math&amp;gt;\psi_0\,&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;(\partial_z  - K)\psi_0|_{z=0} = (K - \partial_z) \left(ln\left(\frac{r}{a}\right)\right)|_{z=0} = K \ln\left(\frac{\sqrt{x^2 + f^2}}{a}\right) - \int_0^\infty e^{-\omega f}\cos(\omega x)d\omega = f_0(x)&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where we used the expansion&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\ln(r) = \int_0^\infty (e^{-\omega}- e^{-\omega|z+f|}\cos(\omega x))\frac{d\omega}{\omega}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For m&amp;gt;0 the free surface condition yields the boundary condition for &amp;lt;math&amp;gt;\psi_m\,&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;(\partial_z - K)\psi_m|_{z=0} = \left(K  - \partial_z \right) \left(\frac{e^{im\theta}}{r^m}\right)|_{z=0} &lt;br /&gt;
= \frac{(-1)^m}{(m-1)!} \int_0^\infty(K+\omega)\omega^{m-1}e^{-\omega f}e^{-i\omega x} d\omega = f_m(x) \quad \quad (*)&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where we used the expansion (valid for z&amp;gt;-f)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \frac{e^{im\theta}}{r^m} = \frac{(-1)^m}{(m-1)!} \int_0^\infty\omega^{m-1}e^{-\omega(z+f) }e^{-i\omega x} d\omega &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So our psi functions satisfy the following problem:&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\nabla^2 \psi_m = 0 \quad for \quad m = 0,1,2, \ldots \quad \ldots (1)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
  &lt;br /&gt;
  &amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\psi_m \rightarrow 0 \quad as \quad z \rightarrow -\infty \quad \ldots (2)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
  &lt;br /&gt;
  &amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\partial_z \psi_m |_{z=0} - K\psi_m|_{z=0} = f_m(x) \quad \ldots (3)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We solve for &amp;lt;math&amp;gt;\hat{\psi}_m\,&amp;lt;/math&amp;gt; by taking a Fourier transform in x to simplify Laplace&#039;s equation&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\hat{\psi}_m = \int_{-\infty}^\infty \psi_m e^{i\omega x}dx&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;(1) \Rightarrow \partial_z^2 \hat{\psi}_m = \omega^2\hat{\psi}_m \Rightarrow \hat{\psi}_m = A_m(\omega)e^{\omega z} + B_m(\omega)e^{-\omega z}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;but \quad (2) \Rightarrow B_m(\omega) = 0 \quad \forall m&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;(3) \Rightarrow \partial_z \hat{\psi}_m |_{z=0} - K\hat{\psi}_m|_{z=0} = (\omega - K)\hat{\psi}_m|_{z=0} = (\omega - K)A(\omega) = \hat{f}_m(\omega)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Hence&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;A(\omega) = \frac{\hat{f}_m(\omega)}{\omega - K}  &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and we obtaion &amp;lt;math&amp;gt;\psi\,&amp;lt;/math&amp;gt; by the inverse Fourier transform:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\psi_m = \frac{1}{2\pi}\int_{-\infty}^\infty \hat{\psi}_m e^{-i\omega x}d\omega = \frac{1}{2\pi}\int_{-\infty}^\infty  \frac{\hat{f}_m(\omega)}{\omega - K} e^{\omega z}  e^{-i\omega x}d\omega&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For m&amp;gt;0 the form of &amp;lt;math&amp;gt;\hat{f}_m(\omega)&amp;lt;/math&amp;gt; can be obtained from the expansion of &amp;lt;math&amp;gt;f_m(x)\,&amp;lt;/math&amp;gt; labelled &amp;lt;math&amp;gt;(*)\,&amp;lt;/math&amp;gt; above by rewriting it as a Fourier transform. Substituting the result into the expression above, &amp;lt;math&amp;gt;\psi_m\,&amp;lt;/math&amp;gt; easily simplifies to:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\psi_m = \frac{(-1)^m}{(m-1)!}  \int_{-\infty}^\infty  \frac{\omega + K}{\omega - K} \omega^{m-1} e^{\omega (z-f)}  e^{-i\omega x}d\omega&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Example: 2D Wave Scattering for a Submerged Horizontal Cylinder (in Infinite Depth)==&lt;br /&gt;
&lt;br /&gt;
***Picture to show problem set up***&lt;br /&gt;
&lt;br /&gt;
The potential for the scattering problem splits as incident and diffracted potentials and also into symmetric and antisymmetric parts.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi = \phi_I + \phi_D = \phi^+ + \phi^-&amp;lt;/math&amp;gt; &lt;br /&gt;
&lt;br /&gt;
where&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \partial_r \phi_I |_{r=a} = - \partial_r \phi_D |_{r=a} &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and &amp;lt;math&amp;gt;\phi^+&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;\phi^-&amp;lt;/math&amp;gt; are the symmetric and antisymmetric parts of &amp;lt;math&amp;gt;\phi&amp;lt;/math&amp;gt; respectively.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For a wave incident from the left we have&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi_I = e^{Kz} e^{iKx} = e^{-Kf}\sum_{n=0}^\infty \frac{(-Kr)^n }{n!} e^{-in\theta}&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi_D = \sum_{n=1}^{\infty}a^n \alpha_n \phi_n^+ + \sum_{n=1}^{\infty}a^n \beta_n \phi_n^- &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi^+ = e^{Kz} \cos(Kx) + \sum_{n=1}^{\infty}a^n \alpha_n \phi_n^+&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
and &amp;lt;math&amp;gt;\phi^- = ie^{Kz} \sin(Kx) + \sum_{n=1}^{\infty}a^n \beta_n \phi_n^- &amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Converting &amp;lt;math&amp;gt;\phi^+&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\phi^-&amp;lt;/math&amp;gt; into the polar coordinate system:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi^+ = e^{-Kf}\sum_{n=0}^\infty \frac{(-Kr)^n }{n!} \cos(n\theta) + \sum_{n=1}^{\infty}a^n \alpha_n \left(\frac{\cos(n\theta)}{r^n} + \sum_{m=0}^\infty A_{mn}^+ r^m \cos(m\theta)\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi^- = ie^{-Kf}\sum_{n=0}^\infty \frac{(-Kr)^n }{n!} \sin(n\theta) + \sum_{n=1}^{\infty}a^n \alpha_n \left(\frac{\sin(n\theta)}{r^n} + \sum_{m=0}^\infty A_{mn}^+ r^m \sin(m\theta)\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The above power series converge for r &amp;lt; 2f and the coefficients are given by&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; A_{mn} = \frac{(-1)^{m+n}}{m!(n-1)!} \quad SingularIntegral_0^\infty \quad \frac{\mu + K}{\mu - K} \mu ^{m+n-1} e^{-2\mu f}d\mu &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Applying the body boundary condition &amp;lt;math&amp;gt;\partial_r \phi^\pm |_{r=a} = 0&amp;lt;/math&amp;gt; and noting that the cosines are orthogonal over &amp;lt;math&amp;gt;\theta \in  (-\pi,\pi]&amp;lt;/math&amp;gt; gives the results&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \alpha_m - \sum_{n=1}^{\infty}a^{n+m} A_{mn} \alpha_n = e^{-Kf}\frac {(-Ka)^m}{m!}; m=1,2,3,\ldots&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \beta_m - \sum_{n=1}^{\infty}a^{n+m} A_{mn} \beta_n = -ie^{-Kf}\frac {(-Ka)^m}{m!}; m=1,2,3,\ldots&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
From which we can see that &amp;lt;math&amp;gt;\beta_n = -i\alpha_n&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The above sums can be truncated at the Nth term yielding NxN system of linear equations that can be solved for the coefficients &amp;lt;math&amp;gt;\alpha_n&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hence we can calculate &amp;lt;math&amp;gt;\phi&amp;lt;/math&amp;gt; from:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi = \phi^+ + \phi^- = \phi_I + \sum_{n=1}^{\infty}a^n \alpha_n ( \phi^+_n + \phi^-_n )&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This expression also gives the values of the reflection and transmission coefficients when we substitute the far field expressions for the symmetric and antisymmetric multipoles. In the far field:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \phi^+_n \sim \frac{2\pi i (-K)^n}{(n-1)!} e^{K(z-f)} e^{\pm Kx} &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math &amp;gt; \phi^-_n \sim \mp \frac{2\pi (-K)^n}{(n-1)!} e^{K(z-f)} e^{\pm Kx} &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Giving:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;R=0, \quad T = 1 + 4 \pi i e^{-Kf}  \sum_{n=1}^{\infty} \alpha_n \frac{(-Ka)^n}{(n-1)!} &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Hydrodynamic Forces ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Linear Water-Wave Theory]]&lt;/div&gt;</summary>
		<author><name>Sean Curry</name></author>
	</entry>
	<entry>
		<id>https://www.wikiwaves.org/index.php?title=Category:Multipole_Methods_for_Linear_Water_Waves&amp;diff=10807</id>
		<title>Category:Multipole Methods for Linear Water Waves</title>
		<link rel="alternate" type="text/html" href="https://www.wikiwaves.org/index.php?title=Category:Multipole_Methods_for_Linear_Water_Waves&amp;diff=10807"/>
		<updated>2010-02-10T02:50:54Z</updated>

		<summary type="html">&lt;p&gt;Sean Curry: /* With the Free Surface BC */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{incomplete pages}}&lt;br /&gt;
&lt;br /&gt;
== Multipole Expansions ==&lt;br /&gt;
&lt;br /&gt;
Multipole expansions are a technique used in linear water wave theory where the potential is represented as a sum of singularities (multipoles) placed within any structures that are present. Multipoles can be constructed with their singularity submerged or on the free surface and these are treated separately.&lt;br /&gt;
&lt;br /&gt;
Multipoles satisfy:&lt;br /&gt;
&lt;br /&gt;
{{Standard linear wave scattering equations without body condition}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{sommerfeld radiation condition two dimensions}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A linear combination of these multipoles can then be made to satisfy the body boundary conditions.&lt;br /&gt;
&lt;br /&gt;
== 2D Exterior Neumann Problem ==&lt;br /&gt;
&lt;br /&gt;
We start by developing the theory for Laplace&#039;s equation without the free surface for&lt;br /&gt;
a disk of radius &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; centered at the origin. The equation in polar coordinates is&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\nabla^2 \phi = \left[   \partial_r^2 + \frac{1}{r}\partial_r + \frac{1}{r^2} \partial_\theta^2  \right] \phi= 0 \quad &lt;br /&gt;
\mathrm{for} \quad r&amp;gt;a &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt; &lt;br /&gt;
&amp;lt;math&amp;gt;\partial_n \phi |_{r=a} = 0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
|\nabla\phi| \rightarrow 0 \quad as \quad r \rightarrow \infty &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
Using [http://en.wikipedia.org/wiki/Separation_of_Variables separation of variables] &lt;br /&gt;
we write&lt;br /&gt;
&amp;lt;math&amp;gt;\phi = R(r)\Theta(\theta).\,&amp;lt;/math&amp;gt; Substituting into Laplace&#039;s equations gives&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{r^2}{R}\partial_r^2 R + \frac{r}{R}\partial_r R = - \frac{1}{\Theta}\partial_\theta^2 \Theta = m^2 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
The equation for &amp;lt;math&amp;gt;\Theta\,&amp;lt;/math&amp;gt; is&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\quad \partial_\theta^2 \Theta = -m^2\Theta &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\Rightarrow \Theta = A(m) \cos(m\theta) + B(m) \sin(m\theta) \quad for \quad  m \neq 0 &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When m=0 the solution is &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \Theta = A(0) + B(0)\theta \,&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt; &amp;lt;math&amp;gt;\Theta(\theta + 2\pi) = \Theta(\theta) \Rightarrow  m \in Z \,\, and \,\, B(0) = 0\,&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The equation for R is &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \quad r^2\partial_r^2 R + r\partial_rR = m^2 R &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
This is a standard DE, to solve we substitute R = r^n giving:&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;n(n-1)r^n + nr^n = m^2r^n \Rightarrow n^2 = m^2 \Rightarrow n= \pm m&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
This gives two independent solutions for all m except m = 0, where we only get the constant solution. &lt;br /&gt;
&lt;br /&gt;
Noting that:&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;  \nabla^2 \left( \ln(r) \right) = \frac{-1}{r^2} + \frac{1}{r^2}  = 0 &amp;lt;/math&amp;gt; &amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So along with the obvious constant function we have two independant sotutions. Thus for m=0 we can write:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;R = C\left(0\right) + D(0) \ln(r)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and for &amp;lt;math&amp;gt;m\neq 0:&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;R = C\left(m\right)r^m + D(m)r^{-m}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The derivatives of the radial eigenfunctions must go to zero indicating zero fluid flow at infinity:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;|\nabla\phi| \rightarrow 0 \,\, as \,\, r \rightarrow \infty \Rightarrow\partial_r R \rightarrow 0 \,\, as \,\, r \rightarrow \infty &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\Rightarrow C(m)= 0 \,\, \forall m &amp;gt; 0 \,\,\, and \,\,\, D(m)=0 \,\, \forall m&amp;lt;0&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hence the general solution can be expressed as:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi = C(0) + D(0) \ln(r) + \sum_{m=1}^\infty \left( a(m)\frac{\cos(m\theta)}{r^m} +  b(m)\frac{\sin(m\theta)}{r^m}  \right) &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We don&#039;t need to include the negative m terms because of the symmetry of the sine and cosine eigenfunctions means these solutions are not independent.&lt;br /&gt;
&lt;br /&gt;
The solution can also be expressed simply in terms of complex exponentials.&lt;br /&gt;
&lt;br /&gt;
== With the Free Surface BC ==&lt;br /&gt;
&lt;br /&gt;
When we introduce the free surface BC we need to find a new set of eigenfunctions. We can use eigenfunctions from the infinite domain problem to construct them.&lt;br /&gt;
&lt;br /&gt;
Note that the origin is in the free surface directly above the center of the disc for cartesian coordinates. However the origin for the polar coordinates is still at the center of the disk.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We add a solution of Laplace&#039;s equation to the eigenfunctions for the infinite domain problem and require that these new functions(multipoles) satisfy the free surface condition.&lt;br /&gt;
&lt;br /&gt;
For m&amp;gt;0&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi_m = \frac{e^{im\theta}}{r^m} + \psi_m&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
and for m=0&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi_0 = \ln\left(\frac{r}{a}\right) + \psi_0 &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Where&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\nabla^2 \psi_m = 0 \quad for \quad m = 0,1,2, \ldots&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We want the multipoles to satisfy the free surface condition&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\partial_z \phi |_{z=0} = K\phi|_{z=0} \quad \forall m = 0,1,2, \ldots&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For m=0 the free surface condition gives our boundary condition for &amp;lt;math&amp;gt;\psi_0\,&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;(\partial_z  - K)\psi_0|_{z=0} = (K - \partial_z) \left(ln\left(\frac{r}{a}\right)\right)|_{z=0} = K \ln\left(\frac{\sqrt{x^2 + f^2}}{a}\right) - \int_0^\infty e^{-\omega f}\cos(\omega x)d\omega = f_0(x)&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where we used the expansion&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\ln(r) = \int_0^\infty (e^{-\omega}- e^{-\omega|z+f|}\cos(\omega x))\frac{d\omega}{\omega}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For m&amp;gt;0 the free surface condition yields the boundary condition for &amp;lt;math&amp;gt;\psi_m\,&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;(\partial_z - K)\psi_m|_{z=0} = \left(K  - \partial_z \right) \left(\frac{e^{im\theta}}{r^m}\right)|_{z=0} &lt;br /&gt;
= \frac{(-1)^m}{(m-1)!} \int_0^\infty(K+\omega)\omega^{m-1}e^{-\omega f}e^{-i\omega x} d\omega = f_m(x) \quad \quad (*)&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where we used the expansion (valid for z&amp;gt;-f)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \frac{e^{im\theta}}{r^m} = \frac{(-1)^m}{(m-1)!} \int_0^\infty\omega^{m-1}e^{-\omega(z+f) }e^{-i\omega x} d\omega &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So our psi functions satisfy the following problem:&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\nabla^2 \psi_m = 0 \quad for \quad m = 0,1,2, \ldots \quad \ldots (1)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
  &lt;br /&gt;
  &amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\psi_m \rightarrow 0 \quad as \quad z \rightarrow -\infty \quad \ldots (2)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
  &lt;br /&gt;
  &amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\partial_z \psi_m |_{z=0} - K\psi_m|_{z=0} = f_m(x) \quad \ldots (3)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We solve for &amp;lt;math&amp;gt;\hat{\psi}_m\,&amp;lt;/math&amp;gt; by taking a Fourier transform in x to simplify Laplace&#039;s equation&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\hat{\psi}_m = \int_{-\infty}^\infty \psi_m e^{i\omega x}dx&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;(1) \Rightarrow \partial_z^2 \hat{\psi}_m = \omega^2\hat{\psi}_m \Rightarrow \hat{\psi}_m = A_m(\omega)e^{\omega z} + B_m(\omega)e^{-\omega z}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;but \quad (2) \Rightarrow B_m(\omega) = 0 \quad \forall m&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;(3) \Rightarrow \partial_z \hat{\psi}_m |_{z=0} - K\hat{\psi}_m|_{z=0} = (\omega - K)\hat{\psi}_m|_{z=0} = (\omega - K)A(\omega) = \hat{f}_m(\omega)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Hence&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;A(\omega) = \frac{\hat{f}_m(\omega)}{\omega - K}  &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and we obtaion &amp;lt;math&amp;gt;\psi\,&amp;lt;/math&amp;gt; by the inverse Fourier transform:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\psi_m = \frac{1}{2\pi}\int_{-\infty}^\infty \hat{\psi}_m e^{-i\omega x}d\omega = \frac{1}{2\pi}\int_{-\infty}^\infty  \frac{\hat{f}_m(\omega)}{\omega - K} e^{\omega z}  e^{-i\omega x}d\omega&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For m&amp;gt;0 the form of &amp;lt;math&amp;gt;\hat{f}_m(\omega)&amp;lt;/math&amp;gt; can be obtained from the expansion of &amp;lt;math&amp;gt;f_m(x)\,&amp;lt;/math&amp;gt; labelled &amp;lt;math&amp;gt;(*)\,&amp;lt;/math&amp;gt; above by rewriting it as a Fourier transform. Substituting the result into the expression above, &amp;lt;math&amp;gt;\psi_m\,&amp;lt;/math&amp;gt; easily simplifies to:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\psi_m = \frac{(-1)^m}{(m-1)!}  \int_{-\infty}^\infty  \frac{\omega + K}{\omega - K} \omega^{m-1} e^{\omega (z-f)}  e^{-i\omega x}d\omega&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Example: 2D Wave Scattering for a Submerged Horizontal Cylinder (in Infinite Depth)==&lt;br /&gt;
&lt;br /&gt;
***Picture to show problem set up***&lt;br /&gt;
&lt;br /&gt;
The potential for the scattering problem splits as incident and diffracted potentials and also into symmetric and antisymmetric parts.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi = \phi_I + \phi_D = \phi^+ + \phi^-&amp;lt;/math&amp;gt; &lt;br /&gt;
&lt;br /&gt;
where&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \partial_r \phi_I |_{r=a} = - \partial_r \phi_D |_{r=a} &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and &amp;lt;math&amp;gt;\phi^+&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;\phi^-&amp;lt;/math&amp;gt; are the symmetric and antisymmetric parts of &amp;lt;math&amp;gt;\phi&amp;lt;/math&amp;gt; respectively.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For a wave incident from the left we have&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi_I = e^{Kz} e^{iKx} = e^{-Kf}\sum_{n=0}^\infty \frac{(-Kr)^n }{n!} e^{-in\theta}&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi_D = \sum_{n=1}^{\infty}a^n \alpha_n \phi_n^+ + \sum_{n=1}^{\infty}a^n \beta_n \phi_n^- &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi^+ = e^{Kz} \cos(Kx) + \sum_{n=1}^{\infty}a^n \alpha_n \phi_n^+&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
and &amp;lt;math&amp;gt;\phi^- = ie^{Kz} \sin(Kx) + \sum_{n=1}^{\infty}a^n \beta_n \phi_n^- &amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Converting &amp;lt;math&amp;gt;\phi^+&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\phi^-&amp;lt;/math&amp;gt; into the polar coordinate system:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi^+ = e^{-Kf}\sum_{n=0}^\infty \frac{(-Kr)^n }{n!} \cos(n\theta) + \sum_{n=1}^{\infty}a^n \alpha_n \left(\frac{\cos(n\theta)}{r^n} + \sum_{m=0}^\infty A_{mn}^+ r^m \cos(m\theta)\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi^- = ie^{-Kf}\sum_{n=0}^\infty \frac{(-Kr)^n }{n!} \sin(n\theta) + \sum_{n=1}^{\infty}a^n \alpha_n \left(\frac{\sin(n\theta)}{r^n} + \sum_{m=0}^\infty A_{mn}^+ r^m \sin(m\theta)\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The above power series converge for r &amp;lt; 2f and the coefficients are given by&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; A_{mn} = \frac{(-1)^{m+n}}{m!(n-1)!} \quad SingularIntegral_0^\infty \quad \frac{\mu + K}{\mu - K} \mu ^{m+n-1} e^{-2\mu f}d\mu &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Applying the body boundary condition &amp;lt;math&amp;gt;\partial_r \phi^\pm |_{r=a} = 0&amp;lt;/math&amp;gt; and noting that the cosines are orthogonal over &amp;lt;math&amp;gt;\theta \in  (-\pi,\pi]&amp;lt;/math&amp;gt; gives the results&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \alpha_m - \sum_{n=1}^{\infty}a^{n+m} A_{mn} \alpha_n = e^{-Kf}\frac {(-Ka)^m}{m!}; m=1,2,3,\ldots&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \beta_m - \sum_{n=1}^{\infty}a^{n+m} A_{mn} \beta_n = -ie^{-Kf}\frac {(-Ka)^m}{m!}; m=1,2,3,\ldots&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
From which we can see that &amp;lt;math&amp;gt;\beta_n = -i\alpha_n&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The above sums can be truncated at the Nth term yielding NxN system of linear equations that can be solved for the coefficients &amp;lt;math&amp;gt;\alpha_n&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hence we can calculate &amp;lt;math&amp;gt;\phi&amp;lt;/math&amp;gt; from:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi = \phi^+ + \phi^- = \phi_I + \sum_{n=1}^{\infty}a^n \alpha_n ( \phi^+_n + \phi^-_n )&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This expression also gives the values of the reflection and transmission coefficients when we substitute the far field expressions for the symmetric and antisymmetric multipoles. In the far field:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \phi^+_n \sim \frac{2\pi i (-K)^n}{(n-1)!} e^{K(z-f)} e^{\pm Kx} &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math &amp;gt; \phi^-_n \sim \mp \frac{2\pi (-K)^n}{(n-1)!} e^{K(z-f)} e^{\pm Kx} &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Giving:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;R=0, \quad T = 1 + 4 \pi i e^{-Kf}  \sum_{n=1}^{\infty} \alpha_n \frac{(-Ka)^n}{(n-1)!} &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Hydrodynamic Forces ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Linear Water-Wave Theory]]&lt;/div&gt;</summary>
		<author><name>Sean Curry</name></author>
	</entry>
	<entry>
		<id>https://www.wikiwaves.org/index.php?title=Category:Multipole_Methods_for_Linear_Water_Waves&amp;diff=10805</id>
		<title>Category:Multipole Methods for Linear Water Waves</title>
		<link rel="alternate" type="text/html" href="https://www.wikiwaves.org/index.php?title=Category:Multipole_Methods_for_Linear_Water_Waves&amp;diff=10805"/>
		<updated>2010-02-10T02:35:37Z</updated>

		<summary type="html">&lt;p&gt;Sean Curry: /* With the Free Surface BC */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{incomplete pages}}&lt;br /&gt;
&lt;br /&gt;
== Multipole Expansions ==&lt;br /&gt;
&lt;br /&gt;
Multipole expansions are a technique used in linear water wave theory where the potential is represented as a sum of singularities (multipoles) placed within any structures that are present. Multipoles can be constructed with their singularity submerged or on the free surface and these are treated separately.&lt;br /&gt;
&lt;br /&gt;
Multipoles satisfy:&lt;br /&gt;
&lt;br /&gt;
{{Standard linear wave scattering equations without body condition}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{sommerfeld radiation condition two dimensions}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A linear combination of these multipoles can then be made to satisfy the body boundary conditions.&lt;br /&gt;
&lt;br /&gt;
== 2D Exterior Neumann Problem ==&lt;br /&gt;
&lt;br /&gt;
We start by developing the theory for Laplace&#039;s equation without the free surface for&lt;br /&gt;
a disk of radius &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; centered at the origin. The equation in polar coordinates is&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\nabla^2 \phi = \left[   \partial_r^2 + \frac{1}{r}\partial_r + \frac{1}{r^2} \partial_\theta^2  \right] \phi= 0 \quad &lt;br /&gt;
\mathrm{for} \quad r&amp;gt;a &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt; &lt;br /&gt;
&amp;lt;math&amp;gt;\partial_n \phi |_{r=a} = 0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
|\nabla\phi| \rightarrow 0 \quad as \quad r \rightarrow \infty &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
Using [http://en.wikipedia.org/wiki/Separation_of_Variables separation of variables] &lt;br /&gt;
we write&lt;br /&gt;
&amp;lt;math&amp;gt;\phi = R(r)\Theta(\theta).\,&amp;lt;/math&amp;gt; Substituting into Laplace&#039;s equations gives&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{r^2}{R}\partial_r^2 R + \frac{r}{R}\partial_r R = - \frac{1}{\Theta}\partial_\theta^2 \Theta = m^2 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
The equation for &amp;lt;math&amp;gt;\Theta\,&amp;lt;/math&amp;gt; is&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\quad \partial_\theta^2 \Theta = -m^2\Theta &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\Rightarrow \Theta = A(m) \cos(m\theta) + B(m) \sin(m\theta) \quad for \quad  m \neq 0 &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When m=0 the solution is &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \Theta = A(0) + B(0)\theta \,&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt; &amp;lt;math&amp;gt;\Theta(\theta + 2\pi) = \Theta(\theta) \Rightarrow  m \in Z \,\, and \,\, B(0) = 0\,&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The equation for R is &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \quad r^2\partial_r^2 R + r\partial_rR = m^2 R &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
This is a standard DE, to solve we substitute R = r^n giving:&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;n(n-1)r^n + nr^n = m^2r^n \Rightarrow n^2 = m^2 \Rightarrow n= \pm m&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
This gives two independent solutions for all m except m = 0, where we only get the constant solution. &lt;br /&gt;
&lt;br /&gt;
Noting that:&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;  \nabla^2 \left( \ln(r) \right) = \frac{-1}{r^2} + \frac{1}{r^2}  = 0 &amp;lt;/math&amp;gt; &amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So along with the obvious constant function we have two independant sotutions. Thus for m=0 we can write:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;R = C\left(0\right) + D(0) \ln(r)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and for &amp;lt;math&amp;gt;m\neq 0:&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;R = C\left(m\right)r^m + D(m)r^{-m}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The derivatives of the radial eigenfunctions must go to zero indicating zero fluid flow at infinity:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;|\nabla\phi| \rightarrow 0 \,\, as \,\, r \rightarrow \infty \Rightarrow\partial_r R \rightarrow 0 \,\, as \,\, r \rightarrow \infty &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\Rightarrow C(m)= 0 \,\, \forall m &amp;gt; 0 \,\,\, and \,\,\, D(m)=0 \,\, \forall m&amp;lt;0&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hence the general solution can be expressed as:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi = C(0) + D(0) \ln(r) + \sum_{m=1}^\infty \left( a(m)\frac{\cos(m\theta)}{r^m} +  b(m)\frac{\sin(m\theta)}{r^m}  \right) &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We don&#039;t need to include the negative m terms because of the symmetry of the sine and cosine eigenfunctions means these solutions are not independent.&lt;br /&gt;
&lt;br /&gt;
The solution can also be expressed simply in terms of complex exponentials.&lt;br /&gt;
&lt;br /&gt;
== With the Free Surface BC ==&lt;br /&gt;
&lt;br /&gt;
When we introduce the free surface BC we need to find a new set of eigenfunctions. We can use eigenfunctions from the infinite domain problem to construct them.&lt;br /&gt;
&lt;br /&gt;
Note that the origin is in the free surface directly above the center of the disc for cartesian coordinates. However the origin for the polar coordinates is still at the center of the disk.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We add a solution of Laplace&#039;s equation to the eigenfunctions for the infinite domain problem and require that these new functions(multipoles) satisfy the free surface condition.&lt;br /&gt;
&lt;br /&gt;
For m&amp;gt;0&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi_m = \frac{e^{im\theta}}{r^m} + \psi_m&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
and for m=0&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi_0 = \ln\left(\frac{r}{a}\right) + \psi_0 &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Where&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\nabla^2 \psi_m = 0 \quad for \quad m = 0,1,2, \ldots&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We want the multipoles to satisfy the free surface condition&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\partial_z \phi |_{z=0} = K\phi|_{z=0} \quad \forall m = 0,1,2, \ldots&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For m=0 the free surface condition gives our boundary condition for &amp;lt;math&amp;gt;\psi_0\,&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;(\partial_z  - K)\psi_0|_{z=0} = (K - \partial_z) \left(ln\left(\frac{r}{a}\right)\right)|_{z=0} = K \ln\left(\frac{\sqrt{x^2 + f^2}}{a}\right) - \int_0^\infty e^{-\omega f}\cos(\omega x)d\omega = f_0(x)&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where we used the expansion&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\ln(r) = \int_0^\infty (e^{-\omega}- e^{-\omega|z+f|}\cos(\omega x))\frac{d\omega}{\omega}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For m&amp;gt;0 the free surface condition yields the boundary condition for &amp;lt;math&amp;gt;\psi_m\,&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;(\partial_z - K)\psi_m|_{z=0} = \left(K  - \partial_z \right) \left(\frac{e^{im\theta}}{r^m}\right)|_{z=0} &lt;br /&gt;
= \frac{(-1)^m}{(m-1)!} \int_0^\infty(K+\omega)\omega^{m-1}e^{-\omega f}e^{-i\omega x} d\omega = f_m(x)&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where we used the expansion (valid for z&amp;gt;-f)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \frac{e^{im\theta}}{r^m} = \frac{(-1)^m}{(m-1)!} \int_0^\infty\omega^{m-1}e^{-\omega(z+f) }e^{-i\omega x} d\omega &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So our psi functions satisfy the following problem:&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\nabla^2 \psi_m = 0 \quad for \quad m = 0,1,2, \ldots \quad \ldots (1)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
  &lt;br /&gt;
  &amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\psi_m \rightarrow 0 \quad as \quad z \rightarrow -\infty \quad \ldots (2)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
  &lt;br /&gt;
  &amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\partial_z \psi_m |_{z=0} - K\psi_m|_{z=0} = f_m(x) \quad \ldots (3)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We solve for &amp;lt;math&amp;gt;\hat{\psi}_m\,&amp;lt;/math&amp;gt; by taking a Fourier transform in x to simplify Laplace&#039;s equation&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\hat{\psi}_m = \int_{-\infty}^\infty \psi_m e^{i\omega x}dx&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;(1) \Rightarrow \partial_z^2 \hat{\psi}_m = \omega^2\hat{\psi}_m \Rightarrow \hat{\psi}_m = A_m(\omega)e^{\omega z} + B_m(\omega)e^{-\omega z}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;but \quad (2) \Rightarrow B_m(\omega) = 0 \quad \forall m&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;(3) \Rightarrow \partial_z \hat{\psi}_m |_{z=0} - K\hat{\psi}_m|_{z=0} = (\omega - K)\hat{\psi}_m|_{z=0} = (\omega - K)A(\omega) = \hat{f}_m(\omega)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Hence&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;A(\omega) = \frac{\hat{f}_m(\omega)}{\omega - K}  &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and we obtaion &amp;lt;math&amp;gt;\psi\,&amp;lt;/math&amp;gt; by the inverse Fourier transform:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\psi_m = \frac{1}{2\pi}\int_{-\infty}^\infty \hat{\psi}_m e^{-i\omega x}d\omega = \frac{1}{2\pi}\int_{-\infty}^\infty  \frac{\hat{f}_m(\omega)}{\omega - K} e^{\omega z}  e^{-i\omega x}d\omega&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Example: 2D Wave Scattering for a Submerged Horizontal Cylinder (in Infinite Depth)==&lt;br /&gt;
&lt;br /&gt;
***Picture to show problem set up***&lt;br /&gt;
&lt;br /&gt;
The potential for the scattering problem splits as incident and diffracted potentials and also into symmetric and antisymmetric parts.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi = \phi_I + \phi_D = \phi^+ + \phi^-&amp;lt;/math&amp;gt; &lt;br /&gt;
&lt;br /&gt;
where&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \partial_r \phi_I |_{r=a} = - \partial_r \phi_D |_{r=a} &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and &amp;lt;math&amp;gt;\phi^+&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;\phi^-&amp;lt;/math&amp;gt; are the symmetric and antisymmetric parts of &amp;lt;math&amp;gt;\phi&amp;lt;/math&amp;gt; respectively.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For a wave incident from the left we have&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi_I = e^{Kz} e^{iKx} = e^{-Kf}\sum_{n=0}^\infty \frac{(-Kr)^n }{n!} e^{-in\theta}&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi_D = \sum_{n=1}^{\infty}a^n \alpha_n \phi_n^+ + \sum_{n=1}^{\infty}a^n \beta_n \phi_n^- &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi^+ = e^{Kz} \cos(Kx) + \sum_{n=1}^{\infty}a^n \alpha_n \phi_n^+&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
and &amp;lt;math&amp;gt;\phi^- = ie^{Kz} \sin(Kx) + \sum_{n=1}^{\infty}a^n \beta_n \phi_n^- &amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Converting &amp;lt;math&amp;gt;\phi^+&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\phi^-&amp;lt;/math&amp;gt; into the polar coordinate system:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi^+ = e^{-Kf}\sum_{n=0}^\infty \frac{(-Kr)^n }{n!} \cos(n\theta) + \sum_{n=1}^{\infty}a^n \alpha_n \left(\frac{\cos(n\theta)}{r^n} + \sum_{m=0}^\infty A_{mn}^+ r^m \cos(m\theta)\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi^- = ie^{-Kf}\sum_{n=0}^\infty \frac{(-Kr)^n }{n!} \sin(n\theta) + \sum_{n=1}^{\infty}a^n \alpha_n \left(\frac{\sin(n\theta)}{r^n} + \sum_{m=0}^\infty A_{mn}^+ r^m \sin(m\theta)\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The above power series converge for r &amp;lt; 2f and the coefficients are given by&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; A_{mn} = \frac{(-1)^{m+n}}{m!(n-1)!} \quad SingularIntegral_0^\infty \quad \frac{\mu + K}{\mu - K} \mu ^{m+n-1} e^{-2\mu f}d\mu &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Applying the body boundary condition &amp;lt;math&amp;gt;\partial_r \phi^\pm |_{r=a} = 0&amp;lt;/math&amp;gt; and noting that the cosines are orthogonal over &amp;lt;math&amp;gt;\theta \in  (-\pi,\pi]&amp;lt;/math&amp;gt; gives the results&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \alpha_m - \sum_{n=1}^{\infty}a^{n+m} A_{mn} \alpha_n = e^{-Kf}\frac {(-Ka)^m}{m!}; m=1,2,3,\ldots&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \beta_m - \sum_{n=1}^{\infty}a^{n+m} A_{mn} \beta_n = -ie^{-Kf}\frac {(-Ka)^m}{m!}; m=1,2,3,\ldots&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
From which we can see that &amp;lt;math&amp;gt;\beta_n = -i\alpha_n&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The above sums can be truncated at the Nth term yielding NxN system of linear equations that can be solved for the coefficients &amp;lt;math&amp;gt;\alpha_n&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hence we can calculate &amp;lt;math&amp;gt;\phi&amp;lt;/math&amp;gt; from:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi = \phi^+ + \phi^- = \phi_I + \sum_{n=1}^{\infty}a^n \alpha_n ( \phi^+_n + \phi^-_n )&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This expression also gives the values of the reflection and transmission coefficients when we substitute the far field expressions for the symmetric and antisymmetric multipoles. In the far field:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \phi^+_n \sim \frac{2\pi i (-K)^n}{(n-1)!} e^{K(z-f)} e^{\pm Kx} &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math &amp;gt; \phi^-_n \sim \mp \frac{2\pi (-K)^n}{(n-1)!} e^{K(z-f)} e^{\pm Kx} &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Giving:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;R=0, \quad T = 1 + 4 \pi i e^{-Kf}  \sum_{n=1}^{\infty} \alpha_n \frac{(-Ka)^n}{(n-1)!} &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Hydrodynamic Forces ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Linear Water-Wave Theory]]&lt;/div&gt;</summary>
		<author><name>Sean Curry</name></author>
	</entry>
	<entry>
		<id>https://www.wikiwaves.org/index.php?title=Category:Multipole_Methods_for_Linear_Water_Waves&amp;diff=10803</id>
		<title>Category:Multipole Methods for Linear Water Waves</title>
		<link rel="alternate" type="text/html" href="https://www.wikiwaves.org/index.php?title=Category:Multipole_Methods_for_Linear_Water_Waves&amp;diff=10803"/>
		<updated>2010-02-10T02:25:34Z</updated>

		<summary type="html">&lt;p&gt;Sean Curry: /* With the Free Surface BC */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{incomplete pages}}&lt;br /&gt;
&lt;br /&gt;
== Multipole Expansions ==&lt;br /&gt;
&lt;br /&gt;
Multipole expansions are a technique used in linear water wave theory where the potential is represented as a sum of singularities (multipoles) placed within any structures that are present. Multipoles can be constructed with their singularity submerged or on the free surface and these are treated separately.&lt;br /&gt;
&lt;br /&gt;
Multipoles satisfy:&lt;br /&gt;
&lt;br /&gt;
{{Standard linear wave scattering equations without body condition}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{sommerfeld radiation condition two dimensions}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A linear combination of these multipoles can then be made to satisfy the body boundary conditions.&lt;br /&gt;
&lt;br /&gt;
== 2D Exterior Neumann Problem ==&lt;br /&gt;
&lt;br /&gt;
We start by developing the theory for Laplace&#039;s equation without the free surface for&lt;br /&gt;
a disk of radius &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; centered at the origin. The equation in polar coordinates is&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\nabla^2 \phi = \left[   \partial_r^2 + \frac{1}{r}\partial_r + \frac{1}{r^2} \partial_\theta^2  \right] \phi= 0 \quad &lt;br /&gt;
\mathrm{for} \quad r&amp;gt;a &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt; &lt;br /&gt;
&amp;lt;math&amp;gt;\partial_n \phi |_{r=a} = 0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
|\nabla\phi| \rightarrow 0 \quad as \quad r \rightarrow \infty &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
Using [http://en.wikipedia.org/wiki/Separation_of_Variables separation of variables] &lt;br /&gt;
we write&lt;br /&gt;
&amp;lt;math&amp;gt;\phi = R(r)\Theta(\theta).\,&amp;lt;/math&amp;gt; Substituting into Laplace&#039;s equations gives&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{r^2}{R}\partial_r^2 R + \frac{r}{R}\partial_r R = - \frac{1}{\Theta}\partial_\theta^2 \Theta = m^2 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
The equation for &amp;lt;math&amp;gt;\Theta\,&amp;lt;/math&amp;gt; is&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\quad \partial_\theta^2 \Theta = -m^2\Theta &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\Rightarrow \Theta = A(m) \cos(m\theta) + B(m) \sin(m\theta) \quad for \quad  m \neq 0 &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When m=0 the solution is &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \Theta = A(0) + B(0)\theta \,&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt; &amp;lt;math&amp;gt;\Theta(\theta + 2\pi) = \Theta(\theta) \Rightarrow  m \in Z \,\, and \,\, B(0) = 0\,&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The equation for R is &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \quad r^2\partial_r^2 R + r\partial_rR = m^2 R &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
This is a standard DE, to solve we substitute R = r^n giving:&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;n(n-1)r^n + nr^n = m^2r^n \Rightarrow n^2 = m^2 \Rightarrow n= \pm m&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
This gives two independent solutions for all m except m = 0, where we only get the constant solution. &lt;br /&gt;
&lt;br /&gt;
Noting that:&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;  \nabla^2 \left( \ln(r) \right) = \frac{-1}{r^2} + \frac{1}{r^2}  = 0 &amp;lt;/math&amp;gt; &amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So along with the obvious constant function we have two independant sotutions. Thus for m=0 we can write:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;R = C\left(0\right) + D(0) \ln(r)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and for &amp;lt;math&amp;gt;m\neq 0:&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;R = C\left(m\right)r^m + D(m)r^{-m}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The derivatives of the radial eigenfunctions must go to zero indicating zero fluid flow at infinity:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;|\nabla\phi| \rightarrow 0 \,\, as \,\, r \rightarrow \infty \Rightarrow\partial_r R \rightarrow 0 \,\, as \,\, r \rightarrow \infty &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\Rightarrow C(m)= 0 \,\, \forall m &amp;gt; 0 \,\,\, and \,\,\, D(m)=0 \,\, \forall m&amp;lt;0&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hence the general solution can be expressed as:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi = C(0) + D(0) \ln(r) + \sum_{m=1}^\infty \left( a(m)\frac{\cos(m\theta)}{r^m} +  b(m)\frac{\sin(m\theta)}{r^m}  \right) &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We don&#039;t need to include the negative m terms because of the symmetry of the sine and cosine eigenfunctions means these solutions are not independent.&lt;br /&gt;
&lt;br /&gt;
The solution can also be expressed simply in terms of complex exponentials.&lt;br /&gt;
&lt;br /&gt;
== With the Free Surface BC ==&lt;br /&gt;
&lt;br /&gt;
When we introduce the free surface BC we need to find a new set of eigenfunctions. We can use eigenfunctions from the infinite domain problem to construct them.&lt;br /&gt;
&lt;br /&gt;
Note that the origin is in the free surface directly above the center of the disc for cartesian coordinates. However the origin for the polar coordinates is still at the center of the disk.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We add a solution of Laplace&#039;s equation to the eigenfunctions for the infinite domain problem and require that these new functions(multipoles) satisfy the free surface condition.&lt;br /&gt;
&lt;br /&gt;
For m&amp;gt;0&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi_m = \frac{e^{im\theta}}{r^m} + \psi_m&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
and for m=0&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi_0 = \ln\left(\frac{r}{a}\right) + \psi_0 &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Where&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\nabla^2 \psi_m = 0 \quad for \quad m = 0,1,2, \ldots&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We want&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\partial_z \phi |_{z=0} = K\phi|_{z=0} \quad \forall m = 0,1,2, \ldots&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For m=0&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\partial_z \psi_0 |_{z=0} - K\psi_0|_{z=0} = K\ln\left(\frac{r}{a}\right)|_{z=0}  - \partial_z \left(ln\left(\frac{r}{a}\right)\right)|_{z=0} = K \ln\left(\frac{\sqrt{x^2 + f^2}}{a}\right) - \int_0^\infty e^{-\omega f}\cos(\omega x)d\omega = f_0(x)&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\ln(r) = \int_0^\infty (e^{-\omega}- e^{-\omega|z+f|}\cos(\omega x))\frac{d\omega}{\omega}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For m&amp;gt;0&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\partial_z \psi_m |_{z=0} - K\psi_m|_{z=0} = K  \frac{e^{im\theta}}{r^m}  |_{z=0}  - \partial_z \left(\frac{e^{im\theta}}{r^m}\right)|_{z=0} &lt;br /&gt;
= \frac{(-1)^m}{(m-1)!} \int_0^\infty(K+\omega)\omega^{m-1}e^{-\omega f}e^{-i\omega x} d\omega = f_m(x)&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using the expansion (valid for z&amp;gt;-f)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \frac{e^{im\theta}}{r^m} = \frac{(-1)^m}{(m-1)!} \int_0^\infty\omega^{m-1}e^{-\omega(z+f) }e^{-i\omega x} d\omega &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So our psi functions satisfy&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\nabla^2 \psi_m = 0 \quad for \quad m = 0,1,2, \ldots \quad \ldots (1)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
  &lt;br /&gt;
  &amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\psi_m \rightarrow 0 \quad as \quad z \rightarrow -\infty \quad \ldots (2)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
  &lt;br /&gt;
  &amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\partial_z \psi_m |_{z=0} - K\psi_m|_{z=0} = f_m(x) \quad \ldots (3)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Taking a Fourier transform in x&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\hat{\psi}_m = \int_{-\infty}^\infty \psi_m e^{i\omega x}dx&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;(1) \Rightarrow \partial_z^2 \hat{\psi}_m = \omega^2\hat{\psi}_m \Rightarrow \hat{\psi}_m = A_m(\omega)e^{\omega z} + B_m(\omega)e^{-\omega z}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;but \quad (2) \Rightarrow B_m(\omega) = 0 \quad \forall m&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;(3) \Rightarrow \partial_z \hat{\psi}_m |_{z=0} - K\hat{\psi}_m|_{z=0} = (\omega - K)\hat{\psi}_m|_{z=0} = (\omega - K)A(\omega) = \hat{f}_m(\omega)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Hence&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;A(\omega) = \frac{\hat{f}_m(\omega)}{\omega - K}  &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\psi_m = \frac{1}{2\pi}\int_{-\infty}^\infty \hat{\psi}_m e^{-i\omega x}d\omega = \frac{1}{2\pi}\int_{-\infty}^\infty  \frac{\hat{f}_m(\omega)}{\omega - K} e^{\omega z}  e^{-i\omega x}d\omega&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Example: 2D Wave Scattering for a Submerged Horizontal Cylinder (in Infinite Depth)==&lt;br /&gt;
&lt;br /&gt;
***Picture to show problem set up***&lt;br /&gt;
&lt;br /&gt;
The potential for the scattering problem splits as incident and diffracted potentials and also into symmetric and antisymmetric parts.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi = \phi_I + \phi_D = \phi^+ + \phi^-&amp;lt;/math&amp;gt; &lt;br /&gt;
&lt;br /&gt;
where&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \partial_r \phi_I |_{r=a} = - \partial_r \phi_D |_{r=a} &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and &amp;lt;math&amp;gt;\phi^+&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;\phi^-&amp;lt;/math&amp;gt; are the symmetric and antisymmetric parts of &amp;lt;math&amp;gt;\phi&amp;lt;/math&amp;gt; respectively.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For a wave incident from the left we have&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi_I = e^{Kz} e^{iKx} = e^{-Kf}\sum_{n=0}^\infty \frac{(-Kr)^n }{n!} e^{-in\theta}&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi_D = \sum_{n=1}^{\infty}a^n \alpha_n \phi_n^+ + \sum_{n=1}^{\infty}a^n \beta_n \phi_n^- &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi^+ = e^{Kz} \cos(Kx) + \sum_{n=1}^{\infty}a^n \alpha_n \phi_n^+&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
and &amp;lt;math&amp;gt;\phi^- = ie^{Kz} \sin(Kx) + \sum_{n=1}^{\infty}a^n \beta_n \phi_n^- &amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Converting &amp;lt;math&amp;gt;\phi^+&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\phi^-&amp;lt;/math&amp;gt; into the polar coordinate system:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi^+ = e^{-Kf}\sum_{n=0}^\infty \frac{(-Kr)^n }{n!} \cos(n\theta) + \sum_{n=1}^{\infty}a^n \alpha_n \left(\frac{\cos(n\theta)}{r^n} + \sum_{m=0}^\infty A_{mn}^+ r^m \cos(m\theta)\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi^- = ie^{-Kf}\sum_{n=0}^\infty \frac{(-Kr)^n }{n!} \sin(n\theta) + \sum_{n=1}^{\infty}a^n \alpha_n \left(\frac{\sin(n\theta)}{r^n} + \sum_{m=0}^\infty A_{mn}^+ r^m \sin(m\theta)\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The above power series converge for r &amp;lt; 2f and the coefficients are given by&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; A_{mn} = \frac{(-1)^{m+n}}{m!(n-1)!} \quad SingularIntegral_0^\infty \quad \frac{\mu + K}{\mu - K} \mu ^{m+n-1} e^{-2\mu f}d\mu &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Applying the body boundary condition &amp;lt;math&amp;gt;\partial_r \phi^\pm |_{r=a} = 0&amp;lt;/math&amp;gt; and noting that the cosines are orthogonal over &amp;lt;math&amp;gt;\theta \in  (-\pi,\pi]&amp;lt;/math&amp;gt; gives the results&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \alpha_m - \sum_{n=1}^{\infty}a^{n+m} A_{mn} \alpha_n = e^{-Kf}\frac {(-Ka)^m}{m!}; m=1,2,3,\ldots&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \beta_m - \sum_{n=1}^{\infty}a^{n+m} A_{mn} \beta_n = -ie^{-Kf}\frac {(-Ka)^m}{m!}; m=1,2,3,\ldots&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
From which we can see that &amp;lt;math&amp;gt;\beta_n = -i\alpha_n&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The above sums can be truncated at the Nth term yielding NxN system of linear equations that can be solved for the coefficients &amp;lt;math&amp;gt;\alpha_n&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hence we can calculate &amp;lt;math&amp;gt;\phi&amp;lt;/math&amp;gt; from:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi = \phi^+ + \phi^- = \phi_I + \sum_{n=1}^{\infty}a^n \alpha_n ( \phi^+_n + \phi^-_n )&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This expression also gives the values of the reflection and transmission coefficients when we substitute the far field expressions for the symmetric and antisymmetric multipoles. In the far field:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \phi^+_n \sim \frac{2\pi i (-K)^n}{(n-1)!} e^{K(z-f)} e^{\pm Kx} &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math &amp;gt; \phi^-_n \sim \mp \frac{2\pi (-K)^n}{(n-1)!} e^{K(z-f)} e^{\pm Kx} &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Giving:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;R=0, \quad T = 1 + 4 \pi i e^{-Kf}  \sum_{n=1}^{\infty} \alpha_n \frac{(-Ka)^n}{(n-1)!} &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Hydrodynamic Forces ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Linear Water-Wave Theory]]&lt;/div&gt;</summary>
		<author><name>Sean Curry</name></author>
	</entry>
	<entry>
		<id>https://www.wikiwaves.org/index.php?title=Category:Multipole_Methods_for_Linear_Water_Waves&amp;diff=10787</id>
		<title>Category:Multipole Methods for Linear Water Waves</title>
		<link rel="alternate" type="text/html" href="https://www.wikiwaves.org/index.php?title=Category:Multipole_Methods_for_Linear_Water_Waves&amp;diff=10787"/>
		<updated>2010-02-09T21:11:57Z</updated>

		<summary type="html">&lt;p&gt;Sean Curry: /* With the Free Surface BC */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{incomplete pages}}&lt;br /&gt;
&lt;br /&gt;
== Multipole Expansions ==&lt;br /&gt;
&lt;br /&gt;
Multipole expansions are a technique used in linear water wave theory where the potential is represented as a sum of singularities (multipoles) placed within any structures that are present. Multipoles can be constructed with their singularity submerged or on the free surface and these are treated separately.&lt;br /&gt;
&lt;br /&gt;
Multipoles satisfy:&lt;br /&gt;
&lt;br /&gt;
{{Standard linear wave scattering equations without body condition}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{sommerfeld radiation condition two dimensions}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A linear combination of these multipoles can then be made to satisfy the body boundary conditions.&lt;br /&gt;
&lt;br /&gt;
== 2D Exterior Neumann Problem ==&lt;br /&gt;
&lt;br /&gt;
We start by developing the theory for Laplace&#039;s equation without the free surface for&lt;br /&gt;
a disk of radius &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; centered at the origin. The equation in polar coordinates is&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\nabla^2 \phi = \left[   \partial_r^2 + \frac{1}{r}\partial_r + \frac{1}{r^2} \partial_\theta^2  \right] \phi= 0 \quad &lt;br /&gt;
\mathrm{for} \quad r&amp;gt;a &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt; &lt;br /&gt;
&amp;lt;math&amp;gt;\partial_n \phi |_{r=a} = 0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
|\nabla\phi| \rightarrow 0 \quad as \quad r \rightarrow \infty &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
Using [http://en.wikipedia.org/wiki/Separation_of_Variables separation of variables] &lt;br /&gt;
we write&lt;br /&gt;
&amp;lt;math&amp;gt;\phi = R(r)\Theta(\theta).\,&amp;lt;/math&amp;gt; Substituting into Laplace&#039;s equations gives&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{r^2}{R}\partial_r^2 R + \frac{r}{R}\partial_r R = - \frac{1}{\Theta}\partial_\theta^2 \Theta = m^2 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
The equation for &amp;lt;math&amp;gt;\Theta\,&amp;lt;/math&amp;gt; is&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\quad \partial_\theta^2 \Theta = -m^2\Theta &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\Rightarrow \Theta = A(m) \cos(m\theta) + B(m) \sin(m\theta) \quad for \quad  m \neq 0 &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When m=0 the solution is &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \Theta = A(0) + B(0)\theta \,&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt; &amp;lt;math&amp;gt;\Theta(\theta + 2\pi) = \Theta(\theta) \Rightarrow  m \in Z \,\, and \,\, B(0) = 0\,&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The equation for R is &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \quad r^2\partial_r^2 R + r\partial_rR = m^2 R &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
This is a standard DE, to solve we substitute R = r^n giving:&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;n(n-1)r^n + nr^n = m^2r^n \Rightarrow n^2 = m^2 \Rightarrow n= \pm m&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
This gives two independent solutions for all m except m = 0, where we only get the constant solution. &lt;br /&gt;
&lt;br /&gt;
Noting that:&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;  \nabla^2 \left( \ln(r) \right) = \frac{-1}{r^2} + \frac{1}{r^2}  = 0 &amp;lt;/math&amp;gt; &amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So along with the obvious constant function we have two independant sotutions. Thus for m=0 we can write:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;R = C\left(0\right) + D(0) \ln(r)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and for &amp;lt;math&amp;gt;m\neq 0:&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;R = C\left(m\right)r^m + D(m)r^{-m}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The derivatives of the radial eigenfunctions must go to zero indicating zero fluid flow at infinity:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;|\nabla\phi| \rightarrow 0 \,\, as \,\, r \rightarrow \infty \Rightarrow\partial_r R \rightarrow 0 \,\, as \,\, r \rightarrow \infty &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\Rightarrow C(m)= 0 \,\, \forall m &amp;gt; 0 \,\,\, and \,\,\, D(m)=0 \,\, \forall m&amp;lt;0&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hence the general solution can be expressed as:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi = C(0) + D(0) \ln(r) + \sum_{m=1}^\infty \left( a(m)\frac{\cos(m\theta)}{r^m} +  b(m)\frac{\sin(m\theta)}{r^m}  \right) &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We don&#039;t need to include the negative m terms because of the symmetry of the sine and cosine eigenfunctions means these solutions are not independent.&lt;br /&gt;
&lt;br /&gt;
The solution can also be expressed simply in terms of complex exponentials.&lt;br /&gt;
&lt;br /&gt;
== With the Free Surface BC ==&lt;br /&gt;
&lt;br /&gt;
When we introduce the free surface BC we need to find a new set of eigenfunctions. We can use eigenfunctions from the infinite domain problem to construct them.&lt;br /&gt;
&lt;br /&gt;
We write&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi_m = \frac{e^{im\theta}}{r^m} + \psi_m &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi_0 = \ln\left(\frac{r}{a}\right) + \psi_0 &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Where&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\nabla^2 \psi_m = 0 \quad for \quad m = 0,1,2, \ldots&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We want&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\partial_z \phi |_{z=f} = K\phi|_{z=f} \quad \forall m = 0,1,2, \ldots&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For m=0&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\partial_z \psi_0 |_{z=f} - K\psi_0|_{z=f} = K\ln\left(\frac{r}{a}\right)|_{z=f}  - \partial_z \left(ln\left(\frac{r}{a}\right)\right)|_{z=f} = K \ln\left(\frac{\sqrt{x^2 + f^2}}{a}\right) - \int_0^\infty e^{-2\omega f}\cos(\omega x)d\omega = f_0(x)&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\ln(r) = \int_0^\infty (e^{-\omega}- e^{-\omega|z+f|}\cos(\omega x))\frac{d\omega}{\omega}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For m&amp;gt;0&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\partial_z \psi_m |_{z=f} - K\psi_m|_{z=f} = K  \frac{e^{im\theta}}{r^m}  |_{z=f}  - \partial_z \left(\frac{e^{im\theta}}{r^m}\right)|_{z=f} &lt;br /&gt;
= \frac{(-1)^m}{(m-1)!} \int_0^\infty(K+\omega)\omega^{m-1}e^{-2\omega f}e^{-i\omega x} d\omega = f_m(x)&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \frac{e^{im\theta}}{r^m} = \frac{(-1)^m}{(m-1)!} \int_0^\infty\omega^{m-1}e^{-\omega(z+f) }e^{-i\omega x} d\omega &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So our psi functions satisfy&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\nabla^2 \psi_m = 0 \quad for \quad m = 0,1,2, \ldots \quad \ldots (1)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
  &lt;br /&gt;
  &amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\psi_m \rightarrow 0 \quad as \quad z \rightarrow -\infty \quad \ldots (2)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
  &lt;br /&gt;
  &amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\partial_z \psi_m |_{z=f} - K\psi_m|_{z=f} = f_m(x) \quad \ldots (3)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Taking a Fourier transform in x&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\hat{\psi}_m = \int_{-\infty}^\infty \psi_m e^{i\omega x}dx&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;(1) \Rightarrow \partial_z^2 \hat{\psi}_m = \omega^2\hat{\psi}_m \Rightarrow \hat{\psi}_m = A_m(\omega)e^{\omega z} + B_m(\omega)e^{-\omega z}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;but \quad (2) \Rightarrow B_m(\omega) = 0 \quad \forall m&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;(3) \Rightarrow \partial_z \hat{\psi}_m |_{z=f} - K\hat{\psi}_m|_{z=f} = (\omega - K)\hat{\psi}_m|_{z=f} = (\omega - K)A(\omega)e^{\omega f} = \hat{f}_m(\omega)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Hence&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;A(\omega) = \frac{\hat{f}_m(\omega)}{\omega - K} e^{-\omega f} &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\psi_m = \frac{1}{2\pi}\int_{-\infty}^\infty \hat{\psi}_m e^{-i\omega x}d\omega = \frac{1}{2\pi}\int_{-\infty}^\infty  \frac{\hat{f}_m(\omega)}{\omega - K} e^{\omega (z-f)}  e^{-i\omega x}d\omega&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Example: 2D Wave Scattering for a Submerged Horizontal Cylinder (in Infinite Depth)==&lt;br /&gt;
&lt;br /&gt;
***Picture to show problem set up***&lt;br /&gt;
&lt;br /&gt;
The potential for the scattering problem splits as incident and diffracted potentials and also into symmetric and antisymmetric parts.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi = \phi_I + \phi_D = \phi^+ + \phi^-&amp;lt;/math&amp;gt; &lt;br /&gt;
&lt;br /&gt;
where&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \partial_r \phi_I |_{r=a} = - \partial_r \phi_D |_{r=a} &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and &amp;lt;math&amp;gt;\phi^+&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;\phi^-&amp;lt;/math&amp;gt; are the symmetric and antisymmetric parts of &amp;lt;math&amp;gt;\phi&amp;lt;/math&amp;gt; respectively.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For a wave incident from the left we have&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi_I = e^{Kz} e^{iKx} = e^{-Kf}\sum_{n=0}^\infty \frac{(-Kr)^n }{n!} e^{-in\theta}&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi_D = \sum_{n=1}^{\infty}a^n \alpha_n \phi_n^+ + \sum_{n=1}^{\infty}a^n \beta_n \phi_n^- &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi^+ = e^{Kz} \cos(Kx) + \sum_{n=1}^{\infty}a^n \alpha_n \phi_n^+&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
and &amp;lt;math&amp;gt;\phi^- = ie^{Kz} \sin(Kx) + \sum_{n=1}^{\infty}a^n \beta_n \phi_n^- &amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Converting &amp;lt;math&amp;gt;\phi^+&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\phi^-&amp;lt;/math&amp;gt; into the polar coordinate system:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi^+ = e^{-Kf}\sum_{n=0}^\infty \frac{(-Kr)^n }{n!} \cos(n\theta) + \sum_{n=1}^{\infty}a^n \alpha_n \left(\frac{\cos(n\theta)}{r^n} + \sum_{m=0}^\infty A_{mn}^+ r^m \cos(m\theta)\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi^- = ie^{-Kf}\sum_{n=0}^\infty \frac{(-Kr)^n }{n!} \sin(n\theta) + \sum_{n=1}^{\infty}a^n \alpha_n \left(\frac{\sin(n\theta)}{r^n} + \sum_{m=0}^\infty A_{mn}^+ r^m \sin(m\theta)\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The above power series converge for r &amp;lt; 2f and the coefficients are given by&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; A_{mn} = \frac{(-1)^{m+n}}{m!(n-1)!} \quad SingularIntegral_0^\infty \quad \frac{\mu + K}{\mu - K} \mu ^{m+n-1} e^{-2\mu f}d\mu &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Applying the body boundary condition &amp;lt;math&amp;gt;\partial_r \phi^\pm |_{r=a} = 0&amp;lt;/math&amp;gt; and noting that the cosines are orthogonal over &amp;lt;math&amp;gt;\theta \in  (-\pi,\pi]&amp;lt;/math&amp;gt; gives the results&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \alpha_m - \sum_{n=1}^{\infty}a^{n+m} A_{mn} \alpha_n = e^{-Kf}\frac {(-Ka)^m}{m!}; m=1,2,3,\ldots&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \beta_m - \sum_{n=1}^{\infty}a^{n+m} A_{mn} \beta_n = -ie^{-Kf}\frac {(-Ka)^m}{m!}; m=1,2,3,\ldots&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
From which we can see that &amp;lt;math&amp;gt;\beta_n = -i\alpha_n&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The above sums can be truncated at the Nth term yielding NxN system of linear equations that can be solved for the coefficients &amp;lt;math&amp;gt;\alpha_n&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hence we can calculate &amp;lt;math&amp;gt;\phi&amp;lt;/math&amp;gt; from:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi = \phi^+ + \phi^- = \phi_I + \sum_{n=1}^{\infty}a^n \alpha_n ( \phi^+_n + \phi^-_n )&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This expression also gives the values of the reflection and transmission coefficients when we substitute the far field expressions for the symmetric and antisymmetric multipoles. In the far field:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \phi^+_n \sim \frac{2\pi i (-K)^n}{(n-1)!} e^{K(z-f)} e^{\pm Kx} &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math &amp;gt; \phi^-_n \sim \mp \frac{2\pi (-K)^n}{(n-1)!} e^{K(z-f)} e^{\pm Kx} &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Giving:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;R=0, \quad T = 1 + 4 \pi i e^{-Kf}  \sum_{n=1}^{\infty} \alpha_n \frac{(-Ka)^n}{(n-1)!} &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Hydrodynamic Forces ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Linear Water-Wave Theory]]&lt;/div&gt;</summary>
		<author><name>Sean Curry</name></author>
	</entry>
	<entry>
		<id>https://www.wikiwaves.org/index.php?title=Category:Multipole_Methods_for_Linear_Water_Waves&amp;diff=10785</id>
		<title>Category:Multipole Methods for Linear Water Waves</title>
		<link rel="alternate" type="text/html" href="https://www.wikiwaves.org/index.php?title=Category:Multipole_Methods_for_Linear_Water_Waves&amp;diff=10785"/>
		<updated>2010-02-09T01:49:46Z</updated>

		<summary type="html">&lt;p&gt;Sean Curry: /* 2D Exterior Neumann Problem */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{incomplete pages}}&lt;br /&gt;
&lt;br /&gt;
== Multipole Expansions ==&lt;br /&gt;
&lt;br /&gt;
Multipole expansions are a technique used in linear water wave theory where the potential is represented as a sum of singularities (multipoles) placed within any structures that are present. Multipoles can be constructed with their singularity submerged or on the free surface and these are treated separately.&lt;br /&gt;
&lt;br /&gt;
Multipoles satisfy:&lt;br /&gt;
&lt;br /&gt;
{{Standard linear wave scattering equations without body condition}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{sommerfeld radiation condition two dimensions}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A linear combination of these multipoles can then be made to satisfy the body boundary conditions.&lt;br /&gt;
&lt;br /&gt;
== 2D Exterior Neumann Problem ==&lt;br /&gt;
&lt;br /&gt;
We start by developing the theory for Laplace&#039;s equation without the free surface for&lt;br /&gt;
a disk of radius &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; centered at the origin. The equation in polar coordinates is&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\nabla^2 \phi = \left[   \partial_r^2 + \frac{1}{r}\partial_r + \frac{1}{r^2} \partial_\theta^2  \right] \phi= 0 \quad &lt;br /&gt;
\mathrm{for} \quad r&amp;gt;a &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt; &lt;br /&gt;
&amp;lt;math&amp;gt;\partial_n \phi |_{r=a} = 0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
|\nabla\phi| \rightarrow 0 \quad as \quad r \rightarrow \infty &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
Using [http://en.wikipedia.org/wiki/Separation_of_Variables separation of variables] &lt;br /&gt;
we write&lt;br /&gt;
&amp;lt;math&amp;gt;\phi = R(r)\Theta(\theta).\,&amp;lt;/math&amp;gt; Substituting into Laplace&#039;s equations gives&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{r^2}{R}\partial_r^2 R + \frac{r}{R}\partial_r R = - \frac{1}{\Theta}\partial_\theta^2 \Theta = m^2 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
The equation for &amp;lt;math&amp;gt;\Theta\,&amp;lt;/math&amp;gt; is&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\quad \partial_\theta^2 \Theta = -m^2\Theta &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\Rightarrow \Theta = A(m) \cos(m\theta) + B(m) \sin(m\theta) \quad for \quad  m \neq 0 &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When m=0 the solution is &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \Theta = A(0) + B(0)\theta \,&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt; &amp;lt;math&amp;gt;\Theta(\theta + 2\pi) = \Theta(\theta) \Rightarrow  m \in Z \,\, and \,\, B(0) = 0\,&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The equation for R is &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \quad r^2\partial_r^2 R + r\partial_rR = m^2 R &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
This is a standard DE, to solve we substitute R = r^n giving:&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;n(n-1)r^n + nr^n = m^2r^n \Rightarrow n^2 = m^2 \Rightarrow n= \pm m&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
This gives two independent solutions for all m except m = 0, where we only get the constant solution. &lt;br /&gt;
&lt;br /&gt;
Noting that:&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;  \nabla^2 \left( \ln(r) \right) = \frac{-1}{r^2} + \frac{1}{r^2}  = 0 &amp;lt;/math&amp;gt; &amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So along with the obvious constant function we have two independant sotutions. Thus for m=0 we can write:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;R = C\left(0\right) + D(0) \ln(r)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and for &amp;lt;math&amp;gt;m\neq 0:&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;R = C\left(m\right)r^m + D(m)r^{-m}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The derivatives of the radial eigenfunctions must go to zero indicating zero fluid flow at infinity:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;|\nabla\phi| \rightarrow 0 \,\, as \,\, r \rightarrow \infty \Rightarrow\partial_r R \rightarrow 0 \,\, as \,\, r \rightarrow \infty &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\Rightarrow C(m)= 0 \,\, \forall m &amp;gt; 0 \,\,\, and \,\,\, D(m)=0 \,\, \forall m&amp;lt;0&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hence the general solution can be expressed as:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi = C(0) + D(0) \ln(r) + \sum_{m=1}^\infty \left( a(m)\frac{\cos(m\theta)}{r^m} +  b(m)\frac{\sin(m\theta)}{r^m}  \right) &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We don&#039;t need to include the negative m terms because of the symmetry of the sine and cosine eigenfunctions means these solutions are not independent.&lt;br /&gt;
&lt;br /&gt;
The solution can also be expressed simply in terms of complex exponentials.&lt;br /&gt;
&lt;br /&gt;
== With the Free Surface BC ==&lt;br /&gt;
&lt;br /&gt;
When we introduce the free surface BC we need to find a new set of eigenfunctions. We can use eigenfunctions from the infinite domain problem to construct them.&lt;br /&gt;
&lt;br /&gt;
We write&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi_m = \frac{e^{im\theta}}{r^m} + \psi_m &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi_0 = \ln\left(\frac{r}{a}\right) + \psi_0 &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Where&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\nabla^2 \psi_m = 0 \quad for \quad m = 0,1,2, \ldots&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We want&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\partial_z \phi |_{z=f} = K\phi|_{z=f} \quad \forall m = 0,1,2, \ldots&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For m=0&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\partial_z \psi_0 |_{z=f} - K\psi_0|_{z=f} = K\ln\left(\frac{r}{a}\right)|_{z=f}  - \partial_z \left(ln\left(\frac{r}{a}\right)\right)|_{z=f} = K \ln\left(\frac{\sqrt{x^2 + f^2}}{a}\right) - \int_0^\infty e^{-2\mu f}\cos(\mu x)d\mu = f_0(x)&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\ln(r) = \int_0^\infty (e^{-\mu}- e^{-\mu|z+f|}\cos(\mu x))\frac{d\mu}{\mu}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For m&amp;gt;0&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\partial_z \psi_m |_{z=f} - K\psi_m|_{z=f} = K  \frac{e^{im\theta}}{r^m}  |_{z=f}  - \partial_z \left(\frac{e^{im\theta}}{r^m}\right)|_{z=f} = \frac{e^{im\tan(-x/f)}}{(x^2+f^2)^{m/2}} \left(  K + \frac{imx\ln(f)}{1-(x/f)^2} + \frac {mf}{x^2 + f^2}    \right) = f_m(x)&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So our psi functions satisfy&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\nabla^2 \psi_m = 0 \quad for \quad m = 0,1,2, \ldots \quad \ldots (1)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
  &lt;br /&gt;
  &amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\psi_m \rightarrow 0 \quad as \quad z \rightarrow -\infty \quad \ldots (2)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
  &lt;br /&gt;
  &amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\partial_z \psi_m |_{z=f} - K\psi_m|_{z=f} = f_m(x) \quad \ldots (3)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Taking a Fourier transform in x&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\hat{\psi}_m = \int_{-\infty}^\infty \psi_m e^{i\omega x}dx&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;(1) \Rightarrow \partial_z^2 \hat{\psi}_m = \omega^2\hat{\psi}_m \Rightarrow \hat{\psi}_m = A_m(\omega)e^{\omega z} + B_m(\omega)e^{-\omega z}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;but \quad (2) \Rightarrow B_m(\omega) = 0 \quad \forall m&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;(3) \Rightarrow \partial_z \hat{\psi}_m |_{z=f} - K\hat{\psi}_m|_{z=f} = \hat{f}_m(\omega) = (\omega - K)\hat{\psi}_m|_{z=f} = (\omega - K)A(\omega)e^{\omega f}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Hence&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;A(\omega) = \frac{\hat{f}_m(\omega)}{\omega - K} e^{-\omega f} &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\psi_m = \frac{1}{2\pi}\int_{-\infty}^\infty \hat{\psi}_m e^{-i\omega x}d\omega = \frac{1}{2\pi}\int_{-\infty}^\infty  \frac{\hat{f}_m(\omega)}{\omega - K} e^{\omega (z-f)}  e^{-i\omega x}d\omega&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Example: 2D Wave Scattering for a Submerged Horizontal Cylinder (in Infinite Depth)==&lt;br /&gt;
&lt;br /&gt;
***Picture to show problem set up***&lt;br /&gt;
&lt;br /&gt;
The potential for the scattering problem splits as incident and diffracted potentials and also into symmetric and antisymmetric parts.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi = \phi_I + \phi_D = \phi^+ + \phi^-&amp;lt;/math&amp;gt; &lt;br /&gt;
&lt;br /&gt;
where&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \partial_r \phi_I |_{r=a} = - \partial_r \phi_D |_{r=a} &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and &amp;lt;math&amp;gt;\phi^+&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;\phi^-&amp;lt;/math&amp;gt; are the symmetric and antisymmetric parts of &amp;lt;math&amp;gt;\phi&amp;lt;/math&amp;gt; respectively.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For a wave incident from the left we have&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi_I = e^{Kz} e^{iKx} = e^{-Kf}\sum_{n=0}^\infty \frac{(-Kr)^n }{n!} e^{-in\theta}&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi_D = \sum_{n=1}^{\infty}a^n \alpha_n \phi_n^+ + \sum_{n=1}^{\infty}a^n \beta_n \phi_n^- &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi^+ = e^{Kz} \cos(Kx) + \sum_{n=1}^{\infty}a^n \alpha_n \phi_n^+&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
and &amp;lt;math&amp;gt;\phi^- = ie^{Kz} \sin(Kx) + \sum_{n=1}^{\infty}a^n \beta_n \phi_n^- &amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Converting &amp;lt;math&amp;gt;\phi^+&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\phi^-&amp;lt;/math&amp;gt; into the polar coordinate system:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi^+ = e^{-Kf}\sum_{n=0}^\infty \frac{(-Kr)^n }{n!} \cos(n\theta) + \sum_{n=1}^{\infty}a^n \alpha_n \left(\frac{\cos(n\theta)}{r^n} + \sum_{m=0}^\infty A_{mn}^+ r^m \cos(m\theta)\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi^- = ie^{-Kf}\sum_{n=0}^\infty \frac{(-Kr)^n }{n!} \sin(n\theta) + \sum_{n=1}^{\infty}a^n \alpha_n \left(\frac{\sin(n\theta)}{r^n} + \sum_{m=0}^\infty A_{mn}^+ r^m \sin(m\theta)\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The above power series converge for r &amp;lt; 2f and the coefficients are given by&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; A_{mn} = \frac{(-1)^{m+n}}{m!(n-1)!} \quad SingularIntegral_0^\infty \quad \frac{\mu + K}{\mu - K} \mu ^{m+n-1} e^{-2\mu f}d\mu &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Applying the body boundary condition &amp;lt;math&amp;gt;\partial_r \phi^\pm |_{r=a} = 0&amp;lt;/math&amp;gt; and noting that the cosines are orthogonal over &amp;lt;math&amp;gt;\theta \in  (-\pi,\pi]&amp;lt;/math&amp;gt; gives the results&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \alpha_m - \sum_{n=1}^{\infty}a^{n+m} A_{mn} \alpha_n = e^{-Kf}\frac {(-Ka)^m}{m!}; m=1,2,3,\ldots&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \beta_m - \sum_{n=1}^{\infty}a^{n+m} A_{mn} \beta_n = -ie^{-Kf}\frac {(-Ka)^m}{m!}; m=1,2,3,\ldots&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
From which we can see that &amp;lt;math&amp;gt;\beta_n = -i\alpha_n&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The above sums can be truncated at the Nth term yielding NxN system of linear equations that can be solved for the coefficients &amp;lt;math&amp;gt;\alpha_n&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hence we can calculate &amp;lt;math&amp;gt;\phi&amp;lt;/math&amp;gt; from:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi = \phi^+ + \phi^- = \phi_I + \sum_{n=1}^{\infty}a^n \alpha_n ( \phi^+_n + \phi^-_n )&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This expression also gives the values of the reflection and transmission coefficients when we substitute the far field expressions for the symmetric and antisymmetric multipoles. In the far field:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \phi^+_n \sim \frac{2\pi i (-K)^n}{(n-1)!} e^{K(z-f)} e^{\pm Kx} &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math &amp;gt; \phi^-_n \sim \mp \frac{2\pi (-K)^n}{(n-1)!} e^{K(z-f)} e^{\pm Kx} &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Giving:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;R=0, \quad T = 1 + 4 \pi i e^{-Kf}  \sum_{n=1}^{\infty} \alpha_n \frac{(-Ka)^n}{(n-1)!} &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Hydrodynamic Forces ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Linear Water-Wave Theory]]&lt;/div&gt;</summary>
		<author><name>Sean Curry</name></author>
	</entry>
	<entry>
		<id>https://www.wikiwaves.org/index.php?title=Category:Multipole_Methods_for_Linear_Water_Waves&amp;diff=10783</id>
		<title>Category:Multipole Methods for Linear Water Waves</title>
		<link rel="alternate" type="text/html" href="https://www.wikiwaves.org/index.php?title=Category:Multipole_Methods_for_Linear_Water_Waves&amp;diff=10783"/>
		<updated>2010-02-09T01:46:30Z</updated>

		<summary type="html">&lt;p&gt;Sean Curry: /* 2D Exterior Neumann Problem */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{incomplete pages}}&lt;br /&gt;
&lt;br /&gt;
== Multipole Expansions ==&lt;br /&gt;
&lt;br /&gt;
Multipole expansions are a technique used in linear water wave theory where the potential is represented as a sum of singularities (multipoles) placed within any structures that are present. Multipoles can be constructed with their singularity submerged or on the free surface and these are treated separately.&lt;br /&gt;
&lt;br /&gt;
Multipoles satisfy:&lt;br /&gt;
&lt;br /&gt;
{{Standard linear wave scattering equations without body condition}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{sommerfeld radiation condition two dimensions}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A linear combination of these multipoles can then be made to satisfy the body boundary conditions.&lt;br /&gt;
&lt;br /&gt;
== 2D Exterior Neumann Problem ==&lt;br /&gt;
&lt;br /&gt;
We start by developing the theory for Laplace&#039;s equation without the free surface for&lt;br /&gt;
a disk of radius &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; centered at the origin. The equation in polar coordinates is&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\nabla^2 \phi = \left[   \partial_r^2 + \frac{1}{r}\partial_r + \frac{1}{r^2} \partial_\theta^2  \right] \phi= 0 \quad &lt;br /&gt;
\mathrm{for} \quad r&amp;gt;a &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt; &lt;br /&gt;
&amp;lt;math&amp;gt;\partial_n \phi |_{r=a} = 0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
|\nabla\phi| \rightarrow 0 \quad as \quad r \rightarrow \infty &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
Using [http://en.wikipedia.org/wiki/Separation_of_Variables separation of variables] &lt;br /&gt;
we write&lt;br /&gt;
&amp;lt;math&amp;gt;\phi = R(r)\Theta(\theta).\,&amp;lt;/math&amp;gt; Substituting into Laplace&#039;s equations gives&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{r^2}{R}\partial_r^2 R + \frac{r}{R}\partial_r R = - \frac{1}{\Theta}\partial_\theta^2 \Theta = m^2 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
The equation for &amp;lt;math&amp;gt;\Theta\,&amp;lt;/math&amp;gt; is&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\quad \partial_\theta^2 \Theta = -m^2\Theta &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\Rightarrow \Theta = A(m) \cos(m\theta) + B(m) \sin(m\theta) \quad for \quad  m \neq 0 &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When m=0 the solution is &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \Theta = A(0) + B(0)\theta \,&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt; &amp;lt;math&amp;gt;\Theta(\theta + 2\pi) = \Theta(\theta) \Rightarrow  m \in Z \,\, and \,\, B(0) = 0\,&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The equation for R is &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \quad r^2\partial_r^2 R + r\partial_rR = m^2 R &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
This is a standard DE, to solve we substitute R = r^n giving:&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;n(n-1)r^n + nr^n = m^2r^n \Rightarrow n^2 = m^2 \Rightarrow n= \pm m&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
This gives two independent solutions for all m except m = 0, where we only get the constant solution. &lt;br /&gt;
&lt;br /&gt;
Noting that:&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;  \nabla^2 \left( \ln(r) \right) = \frac{-1}{r^2} + \frac{1}{r^2}  = 0 &amp;lt;/math&amp;gt; &amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So along with the obvious constant function we have two independant sotutions. Thus for m=0 we can write:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;R = C\left(0\right) + D(0) \ln(r)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and for &amp;lt;math&amp;gt;m\neq 0:&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;R = C\left(m\right)r^m + D(m)r^{-m}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The derivatives of the radial eigenfunctions must go to zero indicating zero fluid flow at infinity:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;|\nabla\phi| \rightarrow 0 \,\, as \,\, r \rightarrow \infty \Rightarrow\partial_r R \rightarrow 0 \,\, as \,\, r \rightarrow \infty &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\Rightarrow C(m)= 0 \,\, \forall m &amp;gt; 0 \,\,\, and \,\,\, D(m)=0 \,\, \forall m&amp;lt;0&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hence the general solution can be expressed as:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi = C(0) + D(0) \ln(r) + \sum_{m=1}^\infty \left( a(m)\frac{\cos(m\theta)}{r^m} +  b(m)\frac{\sin(m\theta)}{r^m}  \right) &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We don&#039;t need to include the negative m terms because of the symmetry of the sine and cosine eigenfunctions.&lt;br /&gt;
&lt;br /&gt;
The solution can also be expressed simply in terms of complex exponentials.&lt;br /&gt;
&lt;br /&gt;
== With the Free Surface BC ==&lt;br /&gt;
&lt;br /&gt;
When we introduce the free surface BC we need to find a new set of eigenfunctions. We can use eigenfunctions from the infinite domain problem to construct them.&lt;br /&gt;
&lt;br /&gt;
We write&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi_m = \frac{e^{im\theta}}{r^m} + \psi_m &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi_0 = \ln\left(\frac{r}{a}\right) + \psi_0 &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Where&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\nabla^2 \psi_m = 0 \quad for \quad m = 0,1,2, \ldots&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We want&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\partial_z \phi |_{z=f} = K\phi|_{z=f} \quad \forall m = 0,1,2, \ldots&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For m=0&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\partial_z \psi_0 |_{z=f} - K\psi_0|_{z=f} = K\ln\left(\frac{r}{a}\right)|_{z=f}  - \partial_z \left(ln\left(\frac{r}{a}\right)\right)|_{z=f} = K \ln\left(\frac{\sqrt{x^2 + f^2}}{a}\right) - \int_0^\infty e^{-2\mu f}\cos(\mu x)d\mu = f_0(x)&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\ln(r) = \int_0^\infty (e^{-\mu}- e^{-\mu|z+f|}\cos(\mu x))\frac{d\mu}{\mu}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For m&amp;gt;0&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\partial_z \psi_m |_{z=f} - K\psi_m|_{z=f} = K  \frac{e^{im\theta}}{r^m}  |_{z=f}  - \partial_z \left(\frac{e^{im\theta}}{r^m}\right)|_{z=f} = \frac{e^{im\tan(-x/f)}}{(x^2+f^2)^{m/2}} \left(  K + \frac{imx\ln(f)}{1-(x/f)^2} + \frac {mf}{x^2 + f^2}    \right) = f_m(x)&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So our psi functions satisfy&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\nabla^2 \psi_m = 0 \quad for \quad m = 0,1,2, \ldots \quad \ldots (1)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
  &lt;br /&gt;
  &amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\psi_m \rightarrow 0 \quad as \quad z \rightarrow -\infty \quad \ldots (2)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
  &lt;br /&gt;
  &amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\partial_z \psi_m |_{z=f} - K\psi_m|_{z=f} = f_m(x) \quad \ldots (3)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Taking a Fourier transform in x&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\hat{\psi}_m = \int_{-\infty}^\infty \psi_m e^{i\omega x}dx&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;(1) \Rightarrow \partial_z^2 \hat{\psi}_m = \omega^2\hat{\psi}_m \Rightarrow \hat{\psi}_m = A_m(\omega)e^{\omega z} + B_m(\omega)e^{-\omega z}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;but \quad (2) \Rightarrow B_m(\omega) = 0 \quad \forall m&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;(3) \Rightarrow \partial_z \hat{\psi}_m |_{z=f} - K\hat{\psi}_m|_{z=f} = \hat{f}_m(\omega) = (\omega - K)\hat{\psi}_m|_{z=f} = (\omega - K)A(\omega)e^{\omega f}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Hence&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;A(\omega) = \frac{\hat{f}_m(\omega)}{\omega - K} e^{-\omega f} &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\psi_m = \frac{1}{2\pi}\int_{-\infty}^\infty \hat{\psi}_m e^{-i\omega x}d\omega = \frac{1}{2\pi}\int_{-\infty}^\infty  \frac{\hat{f}_m(\omega)}{\omega - K} e^{\omega (z-f)}  e^{-i\omega x}d\omega&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Example: 2D Wave Scattering for a Submerged Horizontal Cylinder (in Infinite Depth)==&lt;br /&gt;
&lt;br /&gt;
***Picture to show problem set up***&lt;br /&gt;
&lt;br /&gt;
The potential for the scattering problem splits as incident and diffracted potentials and also into symmetric and antisymmetric parts.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi = \phi_I + \phi_D = \phi^+ + \phi^-&amp;lt;/math&amp;gt; &lt;br /&gt;
&lt;br /&gt;
where&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \partial_r \phi_I |_{r=a} = - \partial_r \phi_D |_{r=a} &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and &amp;lt;math&amp;gt;\phi^+&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;\phi^-&amp;lt;/math&amp;gt; are the symmetric and antisymmetric parts of &amp;lt;math&amp;gt;\phi&amp;lt;/math&amp;gt; respectively.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For a wave incident from the left we have&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi_I = e^{Kz} e^{iKx} = e^{-Kf}\sum_{n=0}^\infty \frac{(-Kr)^n }{n!} e^{-in\theta}&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi_D = \sum_{n=1}^{\infty}a^n \alpha_n \phi_n^+ + \sum_{n=1}^{\infty}a^n \beta_n \phi_n^- &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi^+ = e^{Kz} \cos(Kx) + \sum_{n=1}^{\infty}a^n \alpha_n \phi_n^+&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
and &amp;lt;math&amp;gt;\phi^- = ie^{Kz} \sin(Kx) + \sum_{n=1}^{\infty}a^n \beta_n \phi_n^- &amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Converting &amp;lt;math&amp;gt;\phi^+&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\phi^-&amp;lt;/math&amp;gt; into the polar coordinate system:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi^+ = e^{-Kf}\sum_{n=0}^\infty \frac{(-Kr)^n }{n!} \cos(n\theta) + \sum_{n=1}^{\infty}a^n \alpha_n \left(\frac{\cos(n\theta)}{r^n} + \sum_{m=0}^\infty A_{mn}^+ r^m \cos(m\theta)\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi^- = ie^{-Kf}\sum_{n=0}^\infty \frac{(-Kr)^n }{n!} \sin(n\theta) + \sum_{n=1}^{\infty}a^n \alpha_n \left(\frac{\sin(n\theta)}{r^n} + \sum_{m=0}^\infty A_{mn}^+ r^m \sin(m\theta)\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The above power series converge for r &amp;lt; 2f and the coefficients are given by&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; A_{mn} = \frac{(-1)^{m+n}}{m!(n-1)!} \quad SingularIntegral_0^\infty \quad \frac{\mu + K}{\mu - K} \mu ^{m+n-1} e^{-2\mu f}d\mu &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Applying the body boundary condition &amp;lt;math&amp;gt;\partial_r \phi^\pm |_{r=a} = 0&amp;lt;/math&amp;gt; and noting that the cosines are orthogonal over &amp;lt;math&amp;gt;\theta \in  (-\pi,\pi]&amp;lt;/math&amp;gt; gives the results&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \alpha_m - \sum_{n=1}^{\infty}a^{n+m} A_{mn} \alpha_n = e^{-Kf}\frac {(-Ka)^m}{m!}; m=1,2,3,\ldots&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \beta_m - \sum_{n=1}^{\infty}a^{n+m} A_{mn} \beta_n = -ie^{-Kf}\frac {(-Ka)^m}{m!}; m=1,2,3,\ldots&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
From which we can see that &amp;lt;math&amp;gt;\beta_n = -i\alpha_n&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The above sums can be truncated at the Nth term yielding NxN system of linear equations that can be solved for the coefficients &amp;lt;math&amp;gt;\alpha_n&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hence we can calculate &amp;lt;math&amp;gt;\phi&amp;lt;/math&amp;gt; from:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi = \phi^+ + \phi^- = \phi_I + \sum_{n=1}^{\infty}a^n \alpha_n ( \phi^+_n + \phi^-_n )&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This expression also gives the values of the reflection and transmission coefficients when we substitute the far field expressions for the symmetric and antisymmetric multipoles. In the far field:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \phi^+_n \sim \frac{2\pi i (-K)^n}{(n-1)!} e^{K(z-f)} e^{\pm Kx} &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math &amp;gt; \phi^-_n \sim \mp \frac{2\pi (-K)^n}{(n-1)!} e^{K(z-f)} e^{\pm Kx} &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Giving:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;R=0, \quad T = 1 + 4 \pi i e^{-Kf}  \sum_{n=1}^{\infty} \alpha_n \frac{(-Ka)^n}{(n-1)!} &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Hydrodynamic Forces ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Linear Water-Wave Theory]]&lt;/div&gt;</summary>
		<author><name>Sean Curry</name></author>
	</entry>
	<entry>
		<id>https://www.wikiwaves.org/index.php?title=Category:Multipole_Methods_for_Linear_Water_Waves&amp;diff=10781</id>
		<title>Category:Multipole Methods for Linear Water Waves</title>
		<link rel="alternate" type="text/html" href="https://www.wikiwaves.org/index.php?title=Category:Multipole_Methods_for_Linear_Water_Waves&amp;diff=10781"/>
		<updated>2010-02-09T01:22:38Z</updated>

		<summary type="html">&lt;p&gt;Sean Curry: /* 2D Exterior Neumann Problem */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{incomplete pages}}&lt;br /&gt;
&lt;br /&gt;
== Multipole Expansions ==&lt;br /&gt;
&lt;br /&gt;
Multipole expansions are a technique used in linear water wave theory where the potential is represented as a sum of singularities (multipoles) placed within any structures that are present. Multipoles can be constructed with their singularity submerged or on the free surface and these are treated separately.&lt;br /&gt;
&lt;br /&gt;
Multipoles satisfy:&lt;br /&gt;
&lt;br /&gt;
{{Standard linear wave scattering equations without body condition}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{sommerfeld radiation condition two dimensions}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A linear combination of these multipoles can then be made to satisfy the body boundary conditions.&lt;br /&gt;
&lt;br /&gt;
== 2D Exterior Neumann Problem ==&lt;br /&gt;
&lt;br /&gt;
We start by developing the theory for Laplace&#039;s equation without the free surface for&lt;br /&gt;
a disk of radius &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; centered at the origin. The equation in polar coordinates is&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\nabla^2 \phi = \left[   \partial_r^2 + \frac{1}{r}\partial_r + \frac{1}{r^2} \partial_\theta^2  \right] \phi= 0 \quad &lt;br /&gt;
\mathrm{for} \quad r&amp;gt;a &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt; &lt;br /&gt;
&amp;lt;math&amp;gt;\partial_n \phi |_{r=a} = 0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
|\nabla\phi| \rightarrow 0 \quad as \quad r \rightarrow \infty &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
Using [http://en.wikipedia.org/wiki/Separation_of_Variables separation of variables] &lt;br /&gt;
we write&lt;br /&gt;
&amp;lt;math&amp;gt;\phi = R(r)\Theta(\theta).\,&amp;lt;/math&amp;gt; Substituting into Laplace&#039;s equations gives&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{r^2}{R}\partial_r^2 R + \frac{r}{R}\partial_r R = - \frac{1}{\Theta}\partial_\theta^2 \Theta = m^2 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
The equation for &amp;lt;math&amp;gt;\Theta\,&amp;lt;/math&amp;gt; is&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\quad \partial_\theta^2 \Theta = -m^2\Theta &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\Rightarrow \Theta = A(m) \cos(m\theta) + B(m) \sin(m\theta) \quad for \quad  m \neq 0 &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When m=0 the solution is &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \Theta = A(0) + B(0)\theta \,&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt; &amp;lt;math&amp;gt;\Theta(\theta + 2\pi) = \Theta(\theta) \Rightarrow  m \in Z \,\, and \,\, B(0) = 0\,&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The equation for R is &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \quad r^2\partial_r^2 R + r\partial_rR = m^2 R &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
This is a standard DE, to solve we substitute R = r^n giving:&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;n(n-1)r^n + nr^n = m^2r^n \Rightarrow n^2 = m^2 \Rightarrow n= \pm m&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
This gives two independent solutions for all m except m = 0, where we only get the constant solution. &lt;br /&gt;
&lt;br /&gt;
Noting that:&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;  \nabla^2 \left( \ln(r) \right) = \frac{-1}{r^2} + \frac{1}{r^2}  = 0 &amp;lt;/math&amp;gt; &amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So along with the obvious constant function we have two independant sotutions. Thus for m=0 we can write:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;R = C\left(0\right) + D(0) \ln(r)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and for &amp;lt;math&amp;gt;m\neq 0:&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;R = C\left(m\right)r^m + D(m)r^{-m}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The derivatives of the radial eigenfunctions must go to zero indicating zero fluid flow at infinity:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;|\nabla\phi| \rightarrow 0 \,\, as \,\, r \rightarrow \infty \Rightarrow\partial_r R \rightarrow 0 \,\, as \,\, r \rightarrow \infty &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\Rightarrow C(m)= 0 \quad\forall m &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hence the general solution can be expressed as:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi = C(0) + D(0) \ln(r) + \sum_{m=1}^\infty \left( a(m)\frac{\cos(m\theta)}{r^m} +  b(m)\frac{\sin(m\theta)}{r^m}  \right) &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Which can also be expressed simply in terms of complex exponentials.&lt;br /&gt;
&lt;br /&gt;
== With the Free Surface BC ==&lt;br /&gt;
&lt;br /&gt;
When we introduce the free surface BC we need to find a new set of eigenfunctions. We can use eigenfunctions from the infinite domain problem to construct them.&lt;br /&gt;
&lt;br /&gt;
We write&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi_m = \frac{e^{im\theta}}{r^m} + \psi_m &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi_0 = \ln\left(\frac{r}{a}\right) + \psi_0 &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Where&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\nabla^2 \psi_m = 0 \quad for \quad m = 0,1,2, \ldots&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We want&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\partial_z \phi |_{z=f} = K\phi|_{z=f} \quad \forall m = 0,1,2, \ldots&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For m=0&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\partial_z \psi_0 |_{z=f} - K\psi_0|_{z=f} = K\ln\left(\frac{r}{a}\right)|_{z=f}  - \partial_z \left(ln\left(\frac{r}{a}\right)\right)|_{z=f} = K \ln\left(\frac{\sqrt{x^2 + f^2}}{a}\right) - \int_0^\infty e^{-2\mu f}\cos(\mu x)d\mu = f_0(x)&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\ln(r) = \int_0^\infty (e^{-\mu}- e^{-\mu|z+f|}\cos(\mu x))\frac{d\mu}{\mu}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For m&amp;gt;0&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\partial_z \psi_m |_{z=f} - K\psi_m|_{z=f} = K  \frac{e^{im\theta}}{r^m}  |_{z=f}  - \partial_z \left(\frac{e^{im\theta}}{r^m}\right)|_{z=f} = \frac{e^{im\tan(-x/f)}}{(x^2+f^2)^{m/2}} \left(  K + \frac{imx\ln(f)}{1-(x/f)^2} + \frac {mf}{x^2 + f^2}    \right) = f_m(x)&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So our psi functions satisfy&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\nabla^2 \psi_m = 0 \quad for \quad m = 0,1,2, \ldots \quad \ldots (1)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
  &lt;br /&gt;
  &amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\psi_m \rightarrow 0 \quad as \quad z \rightarrow -\infty \quad \ldots (2)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
  &lt;br /&gt;
  &amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\partial_z \psi_m |_{z=f} - K\psi_m|_{z=f} = f_m(x) \quad \ldots (3)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Taking a Fourier transform in x&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\hat{\psi}_m = \int_{-\infty}^\infty \psi_m e^{i\omega x}dx&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;(1) \Rightarrow \partial_z^2 \hat{\psi}_m = \omega^2\hat{\psi}_m \Rightarrow \hat{\psi}_m = A_m(\omega)e^{\omega z} + B_m(\omega)e^{-\omega z}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;but \quad (2) \Rightarrow B_m(\omega) = 0 \quad \forall m&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;(3) \Rightarrow \partial_z \hat{\psi}_m |_{z=f} - K\hat{\psi}_m|_{z=f} = \hat{f}_m(\omega) = (\omega - K)\hat{\psi}_m|_{z=f} = (\omega - K)A(\omega)e^{\omega f}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Hence&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;A(\omega) = \frac{\hat{f}_m(\omega)}{\omega - K} e^{-\omega f} &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\psi_m = \frac{1}{2\pi}\int_{-\infty}^\infty \hat{\psi}_m e^{-i\omega x}d\omega = \frac{1}{2\pi}\int_{-\infty}^\infty  \frac{\hat{f}_m(\omega)}{\omega - K} e^{\omega (z-f)}  e^{-i\omega x}d\omega&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Example: 2D Wave Scattering for a Submerged Horizontal Cylinder (in Infinite Depth)==&lt;br /&gt;
&lt;br /&gt;
***Picture to show problem set up***&lt;br /&gt;
&lt;br /&gt;
The potential for the scattering problem splits as incident and diffracted potentials and also into symmetric and antisymmetric parts.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi = \phi_I + \phi_D = \phi^+ + \phi^-&amp;lt;/math&amp;gt; &lt;br /&gt;
&lt;br /&gt;
where&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \partial_r \phi_I |_{r=a} = - \partial_r \phi_D |_{r=a} &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and &amp;lt;math&amp;gt;\phi^+&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;\phi^-&amp;lt;/math&amp;gt; are the symmetric and antisymmetric parts of &amp;lt;math&amp;gt;\phi&amp;lt;/math&amp;gt; respectively.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For a wave incident from the left we have&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi_I = e^{Kz} e^{iKx} = e^{-Kf}\sum_{n=0}^\infty \frac{(-Kr)^n }{n!} e^{-in\theta}&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi_D = \sum_{n=1}^{\infty}a^n \alpha_n \phi_n^+ + \sum_{n=1}^{\infty}a^n \beta_n \phi_n^- &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi^+ = e^{Kz} \cos(Kx) + \sum_{n=1}^{\infty}a^n \alpha_n \phi_n^+&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
and &amp;lt;math&amp;gt;\phi^- = ie^{Kz} \sin(Kx) + \sum_{n=1}^{\infty}a^n \beta_n \phi_n^- &amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Converting &amp;lt;math&amp;gt;\phi^+&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\phi^-&amp;lt;/math&amp;gt; into the polar coordinate system:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi^+ = e^{-Kf}\sum_{n=0}^\infty \frac{(-Kr)^n }{n!} \cos(n\theta) + \sum_{n=1}^{\infty}a^n \alpha_n \left(\frac{\cos(n\theta)}{r^n} + \sum_{m=0}^\infty A_{mn}^+ r^m \cos(m\theta)\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi^- = ie^{-Kf}\sum_{n=0}^\infty \frac{(-Kr)^n }{n!} \sin(n\theta) + \sum_{n=1}^{\infty}a^n \alpha_n \left(\frac{\sin(n\theta)}{r^n} + \sum_{m=0}^\infty A_{mn}^+ r^m \sin(m\theta)\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The above power series converge for r &amp;lt; 2f and the coefficients are given by&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; A_{mn} = \frac{(-1)^{m+n}}{m!(n-1)!} \quad SingularIntegral_0^\infty \quad \frac{\mu + K}{\mu - K} \mu ^{m+n-1} e^{-2\mu f}d\mu &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Applying the body boundary condition &amp;lt;math&amp;gt;\partial_r \phi^\pm |_{r=a} = 0&amp;lt;/math&amp;gt; and noting that the cosines are orthogonal over &amp;lt;math&amp;gt;\theta \in  (-\pi,\pi]&amp;lt;/math&amp;gt; gives the results&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \alpha_m - \sum_{n=1}^{\infty}a^{n+m} A_{mn} \alpha_n = e^{-Kf}\frac {(-Ka)^m}{m!}; m=1,2,3,\ldots&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \beta_m - \sum_{n=1}^{\infty}a^{n+m} A_{mn} \beta_n = -ie^{-Kf}\frac {(-Ka)^m}{m!}; m=1,2,3,\ldots&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
From which we can see that &amp;lt;math&amp;gt;\beta_n = -i\alpha_n&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The above sums can be truncated at the Nth term yielding NxN system of linear equations that can be solved for the coefficients &amp;lt;math&amp;gt;\alpha_n&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hence we can calculate &amp;lt;math&amp;gt;\phi&amp;lt;/math&amp;gt; from:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi = \phi^+ + \phi^- = \phi_I + \sum_{n=1}^{\infty}a^n \alpha_n ( \phi^+_n + \phi^-_n )&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This expression also gives the values of the reflection and transmission coefficients when we substitute the far field expressions for the symmetric and antisymmetric multipoles. In the far field:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \phi^+_n \sim \frac{2\pi i (-K)^n}{(n-1)!} e^{K(z-f)} e^{\pm Kx} &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math &amp;gt; \phi^-_n \sim \mp \frac{2\pi (-K)^n}{(n-1)!} e^{K(z-f)} e^{\pm Kx} &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Giving:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;R=0, \quad T = 1 + 4 \pi i e^{-Kf}  \sum_{n=1}^{\infty} \alpha_n \frac{(-Ka)^n}{(n-1)!} &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Hydrodynamic Forces ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Linear Water-Wave Theory]]&lt;/div&gt;</summary>
		<author><name>Sean Curry</name></author>
	</entry>
	<entry>
		<id>https://www.wikiwaves.org/index.php?title=Category:Multipole_Methods_for_Linear_Water_Waves&amp;diff=10779</id>
		<title>Category:Multipole Methods for Linear Water Waves</title>
		<link rel="alternate" type="text/html" href="https://www.wikiwaves.org/index.php?title=Category:Multipole_Methods_for_Linear_Water_Waves&amp;diff=10779"/>
		<updated>2010-02-09T01:02:26Z</updated>

		<summary type="html">&lt;p&gt;Sean Curry: /* With the Free Surface BC */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{incomplete pages}}&lt;br /&gt;
&lt;br /&gt;
== Multipole Expansions ==&lt;br /&gt;
&lt;br /&gt;
Multipole expansions are a technique used in linear water wave theory where the potential is represented as a sum of singularities (multipoles) placed within any structures that are present. Multipoles can be constructed with their singularity submerged or on the free surface and these are treated separately.&lt;br /&gt;
&lt;br /&gt;
Multipoles satisfy:&lt;br /&gt;
&lt;br /&gt;
{{Standard linear wave scattering equations without body condition}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{sommerfeld radiation condition two dimensions}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A linear combination of these multipoles can then be made to satisfy the body boundary conditions.&lt;br /&gt;
&lt;br /&gt;
== 2D Exterior Neumann Problem ==&lt;br /&gt;
&lt;br /&gt;
We start by developing the theory for Laplace&#039;s equation without the free surface for&lt;br /&gt;
a disk of radius &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; centered at the origin. The equation in polar coordinates is&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\nabla^2 \phi = \left[   \partial_r^2 + \frac{1}{r}\partial_r + \frac{1}{r^2} \partial_\theta^2  \right] \phi= 0 \quad &lt;br /&gt;
\mathrm{for} \quad r&amp;gt;a &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt; &lt;br /&gt;
&amp;lt;center&amp;gt; &lt;br /&gt;
&amp;lt;math&amp;gt;\partial_n \phi |_{r=a} = 0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt; &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
|\nabla\phi| \rightarrow 0 \quad as \quad r \rightarrow \infty &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
Using [http://en.wikipedia.org/wiki/Separation_of_Variables separation of variables] &lt;br /&gt;
we write&lt;br /&gt;
&amp;lt;math&amp;gt;\phi = R(r)\Theta(\theta).\,&amp;lt;/math&amp;gt; Substituting into Laplace&#039;s equations gives&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{r^2}{R}\partial_r^2 R + \frac{r}{R}\partial_r R = - \frac{1}{\Theta}\partial_\theta^2 \Theta = m^2 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
The equation for &amp;lt;math&amp;gt;\Theta\,&amp;lt;/math&amp;gt; is&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\quad \partial_\theta^2 \Theta = -m^2\Theta &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\Rightarrow \Theta = A(m) \cos(m\theta) + B(m) \sin(m\theta) \quad for \quad  m \neq 0 &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When m=0 the solution is &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \Theta = A(0) + B(0)\theta \,&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt; &amp;lt;math&amp;gt;\Theta(\theta + 2\pi) = \Theta(\theta) \Rightarrow  m \in Z \,\, and \,\, B(0) = 0\,&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The equation for R is &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \quad r^2\partial_r^2 R + r\partial_rR = m^2 R &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
we substitute R = r^n giving:&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;n(n-1)r^n + nr^n = m^2r^n \Rightarrow n^2 = m^2 \Rightarrow n= \pm m&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
This gives two independent solutions for all m except m = 0, where we only get the constant solution. &lt;br /&gt;
&lt;br /&gt;
Noting that:&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;  \nabla^2 \left( \ln(r) \right) = \frac{-1}{r^2} + \frac{1}{r^2}  = 0 &amp;lt;/math&amp;gt; &amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
for m=0 we can write:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;R = C\left(0\right) + D(0) \ln(r)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and for &amp;lt;math&amp;gt;m\neq 0:&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;R = C\left(m\right)r^m + D(m)r^{-m}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;|\nabla\phi| \rightarrow 0 \,\, as \,\, r \rightarrow \infty \Rightarrow\partial_r R \rightarrow 0 \,\, as \,\, r \rightarrow \infty &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\Rightarrow C(m)= 0 \quad\forall m \neq 0&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hence the general solution can be expressed as:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi = C(0) + D(0) \ln(r) + \sum_{m=1}^\infty \left( a(m)\frac{\cos(m\theta)}{r^m} +  b(m)\frac{\sin(m\theta)}{r^m}  \right) &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Which can also be expressed simply in terms of complex exponentials.&lt;br /&gt;
&lt;br /&gt;
== With the Free Surface BC ==&lt;br /&gt;
&lt;br /&gt;
When we introduce the free surface BC we need to find a new set of eigenfunctions. We can use eigenfunctions from the infinite domain problem to construct them.&lt;br /&gt;
&lt;br /&gt;
We write&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi_m = \frac{e^{im\theta}}{r^m} + \psi_m &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi_0 = \ln\left(\frac{r}{a}\right) + \psi_0 &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Where&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\nabla^2 \psi_m = 0 \quad for \quad m = 0,1,2, \ldots&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We want&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\partial_z \phi |_{z=f} = K\phi|_{z=f} \quad \forall m = 0,1,2, \ldots&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For m=0&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\partial_z \psi_0 |_{z=f} - K\psi_0|_{z=f} = K\ln\left(\frac{r}{a}\right)|_{z=f}  - \partial_z \left(ln\left(\frac{r}{a}\right)\right)|_{z=f} = K \ln\left(\frac{\sqrt{x^2 + f^2}}{a}\right) - \int_0^\infty e^{-2\mu f}\cos(\mu x)d\mu = f_0(x)&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\ln(r) = \int_0^\infty (e^{-\mu}- e^{-\mu|z+f|}\cos(\mu x))\frac{d\mu}{\mu}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For m&amp;gt;0&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\partial_z \psi_m |_{z=f} - K\psi_m|_{z=f} = K  \frac{e^{im\theta}}{r^m}  |_{z=f}  - \partial_z \left(\frac{e^{im\theta}}{r^m}\right)|_{z=f} = \frac{e^{im\tan(-x/f)}}{(x^2+f^2)^{m/2}} \left(  K + \frac{imx\ln(f)}{1-(x/f)^2} + \frac {mf}{x^2 + f^2}    \right) = f_m(x)&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So our psi functions satisfy&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\nabla^2 \psi_m = 0 \quad for \quad m = 0,1,2, \ldots \quad \ldots (1)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
  &lt;br /&gt;
  &amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\psi_m \rightarrow 0 \quad as \quad z \rightarrow -\infty \quad \ldots (2)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
  &lt;br /&gt;
  &amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\partial_z \psi_m |_{z=f} - K\psi_m|_{z=f} = f_m(x) \quad \ldots (3)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Taking a Fourier transform in x&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\hat{\psi}_m = \int_{-\infty}^\infty \psi_m e^{i\omega x}dx&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;(1) \Rightarrow \partial_z^2 \hat{\psi}_m = \omega^2\hat{\psi}_m \Rightarrow \hat{\psi}_m = A_m(\omega)e^{\omega z} + B_m(\omega)e^{-\omega z}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;but \quad (2) \Rightarrow B_m(\omega) = 0 \quad \forall m&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;(3) \Rightarrow \partial_z \hat{\psi}_m |_{z=f} - K\hat{\psi}_m|_{z=f} = \hat{f}_m(\omega) = (\omega - K)\hat{\psi}_m|_{z=f} = (\omega - K)A(\omega)e^{\omega f}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Hence&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;A(\omega) = \frac{\hat{f}_m(\omega)}{\omega - K} e^{-\omega f} &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\psi_m = \frac{1}{2\pi}\int_{-\infty}^\infty \hat{\psi}_m e^{-i\omega x}d\omega = \frac{1}{2\pi}\int_{-\infty}^\infty  \frac{\hat{f}_m(\omega)}{\omega - K} e^{\omega (z-f)}  e^{-i\omega x}d\omega&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Example: 2D Wave Scattering for a Submerged Horizontal Cylinder (in Infinite Depth)==&lt;br /&gt;
&lt;br /&gt;
***Picture to show problem set up***&lt;br /&gt;
&lt;br /&gt;
The potential for the scattering problem splits as incident and diffracted potentials and also into symmetric and antisymmetric parts.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi = \phi_I + \phi_D = \phi^+ + \phi^-&amp;lt;/math&amp;gt; &lt;br /&gt;
&lt;br /&gt;
where&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \partial_r \phi_I |_{r=a} = - \partial_r \phi_D |_{r=a} &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and &amp;lt;math&amp;gt;\phi^+&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;\phi^-&amp;lt;/math&amp;gt; are the symmetric and antisymmetric parts of &amp;lt;math&amp;gt;\phi&amp;lt;/math&amp;gt; respectively.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For a wave incident from the left we have&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi_I = e^{Kz} e^{iKx} = e^{-Kf}\sum_{n=0}^\infty \frac{(-Kr)^n }{n!} e^{-in\theta}&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi_D = \sum_{n=1}^{\infty}a^n \alpha_n \phi_n^+ + \sum_{n=1}^{\infty}a^n \beta_n \phi_n^- &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi^+ = e^{Kz} \cos(Kx) + \sum_{n=1}^{\infty}a^n \alpha_n \phi_n^+&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
and &amp;lt;math&amp;gt;\phi^- = ie^{Kz} \sin(Kx) + \sum_{n=1}^{\infty}a^n \beta_n \phi_n^- &amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Converting &amp;lt;math&amp;gt;\phi^+&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\phi^-&amp;lt;/math&amp;gt; into the polar coordinate system:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi^+ = e^{-Kf}\sum_{n=0}^\infty \frac{(-Kr)^n }{n!} \cos(n\theta) + \sum_{n=1}^{\infty}a^n \alpha_n \left(\frac{\cos(n\theta)}{r^n} + \sum_{m=0}^\infty A_{mn}^+ r^m \cos(m\theta)\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi^- = ie^{-Kf}\sum_{n=0}^\infty \frac{(-Kr)^n }{n!} \sin(n\theta) + \sum_{n=1}^{\infty}a^n \alpha_n \left(\frac{\sin(n\theta)}{r^n} + \sum_{m=0}^\infty A_{mn}^+ r^m \sin(m\theta)\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The above power series converge for r &amp;lt; 2f and the coefficients are given by&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; A_{mn} = \frac{(-1)^{m+n}}{m!(n-1)!} \quad SingularIntegral_0^\infty \quad \frac{\mu + K}{\mu - K} \mu ^{m+n-1} e^{-2\mu f}d\mu &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Applying the body boundary condition &amp;lt;math&amp;gt;\partial_r \phi^\pm |_{r=a} = 0&amp;lt;/math&amp;gt; and noting that the cosines are orthogonal over &amp;lt;math&amp;gt;\theta \in  (-\pi,\pi]&amp;lt;/math&amp;gt; gives the results&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \alpha_m - \sum_{n=1}^{\infty}a^{n+m} A_{mn} \alpha_n = e^{-Kf}\frac {(-Ka)^m}{m!}; m=1,2,3,\ldots&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \beta_m - \sum_{n=1}^{\infty}a^{n+m} A_{mn} \beta_n = -ie^{-Kf}\frac {(-Ka)^m}{m!}; m=1,2,3,\ldots&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
From which we can see that &amp;lt;math&amp;gt;\beta_n = -i\alpha_n&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The above sums can be truncated at the Nth term yielding NxN system of linear equations that can be solved for the coefficients &amp;lt;math&amp;gt;\alpha_n&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hence we can calculate &amp;lt;math&amp;gt;\phi&amp;lt;/math&amp;gt; from:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi = \phi^+ + \phi^- = \phi_I + \sum_{n=1}^{\infty}a^n \alpha_n ( \phi^+_n + \phi^-_n )&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This expression also gives the values of the reflection and transmission coefficients when we substitute the far field expressions for the symmetric and antisymmetric multipoles. In the far field:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \phi^+_n \sim \frac{2\pi i (-K)^n}{(n-1)!} e^{K(z-f)} e^{\pm Kx} &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math &amp;gt; \phi^-_n \sim \mp \frac{2\pi (-K)^n}{(n-1)!} e^{K(z-f)} e^{\pm Kx} &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Giving:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;R=0, \quad T = 1 + 4 \pi i e^{-Kf}  \sum_{n=1}^{\infty} \alpha_n \frac{(-Ka)^n}{(n-1)!} &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Hydrodynamic Forces ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Linear Water-Wave Theory]]&lt;/div&gt;</summary>
		<author><name>Sean Curry</name></author>
	</entry>
	<entry>
		<id>https://www.wikiwaves.org/index.php?title=Category:Multipole_Methods_for_Linear_Water_Waves&amp;diff=10777</id>
		<title>Category:Multipole Methods for Linear Water Waves</title>
		<link rel="alternate" type="text/html" href="https://www.wikiwaves.org/index.php?title=Category:Multipole_Methods_for_Linear_Water_Waves&amp;diff=10777"/>
		<updated>2010-02-09T00:58:44Z</updated>

		<summary type="html">&lt;p&gt;Sean Curry: /* 2D Exterior Neumann Problem */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{incomplete pages}}&lt;br /&gt;
&lt;br /&gt;
== Multipole Expansions ==&lt;br /&gt;
&lt;br /&gt;
Multipole expansions are a technique used in linear water wave theory where the potential is represented as a sum of singularities (multipoles) placed within any structures that are present. Multipoles can be constructed with their singularity submerged or on the free surface and these are treated separately.&lt;br /&gt;
&lt;br /&gt;
Multipoles satisfy:&lt;br /&gt;
&lt;br /&gt;
{{Standard linear wave scattering equations without body condition}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{sommerfeld radiation condition two dimensions}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A linear combination of these multipoles can then be made to satisfy the body boundary conditions.&lt;br /&gt;
&lt;br /&gt;
== 2D Exterior Neumann Problem ==&lt;br /&gt;
&lt;br /&gt;
We start by developing the theory for Laplace&#039;s equation without the free surface for&lt;br /&gt;
a disk of radius &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; centered at the origin. The equation in polar coordinates is&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\nabla^2 \phi = \left[   \partial_r^2 + \frac{1}{r}\partial_r + \frac{1}{r^2} \partial_\theta^2  \right] \phi= 0 \quad &lt;br /&gt;
\mathrm{for} \quad r&amp;gt;a &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt; &lt;br /&gt;
&amp;lt;center&amp;gt; &lt;br /&gt;
&amp;lt;math&amp;gt;\partial_n \phi |_{r=a} = 0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt; &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
|\nabla\phi| \rightarrow 0 \quad as \quad r \rightarrow \infty &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
Using [http://en.wikipedia.org/wiki/Separation_of_Variables separation of variables] &lt;br /&gt;
we write&lt;br /&gt;
&amp;lt;math&amp;gt;\phi = R(r)\Theta(\theta).\,&amp;lt;/math&amp;gt; Substituting into Laplace&#039;s equations gives&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{r^2}{R}\partial_r^2 R + \frac{r}{R}\partial_r R = - \frac{1}{\Theta}\partial_\theta^2 \Theta = m^2 &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
The equation for &amp;lt;math&amp;gt;\Theta\,&amp;lt;/math&amp;gt; is&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\quad \partial_\theta^2 \Theta = -m^2\Theta &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\Rightarrow \Theta = A(m) \cos(m\theta) + B(m) \sin(m\theta) \quad for \quad  m \neq 0 &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When m=0 the solution is &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \Theta = A(0) + B(0)\theta \,&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt; &amp;lt;math&amp;gt;\Theta(\theta + 2\pi) = \Theta(\theta) \Rightarrow  m \in Z \,\, and \,\, B(0) = 0\,&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The equation for R is &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \quad r^2\partial_r^2 R + r\partial_rR = m^2 R &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
we substitute R = r^n giving:&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;n(n-1)r^n + nr^n = m^2r^n \Rightarrow n^2 = m^2 \Rightarrow n= \pm m&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
This gives two independent solutions for all m except m = 0, where we only get the constant solution. &lt;br /&gt;
&lt;br /&gt;
Noting that:&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;  \nabla^2 \left( \ln(r) \right) = \frac{-1}{r^2} + \frac{1}{r^2}  = 0 &amp;lt;/math&amp;gt; &amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
for m=0 we can write:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;R = C\left(0\right) + D(0) \ln(r)&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and for &amp;lt;math&amp;gt;m\neq 0:&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;R = C\left(m\right)r^m + D(m)r^{-m}&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;|\nabla\phi| \rightarrow 0 \,\, as \,\, r \rightarrow \infty \Rightarrow\partial_r R \rightarrow 0 \,\, as \,\, r \rightarrow \infty &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\Rightarrow C(m)= 0 \quad\forall m \neq 0&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hence the general solution can be expressed as:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\phi = C(0) + D(0) \ln(r) + \sum_{m=1}^\infty \left( a(m)\frac{\cos(m\theta)}{r^m} +  b(m)\frac{\sin(m\theta)}{r^m}  \right) &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Which can also be expressed simply in terms of complex exponentials.&lt;br /&gt;
&lt;br /&gt;
== With the Free Surface BC ==&lt;br /&gt;
&lt;br /&gt;
When we introduce the free surface BC we need to find a new set of eigenfunctions. We can use eigenfunctions from the infinite domain problem to construct them.&lt;br /&gt;
&lt;br /&gt;
We write&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi_m = \frac{e^{im\theta}}{r^m} + \psi_m &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi_0 = \ln\left(\frac{r}{a}\right) + \psi_0 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Where&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\nabla^2 \psi_m = 0 \quad for \quad m = 0,1,2, \ldots&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We want&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\partial_z \phi |_{z=f} = K\phi|_{z=f} \quad \forall m = 0,1,2, \ldots&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For m=0&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\partial_z \psi_0 |_{z=f} - K\psi_0|_{z=f} = K\ln\left(\frac{r}{a}\right)|_{z=f}  - \partial_z \left(ln\left(\frac{r}{a}\right)\right)|_{z=f} = K \ln\left(\frac{\sqrt{x^2 + f^2}}{a}\right) - \int_0^\infty e^{-2\mu f}\cos(\mu x)d\mu = f_0(x)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\ln(r) = \int_0^\infty (e^{-\mu}- e^{-\mu|z+f|}\cos(\mu x))\frac{d\mu}{\mu}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For m&amp;gt;0&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\partial_z \psi_m |_{z=f} - K\psi_m|_{z=f} = K  \frac{e^{im\theta}}{r^m}  |_{z=f}  - \partial_z \left(\frac{e^{im\theta}}{r^m}\right)|_{z=f} = \frac{e^{im\tan(-x/f)}}{(x^2+f^2)^{m/2}} \left(  K + \frac{imx\ln(f)}{1-(x/f)^2} + \frac {mf}{x^2 + f^2}    \right) = f_m(x) \quad \quad \quad \ldots&amp;lt;/math&amp;gt; needs simplifying&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So our psi functions satisfy&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;math&amp;gt;\nabla^2 \psi_m = 0 \quad for \quad m = 0,1,2, \ldots \quad \ldots (1)&amp;lt;/math&amp;gt;&lt;br /&gt;
  &lt;br /&gt;
  &amp;lt;math&amp;gt;\psi_m \rightarrow 0 \quad as \quad z \rightarrow -\infty \quad \ldots (2)&amp;lt;/math&amp;gt;&lt;br /&gt;
  &lt;br /&gt;
  &amp;lt;math&amp;gt;\partial_z \psi_m |_{z=f} - K\psi_m|_{z=f} = f_m(x) \quad \ldots (3)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Taking a Fourier transform in x&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\hat{\psi}_m = \int_{-\infty}^\infty \psi_m e^{i\omega x}dx&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;(1) \Rightarrow \partial_z^2 \hat{\psi}_m = \omega^2\hat{\psi}_m \Rightarrow \hat{\psi}_m = A_m(\omega)e^{\omega z} + B_m(\omega)e^{-\omega z}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;but \quad (2) \Rightarrow B_m(\omega) = 0 \quad \forall m&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;(3) \Rightarrow \partial_z \hat{\psi}_m |_{z=f} - K\hat{\psi}_m|_{z=f} = \hat{f}_m(\omega) = (\omega - K)\hat{\psi}_m|_{z=f} = (\omega - K)A(\omega)e^{\omega f}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Hence&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;A(\omega) = \frac{\hat{f}_m(\omega)}{\omega - K} e^{-\omega f} &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\psi_m = \frac{1}{2\pi}\int_{-\infty}^\infty \hat{\psi}_m e^{-i\omega x}d\omega = \frac{1}{2\pi}\int_{-\infty}^\infty  \frac{\hat{f}_m(\omega)}{\omega - K} e^{\omega (z-f)}  e^{-i\omega x}d\omega&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Example: 2D Wave Scattering for a Submerged Horizontal Cylinder (in Infinite Depth)==&lt;br /&gt;
&lt;br /&gt;
***Picture to show problem set up***&lt;br /&gt;
&lt;br /&gt;
The potential for the scattering problem splits as incident and diffracted potentials and also into symmetric and antisymmetric parts.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi = \phi_I + \phi_D = \phi^+ + \phi^-&amp;lt;/math&amp;gt; &lt;br /&gt;
&lt;br /&gt;
where&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \partial_r \phi_I |_{r=a} = - \partial_r \phi_D |_{r=a} &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and &amp;lt;math&amp;gt;\phi^+&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;\phi^-&amp;lt;/math&amp;gt; are the symmetric and antisymmetric parts of &amp;lt;math&amp;gt;\phi&amp;lt;/math&amp;gt; respectively.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For a wave incident from the left we have&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi_I = e^{Kz} e^{iKx} = e^{-Kf}\sum_{n=0}^\infty \frac{(-Kr)^n }{n!} e^{-in\theta}&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi_D = \sum_{n=1}^{\infty}a^n \alpha_n \phi_n^+ + \sum_{n=1}^{\infty}a^n \beta_n \phi_n^- &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi^+ = e^{Kz} \cos(Kx) + \sum_{n=1}^{\infty}a^n \alpha_n \phi_n^+&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
and &amp;lt;math&amp;gt;\phi^- = ie^{Kz} \sin(Kx) + \sum_{n=1}^{\infty}a^n \beta_n \phi_n^- &amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Converting &amp;lt;math&amp;gt;\phi^+&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\phi^-&amp;lt;/math&amp;gt; into the polar coordinate system:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi^+ = e^{-Kf}\sum_{n=0}^\infty \frac{(-Kr)^n }{n!} \cos(n\theta) + \sum_{n=1}^{\infty}a^n \alpha_n \left(\frac{\cos(n\theta)}{r^n} + \sum_{m=0}^\infty A_{mn}^+ r^m \cos(m\theta)\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi^- = ie^{-Kf}\sum_{n=0}^\infty \frac{(-Kr)^n }{n!} \sin(n\theta) + \sum_{n=1}^{\infty}a^n \alpha_n \left(\frac{\sin(n\theta)}{r^n} + \sum_{m=0}^\infty A_{mn}^+ r^m \sin(m\theta)\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The above power series converge for r &amp;lt; 2f and the coefficients are given by&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; A_{mn} = \frac{(-1)^{m+n}}{m!(n-1)!} \quad SingularIntegral_0^\infty \quad \frac{\mu + K}{\mu - K} \mu ^{m+n-1} e^{-2\mu f}d\mu &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Applying the body boundary condition &amp;lt;math&amp;gt;\partial_r \phi^\pm |_{r=a} = 0&amp;lt;/math&amp;gt; and noting that the cosines are orthogonal over &amp;lt;math&amp;gt;\theta \in  (-\pi,\pi]&amp;lt;/math&amp;gt; gives the results&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \alpha_m - \sum_{n=1}^{\infty}a^{n+m} A_{mn} \alpha_n = e^{-Kf}\frac {(-Ka)^m}{m!}; m=1,2,3,\ldots&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \beta_m - \sum_{n=1}^{\infty}a^{n+m} A_{mn} \beta_n = -ie^{-Kf}\frac {(-Ka)^m}{m!}; m=1,2,3,\ldots&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
From which we can see that &amp;lt;math&amp;gt;\beta_n = -i\alpha_n&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The above sums can be truncated at the Nth term yielding NxN system of linear equations that can be solved for the coefficients &amp;lt;math&amp;gt;\alpha_n&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hence we can calculate &amp;lt;math&amp;gt;\phi&amp;lt;/math&amp;gt; from:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi = \phi^+ + \phi^- = \phi_I + \sum_{n=1}^{\infty}a^n \alpha_n ( \phi^+_n + \phi^-_n )&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This expression also gives the values of the reflection and transmission coefficients when we substitute the far field expressions for the symmetric and antisymmetric multipoles. In the far field:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \phi^+_n \sim \frac{2\pi i (-K)^n}{(n-1)!} e^{K(z-f)} e^{\pm Kx} &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math &amp;gt; \phi^-_n \sim \mp \frac{2\pi (-K)^n}{(n-1)!} e^{K(z-f)} e^{\pm Kx} &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Giving:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;R=0, \quad T = 1 + 4 \pi i e^{-Kf}  \sum_{n=1}^{\infty} \alpha_n \frac{(-Ka)^n}{(n-1)!} &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Hydrodynamic Forces ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Linear Water-Wave Theory]]&lt;/div&gt;</summary>
		<author><name>Sean Curry</name></author>
	</entry>
	<entry>
		<id>https://www.wikiwaves.org/index.php?title=User_talk:Sean_Curry&amp;diff=10709</id>
		<title>User talk:Sean Curry</title>
		<link rel="alternate" type="text/html" href="https://www.wikiwaves.org/index.php?title=User_talk:Sean_Curry&amp;diff=10709"/>
		<updated>2010-02-08T02:14:26Z</updated>

		<summary type="html">&lt;p&gt;Sean Curry: /* With the Free Surface BC */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Multipole Expansions ==&lt;br /&gt;
&lt;br /&gt;
Moltipole expansions are a technique used in linear water wave theory where the potential is represented as a sum of singularities (multipoles) placed within any structures that are present. Multipoles can be constructed with their singularity submerged or on the free surface and these are treated seperately.&lt;br /&gt;
&lt;br /&gt;
Multipoles satisfy:&lt;br /&gt;
&lt;br /&gt;
- The feild equation&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\nabla^2 \phi = 0 &amp;lt;/math&amp;gt;throughout the fluid domain&lt;br /&gt;
&lt;br /&gt;
- The free surface boundary condition&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\partial _z \phi = K\phi \quad on \quad z=0&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where the z-axis is oriented vertically upwards and the zero is on the free surface&lt;br /&gt;
&lt;br /&gt;
- The bed boundary condition&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\partial_n \phi = 0 \quad on \quad z=-h(x,y)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
- A radiation condition ensuring the potentials represent outgoing waves in the far feild. In two dimensions:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \lim _{kx \rightarrow \pm \infty} \left( \frac{\partial \phi}{\partial x} \mp ik\phi \right) = 0 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
A linear combination of these multipoles can then be made to satisfy the body boundary conditions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== 2D Exterior Neumann Problem ==&lt;br /&gt;
&lt;br /&gt;
Outside a disk of radius a centered at the origin in an infinite domain:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\nabla^2 \phi = \left[   \partial_r^2 + \frac{1}{r}\partial_r + \frac{1}{r^2} \partial_\theta^2  \right] \phi= 0 \quad for \quad r&amp;gt;a &amp;lt;/math&amp;gt; &lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\partial_n \phi |_{r=a} = 0&amp;lt;/math&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;math&amp;gt;|\nabla\phi| \rightarrow 0 \quad as \quad r \rightarrow \infty &amp;lt;/math&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
&amp;lt;math&amp;gt;Let \quad \phi = R(r)\Theta(\theta)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Seperating variables we get:&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{r^2}{R}\partial_r^2 R + \frac{r}{R}\partial_r R = - \frac{1}{\Theta}\partial_\theta^2 \Theta = m^2 &amp;lt;/math&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;For \quad \Theta: \quad \partial_\theta^2 \Theta = -m^2\Theta &amp;lt;/math&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;math&amp;gt;\Rightarrow \Theta = A(m) \cos(m\theta) + B(m) \sin(m\theta) \quad for \quad  m \neq 0 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{When} \quad m = 0 \quad \mathrm{the \quad obvious \quad solution \quad is} \quad \Theta = A(0) + B(0)\theta &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;Requiring \quad \Theta(\theta + 2\pi) = \Theta(\theta) \quad gives \quad m \in Z \quad and \quad B(0) = 0&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  &lt;br /&gt;
&amp;lt;math&amp;gt;For \quad R: \quad r^2\partial_r^2 R + r\partial_rR = m^2 R &amp;lt;/math&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
we substitute R = r^n giving:&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;math&amp;gt;n(n-1)r^n + nr^n = m^2r^n \quad \Rightarrow \quad n^2 = m^2 \quad \Rightarrow \quad  n= \pm m&amp;lt;/math&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
This gives two independent solutions for all m except m = 0, where we only get the constant solution. Noting that:&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;math&amp;gt;  \nabla^2 \left( \ln(r) \right) = \frac{-1}{r^2} + \frac{1}{r^2}  = 0  \quad . &amp;lt;/math&amp;gt; Hence, for m=0, we can write:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;R = C\left(0\right) + D(0) \ln(r)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and for &amp;lt;math&amp;gt;m\neq 0:&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;R = C\left(m\right)r^m + D(m)r^{-m}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;math&amp;gt;Since\quad|\nabla\phi| \rightarrow 0 \quad as \quad r \rightarrow \infty, &amp;lt;/math&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;math&amp;gt;\partial_r R \rightarrow 0 \quad as \quad r \rightarrow \infty &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\Rightarrow C(m)= 0 \quad\forall m \neq 0&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hence the general solution can be expressed as:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi = C(0) + D(0) \ln(r) + \sum_{m=1}^\infty \left( a(m)\frac{\cos(m\theta)}{r^m} +  b(m)\frac{\sin(m\theta)}{r^m}  \right) &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Which can also be expressed simply in terms of complex exponentials.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== With the Free Surface BC ==&lt;br /&gt;
&lt;br /&gt;
When we introduce the free surface BC we need to find a new set of eigenfunctions. We can use eigenfunctions from the infinite domain problem to construct them.&lt;br /&gt;
&lt;br /&gt;
We write&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi_m = \frac{e^{im\theta}}{r^m} + \psi_m &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi_0 = \ln\left(\frac{r}{a}\right) + \psi_0 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Where&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\nabla^2 \psi_m = 0 \quad for \quad m = 0,1,2, \ldots&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We want&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\partial_z \phi |_{z=f} = K\phi|_{z=f} \quad \forall m = 0,1,2, \ldots&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For m=0&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\partial_z \psi_0 |_{z=f} - K\psi_0|_{z=f} = K\ln\left(\frac{r}{a}\right)|_{z=f}  - \partial_z \left(ln\left(\frac{r}{a}\right)\right)|_{z=f} = K \ln\left(\frac{\sqrt{x^2 + f^2}}{a}\right) - \int_0^\infty e^{-2\mu f}\cos(\mu x)d\mu = f_0(x)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\ln(r) = \int_0^\infty (e^{-\mu}- e^{-\mu|z+f|}\cos(\mu x))\frac{d\mu}{\mu}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For m&amp;gt;0&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\partial_z \psi_m |_{z=f} - K\psi_m|_{z=f} = K  \frac{e^{im\theta}}{r^m}  |_{z=f}  - \partial_z \left(\frac{e^{im\theta}}{r^m}\right)|_{z=f} = \frac{e^{im\tan(-x/f)}}{(x^2+f^2)^{m/2}} \left(  K + \frac{imx\ln(f)}{1-(x/f)^2} + \frac {mf}{x^2 + f^2}    \right) = f_m(x) \quad \quad \quad \ldots&amp;lt;/math&amp;gt; needs simplifying&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So our psi functions satisfy&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;math&amp;gt;\nabla^2 \psi_m = 0 \quad for \quad m = 0,1,2, \ldots \quad \ldots (1)&amp;lt;/math&amp;gt;&lt;br /&gt;
  &lt;br /&gt;
  &amp;lt;math&amp;gt;\psi_m \rightarrow 0 \quad as \quad z \rightarrow -\infty \quad \ldots (2)&amp;lt;/math&amp;gt;&lt;br /&gt;
  &lt;br /&gt;
  &amp;lt;math&amp;gt;\partial_z \psi_m |_{z=f} - K\psi_m|_{z=f} = f_m(x) \quad \ldots (3)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Taking a Fourier transform in x&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\hat{\psi}_m = \int_{-\infty}^\infty \psi_m e^{i\omega x}dx&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;(1) \Rightarrow \partial_z^2 \hat{\psi}_m = \omega^2\hat{\psi}_m \Rightarrow \hat{\psi}_m = A_m(\omega)e^{\omega z} + B_m(\omega)e^{-\omega z}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;but \quad (2) \Rightarrow B_m(\omega) = 0 \quad \forall m&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;(3) \Rightarrow \partial_z \hat{\psi}_m |_{z=f} - K\hat{\psi}_m|_{z=f} = \hat{f}_m(\omega) = (\omega - K)\hat{\psi}_m|_{z=f} = (\omega - K)A(\omega)e^{\omega f}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Hence&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;A(\omega) = \frac{\hat{f}_m(\omega)}{\omega - K} e^{-\omega f} &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\psi_m = \frac{1}{2\pi}\int_{-\infty}^\infty \hat{\psi}_m e^{-i\omega x}d\omega = \frac{1}{2\pi}\int_{-\infty}^\infty  \frac{\hat{f}_m(\omega)}{\omega - K} e^{\omega (z-f)}  e^{-i\omega x}d\omega&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Example: 2D Wave Scattering for a Submerged Horizontal Cylinder (in Infinite Depth)==&lt;br /&gt;
&lt;br /&gt;
***Picture to show problem set up***&lt;br /&gt;
&lt;br /&gt;
The potential for the scattering problem splits as incident and diffracted potentials and also into symmetric and antisymmetric parts.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi = \phi_I + \phi_D = \phi^+ + \phi^-&amp;lt;/math&amp;gt; &lt;br /&gt;
&lt;br /&gt;
where&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \partial_r \phi_I |_{r=a} = - \partial_r \phi_D |_{r=a} &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and &amp;lt;math&amp;gt;\phi^+&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;\phi^-&amp;lt;/math&amp;gt; are the symmetric and antisymmetric parts of &amp;lt;math&amp;gt;\phi&amp;lt;/math&amp;gt; respectively.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For a wave incident from the left we have&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi_I = e^{Kz} e^{iKx} = e^{-Kf}\sum_{n=0}^\infty \frac{(-Kr)^n }{n!} e^{-in\theta}&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi_D = \sum_{n=1}^{\infty}a^n \alpha_n \phi_n^+ + \sum_{n=1}^{\infty}a^n \beta_n \phi_n^- &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi^+ = e^{Kz} \cos(Kx) + \sum_{n=1}^{\infty}a^n \alpha_n \phi_n^+&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
and &amp;lt;math&amp;gt;\phi^- = ie^{Kz} \sin(Kx) + \sum_{n=1}^{\infty}a^n \beta_n \phi_n^- &amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Converting &amp;lt;math&amp;gt;\phi^+&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\phi^-&amp;lt;/math&amp;gt; into the polar coordinate system:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi^+ = e^{-Kf}\sum_{n=0}^\infty \frac{(-Kr)^n }{n!} \cos(n\theta) + \sum_{n=1}^{\infty}a^n \alpha_n \left(\frac{\cos(n\theta)}{r^n} + \sum_{m=0}^\infty A_{mn}^+ r^m \cos(m\theta)\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi^- = ie^{-Kf}\sum_{n=0}^\infty \frac{(-Kr)^n }{n!} \sin(n\theta) + \sum_{n=1}^{\infty}a^n \alpha_n \left(\frac{\sin(n\theta)}{r^n} + \sum_{m=0}^\infty A_{mn}^+ r^m \sin(m\theta)\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The above power series converge for r &amp;lt; 2f and the coefficients are given by&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; A_{mn} = \frac{(-1)^{m+n}}{m!(n-1)!} \quad SingularIntegral_0^\infty \quad \frac{\mu + K}{\mu - K} \mu ^{m+n-1} e^{-2\mu f}d\mu &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Applying the body boundary condition &amp;lt;math&amp;gt;\partial_r \phi^\pm |_{r=a} = 0&amp;lt;/math&amp;gt; and noting that the cosines are orthogonal over &amp;lt;math&amp;gt;\theta \in  (-\pi,\pi]&amp;lt;/math&amp;gt; gives the results&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \alpha_m - \sum_{n=1}^{\infty}a^{n+m} A_{mn} \alpha_n = e^{-Kf}\frac {(-Ka)^m}{m!}; m=1,2,3,\ldots&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \beta_m - \sum_{n=1}^{\infty}a^{n+m} A_{mn} \beta_n = -ie^{-Kf}\frac {(-Ka)^m}{m!}; m=1,2,3,\ldots&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
From which we can see that &amp;lt;math&amp;gt;\beta_n = -i\alpha_n&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The above sums can be truncated at the Nth term yielding NxN system of linear equations that can be solved for the coefficients &amp;lt;math&amp;gt;\alpha_n&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hence we can calculate &amp;lt;math&amp;gt;\phi&amp;lt;/math&amp;gt; from:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi = \phi^+ + \phi^- = \phi_I + \sum_{n=1}^{\infty}a^n \alpha_n ( \phi^+_n + \phi^-_n )&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This expression also gives the values of the reflection and transmission coefficients when we substitute the far field expressions for the symmetric and antisymmetric multipoles. In the far field:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \phi^+_n \sim \frac{2\pi i (-K)^n}{(n-1)!} e^{K(z-f)} e^{\pm Kx} &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math &amp;gt; \phi^-_n \sim \mp \frac{2\pi (-K)^n}{(n-1)!} e^{K(z-f)} e^{\pm Kx} &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Giving:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;R=0, \quad T = 1 + 4 \pi i e^{-Kf}  \sum_{n=1}^{\infty} \alpha_n \frac{(-Ka)^n}{(n-1)!} &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Hydrodynamic Forces ==&lt;/div&gt;</summary>
		<author><name>Sean Curry</name></author>
	</entry>
	<entry>
		<id>https://www.wikiwaves.org/index.php?title=User_talk:Sean_Curry&amp;diff=10707</id>
		<title>User talk:Sean Curry</title>
		<link rel="alternate" type="text/html" href="https://www.wikiwaves.org/index.php?title=User_talk:Sean_Curry&amp;diff=10707"/>
		<updated>2010-02-07T22:44:59Z</updated>

		<summary type="html">&lt;p&gt;Sean Curry: /* With the Free Surface BC */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Multipole Expansions ==&lt;br /&gt;
&lt;br /&gt;
Moltipole expansions are a technique used in linear water wave theory where the potential is represented as a sum of singularities (multipoles) placed within any structures that are present. Multipoles can be constructed with their singularity submerged or on the free surface and these are treated seperately.&lt;br /&gt;
&lt;br /&gt;
Multipoles satisfy:&lt;br /&gt;
&lt;br /&gt;
- The feild equation&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\nabla^2 \phi = 0 &amp;lt;/math&amp;gt;throughout the fluid domain&lt;br /&gt;
&lt;br /&gt;
- The free surface boundary condition&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\partial _z \phi = K\phi \quad on \quad z=0&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where the z-axis is oriented vertically upwards and the zero is on the free surface&lt;br /&gt;
&lt;br /&gt;
- The bed boundary condition&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\partial_n \phi = 0 \quad on \quad z=-h(x,y)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
- A radiation condition ensuring the potentials represent outgoing waves in the far feild. In two dimensions:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \lim _{kx \rightarrow \pm \infty} \left( \frac{\partial \phi}{\partial x} \mp ik\phi \right) = 0 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
A linear combination of these multipoles can then be made to satisfy the body boundary conditions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== 2D Exterior Neumann Problem ==&lt;br /&gt;
&lt;br /&gt;
Outside a disk of radius a centered at the origin in an infinite domain:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\nabla^2 \phi = \left[   \partial_r^2 + \frac{1}{r}\partial_r + \frac{1}{r^2} \partial_\theta^2  \right] \phi= 0 \quad for \quad r&amp;gt;a &amp;lt;/math&amp;gt; &lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\partial_n \phi |_{r=a} = 0&amp;lt;/math&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;math&amp;gt;|\nabla\phi| \rightarrow 0 \quad as \quad r \rightarrow \infty &amp;lt;/math&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
&amp;lt;math&amp;gt;Let \quad \phi = R(r)\Theta(\theta)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Seperating variables we get:&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{r^2}{R}\partial_r^2 R + \frac{r}{R}\partial_r R = - \frac{1}{\Theta}\partial_\theta^2 \Theta = m^2 &amp;lt;/math&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;For \quad \Theta: \quad \partial_\theta^2 \Theta = -m^2\Theta &amp;lt;/math&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;math&amp;gt;\Rightarrow \Theta = A(m) \cos(m\theta) + B(m) \sin(m\theta) \quad for \quad  m \neq 0 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{When} \quad m = 0 \quad \mathrm{the \quad obvious \quad solution \quad is} \quad \Theta = A(0) + B(0)\theta &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;Requiring \quad \Theta(\theta + 2\pi) = \Theta(\theta) \quad gives \quad m \in Z \quad and \quad B(0) = 0&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  &lt;br /&gt;
&amp;lt;math&amp;gt;For \quad R: \quad r^2\partial_r^2 R + r\partial_rR = m^2 R &amp;lt;/math&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
we substitute R = r^n giving:&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;math&amp;gt;n(n-1)r^n + nr^n = m^2r^n \quad \Rightarrow \quad n^2 = m^2 \quad \Rightarrow \quad  n= \pm m&amp;lt;/math&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
This gives two independent solutions for all m except m = 0, where we only get the constant solution. Noting that:&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;math&amp;gt;  \nabla^2 \left( \ln(r) \right) = \frac{-1}{r^2} + \frac{1}{r^2}  = 0  \quad . &amp;lt;/math&amp;gt; Hence, for m=0, we can write:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;R = C\left(0\right) + D(0) \ln(r)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and for &amp;lt;math&amp;gt;m\neq 0:&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;R = C\left(m\right)r^m + D(m)r^{-m}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;math&amp;gt;Since\quad|\nabla\phi| \rightarrow 0 \quad as \quad r \rightarrow \infty, &amp;lt;/math&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;math&amp;gt;\partial_r R \rightarrow 0 \quad as \quad r \rightarrow \infty &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\Rightarrow C(m)= 0 \quad\forall m \neq 0&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hence the general solution can be expressed as:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi = C(0) + D(0) \ln(r) + \sum_{m=1}^\infty \left( a(m)\frac{\cos(m\theta)}{r^m} +  b(m)\frac{\sin(m\theta)}{r^m}  \right) &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Which can also be expressed simply in terms of complex exponentials.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== With the Free Surface BC ==&lt;br /&gt;
&lt;br /&gt;
When we introduce the free surface BC we need to find a new set of eigenfunctions. We can use eigenfunctions from the infinite domain problem to construct them.&lt;br /&gt;
&lt;br /&gt;
We write&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi_m = \frac{e^{im\theta}}{r^m} + \psi_m &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi_0 = \ln\left(\frac{r}{a}\right) + \psi_0 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Where&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\nabla^2 \psi_m = 0 \quad for \quad m = 0,1,2, \ldots&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We want&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\partial_z \phi |_{z=f} = K\phi|_{z=f} \quad \forall m = 0,1,2, \ldots&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For m=0&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\partial_z \psi_0 |_{z=f} - K\psi_0|_{z=f} = K\ln\left(\frac{r}{a}\right)|_{z=f}  - \partial_z \left(ln\left(\frac{r}{a}\right)\right)|_{z=f} = K \ln\left(\frac{\sqrt{x^2 + f^2}}{a}\right) - \int_0^\infty e^{-2\mu f}\cos(\mu x)d\mu = f_0(x)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\ln(r) = \int_0^\infty (e^{-\mu}- e^{-\mu|z+f|}\cos(\mu x)\frac{d\mu}{\mu})&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For m&amp;gt;0&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\partial_z \psi_m |_{z=f} - K\psi_m|_{z=f} = K  \frac{e^{im\theta}}{r^m}  |_{z=f}  - \partial_z \left(\frac{e^{im\theta}}{r^m}\right)|_{z=f} = \frac{e^{im\tan(-x/f)}}{(x^2+f^2)^{m/2}} \left(  K + \frac{imx\ln(f)}{1-(x/f)^2} + \frac {mf}{x^2 + f^2}    \right) = f_m(x) \quad \quad \quad \ldots&amp;lt;/math&amp;gt; needs simplifying&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So our psi functions satisfy&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;math&amp;gt;\nabla^2 \psi_m = 0 \quad for \quad m = 0,1,2, \ldots \quad \ldots (1)&amp;lt;/math&amp;gt;&lt;br /&gt;
  &lt;br /&gt;
  &amp;lt;math&amp;gt;\psi_m \rightarrow 0 \quad as \quad z \rightarrow -\infty \quad \ldots (2)&amp;lt;/math&amp;gt;&lt;br /&gt;
  &lt;br /&gt;
  &amp;lt;math&amp;gt;\partial_z \psi_m |_{z=f} - K\psi_m|_{z=f} = f_m(x) \quad \ldots (3)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Taking a Fourier transform in x&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\hat{\psi}_m = \int_{-\infty}^\infty \psi_m e^{i\omega x}dx&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;(1) \Rightarrow \partial_z^2 \hat{\psi}_m = \omega^2\hat{\psi}_m \Rightarrow \hat{\psi}_m = A_m(\omega)e^{\omega z} + B_m(\omega)e^{-\omega z}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;but \quad (2) \Rightarrow B_m(\omega) = 0 \quad \forall m&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;(3) \Rightarrow \partial_z \hat{\psi}_m |_{z=f} - K\hat{\psi}_m|_{z=f} = \hat{f}_m(\omega) = (\omega - K)\hat{\psi}_m|_{z=f} = (\omega - K)A(\omega)e^{\omega f}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Hence&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;A(\omega) = \frac{\hat{f}_m(\omega)}{\omega - K} e^{-\omega f} &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\psi_m = \frac{1}{2\pi}\int_{-\infty}^\infty \hat{\psi}_m e^{-i\omega x}d\omega = \frac{1}{2\pi}\int_{-\infty}^\infty  \frac{\hat{f}_m(\omega)}{\omega - K} e^{\omega (z-f)}  e^{-i\omega x}d\omega&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Example: 2D Wave Scattering for a Submerged Horizontal Cylinder (in Infinite Depth)==&lt;br /&gt;
&lt;br /&gt;
***Picture to show problem set up***&lt;br /&gt;
&lt;br /&gt;
The potential for the scattering problem splits as incident and diffracted potentials and also into symmetric and antisymmetric parts.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi = \phi_I + \phi_D = \phi^+ + \phi^-&amp;lt;/math&amp;gt; &lt;br /&gt;
&lt;br /&gt;
where&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \partial_r \phi_I |_{r=a} = - \partial_r \phi_D |_{r=a} &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and &amp;lt;math&amp;gt;\phi^+&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;\phi^-&amp;lt;/math&amp;gt; are the symmetric and antisymmetric parts of &amp;lt;math&amp;gt;\phi&amp;lt;/math&amp;gt; respectively.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For a wave incident from the left we have&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi_I = e^{Kz} e^{iKx} = e^{-Kf}\sum_{n=0}^\infty \frac{(-Kr)^n }{n!} e^{-in\theta}&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi_D = \sum_{n=1}^{\infty}a^n \alpha_n \phi_n^+ + \sum_{n=1}^{\infty}a^n \beta_n \phi_n^- &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi^+ = e^{Kz} \cos(Kx) + \sum_{n=1}^{\infty}a^n \alpha_n \phi_n^+&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
and &amp;lt;math&amp;gt;\phi^- = ie^{Kz} \sin(Kx) + \sum_{n=1}^{\infty}a^n \beta_n \phi_n^- &amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Converting &amp;lt;math&amp;gt;\phi^+&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\phi^-&amp;lt;/math&amp;gt; into the polar coordinate system:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi^+ = e^{-Kf}\sum_{n=0}^\infty \frac{(-Kr)^n }{n!} \cos(n\theta) + \sum_{n=1}^{\infty}a^n \alpha_n \left(\frac{\cos(n\theta)}{r^n} + \sum_{m=0}^\infty A_{mn}^+ r^m \cos(m\theta)\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi^- = ie^{-Kf}\sum_{n=0}^\infty \frac{(-Kr)^n }{n!} \sin(n\theta) + \sum_{n=1}^{\infty}a^n \alpha_n \left(\frac{\sin(n\theta)}{r^n} + \sum_{m=0}^\infty A_{mn}^+ r^m \sin(m\theta)\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The above power series converge for r &amp;lt; 2f and the coefficients are given by&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; A_{mn} = \frac{(-1)^{m+n}}{m!(n-1)!} \quad SingularIntegral_0^\infty \quad \frac{\mu + K}{\mu - K} \mu ^{m+n-1} e^{-2\mu f}d\mu &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Applying the body boundary condition &amp;lt;math&amp;gt;\partial_r \phi^\pm |_{r=a} = 0&amp;lt;/math&amp;gt; and noting that the cosines are orthogonal over &amp;lt;math&amp;gt;\theta \in  (-\pi,\pi]&amp;lt;/math&amp;gt; gives the results&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \alpha_m - \sum_{n=1}^{\infty}a^{n+m} A_{mn} \alpha_n = e^{-Kf}\frac {(-Ka)^m}{m!}; m=1,2,3,\ldots&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \beta_m - \sum_{n=1}^{\infty}a^{n+m} A_{mn} \beta_n = -ie^{-Kf}\frac {(-Ka)^m}{m!}; m=1,2,3,\ldots&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
From which we can see that &amp;lt;math&amp;gt;\beta_n = -i\alpha_n&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The above sums can be truncated at the Nth term yielding NxN system of linear equations that can be solved for the coefficients &amp;lt;math&amp;gt;\alpha_n&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hence we can calculate &amp;lt;math&amp;gt;\phi&amp;lt;/math&amp;gt; from:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi = \phi^+ + \phi^- = \phi_I + \sum_{n=1}^{\infty}a^n \alpha_n ( \phi^+_n + \phi^-_n )&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This expression also gives the values of the reflection and transmission coefficients when we substitute the far field expressions for the symmetric and antisymmetric multipoles. In the far field:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \phi^+_n \sim \frac{2\pi i (-K)^n}{(n-1)!} e^{K(z-f)} e^{\pm Kx} &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math &amp;gt; \phi^-_n \sim \mp \frac{2\pi (-K)^n}{(n-1)!} e^{K(z-f)} e^{\pm Kx} &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Giving:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;R=0, \quad T = 1 + 4 \pi i e^{-Kf}  \sum_{n=1}^{\infty} \alpha_n \frac{(-Ka)^n}{(n-1)!} &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Hydrodynamic Forces ==&lt;/div&gt;</summary>
		<author><name>Sean Curry</name></author>
	</entry>
	<entry>
		<id>https://www.wikiwaves.org/index.php?title=User_talk:Sean_Curry&amp;diff=10705</id>
		<title>User talk:Sean Curry</title>
		<link rel="alternate" type="text/html" href="https://www.wikiwaves.org/index.php?title=User_talk:Sean_Curry&amp;diff=10705"/>
		<updated>2010-02-07T21:50:04Z</updated>

		<summary type="html">&lt;p&gt;Sean Curry: /* With the Free Surface BC */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Multipole Expansions ==&lt;br /&gt;
&lt;br /&gt;
Moltipole expansions are a technique used in linear water wave theory where the potential is represented as a sum of singularities (multipoles) placed within any structures that are present. Multipoles can be constructed with their singularity submerged or on the free surface and these are treated seperately.&lt;br /&gt;
&lt;br /&gt;
Multipoles satisfy:&lt;br /&gt;
&lt;br /&gt;
- The feild equation&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\nabla^2 \phi = 0 &amp;lt;/math&amp;gt;throughout the fluid domain&lt;br /&gt;
&lt;br /&gt;
- The free surface boundary condition&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\partial _z \phi = K\phi \quad on \quad z=0&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where the z-axis is oriented vertically upwards and the zero is on the free surface&lt;br /&gt;
&lt;br /&gt;
- The bed boundary condition&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\partial_n \phi = 0 \quad on \quad z=-h(x,y)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
- A radiation condition ensuring the potentials represent outgoing waves in the far feild. In two dimensions:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \lim _{kx \rightarrow \pm \infty} \left( \frac{\partial \phi}{\partial x} \mp ik\phi \right) = 0 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
A linear combination of these multipoles can then be made to satisfy the body boundary conditions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== 2D Exterior Neumann Problem ==&lt;br /&gt;
&lt;br /&gt;
Outside a disk of radius a centered at the origin in an infinite domain:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\nabla^2 \phi = \left[   \partial_r^2 + \frac{1}{r}\partial_r + \frac{1}{r^2} \partial_\theta^2  \right] \phi= 0 \quad for \quad r&amp;gt;a &amp;lt;/math&amp;gt; &lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\partial_n \phi |_{r=a} = 0&amp;lt;/math&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;math&amp;gt;|\nabla\phi| \rightarrow 0 \quad as \quad r \rightarrow \infty &amp;lt;/math&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
&amp;lt;math&amp;gt;Let \quad \phi = R(r)\Theta(\theta)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Seperating variables we get:&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{r^2}{R}\partial_r^2 R + \frac{r}{R}\partial_r R = - \frac{1}{\Theta}\partial_\theta^2 \Theta = m^2 &amp;lt;/math&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;For \quad \Theta: \quad \partial_\theta^2 \Theta = -m^2\Theta &amp;lt;/math&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;math&amp;gt;\Rightarrow \Theta = A(m) \cos(m\theta) + B(m) \sin(m\theta) \quad for \quad  m \neq 0 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{When} \quad m = 0 \quad \mathrm{the \quad obvious \quad solution \quad is} \quad \Theta = A(0) + B(0)\theta &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;Requiring \quad \Theta(\theta + 2\pi) = \Theta(\theta) \quad gives \quad m \in Z \quad and \quad B(0) = 0&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  &lt;br /&gt;
&amp;lt;math&amp;gt;For \quad R: \quad r^2\partial_r^2 R + r\partial_rR = m^2 R &amp;lt;/math&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
we substitute R = r^n giving:&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;math&amp;gt;n(n-1)r^n + nr^n = m^2r^n \quad \Rightarrow \quad n^2 = m^2 \quad \Rightarrow \quad  n= \pm m&amp;lt;/math&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
This gives two independent solutions for all m except m = 0, where we only get the constant solution. Noting that:&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;math&amp;gt;  \nabla^2 \left( \ln(r) \right) = \frac{-1}{r^2} + \frac{1}{r^2}  = 0  \quad . &amp;lt;/math&amp;gt; Hence, for m=0, we can write:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;R = C\left(0\right) + D(0) \ln(r)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and for &amp;lt;math&amp;gt;m\neq 0:&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;R = C\left(m\right)r^m + D(m)r^{-m}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;math&amp;gt;Since\quad|\nabla\phi| \rightarrow 0 \quad as \quad r \rightarrow \infty, &amp;lt;/math&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;math&amp;gt;\partial_r R \rightarrow 0 \quad as \quad r \rightarrow \infty &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\Rightarrow C(m)= 0 \quad\forall m \neq 0&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hence the general solution can be expressed as:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi = C(0) + D(0) \ln(r) + \sum_{m=1}^\infty \left( a(m)\frac{\cos(m\theta)}{r^m} +  b(m)\frac{\sin(m\theta)}{r^m}  \right) &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Which can also be expressed simply in terms of complex exponentials.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== With the Free Surface BC ==&lt;br /&gt;
&lt;br /&gt;
When we introduce the free surface BC we need to find a new set of eigenfunctions. We can use eigenfunctions from the infinite domain problem to construct them.&lt;br /&gt;
&lt;br /&gt;
We write&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi_m = \frac{e^{im\theta}}{r^m} + \psi_m &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi_0 = \ln\left(\frac{r}{a}\right) + \psi_0 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Where&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\nabla^2 \psi_m = 0 \quad for \quad m = 0,1,2, \ldots&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We want&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\partial_z \phi |_{z=f} = K\phi|_{z=f} \quad \forall m = 0,1,2, \ldots&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For m=0&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\partial_z \psi_0 |_{z=f} - K\psi_0|_{z=f} = K\ln\left(\frac{r}{a}\right)|_{z=f}  - \partial_z \left(ln\left(\frac{r}{a}\right)\right)|_{z=f} = K \ln\left(\frac{\sqrt{x^2 + f^2}}{a}\right) - \int_0^\infty e^{-2\mu f}\cos(\mu x)d\mu = f_0(x)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\ln(r) = \int_0^\infty (e^{-\mu}- e^{-\mu|z+f|}\cos(\mu x)\frac{d\mu}{\mu})&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For m&amp;gt;0&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\partial_z \psi_m |_{z=f} - K\psi_m|_{z=f} = K  \frac{e^{im\theta}}{r^m}  |_{z=f}  - \partial_z \left(\frac{e^{im\theta}}{r^m}\right)|_{z=f} = \frac{e^{im\tan(-x/f)}}{(x^2+f^2)^{m/2}} \left(  K + \frac{imx\ln(f)}{1-(x/f)^2} + \frac {mf}{x^2 + f^2}    \right) = f_m(x) \quad \quad \quad \ldots&amp;lt;/math&amp;gt; needs simplifying&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So our psi functions satisfy&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;math&amp;gt;\nabla^2 \psi_m = 0 \quad for \quad m = 0,1,2, \ldots&amp;lt;/math&amp;gt;&lt;br /&gt;
  &lt;br /&gt;
  &amp;lt;math&amp;gt;\psi_m \rightarrow 0 \quad as \quad z \rightarrow -\infty&amp;lt;/math&amp;gt;&lt;br /&gt;
  &lt;br /&gt;
  &amp;lt;math&amp;gt;\partial_z \psi_m |_{z=f} - K\psi_m|_{z=f} = f_m(x) &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Example: 2D Wave Scattering for a Submerged Horizontal Cylinder (in Infinite Depth)==&lt;br /&gt;
&lt;br /&gt;
***Picture to show problem set up***&lt;br /&gt;
&lt;br /&gt;
The potential for the scattering problem splits as incident and diffracted potentials and also into symmetric and antisymmetric parts.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi = \phi_I + \phi_D = \phi^+ + \phi^-&amp;lt;/math&amp;gt; &lt;br /&gt;
&lt;br /&gt;
where&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \partial_r \phi_I |_{r=a} = - \partial_r \phi_D |_{r=a} &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and &amp;lt;math&amp;gt;\phi^+&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;\phi^-&amp;lt;/math&amp;gt; are the symmetric and antisymmetric parts of &amp;lt;math&amp;gt;\phi&amp;lt;/math&amp;gt; respectively.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For a wave incident from the left we have&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi_I = e^{Kz} e^{iKx} = e^{-Kf}\sum_{n=0}^\infty \frac{(-Kr)^n }{n!} e^{-in\theta}&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi_D = \sum_{n=1}^{\infty}a^n \alpha_n \phi_n^+ + \sum_{n=1}^{\infty}a^n \beta_n \phi_n^- &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi^+ = e^{Kz} \cos(Kx) + \sum_{n=1}^{\infty}a^n \alpha_n \phi_n^+&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
and &amp;lt;math&amp;gt;\phi^- = ie^{Kz} \sin(Kx) + \sum_{n=1}^{\infty}a^n \beta_n \phi_n^- &amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Converting &amp;lt;math&amp;gt;\phi^+&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\phi^-&amp;lt;/math&amp;gt; into the polar coordinate system:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi^+ = e^{-Kf}\sum_{n=0}^\infty \frac{(-Kr)^n }{n!} \cos(n\theta) + \sum_{n=1}^{\infty}a^n \alpha_n \left(\frac{\cos(n\theta)}{r^n} + \sum_{m=0}^\infty A_{mn}^+ r^m \cos(m\theta)\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi^- = ie^{-Kf}\sum_{n=0}^\infty \frac{(-Kr)^n }{n!} \sin(n\theta) + \sum_{n=1}^{\infty}a^n \alpha_n \left(\frac{\sin(n\theta)}{r^n} + \sum_{m=0}^\infty A_{mn}^+ r^m \sin(m\theta)\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The above power series converge for r &amp;lt; 2f and the coefficients are given by&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; A_{mn} = \frac{(-1)^{m+n}}{m!(n-1)!} \quad SingularIntegral_0^\infty \quad \frac{\mu + K}{\mu - K} \mu ^{m+n-1} e^{-2\mu f}d\mu &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Applying the body boundary condition &amp;lt;math&amp;gt;\partial_r \phi^\pm |_{r=a} = 0&amp;lt;/math&amp;gt; and noting that the cosines are orthogonal over &amp;lt;math&amp;gt;\theta \in  (-\pi,\pi]&amp;lt;/math&amp;gt; gives the results&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \alpha_m - \sum_{n=1}^{\infty}a^{n+m} A_{mn} \alpha_n = e^{-Kf}\frac {(-Ka)^m}{m!}; m=1,2,3,\ldots&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \beta_m - \sum_{n=1}^{\infty}a^{n+m} A_{mn} \beta_n = -ie^{-Kf}\frac {(-Ka)^m}{m!}; m=1,2,3,\ldots&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
From which we can see that &amp;lt;math&amp;gt;\beta_n = -i\alpha_n&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The above sums can be truncated at the Nth term yielding NxN system of linear equations that can be solved for the coefficients &amp;lt;math&amp;gt;\alpha_n&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hence we can calculate &amp;lt;math&amp;gt;\phi&amp;lt;/math&amp;gt; from:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi = \phi^+ + \phi^- = \phi_I + \sum_{n=1}^{\infty}a^n \alpha_n ( \phi^+_n + \phi^-_n )&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This expression also gives the values of the reflection and transmission coefficients when we substitute the far field expressions for the symmetric and antisymmetric multipoles. In the far field:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \phi^+_n \sim \frac{2\pi i (-K)^n}{(n-1)!} e^{K(z-f)} e^{\pm Kx} &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math &amp;gt; \phi^-_n \sim \mp \frac{2\pi (-K)^n}{(n-1)!} e^{K(z-f)} e^{\pm Kx} &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Giving:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;R=0, \quad T = 1 + 4 \pi i e^{-Kf}  \sum_{n=1}^{\infty} \alpha_n \frac{(-Ka)^n}{(n-1)!} &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Hydrodynamic Forces ==&lt;/div&gt;</summary>
		<author><name>Sean Curry</name></author>
	</entry>
	<entry>
		<id>https://www.wikiwaves.org/index.php?title=User_talk:Sean_Curry&amp;diff=10703</id>
		<title>User talk:Sean Curry</title>
		<link rel="alternate" type="text/html" href="https://www.wikiwaves.org/index.php?title=User_talk:Sean_Curry&amp;diff=10703"/>
		<updated>2010-02-07T21:41:02Z</updated>

		<summary type="html">&lt;p&gt;Sean Curry: /* With the Free Surface BC */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Multipole Expansions ==&lt;br /&gt;
&lt;br /&gt;
Moltipole expansions are a technique used in linear water wave theory where the potential is represented as a sum of singularities (multipoles) placed within any structures that are present. Multipoles can be constructed with their singularity submerged or on the free surface and these are treated seperately.&lt;br /&gt;
&lt;br /&gt;
Multipoles satisfy:&lt;br /&gt;
&lt;br /&gt;
- The feild equation&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\nabla^2 \phi = 0 &amp;lt;/math&amp;gt;throughout the fluid domain&lt;br /&gt;
&lt;br /&gt;
- The free surface boundary condition&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\partial _z \phi = K\phi \quad on \quad z=0&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where the z-axis is oriented vertically upwards and the zero is on the free surface&lt;br /&gt;
&lt;br /&gt;
- The bed boundary condition&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\partial_n \phi = 0 \quad on \quad z=-h(x,y)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
- A radiation condition ensuring the potentials represent outgoing waves in the far feild. In two dimensions:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \lim _{kx \rightarrow \pm \infty} \left( \frac{\partial \phi}{\partial x} \mp ik\phi \right) = 0 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
A linear combination of these multipoles can then be made to satisfy the body boundary conditions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== 2D Exterior Neumann Problem ==&lt;br /&gt;
&lt;br /&gt;
Outside a disk of radius a centered at the origin in an infinite domain:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\nabla^2 \phi = \left[   \partial_r^2 + \frac{1}{r}\partial_r + \frac{1}{r^2} \partial_\theta^2  \right] \phi= 0 \quad for \quad r&amp;gt;a &amp;lt;/math&amp;gt; &lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\partial_n \phi |_{r=a} = 0&amp;lt;/math&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;math&amp;gt;|\nabla\phi| \rightarrow 0 \quad as \quad r \rightarrow \infty &amp;lt;/math&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
&amp;lt;math&amp;gt;Let \quad \phi = R(r)\Theta(\theta)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Seperating variables we get:&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{r^2}{R}\partial_r^2 R + \frac{r}{R}\partial_r R = - \frac{1}{\Theta}\partial_\theta^2 \Theta = m^2 &amp;lt;/math&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;For \quad \Theta: \quad \partial_\theta^2 \Theta = -m^2\Theta &amp;lt;/math&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;math&amp;gt;\Rightarrow \Theta = A(m) \cos(m\theta) + B(m) \sin(m\theta) \quad for \quad  m \neq 0 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{When} \quad m = 0 \quad \mathrm{the \quad obvious \quad solution \quad is} \quad \Theta = A(0) + B(0)\theta &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;Requiring \quad \Theta(\theta + 2\pi) = \Theta(\theta) \quad gives \quad m \in Z \quad and \quad B(0) = 0&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  &lt;br /&gt;
&amp;lt;math&amp;gt;For \quad R: \quad r^2\partial_r^2 R + r\partial_rR = m^2 R &amp;lt;/math&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
we substitute R = r^n giving:&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;math&amp;gt;n(n-1)r^n + nr^n = m^2r^n \quad \Rightarrow \quad n^2 = m^2 \quad \Rightarrow \quad  n= \pm m&amp;lt;/math&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
This gives two independent solutions for all m except m = 0, where we only get the constant solution. Noting that:&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;math&amp;gt;  \nabla^2 \left( \ln(r) \right) = \frac{-1}{r^2} + \frac{1}{r^2}  = 0  \quad . &amp;lt;/math&amp;gt; Hence, for m=0, we can write:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;R = C\left(0\right) + D(0) \ln(r)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and for &amp;lt;math&amp;gt;m\neq 0:&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;R = C\left(m\right)r^m + D(m)r^{-m}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;math&amp;gt;Since\quad|\nabla\phi| \rightarrow 0 \quad as \quad r \rightarrow \infty, &amp;lt;/math&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;math&amp;gt;\partial_r R \rightarrow 0 \quad as \quad r \rightarrow \infty &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\Rightarrow C(m)= 0 \quad\forall m \neq 0&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hence the general solution can be expressed as:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi = C(0) + D(0) \ln(r) + \sum_{m=1}^\infty \left( a(m)\frac{\cos(m\theta)}{r^m} +  b(m)\frac{\sin(m\theta)}{r^m}  \right) &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Which can also be expressed simply in terms of complex exponentials.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== With the Free Surface BC ==&lt;br /&gt;
&lt;br /&gt;
When we introduce the free surface BC we need to find a new set of eigenfunctions. We can use eigenfunctions from the infinite domain problem to construct them.&lt;br /&gt;
&lt;br /&gt;
We write&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi_m = \frac{e^{im\theta}}{r^m} + \psi_m &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi_0 = \ln\left(\frac{r}{a}\right) + \psi_0 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Where&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\nabla^2 \psi_m = 0 \quad for \quad m = 0,1,2, \ldots&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We want&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\partial_z \phi |_{z=f} = K\phi|_{z=f} \quad \forall m = 0,1,2, \ldots&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For m=0&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\partial_z \psi_0 |_{z=f} - K\psi_0|_{z=f} = K\ln\left(\frac{r}{a}\right)|_{z=f}  - \partial_z \left(ln\left(\frac{r}{a}\right)\right)|_{z=f} = K \ln\left(\frac{\sqrt{x^2 + f^2}}{a}\right) - \int_0^\infty e^{-2\mu f}\cos(\mu x)d\mu = f_0(x)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\ln(r) = \int_0^\infty (e^{-\mu}- e^{-\mu|z+f|}\cos(\mu x)\frac{d\mu}{\mu})&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For m&amp;gt;0&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\partial_z \psi_m |_{z=f} - K\psi_m|_{z=f} = K  \frac{e^{im\theta}}{r^m}  |_{z=f}  - \partial_z \left(\frac{e^{im\theta}}{r^m}\right)|_{z=f} = \frac{e^{im\tan(-x/f)}}{(x^2+f^2)^{m/2}} \left(  K + \frac{imx\ln(f)}{1-(x/f)^2} + \frac {mf}{x^2 + f^2}    \right) = f_m(x) \quad \quad \quad \ldots&amp;lt;/math&amp;gt; needs simplifying&lt;br /&gt;
&lt;br /&gt;
== Example: 2D Wave Scattering for a Submerged Horizontal Cylinder (in Infinite Depth)==&lt;br /&gt;
&lt;br /&gt;
***Picture to show problem set up***&lt;br /&gt;
&lt;br /&gt;
The potential for the scattering problem splits as incident and diffracted potentials and also into symmetric and antisymmetric parts.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi = \phi_I + \phi_D = \phi^+ + \phi^-&amp;lt;/math&amp;gt; &lt;br /&gt;
&lt;br /&gt;
where&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \partial_r \phi_I |_{r=a} = - \partial_r \phi_D |_{r=a} &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and &amp;lt;math&amp;gt;\phi^+&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;\phi^-&amp;lt;/math&amp;gt; are the symmetric and antisymmetric parts of &amp;lt;math&amp;gt;\phi&amp;lt;/math&amp;gt; respectively.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For a wave incident from the left we have&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi_I = e^{Kz} e^{iKx} = e^{-Kf}\sum_{n=0}^\infty \frac{(-Kr)^n }{n!} e^{-in\theta}&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi_D = \sum_{n=1}^{\infty}a^n \alpha_n \phi_n^+ + \sum_{n=1}^{\infty}a^n \beta_n \phi_n^- &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi^+ = e^{Kz} \cos(Kx) + \sum_{n=1}^{\infty}a^n \alpha_n \phi_n^+&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
and &amp;lt;math&amp;gt;\phi^- = ie^{Kz} \sin(Kx) + \sum_{n=1}^{\infty}a^n \beta_n \phi_n^- &amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Converting &amp;lt;math&amp;gt;\phi^+&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\phi^-&amp;lt;/math&amp;gt; into the polar coordinate system:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi^+ = e^{-Kf}\sum_{n=0}^\infty \frac{(-Kr)^n }{n!} \cos(n\theta) + \sum_{n=1}^{\infty}a^n \alpha_n \left(\frac{\cos(n\theta)}{r^n} + \sum_{m=0}^\infty A_{mn}^+ r^m \cos(m\theta)\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi^- = ie^{-Kf}\sum_{n=0}^\infty \frac{(-Kr)^n }{n!} \sin(n\theta) + \sum_{n=1}^{\infty}a^n \alpha_n \left(\frac{\sin(n\theta)}{r^n} + \sum_{m=0}^\infty A_{mn}^+ r^m \sin(m\theta)\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The above power series converge for r &amp;lt; 2f and the coefficients are given by&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; A_{mn} = \frac{(-1)^{m+n}}{m!(n-1)!} \quad SingularIntegral_0^\infty \quad \frac{\mu + K}{\mu - K} \mu ^{m+n-1} e^{-2\mu f}d\mu &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Applying the body boundary condition &amp;lt;math&amp;gt;\partial_r \phi^\pm |_{r=a} = 0&amp;lt;/math&amp;gt; and noting that the cosines are orthogonal over &amp;lt;math&amp;gt;\theta \in  (-\pi,\pi]&amp;lt;/math&amp;gt; gives the results&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \alpha_m - \sum_{n=1}^{\infty}a^{n+m} A_{mn} \alpha_n = e^{-Kf}\frac {(-Ka)^m}{m!}; m=1,2,3,\ldots&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \beta_m - \sum_{n=1}^{\infty}a^{n+m} A_{mn} \beta_n = -ie^{-Kf}\frac {(-Ka)^m}{m!}; m=1,2,3,\ldots&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
From which we can see that &amp;lt;math&amp;gt;\beta_n = -i\alpha_n&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The above sums can be truncated at the Nth term yielding NxN system of linear equations that can be solved for the coefficients &amp;lt;math&amp;gt;\alpha_n&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hence we can calculate &amp;lt;math&amp;gt;\phi&amp;lt;/math&amp;gt; from:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi = \phi^+ + \phi^- = \phi_I + \sum_{n=1}^{\infty}a^n \alpha_n ( \phi^+_n + \phi^-_n )&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This expression also gives the values of the reflection and transmission coefficients when we substitute the far field expressions for the symmetric and antisymmetric multipoles. In the far field:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \phi^+_n \sim \frac{2\pi i (-K)^n}{(n-1)!} e^{K(z-f)} e^{\pm Kx} &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math &amp;gt; \phi^-_n \sim \mp \frac{2\pi (-K)^n}{(n-1)!} e^{K(z-f)} e^{\pm Kx} &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Giving:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;R=0, \quad T = 1 + 4 \pi i e^{-Kf}  \sum_{n=1}^{\infty} \alpha_n \frac{(-Ka)^n}{(n-1)!} &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Hydrodynamic Forces ==&lt;/div&gt;</summary>
		<author><name>Sean Curry</name></author>
	</entry>
	<entry>
		<id>https://www.wikiwaves.org/index.php?title=User_talk:Sean_Curry&amp;diff=10701</id>
		<title>User talk:Sean Curry</title>
		<link rel="alternate" type="text/html" href="https://www.wikiwaves.org/index.php?title=User_talk:Sean_Curry&amp;diff=10701"/>
		<updated>2010-02-07T21:39:37Z</updated>

		<summary type="html">&lt;p&gt;Sean Curry: /* With the Free Surface BC */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Multipole Expansions ==&lt;br /&gt;
&lt;br /&gt;
Moltipole expansions are a technique used in linear water wave theory where the potential is represented as a sum of singularities (multipoles) placed within any structures that are present. Multipoles can be constructed with their singularity submerged or on the free surface and these are treated seperately.&lt;br /&gt;
&lt;br /&gt;
Multipoles satisfy:&lt;br /&gt;
&lt;br /&gt;
- The feild equation&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\nabla^2 \phi = 0 &amp;lt;/math&amp;gt;throughout the fluid domain&lt;br /&gt;
&lt;br /&gt;
- The free surface boundary condition&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\partial _z \phi = K\phi \quad on \quad z=0&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where the z-axis is oriented vertically upwards and the zero is on the free surface&lt;br /&gt;
&lt;br /&gt;
- The bed boundary condition&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\partial_n \phi = 0 \quad on \quad z=-h(x,y)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
- A radiation condition ensuring the potentials represent outgoing waves in the far feild. In two dimensions:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \lim _{kx \rightarrow \pm \infty} \left( \frac{\partial \phi}{\partial x} \mp ik\phi \right) = 0 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
A linear combination of these multipoles can then be made to satisfy the body boundary conditions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== 2D Exterior Neumann Problem ==&lt;br /&gt;
&lt;br /&gt;
Outside a disk of radius a centered at the origin in an infinite domain:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\nabla^2 \phi = \left[   \partial_r^2 + \frac{1}{r}\partial_r + \frac{1}{r^2} \partial_\theta^2  \right] \phi= 0 \quad for \quad r&amp;gt;a &amp;lt;/math&amp;gt; &lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\partial_n \phi |_{r=a} = 0&amp;lt;/math&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;math&amp;gt;|\nabla\phi| \rightarrow 0 \quad as \quad r \rightarrow \infty &amp;lt;/math&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
&amp;lt;math&amp;gt;Let \quad \phi = R(r)\Theta(\theta)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Seperating variables we get:&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{r^2}{R}\partial_r^2 R + \frac{r}{R}\partial_r R = - \frac{1}{\Theta}\partial_\theta^2 \Theta = m^2 &amp;lt;/math&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;For \quad \Theta: \quad \partial_\theta^2 \Theta = -m^2\Theta &amp;lt;/math&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;math&amp;gt;\Rightarrow \Theta = A(m) \cos(m\theta) + B(m) \sin(m\theta) \quad for \quad  m \neq 0 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{When} \quad m = 0 \quad \mathrm{the \quad obvious \quad solution \quad is} \quad \Theta = A(0) + B(0)\theta &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;Requiring \quad \Theta(\theta + 2\pi) = \Theta(\theta) \quad gives \quad m \in Z \quad and \quad B(0) = 0&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  &lt;br /&gt;
&amp;lt;math&amp;gt;For \quad R: \quad r^2\partial_r^2 R + r\partial_rR = m^2 R &amp;lt;/math&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
we substitute R = r^n giving:&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;math&amp;gt;n(n-1)r^n + nr^n = m^2r^n \quad \Rightarrow \quad n^2 = m^2 \quad \Rightarrow \quad  n= \pm m&amp;lt;/math&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
This gives two independent solutions for all m except m = 0, where we only get the constant solution. Noting that:&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;math&amp;gt;  \nabla^2 \left( \ln(r) \right) = \frac{-1}{r^2} + \frac{1}{r^2}  = 0  \quad . &amp;lt;/math&amp;gt; Hence, for m=0, we can write:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;R = C\left(0\right) + D(0) \ln(r)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and for &amp;lt;math&amp;gt;m\neq 0:&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;R = C\left(m\right)r^m + D(m)r^{-m}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;math&amp;gt;Since\quad|\nabla\phi| \rightarrow 0 \quad as \quad r \rightarrow \infty, &amp;lt;/math&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;math&amp;gt;\partial_r R \rightarrow 0 \quad as \quad r \rightarrow \infty &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\Rightarrow C(m)= 0 \quad\forall m \neq 0&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hence the general solution can be expressed as:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi = C(0) + D(0) \ln(r) + \sum_{m=1}^\infty \left( a(m)\frac{\cos(m\theta)}{r^m} +  b(m)\frac{\sin(m\theta)}{r^m}  \right) &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Which can also be expressed simply in terms of complex exponentials.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== With the Free Surface BC ==&lt;br /&gt;
&lt;br /&gt;
When we introduce the free surface BC we need to find a new set of eigenfunctions. We can use eigenfunctions from the infinite domain problem to construct them.&lt;br /&gt;
&lt;br /&gt;
We write&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi_m = \frac{e^{im\theta}}{r^m} + \psi_m &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi_0 = \ln\left(\frac{r}{a}\right) + \psi_0 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Where&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\nabla^2 \psi_m = 0 \quad for \quad m = 0,1,2, \ldots&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We want&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\partial_z \phi |_{z=f} = K\phi|_{z=f} \quad \forall m = 0,1,2, \ldots&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For m=0&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\partial_z \psi_0 |_{z=f} - K\psi_0|_{z=f} = K\ln\left(\frac{r}{a}\right)|_{z=f}  - \partial_z \left(ln\left(\frac{r}{a}\right)\right)|_{z=f} = K \ln\left(\frac{\sqrt{x^2 + f^2}}{a}\right) - \int_0^\infty e^{-2\mu f}\cos(\mu x)d\mu = f_0(x)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\ln(r) = \int_0^\infty (e^{-\mu}- e^{-\mu|z+f|}\cos(\mu x)\frac{d\mu}{\mu})&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For m&amp;gt;0&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\partial_z \psi_m |_{z=f} - K\psi_m|_{z=f} = K  \frac{e^{im\theta}}{r^m}  |_{z=f}  - \partial_z \left(\frac{e^{im\theta}}{r^m}\right)|_{z=f} = \frac{e^{im\tan(-x/f)}}{(x^2+f^2)^{m/2}} \left(  K + \frac{imx\ln(f)}{1-(x/f)^2} + \frac {mf}{x^2 + f^2}    \right) = f_m(x)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Example: 2D Wave Scattering for a Submerged Horizontal Cylinder (in Infinite Depth)==&lt;br /&gt;
&lt;br /&gt;
***Picture to show problem set up***&lt;br /&gt;
&lt;br /&gt;
The potential for the scattering problem splits as incident and diffracted potentials and also into symmetric and antisymmetric parts.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi = \phi_I + \phi_D = \phi^+ + \phi^-&amp;lt;/math&amp;gt; &lt;br /&gt;
&lt;br /&gt;
where&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \partial_r \phi_I |_{r=a} = - \partial_r \phi_D |_{r=a} &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and &amp;lt;math&amp;gt;\phi^+&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;\phi^-&amp;lt;/math&amp;gt; are the symmetric and antisymmetric parts of &amp;lt;math&amp;gt;\phi&amp;lt;/math&amp;gt; respectively.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For a wave incident from the left we have&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi_I = e^{Kz} e^{iKx} = e^{-Kf}\sum_{n=0}^\infty \frac{(-Kr)^n }{n!} e^{-in\theta}&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi_D = \sum_{n=1}^{\infty}a^n \alpha_n \phi_n^+ + \sum_{n=1}^{\infty}a^n \beta_n \phi_n^- &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi^+ = e^{Kz} \cos(Kx) + \sum_{n=1}^{\infty}a^n \alpha_n \phi_n^+&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
and &amp;lt;math&amp;gt;\phi^- = ie^{Kz} \sin(Kx) + \sum_{n=1}^{\infty}a^n \beta_n \phi_n^- &amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Converting &amp;lt;math&amp;gt;\phi^+&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\phi^-&amp;lt;/math&amp;gt; into the polar coordinate system:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi^+ = e^{-Kf}\sum_{n=0}^\infty \frac{(-Kr)^n }{n!} \cos(n\theta) + \sum_{n=1}^{\infty}a^n \alpha_n \left(\frac{\cos(n\theta)}{r^n} + \sum_{m=0}^\infty A_{mn}^+ r^m \cos(m\theta)\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi^- = ie^{-Kf}\sum_{n=0}^\infty \frac{(-Kr)^n }{n!} \sin(n\theta) + \sum_{n=1}^{\infty}a^n \alpha_n \left(\frac{\sin(n\theta)}{r^n} + \sum_{m=0}^\infty A_{mn}^+ r^m \sin(m\theta)\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The above power series converge for r &amp;lt; 2f and the coefficients are given by&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; A_{mn} = \frac{(-1)^{m+n}}{m!(n-1)!} \quad SingularIntegral_0^\infty \quad \frac{\mu + K}{\mu - K} \mu ^{m+n-1} e^{-2\mu f}d\mu &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Applying the body boundary condition &amp;lt;math&amp;gt;\partial_r \phi^\pm |_{r=a} = 0&amp;lt;/math&amp;gt; and noting that the cosines are orthogonal over &amp;lt;math&amp;gt;\theta \in  (-\pi,\pi]&amp;lt;/math&amp;gt; gives the results&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \alpha_m - \sum_{n=1}^{\infty}a^{n+m} A_{mn} \alpha_n = e^{-Kf}\frac {(-Ka)^m}{m!}; m=1,2,3,\ldots&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \beta_m - \sum_{n=1}^{\infty}a^{n+m} A_{mn} \beta_n = -ie^{-Kf}\frac {(-Ka)^m}{m!}; m=1,2,3,\ldots&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
From which we can see that &amp;lt;math&amp;gt;\beta_n = -i\alpha_n&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The above sums can be truncated at the Nth term yielding NxN system of linear equations that can be solved for the coefficients &amp;lt;math&amp;gt;\alpha_n&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hence we can calculate &amp;lt;math&amp;gt;\phi&amp;lt;/math&amp;gt; from:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi = \phi^+ + \phi^- = \phi_I + \sum_{n=1}^{\infty}a^n \alpha_n ( \phi^+_n + \phi^-_n )&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This expression also gives the values of the reflection and transmission coefficients when we substitute the far field expressions for the symmetric and antisymmetric multipoles. In the far field:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \phi^+_n \sim \frac{2\pi i (-K)^n}{(n-1)!} e^{K(z-f)} e^{\pm Kx} &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math &amp;gt; \phi^-_n \sim \mp \frac{2\pi (-K)^n}{(n-1)!} e^{K(z-f)} e^{\pm Kx} &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Giving:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;R=0, \quad T = 1 + 4 \pi i e^{-Kf}  \sum_{n=1}^{\infty} \alpha_n \frac{(-Ka)^n}{(n-1)!} &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Hydrodynamic Forces ==&lt;/div&gt;</summary>
		<author><name>Sean Curry</name></author>
	</entry>
	<entry>
		<id>https://www.wikiwaves.org/index.php?title=User_talk:Sean_Curry&amp;diff=10699</id>
		<title>User talk:Sean Curry</title>
		<link rel="alternate" type="text/html" href="https://www.wikiwaves.org/index.php?title=User_talk:Sean_Curry&amp;diff=10699"/>
		<updated>2010-02-07T21:14:35Z</updated>

		<summary type="html">&lt;p&gt;Sean Curry: /* 2D Exterior Neumann Problem */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Multipole Expansions ==&lt;br /&gt;
&lt;br /&gt;
Moltipole expansions are a technique used in linear water wave theory where the potential is represented as a sum of singularities (multipoles) placed within any structures that are present. Multipoles can be constructed with their singularity submerged or on the free surface and these are treated seperately.&lt;br /&gt;
&lt;br /&gt;
Multipoles satisfy:&lt;br /&gt;
&lt;br /&gt;
- The feild equation&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\nabla^2 \phi = 0 &amp;lt;/math&amp;gt;throughout the fluid domain&lt;br /&gt;
&lt;br /&gt;
- The free surface boundary condition&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\partial _z \phi = K\phi \quad on \quad z=0&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where the z-axis is oriented vertically upwards and the zero is on the free surface&lt;br /&gt;
&lt;br /&gt;
- The bed boundary condition&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\partial_n \phi = 0 \quad on \quad z=-h(x,y)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
- A radiation condition ensuring the potentials represent outgoing waves in the far feild. In two dimensions:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \lim _{kx \rightarrow \pm \infty} \left( \frac{\partial \phi}{\partial x} \mp ik\phi \right) = 0 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
A linear combination of these multipoles can then be made to satisfy the body boundary conditions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== 2D Exterior Neumann Problem ==&lt;br /&gt;
&lt;br /&gt;
Outside a disk of radius a centered at the origin in an infinite domain:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\nabla^2 \phi = \left[   \partial_r^2 + \frac{1}{r}\partial_r + \frac{1}{r^2} \partial_\theta^2  \right] \phi= 0 \quad for \quad r&amp;gt;a &amp;lt;/math&amp;gt; &lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\partial_n \phi |_{r=a} = 0&amp;lt;/math&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;math&amp;gt;|\nabla\phi| \rightarrow 0 \quad as \quad r \rightarrow \infty &amp;lt;/math&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
&amp;lt;math&amp;gt;Let \quad \phi = R(r)\Theta(\theta)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Seperating variables we get:&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{r^2}{R}\partial_r^2 R + \frac{r}{R}\partial_r R = - \frac{1}{\Theta}\partial_\theta^2 \Theta = m^2 &amp;lt;/math&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;For \quad \Theta: \quad \partial_\theta^2 \Theta = -m^2\Theta &amp;lt;/math&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;math&amp;gt;\Rightarrow \Theta = A(m) \cos(m\theta) + B(m) \sin(m\theta) \quad for \quad  m \neq 0 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{When} \quad m = 0 \quad \mathrm{the \quad obvious \quad solution \quad is} \quad \Theta = A(0) + B(0)\theta &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;Requiring \quad \Theta(\theta + 2\pi) = \Theta(\theta) \quad gives \quad m \in Z \quad and \quad B(0) = 0&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  &lt;br /&gt;
&amp;lt;math&amp;gt;For \quad R: \quad r^2\partial_r^2 R + r\partial_rR = m^2 R &amp;lt;/math&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
we substitute R = r^n giving:&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;math&amp;gt;n(n-1)r^n + nr^n = m^2r^n \quad \Rightarrow \quad n^2 = m^2 \quad \Rightarrow \quad  n= \pm m&amp;lt;/math&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
This gives two independent solutions for all m except m = 0, where we only get the constant solution. Noting that:&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;math&amp;gt;  \nabla^2 \left( \ln(r) \right) = \frac{-1}{r^2} + \frac{1}{r^2}  = 0  \quad . &amp;lt;/math&amp;gt; Hence, for m=0, we can write:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;R = C\left(0\right) + D(0) \ln(r)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and for &amp;lt;math&amp;gt;m\neq 0:&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;R = C\left(m\right)r^m + D(m)r^{-m}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;math&amp;gt;Since\quad|\nabla\phi| \rightarrow 0 \quad as \quad r \rightarrow \infty, &amp;lt;/math&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;math&amp;gt;\partial_r R \rightarrow 0 \quad as \quad r \rightarrow \infty &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\Rightarrow C(m)= 0 \quad\forall m \neq 0&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hence the general solution can be expressed as:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi = C(0) + D(0) \ln(r) + \sum_{m=1}^\infty \left( a(m)\frac{\cos(m\theta)}{r^m} +  b(m)\frac{\sin(m\theta)}{r^m}  \right) &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Which can also be expressed simply in terms of complex exponentials.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== With the Free Surface BC ==&lt;br /&gt;
&lt;br /&gt;
When we introduce the free surface BC we need to find a new set of eigenfunctions. We can use eigenfunctions from the infinite domain problem to construct them.&lt;br /&gt;
&lt;br /&gt;
We write&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi_m = \frac{e^{im\theta}}{r^m} + \psi_m &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi_0 = \ln\frac{r}{a} + \psi_0 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Where&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\nabla^2 \psi_m = 0 \quad for \quad m = 0,1,2, \ldots&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Example: 2D Wave Scattering for a Submerged Horizontal Cylinder (in Infinite Depth)==&lt;br /&gt;
&lt;br /&gt;
***Picture to show problem set up***&lt;br /&gt;
&lt;br /&gt;
The potential for the scattering problem splits as incident and diffracted potentials and also into symmetric and antisymmetric parts.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi = \phi_I + \phi_D = \phi^+ + \phi^-&amp;lt;/math&amp;gt; &lt;br /&gt;
&lt;br /&gt;
where&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \partial_r \phi_I |_{r=a} = - \partial_r \phi_D |_{r=a} &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and &amp;lt;math&amp;gt;\phi^+&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;\phi^-&amp;lt;/math&amp;gt; are the symmetric and antisymmetric parts of &amp;lt;math&amp;gt;\phi&amp;lt;/math&amp;gt; respectively.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For a wave incident from the left we have&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi_I = e^{Kz} e^{iKx} = e^{-Kf}\sum_{n=0}^\infty \frac{(-Kr)^n }{n!} e^{-in\theta}&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi_D = \sum_{n=1}^{\infty}a^n \alpha_n \phi_n^+ + \sum_{n=1}^{\infty}a^n \beta_n \phi_n^- &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi^+ = e^{Kz} \cos(Kx) + \sum_{n=1}^{\infty}a^n \alpha_n \phi_n^+&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
and &amp;lt;math&amp;gt;\phi^- = ie^{Kz} \sin(Kx) + \sum_{n=1}^{\infty}a^n \beta_n \phi_n^- &amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Converting &amp;lt;math&amp;gt;\phi^+&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\phi^-&amp;lt;/math&amp;gt; into the polar coordinate system:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi^+ = e^{-Kf}\sum_{n=0}^\infty \frac{(-Kr)^n }{n!} \cos(n\theta) + \sum_{n=1}^{\infty}a^n \alpha_n \left(\frac{\cos(n\theta)}{r^n} + \sum_{m=0}^\infty A_{mn}^+ r^m \cos(m\theta)\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi^- = ie^{-Kf}\sum_{n=0}^\infty \frac{(-Kr)^n }{n!} \sin(n\theta) + \sum_{n=1}^{\infty}a^n \alpha_n \left(\frac{\sin(n\theta)}{r^n} + \sum_{m=0}^\infty A_{mn}^+ r^m \sin(m\theta)\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The above power series converge for r &amp;lt; 2f and the coefficients are given by&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; A_{mn} = \frac{(-1)^{m+n}}{m!(n-1)!} \quad SingularIntegral_0^\infty \quad \frac{\mu + K}{\mu - K} \mu ^{m+n-1} e^{-2\mu f}d\mu &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Applying the body boundary condition &amp;lt;math&amp;gt;\partial_r \phi^\pm |_{r=a} = 0&amp;lt;/math&amp;gt; and noting that the cosines are orthogonal over &amp;lt;math&amp;gt;\theta \in  (-\pi,\pi]&amp;lt;/math&amp;gt; gives the results&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \alpha_m - \sum_{n=1}^{\infty}a^{n+m} A_{mn} \alpha_n = e^{-Kf}\frac {(-Ka)^m}{m!}; m=1,2,3,\ldots&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \beta_m - \sum_{n=1}^{\infty}a^{n+m} A_{mn} \beta_n = -ie^{-Kf}\frac {(-Ka)^m}{m!}; m=1,2,3,\ldots&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
From which we can see that &amp;lt;math&amp;gt;\beta_n = -i\alpha_n&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The above sums can be truncated at the Nth term yielding NxN system of linear equations that can be solved for the coefficients &amp;lt;math&amp;gt;\alpha_n&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hence we can calculate &amp;lt;math&amp;gt;\phi&amp;lt;/math&amp;gt; from:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi = \phi^+ + \phi^- = \phi_I + \sum_{n=1}^{\infty}a^n \alpha_n ( \phi^+_n + \phi^-_n )&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This expression also gives the values of the reflection and transmission coefficients when we substitute the far field expressions for the symmetric and antisymmetric multipoles. In the far field:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \phi^+_n \sim \frac{2\pi i (-K)^n}{(n-1)!} e^{K(z-f)} e^{\pm Kx} &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math &amp;gt; \phi^-_n \sim \mp \frac{2\pi (-K)^n}{(n-1)!} e^{K(z-f)} e^{\pm Kx} &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Giving:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;R=0, \quad T = 1 + 4 \pi i e^{-Kf}  \sum_{n=1}^{\infty} \alpha_n \frac{(-Ka)^n}{(n-1)!} &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Hydrodynamic Forces ==&lt;/div&gt;</summary>
		<author><name>Sean Curry</name></author>
	</entry>
	<entry>
		<id>https://www.wikiwaves.org/index.php?title=User_talk:Sean_Curry&amp;diff=10691</id>
		<title>User talk:Sean Curry</title>
		<link rel="alternate" type="text/html" href="https://www.wikiwaves.org/index.php?title=User_talk:Sean_Curry&amp;diff=10691"/>
		<updated>2010-02-04T03:50:15Z</updated>

		<summary type="html">&lt;p&gt;Sean Curry: /* 2D Exterior Neumann Problem */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Multipole Expansions ==&lt;br /&gt;
&lt;br /&gt;
Moltipole expansions are a technique used in linear water wave theory where the potential is represented as a sum of singularities (multipoles) placed within any structures that are present. Multipoles can be constructed with their singularity submerged or on the free surface and these are treated seperately.&lt;br /&gt;
&lt;br /&gt;
Multipoles satisfy:&lt;br /&gt;
&lt;br /&gt;
- The feild equation&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\nabla^2 \phi = 0 &amp;lt;/math&amp;gt;throughout the fluid domain&lt;br /&gt;
&lt;br /&gt;
- The free surface boundary condition&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\partial _z \phi = K\phi \quad on \quad z=0&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where the z-axis is oriented vertically upwards and the zero is on the free surface&lt;br /&gt;
&lt;br /&gt;
- The bed boundary condition&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\partial_n \phi = 0 \quad on \quad z=-h(x,y)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
- A radiation condition ensuring the potentials represent outgoing waves in the far feild. In two dimensions:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \lim _{kx \rightarrow \pm \infty} \left( \frac{\partial \phi}{\partial x} \mp ik\phi \right) = 0 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
A linear combination of these multipoles can then be made to satisfy the body boundary conditions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== 2D Exterior Neumann Problem ==&lt;br /&gt;
&lt;br /&gt;
Outside a disk of radius a centered at the origin in an infinite domain:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\nabla^2 \phi = \left[   \partial_r^2 + \frac{1}{r}\partial_r + \frac{1}{r^2} \partial_\theta^2  \right] \phi= 0 \quad for \quad r&amp;gt;a &amp;lt;/math&amp;gt; &lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\partial_n \phi |_{r=a} = 0&amp;lt;/math&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;math&amp;gt;|\nabla\phi| \rightarrow 0 \quad as \quad r \rightarrow \infty &amp;lt;/math&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
&amp;lt;math&amp;gt;Let \quad \phi = R(r)\Theta(\theta)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Seperating variables we get:&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{r^2}{R}\partial_r^2 R + \frac{r}{R}\partial_r R = - \frac{1}{\Theta}\partial_\theta^2 \Theta = m^2 &amp;lt;/math&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;For \quad \Theta: \quad \partial_\theta^2 \Theta = -m^2\Theta &amp;lt;/math&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;math&amp;gt;\Rightarrow \Theta = A(m) \cos(m\theta) + B(m) \sin(m\theta) \quad for \quad  m \neq 0 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{When} \quad m = 0 \quad \mathrm{the \quad obvious \quad solution \quad is} \quad \Theta = A(0) + B(0)\theta &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;Requiring \quad \Theta(\theta + 2\pi) = \Theta(\theta) \quad gives \quad m \in Z \quad and \quad B(0) = 0&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  &lt;br /&gt;
&amp;lt;math&amp;gt;For \quad R: \quad r^2\partial_r^2 R + r\partial_rR = m^2 R &amp;lt;/math&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
we substitute R = r^n giving:&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;math&amp;gt;n(n-1)r^n + nr^n = m^2r^n \quad \Rightarrow \quad n^2 = m^2 \quad \Rightarrow \quad  n= \pm m&amp;lt;/math&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
This gives two independent solutions for all m except m = 0, where we only get the constant solution. Noting that:&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;math&amp;gt;  \nabla^2 \left( \ln(r) \right) = \frac{-1}{r^2} + \frac{1}{r^2}  = 0  \quad . &amp;lt;/math&amp;gt; Hence, for m=0, we can write:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;R = C\left(0\right) + D(0) \ln(r)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and for &amp;lt;math&amp;gt;m\neq 0:&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;R = C\left(m\right)r^m + D(m)r^{-m}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;math&amp;gt;Since\quad|\nabla\phi| \rightarrow 0 \quad as \quad r \rightarrow \infty, &amp;lt;/math&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;math&amp;gt;\partial_r R \rightarrow 0 \quad as \quad r \rightarrow \infty &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\Rightarrow C(m)= 0 \quad\forall m \neq 0&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hence the general solution can be expressed as:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi = C(0) + D(0) \ln(r) + \sum_{m=1}^\infty \left( a(m)\frac{\cos(m\theta)}{r^m} +  b(m)\frac{\sin(m\theta)}{r^m}  \right) &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Which can also be expressed simply in terms of complex exponentials&lt;br /&gt;
&lt;br /&gt;
== Example: 2D Wave Scattering for a Submerged Horizontal Cylinder (in Infinite Depth)==&lt;br /&gt;
&lt;br /&gt;
***Picture to show problem set up***&lt;br /&gt;
&lt;br /&gt;
The potential for the scattering problem splits as incident and diffracted potentials and also into symmetric and antisymmetric parts.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi = \phi_I + \phi_D = \phi^+ + \phi^-&amp;lt;/math&amp;gt; &lt;br /&gt;
&lt;br /&gt;
where&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \partial_r \phi_I |_{r=a} = - \partial_r \phi_D |_{r=a} &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and &amp;lt;math&amp;gt;\phi^+&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;\phi^-&amp;lt;/math&amp;gt; are the symmetric and antisymmetric parts of &amp;lt;math&amp;gt;\phi&amp;lt;/math&amp;gt; respectively.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For a wave incident from the left we have&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi_I = e^{Kz} e^{iKx} = e^{-Kf}\sum_{n=0}^\infty \frac{(-Kr)^n }{n!} e^{-in\theta}&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi_D = \sum_{n=1}^{\infty}a^n \alpha_n \phi_n^+ + \sum_{n=1}^{\infty}a^n \beta_n \phi_n^- &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi^+ = e^{Kz} \cos(Kx) + \sum_{n=1}^{\infty}a^n \alpha_n \phi_n^+&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
and &amp;lt;math&amp;gt;\phi^- = ie^{Kz} \sin(Kx) + \sum_{n=1}^{\infty}a^n \beta_n \phi_n^- &amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Converting &amp;lt;math&amp;gt;\phi^+&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\phi^-&amp;lt;/math&amp;gt; into the polar coordinate system:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi^+ = e^{-Kf}\sum_{n=0}^\infty \frac{(-Kr)^n }{n!} \cos(n\theta) + \sum_{n=1}^{\infty}a^n \alpha_n \left(\frac{\cos(n\theta)}{r^n} + \sum_{m=0}^\infty A_{mn}^+ r^m \cos(m\theta)\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi^- = ie^{-Kf}\sum_{n=0}^\infty \frac{(-Kr)^n }{n!} \sin(n\theta) + \sum_{n=1}^{\infty}a^n \alpha_n \left(\frac{\sin(n\theta)}{r^n} + \sum_{m=0}^\infty A_{mn}^+ r^m \sin(m\theta)\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The above power series converge for r &amp;lt; 2f and the coefficients are given by&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; A_{mn} = \frac{(-1)^{m+n}}{m!(n-1)!} \quad SingularIntegral_0^\infty \quad \frac{\mu + K}{\mu - K} \mu ^{m+n-1} e^{-2\mu f}d\mu &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Applying the body boundary condition &amp;lt;math&amp;gt;\partial_r \phi^\pm |_{r=a} = 0&amp;lt;/math&amp;gt; and noting that the cosines are orthogonal over &amp;lt;math&amp;gt;\theta \in  (-\pi,\pi]&amp;lt;/math&amp;gt; gives the results&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \alpha_m - \sum_{n=1}^{\infty}a^{n+m} A_{mn} \alpha_n = e^{-Kf}\frac {(-Ka)^m}{m!}; m=1,2,3,\ldots&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \beta_m - \sum_{n=1}^{\infty}a^{n+m} A_{mn} \beta_n = -ie^{-Kf}\frac {(-Ka)^m}{m!}; m=1,2,3,\ldots&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
From which we can see that &amp;lt;math&amp;gt;\beta_n = -i\alpha_n&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The above sums can be truncated at the Nth term yielding NxN system of linear equations that can be solved for the coefficients &amp;lt;math&amp;gt;\alpha_n&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hence we can calculate &amp;lt;math&amp;gt;\phi&amp;lt;/math&amp;gt; from:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi = \phi^+ + \phi^- = \phi_I + \sum_{n=1}^{\infty}a^n \alpha_n ( \phi^+_n + \phi^-_n )&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This expression also gives the values of the reflection and transmission coefficients when we substitute the far field expressions for the symmetric and antisymmetric multipoles. In the far field:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \phi^+_n \sim \frac{2\pi i (-K)^n}{(n-1)!} e^{K(z-f)} e^{\pm Kx} &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math &amp;gt; \phi^-_n \sim \mp \frac{2\pi (-K)^n}{(n-1)!} e^{K(z-f)} e^{\pm Kx} &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Giving:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;R=0, \quad T = 1 + 4 \pi i e^{-Kf}  \sum_{n=1}^{\infty} \alpha_n \frac{(-Ka)^n}{(n-1)!} &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Hydrodynamic Forces ==&lt;/div&gt;</summary>
		<author><name>Sean Curry</name></author>
	</entry>
	<entry>
		<id>https://www.wikiwaves.org/index.php?title=User_talk:Sean_Curry&amp;diff=10689</id>
		<title>User talk:Sean Curry</title>
		<link rel="alternate" type="text/html" href="https://www.wikiwaves.org/index.php?title=User_talk:Sean_Curry&amp;diff=10689"/>
		<updated>2010-02-04T02:49:43Z</updated>

		<summary type="html">&lt;p&gt;Sean Curry: /* 2D Exterior Neumann Problem */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Multipole Expansions ==&lt;br /&gt;
&lt;br /&gt;
Moltipole expansions are a technique used in linear water wave theory where the potential is represented as a sum of singularities (multipoles) placed within any structures that are present. Multipoles can be constructed with their singularity submerged or on the free surface and these are treated seperately.&lt;br /&gt;
&lt;br /&gt;
Multipoles satisfy:&lt;br /&gt;
&lt;br /&gt;
- The feild equation&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\nabla^2 \phi = 0 &amp;lt;/math&amp;gt;throughout the fluid domain&lt;br /&gt;
&lt;br /&gt;
- The free surface boundary condition&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\partial _z \phi = K\phi \quad on \quad z=0&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where the z-axis is oriented vertically upwards and the zero is on the free surface&lt;br /&gt;
&lt;br /&gt;
- The bed boundary condition&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\partial_n \phi = 0 \quad on \quad z=-h(x,y)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
- A radiation condition ensuring the potentials represent outgoing waves in the far feild. In two dimensions:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \lim _{kx \rightarrow \pm \infty} \left( \frac{\partial \phi}{\partial x} \mp ik\phi \right) = 0 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
A linear combination of these multipoles can then be made to satisfy the body boundary conditions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== 2D Exterior Neumann Problem ==&lt;br /&gt;
&lt;br /&gt;
Outside a disk of radius a centered at the origin in an infinite domain:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\nabla^2 \phi = \left[   \partial_r^2 + \frac{1}{r}\partial_r + \frac{1}{r^2} \partial_\theta^2  \right] \phi= 0 \quad for \quad r&amp;gt;a &amp;lt;/math&amp;gt; &lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\partial_n \phi |_{r=a} = 0&amp;lt;/math&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;math&amp;gt;|\nabla\phi| \rightarrow 0 \quad as \quad r \rightarrow \infty &amp;lt;/math&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
&amp;lt;math&amp;gt;Let \quad \phi = R(r)\Theta(\theta)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Seperating variables we get:&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{r^2}{R}\partial_r^2 R + \frac{r}{R}\partial_r R = - \frac{1}{\Theta}\partial_\theta^2 \Theta = m^2 &amp;lt;/math&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;For \quad \Theta: \quad \partial_\theta^2 \Theta = -m^2\Theta &amp;lt;/math&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;math&amp;gt;\Rightarrow \quad \Theta = A(m) \cos(m\theta) + B(m) \sin(m\theta) \quad for \quad  m \neq 0 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;Requiring \quad \Theta(\theta + 2\pi) = \Theta(\theta) \quad gives \quad m \in Z&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{When} \quad m = 0 \quad \mathrm{the \quad obvious \quad solution \quad is} \quad \Theta = A(0) + B(0)\theta &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;  \nabla^2 \left( \ln(r) \right) = \frac{-1}{r^2} + \frac{1}{r^2}  = 0  \quad . &amp;lt;/math&amp;gt; Hence, for m=0, we can write:&lt;br /&gt;
&lt;br /&gt;
== Example: 2D Wave Scattering for a Submerged Horizontal Cylinder (in Infinite Depth)==&lt;br /&gt;
&lt;br /&gt;
***Picture to show problem set up***&lt;br /&gt;
&lt;br /&gt;
The potential for the scattering problem splits as incident and diffracted potentials and also into symmetric and antisymmetric parts.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi = \phi_I + \phi_D = \phi^+ + \phi^-&amp;lt;/math&amp;gt; &lt;br /&gt;
&lt;br /&gt;
where&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \partial_r \phi_I |_{r=a} = - \partial_r \phi_D |_{r=a} &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and &amp;lt;math&amp;gt;\phi^+&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;\phi^-&amp;lt;/math&amp;gt; are the symmetric and antisymmetric parts of &amp;lt;math&amp;gt;\phi&amp;lt;/math&amp;gt; respectively.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For a wave incident from the left we have&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi_I = e^{Kz} e^{iKx} = e^{-Kf}\sum_{n=0}^\infty \frac{(-Kr)^n }{n!} e^{-in\theta}&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi_D = \sum_{n=1}^{\infty}a^n \alpha_n \phi_n^+ + \sum_{n=1}^{\infty}a^n \beta_n \phi_n^- &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi^+ = e^{Kz} \cos(Kx) + \sum_{n=1}^{\infty}a^n \alpha_n \phi_n^+&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
and &amp;lt;math&amp;gt;\phi^- = ie^{Kz} \sin(Kx) + \sum_{n=1}^{\infty}a^n \beta_n \phi_n^- &amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Converting &amp;lt;math&amp;gt;\phi^+&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\phi^-&amp;lt;/math&amp;gt; into the polar coordinate system:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi^+ = e^{-Kf}\sum_{n=0}^\infty \frac{(-Kr)^n }{n!} \cos(n\theta) + \sum_{n=1}^{\infty}a^n \alpha_n \left(\frac{\cos(n\theta)}{r^n} + \sum_{m=0}^\infty A_{mn}^+ r^m \cos(m\theta)\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi^- = ie^{-Kf}\sum_{n=0}^\infty \frac{(-Kr)^n }{n!} \sin(n\theta) + \sum_{n=1}^{\infty}a^n \alpha_n \left(\frac{\sin(n\theta)}{r^n} + \sum_{m=0}^\infty A_{mn}^+ r^m \sin(m\theta)\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The above power series converge for r &amp;lt; 2f and the coefficients are given by&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; A_{mn} = \frac{(-1)^{m+n}}{m!(n-1)!} \quad SingularIntegral_0^\infty \quad \frac{\mu + K}{\mu - K} \mu ^{m+n-1} e^{-2\mu f}d\mu &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Applying the body boundary condition &amp;lt;math&amp;gt;\partial_r \phi^\pm |_{r=a} = 0&amp;lt;/math&amp;gt; and noting that the cosines are orthogonal over &amp;lt;math&amp;gt;\theta \in  (-\pi,\pi]&amp;lt;/math&amp;gt; gives the results&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \alpha_m - \sum_{n=1}^{\infty}a^{n+m} A_{mn} \alpha_n = e^{-Kf}\frac {(-Ka)^m}{m!}; m=1,2,3,\ldots&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \beta_m - \sum_{n=1}^{\infty}a^{n+m} A_{mn} \beta_n = -ie^{-Kf}\frac {(-Ka)^m}{m!}; m=1,2,3,\ldots&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
From which we can see that &amp;lt;math&amp;gt;\beta_n = -i\alpha_n&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The above sums can be truncated at the Nth term yielding NxN system of linear equations that can be solved for the coefficients &amp;lt;math&amp;gt;\alpha_n&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hence we can calculate &amp;lt;math&amp;gt;\phi&amp;lt;/math&amp;gt; from:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi = \phi^+ + \phi^- = \phi_I + \sum_{n=1}^{\infty}a^n \alpha_n ( \phi^+_n + \phi^-_n )&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This expression also gives the values of the reflection and transmission coefficients when we substitute the far field expressions for the symmetric and antisymmetric multipoles. In the far field:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \phi^+_n \sim \frac{2\pi i (-K)^n}{(n-1)!} e^{K(z-f)} e^{\pm Kx} &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math &amp;gt; \phi^-_n \sim \mp \frac{2\pi (-K)^n}{(n-1)!} e^{K(z-f)} e^{\pm Kx} &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Giving:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;R=0, \quad T = 1 + 4 \pi i e^{-Kf}  \sum_{n=1}^{\infty} \alpha_n \frac{(-Ka)^n}{(n-1)!} &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Hydrodynamic Forces ==&lt;/div&gt;</summary>
		<author><name>Sean Curry</name></author>
	</entry>
	<entry>
		<id>https://www.wikiwaves.org/index.php?title=User_talk:Sean_Curry&amp;diff=10687</id>
		<title>User talk:Sean Curry</title>
		<link rel="alternate" type="text/html" href="https://www.wikiwaves.org/index.php?title=User_talk:Sean_Curry&amp;diff=10687"/>
		<updated>2010-02-04T02:10:23Z</updated>

		<summary type="html">&lt;p&gt;Sean Curry: /* 2D Exterior Neumann Problem */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Multipole Expansions ==&lt;br /&gt;
&lt;br /&gt;
Moltipole expansions are a technique used in linear water wave theory where the potential is represented as a sum of singularities (multipoles) placed within any structures that are present. Multipoles can be constructed with their singularity submerged or on the free surface and these are treated seperately.&lt;br /&gt;
&lt;br /&gt;
Multipoles satisfy:&lt;br /&gt;
&lt;br /&gt;
- The feild equation&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\nabla^2 \phi = 0 &amp;lt;/math&amp;gt;throughout the fluid domain&lt;br /&gt;
&lt;br /&gt;
- The free surface boundary condition&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\partial _z \phi = K\phi \quad on \quad z=0&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where the z-axis is oriented vertically upwards and the zero is on the free surface&lt;br /&gt;
&lt;br /&gt;
- The bed boundary condition&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\partial_n \phi = 0 \quad on \quad z=-h(x,y)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
- A radiation condition ensuring the potentials represent outgoing waves in the far feild. In two dimensions:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \lim _{kx \rightarrow \pm \infty} \left( \frac{\partial \phi}{\partial x} \mp ik\phi \right) = 0 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
A linear combination of these multipoles can then be made to satisfy the body boundary conditions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== 2D Exterior Neumann Problem ==&lt;br /&gt;
&lt;br /&gt;
Outside a disk of radius a centered at the origin in an infinite domain:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\nabla^2 phi = \left[   \partial_r^2 + \frac{1}{r}\partial_r + \frac{1}{r^2}   \right] \phi= 0 &amp;lt;/math&amp;gt; &lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\partial_n \phi |_{r=a} = 0&amp;lt;/math&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;math&amp;gt;|\nabla\phi| \rightarrow 0 \quad as \quad r \rightarrow \infty &amp;lt;/math&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
&amp;lt;math&amp;gt;Let \quad \phi = R(r)\Theta(\theta)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Seperating variables we get:&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{r^2}{R}\partial_r^2 R + \frac{r}{R}\partial_r R = - \frac{1}{\Theta}\partial_\theta^2 \Theta = m^2 &amp;lt;/math&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;For \quad \Theta: \quad \partial_\theta^2 \Theta = -m^2\Theta &amp;lt;/math&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;math&amp;gt;\Rightarrow \quad \Theta = A(m) \cos(m\theta) + B(m) \sin(m\theta) \quad for \quad  m \neq 0 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;Requiring \quad \Theta(\theta + 2\pi) = \Theta(\theta) \quad gives \quad m \in Z&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{When} \quad m = 0 \quad \mathrm{the \quad obvious \quad solution \quad is} \quad \Theta = A(0) + B(0)\theta &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;  \nabla^2 \left( \ln(r) \right) = \frac{-1}{r^2} + \frac{1}{r^2}  = 0  \quad . &amp;lt;/math&amp;gt; Hence, for m=0, we can write:&lt;br /&gt;
&lt;br /&gt;
== Example: 2D Wave Scattering for a Submerged Horizontal Cylinder (in Infinite Depth)==&lt;br /&gt;
&lt;br /&gt;
***Picture to show problem set up***&lt;br /&gt;
&lt;br /&gt;
The potential for the scattering problem splits as incident and diffracted potentials and also into symmetric and antisymmetric parts.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi = \phi_I + \phi_D = \phi^+ + \phi^-&amp;lt;/math&amp;gt; &lt;br /&gt;
&lt;br /&gt;
where&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \partial_r \phi_I |_{r=a} = - \partial_r \phi_D |_{r=a} &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and &amp;lt;math&amp;gt;\phi^+&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;\phi^-&amp;lt;/math&amp;gt; are the symmetric and antisymmetric parts of &amp;lt;math&amp;gt;\phi&amp;lt;/math&amp;gt; respectively.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For a wave incident from the left we have&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi_I = e^{Kz} e^{iKx} = e^{-Kf}\sum_{n=0}^\infty \frac{(-Kr)^n }{n!} e^{-in\theta}&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi_D = \sum_{n=1}^{\infty}a^n \alpha_n \phi_n^+ + \sum_{n=1}^{\infty}a^n \beta_n \phi_n^- &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi^+ = e^{Kz} \cos(Kx) + \sum_{n=1}^{\infty}a^n \alpha_n \phi_n^+&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
and &amp;lt;math&amp;gt;\phi^- = ie^{Kz} \sin(Kx) + \sum_{n=1}^{\infty}a^n \beta_n \phi_n^- &amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Converting &amp;lt;math&amp;gt;\phi^+&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\phi^-&amp;lt;/math&amp;gt; into the polar coordinate system:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi^+ = e^{-Kf}\sum_{n=0}^\infty \frac{(-Kr)^n }{n!} \cos(n\theta) + \sum_{n=1}^{\infty}a^n \alpha_n \left(\frac{\cos(n\theta)}{r^n} + \sum_{m=0}^\infty A_{mn}^+ r^m \cos(m\theta)\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi^- = ie^{-Kf}\sum_{n=0}^\infty \frac{(-Kr)^n }{n!} \sin(n\theta) + \sum_{n=1}^{\infty}a^n \alpha_n \left(\frac{\sin(n\theta)}{r^n} + \sum_{m=0}^\infty A_{mn}^+ r^m \sin(m\theta)\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The above power series converge for r &amp;lt; 2f and the coefficients are given by&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; A_{mn} = \frac{(-1)^{m+n}}{m!(n-1)!} \quad SingularIntegral_0^\infty \quad \frac{\mu + K}{\mu - K} \mu ^{m+n-1} e^{-2\mu f}d\mu &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Applying the body boundary condition &amp;lt;math&amp;gt;\partial_r \phi^\pm |_{r=a} = 0&amp;lt;/math&amp;gt; and noting that the cosines are orthogonal over &amp;lt;math&amp;gt;\theta \in  (-\pi,\pi]&amp;lt;/math&amp;gt; gives the results&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \alpha_m - \sum_{n=1}^{\infty}a^{n+m} A_{mn} \alpha_n = e^{-Kf}\frac {(-Ka)^m}{m!}; m=1,2,3,\ldots&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \beta_m - \sum_{n=1}^{\infty}a^{n+m} A_{mn} \beta_n = -ie^{-Kf}\frac {(-Ka)^m}{m!}; m=1,2,3,\ldots&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
From which we can see that &amp;lt;math&amp;gt;\beta_n = -i\alpha_n&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The above sums can be truncated at the Nth term yielding NxN system of linear equations that can be solved for the coefficients &amp;lt;math&amp;gt;\alpha_n&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hence we can calculate &amp;lt;math&amp;gt;\phi&amp;lt;/math&amp;gt; from:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi = \phi^+ + \phi^- = \phi_I + \sum_{n=1}^{\infty}a^n \alpha_n ( \phi^+_n + \phi^-_n )&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This expression also gives the values of the reflection and transmission coefficients when we substitute the far field expressions for the symmetric and antisymmetric multipoles. In the far field:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \phi^+_n \sim \frac{2\pi i (-K)^n}{(n-1)!} e^{K(z-f)} e^{\pm Kx} &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math &amp;gt; \phi^-_n \sim \mp \frac{2\pi (-K)^n}{(n-1)!} e^{K(z-f)} e^{\pm Kx} &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Giving:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;R=0, \quad T = 1 + 4 \pi i e^{-Kf}  \sum_{n=1}^{\infty} \alpha_n \frac{(-Ka)^n}{(n-1)!} &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Hydrodynamic Forces ==&lt;/div&gt;</summary>
		<author><name>Sean Curry</name></author>
	</entry>
	<entry>
		<id>https://www.wikiwaves.org/index.php?title=User_talk:Sean_Curry&amp;diff=10685</id>
		<title>User talk:Sean Curry</title>
		<link rel="alternate" type="text/html" href="https://www.wikiwaves.org/index.php?title=User_talk:Sean_Curry&amp;diff=10685"/>
		<updated>2010-02-03T23:49:54Z</updated>

		<summary type="html">&lt;p&gt;Sean Curry: /* Multipole Expansions */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Multipole Expansions ==&lt;br /&gt;
&lt;br /&gt;
Moltipole expansions are a technique used in linear water wave theory where the potential is represented as a sum of singularities (multipoles) placed within any structures that are present. Multipoles can be constructed with their singularity submerged or on the free surface and these are treated seperately.&lt;br /&gt;
&lt;br /&gt;
Multipoles satisfy:&lt;br /&gt;
&lt;br /&gt;
- The feild equation&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\nabla^2 \phi = 0 &amp;lt;/math&amp;gt;throughout the fluid domain&lt;br /&gt;
&lt;br /&gt;
- The free surface boundary condition&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\partial _z \phi = K\phi \quad on \quad z=0&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where the z-axis is oriented vertically upwards and the zero is on the free surface&lt;br /&gt;
&lt;br /&gt;
- The bed boundary condition&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\partial_n \phi = 0 \quad on \quad z=-h(x,y)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
- A radiation condition ensuring the potentials represent outgoing waves in the far feild. In two dimensions:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \lim _{kx \rightarrow \pm \infty} \left( \frac{\partial \phi}{\partial x} \mp ik\phi \right) = 0 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
A linear combination of these multipoles can then be made to satisfy the body boundary conditions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== 2D Exterior Neumann Problem ==&lt;br /&gt;
&lt;br /&gt;
== Example: 2D Wave Scattering for a Submerged Horizontal Cylinder (in Infinite Depth)==&lt;br /&gt;
&lt;br /&gt;
***Picture to show problem set up***&lt;br /&gt;
&lt;br /&gt;
The potential for the scattering problem splits as incident and diffracted potentials and also into symmetric and antisymmetric parts.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi = \phi_I + \phi_D = \phi^+ + \phi^-&amp;lt;/math&amp;gt; &lt;br /&gt;
&lt;br /&gt;
where&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \partial_r \phi_I |_{r=a} = - \partial_r \phi_D |_{r=a} &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and &amp;lt;math&amp;gt;\phi^+&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;\phi^-&amp;lt;/math&amp;gt; are the symmetric and antisymmetric parts of &amp;lt;math&amp;gt;\phi&amp;lt;/math&amp;gt; respectively.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For a wave incident from the left we have&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi_I = e^{Kz} e^{iKx} = e^{-Kf}\sum_{n=0}^\infty \frac{(-Kr)^n }{n!} e^{-in\theta}&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi_D = \sum_{n=1}^{\infty}a^n \alpha_n \phi_n^+ + \sum_{n=1}^{\infty}a^n \beta_n \phi_n^- &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi^+ = e^{Kz} \cos(Kx) + \sum_{n=1}^{\infty}a^n \alpha_n \phi_n^+&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
and &amp;lt;math&amp;gt;\phi^- = ie^{Kz} \sin(Kx) + \sum_{n=1}^{\infty}a^n \beta_n \phi_n^- &amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Converting &amp;lt;math&amp;gt;\phi^+&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\phi^-&amp;lt;/math&amp;gt; into the polar coordinate system:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi^+ = e^{-Kf}\sum_{n=0}^\infty \frac{(-Kr)^n }{n!} \cos(n\theta) + \sum_{n=1}^{\infty}a^n \alpha_n \left(\frac{\cos(n\theta)}{r^n} + \sum_{m=0}^\infty A_{mn}^+ r^m \cos(m\theta)\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi^- = ie^{-Kf}\sum_{n=0}^\infty \frac{(-Kr)^n }{n!} \sin(n\theta) + \sum_{n=1}^{\infty}a^n \alpha_n \left(\frac{\sin(n\theta)}{r^n} + \sum_{m=0}^\infty A_{mn}^+ r^m \sin(m\theta)\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The above power series converge for r &amp;lt; 2f and the coefficients are given by&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; A_{mn} = \frac{(-1)^{m+n}}{m!(n-1)!} \quad SingularIntegral_0^\infty \quad \frac{\mu + K}{\mu - K} \mu ^{m+n-1} e^{-2\mu f}d\mu &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Applying the body boundary condition &amp;lt;math&amp;gt;\partial_r \phi^\pm |_{r=a} = 0&amp;lt;/math&amp;gt; and noting that the cosines are orthogonal over &amp;lt;math&amp;gt;\theta \in  (-\pi,\pi]&amp;lt;/math&amp;gt; gives the results&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \alpha_m - \sum_{n=1}^{\infty}a^{n+m} A_{mn} \alpha_n = e^{-Kf}\frac {(-Ka)^m}{m!}; m=1,2,3,\ldots&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \beta_m - \sum_{n=1}^{\infty}a^{n+m} A_{mn} \beta_n = -ie^{-Kf}\frac {(-Ka)^m}{m!}; m=1,2,3,\ldots&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
From which we can see that &amp;lt;math&amp;gt;\beta_n = -i\alpha_n&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The above sums can be truncated at the Nth term yielding NxN system of linear equations that can be solved for the coefficients &amp;lt;math&amp;gt;\alpha_n&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hence we can calculate &amp;lt;math&amp;gt;\phi&amp;lt;/math&amp;gt; from:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi = \phi^+ + \phi^- = \phi_I + \sum_{n=1}^{\infty}a^n \alpha_n ( \phi^+_n + \phi^-_n )&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This expression also gives the values of the reflection and transmission coefficients when we substitute the far field expressions for the symmetric and antisymmetric multipoles. In the far field:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \phi^+_n \sim \frac{2\pi i (-K)^n}{(n-1)!} e^{K(z-f)} e^{\pm Kx} &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math &amp;gt; \phi^-_n \sim \mp \frac{2\pi (-K)^n}{(n-1)!} e^{K(z-f)} e^{\pm Kx} &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Giving:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;R=0, \quad T = 1 + 4 \pi i e^{-Kf}  \sum_{n=1}^{\infty} \alpha_n \frac{(-Ka)^n}{(n-1)!} &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Hydrodynamic Forces ==&lt;/div&gt;</summary>
		<author><name>Sean Curry</name></author>
	</entry>
	<entry>
		<id>https://www.wikiwaves.org/index.php?title=User_talk:Sean_Curry&amp;diff=10683</id>
		<title>User talk:Sean Curry</title>
		<link rel="alternate" type="text/html" href="https://www.wikiwaves.org/index.php?title=User_talk:Sean_Curry&amp;diff=10683"/>
		<updated>2010-01-20T09:13:25Z</updated>

		<summary type="html">&lt;p&gt;Sean Curry: /* Example: 2D Wave Scattering for a Submerged Horizontal Cylinder (in Infinite Depth) */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Multipole Expansions ==&lt;br /&gt;
&lt;br /&gt;
Moltipole expansions are a technique used in linear water wave theory where the potential is represented as a sum of singularities (multipoles) placed within any structures that are present. Multipoles can be constructed with their singularity submerged or on the free surface and these are treated seperately.&lt;br /&gt;
&lt;br /&gt;
Multipoles satisfy:&lt;br /&gt;
&lt;br /&gt;
- The feild equation&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\nabla \phi = 0 &amp;lt;/math&amp;gt;throughout the fluid domain&lt;br /&gt;
&lt;br /&gt;
- The free surface boundary condition&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\partial _z \phi = K\phi \quad on \quad z=0&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where the z-axis is oriented vertically upwards and the zero is on the free surface&lt;br /&gt;
&lt;br /&gt;
- The bed boundary condition&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\partial_n \phi = 0 \quad on \quad z=-h(x,y)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
- A radiation condition ensuring the potentials represent outgoing waves in the far feild. In two dimensions:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \lim _{kx \rightarrow \pm \infty} \left( \frac{\partial \phi}{\partial x} \mp ik\phi \right) = 0 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
A linear combination of these multipoles can then be made to satisfy the body boundary conditions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Example: 2D Wave Scattering for a Submerged Horizontal Cylinder (in Infinite Depth)==&lt;br /&gt;
&lt;br /&gt;
***Picture to show problem set up***&lt;br /&gt;
&lt;br /&gt;
The potential for the scattering problem splits as incident and diffracted potentials and also into symmetric and antisymmetric parts.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi = \phi_I + \phi_D = \phi^+ + \phi^-&amp;lt;/math&amp;gt; &lt;br /&gt;
&lt;br /&gt;
where&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \partial_r \phi_I |_{r=a} = - \partial_r \phi_D |_{r=a} &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and &amp;lt;math&amp;gt;\phi^+&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;\phi^-&amp;lt;/math&amp;gt; are the symmetric and antisymmetric parts of &amp;lt;math&amp;gt;\phi&amp;lt;/math&amp;gt; respectively.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For a wave incident from the left we have&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi_I = e^{Kz} e^{iKx} = e^{-Kf}\sum_{n=0}^\infty \frac{(-Kr)^n }{n!} e^{-in\theta}&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi_D = \sum_{n=1}^{\infty}a^n \alpha_n \phi_n^+ + \sum_{n=1}^{\infty}a^n \beta_n \phi_n^- &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi^+ = e^{Kz} \cos(Kx) + \sum_{n=1}^{\infty}a^n \alpha_n \phi_n^+&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
and &amp;lt;math&amp;gt;\phi^- = ie^{Kz} \sin(Kx) + \sum_{n=1}^{\infty}a^n \beta_n \phi_n^- &amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Converting &amp;lt;math&amp;gt;\phi^+&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\phi^-&amp;lt;/math&amp;gt; into the polar coordinate system:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi^+ = e^{-Kf}\sum_{n=0}^\infty \frac{(-Kr)^n }{n!} \cos(n\theta) + \sum_{n=1}^{\infty}a^n \alpha_n \left(\frac{\cos(n\theta)}{r^n} + \sum_{m=0}^\infty A_{mn}^+ r^m \cos(m\theta)\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi^- = ie^{-Kf}\sum_{n=0}^\infty \frac{(-Kr)^n }{n!} \sin(n\theta) + \sum_{n=1}^{\infty}a^n \alpha_n \left(\frac{\sin(n\theta)}{r^n} + \sum_{m=0}^\infty A_{mn}^+ r^m \sin(m\theta)\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The above power series converge for r &amp;lt; 2f and the coefficients are given by&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; A_{mn} = \frac{(-1)^{m+n}}{m!(n-1)!} \quad SingularIntegral_0^\infty \quad \frac{\mu + K}{\mu - K} \mu ^{m+n-1} e^{-2\mu f}d\mu &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Applying the body boundary condition &amp;lt;math&amp;gt;\partial_r \phi^\pm |_{r=a} = 0&amp;lt;/math&amp;gt; and noting that the cosines are orthogonal over &amp;lt;math&amp;gt;\theta \in  (-\pi,\pi]&amp;lt;/math&amp;gt; gives the results&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \alpha_m - \sum_{n=1}^{\infty}a^{n+m} A_{mn} \alpha_n = e^{-Kf}\frac {(-Ka)^m}{m!}; m=1,2,3,\ldots&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \beta_m - \sum_{n=1}^{\infty}a^{n+m} A_{mn} \beta_n = -ie^{-Kf}\frac {(-Ka)^m}{m!}; m=1,2,3,\ldots&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
From which we can see that &amp;lt;math&amp;gt;\beta_n = -i\alpha_n&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The above sums can be truncated at the Nth term yielding NxN system of linear equations that can be solved for the coefficients &amp;lt;math&amp;gt;\alpha_n&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hence we can calculate &amp;lt;math&amp;gt;\phi&amp;lt;/math&amp;gt; from:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi = \phi^+ + \phi^- = \phi_I + \sum_{n=1}^{\infty}a^n \alpha_n ( \phi^+_n + \phi^-_n )&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This expression also gives the values of the reflection and transmission coefficients when we substitute the far field expressions for the symmetric and antisymmetric multipoles. In the far field:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \phi^+_n \sim \frac{2\pi i (-K)^n}{(n-1)!} e^{K(z-f)} e^{\pm Kx} &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math &amp;gt; \phi^-_n \sim \mp \frac{2\pi (-K)^n}{(n-1)!} e^{K(z-f)} e^{\pm Kx} &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Giving:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;R=0, \quad T = 1 + 4 \pi i e^{-Kf}  \sum_{n=1}^{\infty} \alpha_n \frac{(-Ka)^n}{(n-1)!} &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Hydrodynamic Forces ==&lt;/div&gt;</summary>
		<author><name>Sean Curry</name></author>
	</entry>
	<entry>
		<id>https://www.wikiwaves.org/index.php?title=User_talk:Sean_Curry&amp;diff=10681</id>
		<title>User talk:Sean Curry</title>
		<link rel="alternate" type="text/html" href="https://www.wikiwaves.org/index.php?title=User_talk:Sean_Curry&amp;diff=10681"/>
		<updated>2010-01-20T09:11:52Z</updated>

		<summary type="html">&lt;p&gt;Sean Curry: /* Multipole Expansions */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Multipole Expansions ==&lt;br /&gt;
&lt;br /&gt;
Moltipole expansions are a technique used in linear water wave theory where the potential is represented as a sum of singularities (multipoles) placed within any structures that are present. Multipoles can be constructed with their singularity submerged or on the free surface and these are treated seperately.&lt;br /&gt;
&lt;br /&gt;
Multipoles satisfy:&lt;br /&gt;
&lt;br /&gt;
- The feild equation&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\nabla \phi = 0 &amp;lt;/math&amp;gt;throughout the fluid domain&lt;br /&gt;
&lt;br /&gt;
- The free surface boundary condition&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\partial _z \phi = K\phi \quad on \quad z=0&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where the z-axis is oriented vertically upwards and the zero is on the free surface&lt;br /&gt;
&lt;br /&gt;
- The bed boundary condition&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\partial_n \phi = 0 \quad on \quad z=-h(x,y)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
- A radiation condition ensuring the potentials represent outgoing waves in the far feild. In two dimensions:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \lim _{kx \rightarrow \pm \infty} \left( \frac{\partial \phi}{\partial x} \mp ik\phi \right) = 0 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
A linear combination of these multipoles can then be made to satisfy the body boundary conditions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Example: 2D Wave Scattering for a Submerged Horizontal Cylinder (in Infinite Depth)==&lt;br /&gt;
&lt;br /&gt;
***Picture to show problem set up***&lt;br /&gt;
&lt;br /&gt;
The potential for the scattering problem splits as incident and diffracted potentials and also into symmetric and antisymmetric parts.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi = \phi_I + \phi_D = \phi^+ + \phi^-&amp;lt;/math&amp;gt; &lt;br /&gt;
&lt;br /&gt;
where&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \partial_r \phi_I |_{r=a} = - \partial_r \phi_D |_{r=a} &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and &amp;lt;math&amp;gt;\phi^+&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;\phi^-&amp;lt;/math&amp;gt; are the symmetric and antisymmetric parts of &amp;lt;math&amp;gt;\phi&amp;lt;/math&amp;gt; respectively.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For a wave incident from the left we have&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi_I = e^{Kz} e^{iKx} = e^{-Kf}\sum_{n=0}^\infty \frac{(-Kr)^n }{n!} e^{-in\theta}&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi_D = \sum_{n=1}^{\infty}a^n \alpha_n \phi_n^+ + \sum_{n=1}^{\infty}a^n \beta_n \phi_n^- &amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi^+ = e^{Kz} \cos(Kx) + \sum_{n=1}^{\infty}a^n \alpha_n \phi_n^+&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
and &amp;lt;math&amp;gt;\phi^- = ie^{Kz} \sin(Kx) + \sum_{n=1}^{\infty}a^n \beta_n \phi_n^- &amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Converting &amp;lt;math&amp;gt;\phi^+&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\phi^-&amp;lt;/math&amp;gt; into the polar coordinate system:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi^+ = e^{-Kf}\sum_{n=0}^\infty \frac{(-Kr)^n }{n!} \cos(n\theta) + \sum_{n=1}^{\infty}a^n \alpha_n \left(\frac{\cos(n\theta)}{r^n} + \sum_{m=0}^\infty A_{mn}^+ r^m \cos(m\theta)\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi^- = ie^{-Kf}\sum_{n=0}^\infty \frac{(-Kr)^n }{n!} \sin(n\theta) + \sum_{n=1}^{\infty}a^n \alpha_n \left(\frac{\sin(n\theta)}{r^n} + \sum_{m=0}^\infty A_{mn}^+ r^m \sin(m\theta)\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The above power series converge for r &amp;lt; 2f and the coefficients are given by&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; A_{mn} = \frac{(-1)^{m+n}}{m!(n-1)!} \quad SingularIntegral_0^\infty \quad \frac{\mu + K}{\mu - K} \mu ^{m+n-1} e^{-2\mu f}d\mu &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Applying the body boundary condition &amp;lt;math&amp;gt;\partial_r \phi^\pm |_{r=a} = 0&amp;lt;/math&amp;gt; and noting that the cosines are orthogonal over &amp;lt;math&amp;gt;\theta \in  (-\pi,\pi]&amp;lt;/math&amp;gt; gives the results&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \alpha_m - \sum_{n=1}^{\infty}a^{n+m} A_{mn} \alpha_n = e^{-Kf}\frac {(-Ka)^m}{m!}; m=1,2,3,\ldots&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \beta_m - \sum_{n=1}^{\infty}a^{n+m} A_{mn} \beta_n = -ie^{-Kf}\frac {(-Ka)^m}{m!}; m=1,2,3,\ldots/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
From which we can see that &amp;lt;math&amp;gt;\beta_n = -i\alpha_n&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The above sums can be truncated at the Nth term yielding NxN system of linear equations that can be solved for the coefficients &amp;lt;math&amp;gt;\alpha_n&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hence we can calculate &amp;lt;math&amp;gt;\phi&amp;lt;/math&amp;gt; from:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\phi = \phi^+ + \phi^- = \phi_I + \sum_{n=1}^{\infty}a^n \alpha_n ( \phi^+_n + \phi^-_n )&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This expression also gives the values of the reflection and transmission coefficients when we substitute the far field expressions for the symmetric and antisymmetric multipoles. In the far field:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \phi^+_n \sim \frac{2\pi i (-K)^n}{(n-1)!} e^{K(z-f)} e^{\pm Kx} &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math &amp;gt; \phi^-_n \sim \mp \frac{2\pi (-K)^n}{(n-1)!} e^{K(z-f)} e^{\pm Kx} &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Giving:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;R=0, \quad T = 1 + 4 \pi i e^{-Kf}  \sum_{n=1}^{\infty} \alpha_n \frac{(-Ka)^n}{(n-1)!} &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Hydrodynamic Forces ==&lt;/div&gt;</summary>
		<author><name>Sean Curry</name></author>
	</entry>
	<entry>
		<id>https://www.wikiwaves.org/index.php?title=User_talk:Sean_Curry&amp;diff=10679</id>
		<title>User talk:Sean Curry</title>
		<link rel="alternate" type="text/html" href="https://www.wikiwaves.org/index.php?title=User_talk:Sean_Curry&amp;diff=10679"/>
		<updated>2010-01-18T03:06:06Z</updated>

		<summary type="html">&lt;p&gt;Sean Curry: /* Multipole Expansions */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Multipole Expansions ==&lt;br /&gt;
&lt;br /&gt;
Moltipole expansions are a technique used in linear water wave theory where the potential is represented as a sum of singularities (multipoles) placed within any structures that are present. Multipoles can be constructed with their singularity submerged or on the free surface and these are treated seperately.&lt;br /&gt;
&lt;br /&gt;
Multipoles satisfy:&lt;br /&gt;
&lt;br /&gt;
- The feild equation&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\nabla \phi = 0 &amp;lt;/math&amp;gt;throughout the fluid domain&lt;br /&gt;
&lt;br /&gt;
- The free surface boundary condition&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\partial _z \phi = K\phi \quad on \quad z=0&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where the z-axis is oriented vertically upwards and the zero is on the free surface&lt;br /&gt;
&lt;br /&gt;
- The bed boundary condition&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\partial_n \phi = 0 \quad on \quad z=-h(x,y)&amp;lt;/math&amp;gt;&lt;/div&gt;</summary>
		<author><name>Sean Curry</name></author>
	</entry>
	<entry>
		<id>https://www.wikiwaves.org/index.php?title=User_talk:Sean_Curry&amp;diff=10677</id>
		<title>User talk:Sean Curry</title>
		<link rel="alternate" type="text/html" href="https://www.wikiwaves.org/index.php?title=User_talk:Sean_Curry&amp;diff=10677"/>
		<updated>2010-01-18T03:03:43Z</updated>

		<summary type="html">&lt;p&gt;Sean Curry: /* Multipole Expansions */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Multipole Expansions ==&lt;br /&gt;
&lt;br /&gt;
Moltipole expansions are a technique used in linear water wave theory where the potential is represented as a sum of singularities (multipoles) placed within any structures that are present. Multipoles can be constructed with their singularity submerged or on the free surface and these are treated seperately.&lt;br /&gt;
&lt;br /&gt;
Multipoles satisfy:&lt;br /&gt;
&lt;br /&gt;
- The feild equation&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\nabla \phi = 0 \quad \mathrm{throughout the fluid domain}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
- The free surface boundary condition&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\partial _z \phi = K\phi \quad on \quad z=0&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where the z-axis is oriented vertically upwards and the zero is on the free surface&lt;br /&gt;
&lt;br /&gt;
- The bed boundary condition&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\partial_n \phi = 0 \quad on \quad z=-h(x,y)&amp;lt;/math&amp;gt;&lt;/div&gt;</summary>
		<author><name>Sean Curry</name></author>
	</entry>
	<entry>
		<id>https://www.wikiwaves.org/index.php?title=User_talk:Sean_Curry&amp;diff=10675</id>
		<title>User talk:Sean Curry</title>
		<link rel="alternate" type="text/html" href="https://www.wikiwaves.org/index.php?title=User_talk:Sean_Curry&amp;diff=10675"/>
		<updated>2010-01-18T03:00:51Z</updated>

		<summary type="html">&lt;p&gt;Sean Curry: Created page with &amp;#039;== Multipole Expansions ==  Moltipole expansions are a technique used in linear water wave theory where the potential is represented as a sum of singularities (multipoles) placed…&amp;#039;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Multipole Expansions ==&lt;br /&gt;
&lt;br /&gt;
Moltipole expansions are a technique used in linear water wave theory where the potential is represented as a sum of singularities (multipoles) placed within any structures that are present. Multipoles can be constructed with their singularity submerged or on the free surface and these are treated seperately.&lt;br /&gt;
&lt;br /&gt;
Multipoles satisfy:&lt;br /&gt;
&lt;br /&gt;
- The feild equation&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\nabla \phi = 0 \quad throughout the fluid domain&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
- The free surface boundary condition&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\partial _z \phi = K\phi \quad on \quad z=0&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where the z-axis is oriented vertically upwards and the zero is on the free surface&lt;br /&gt;
&lt;br /&gt;
- The bed boundary condition&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\partial_n \phi = 0 \quad on \quad z=-h(x,y)&amp;lt;/math&amp;gt;&lt;/div&gt;</summary>
		<author><name>Sean Curry</name></author>
	</entry>
	<entry>
		<id>https://www.wikiwaves.org/index.php?title=Variable_Depth_Shallow_Water_Wave_Equation&amp;diff=8731</id>
		<title>Variable Depth Shallow Water Wave Equation</title>
		<link rel="alternate" type="text/html" href="https://www.wikiwaves.org/index.php?title=Variable_Depth_Shallow_Water_Wave_Equation&amp;diff=8731"/>
		<updated>2009-03-01T01:32:10Z</updated>

		<summary type="html">&lt;p&gt;Sean Curry: /* Solution using Separation of Variables */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction ==&lt;br /&gt;
&lt;br /&gt;
We consider here the problem of waves reflected by a region of variable depth in&lt;br /&gt;
an otherwise uniform depth region assuming the equations of [[:Category:Shallow Depth|Shallow Depth]].&lt;br /&gt;
&lt;br /&gt;
== Equations ==&lt;br /&gt;
&lt;br /&gt;
We begin with the shallow depth equation&lt;br /&gt;
{{shallow depth one dimension}} &lt;br /&gt;
&lt;br /&gt;
== Waves in a finite basin ==&lt;br /&gt;
&lt;br /&gt;
We consider the problem of waves in a finite basin &amp;lt;math&amp;gt;-L&amp;lt;x&amp;lt;L&amp;lt;/math&amp;gt;. At the edge of the basin the boundary conditions are&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\left.\partial_x \zeta\right|_{x=-L} = \left.\partial_x \zeta\right|_{x=L} =0&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
We solve the equations by expanding in the modes for the basin which satisfy&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\partial_x \left(h(x) \partial_x \zeta_n \right) = -\lambda_n \rho(x) \zeta_n ,&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
normalised so that &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{-L}^L \rho\zeta_n \zeta_m = \delta_{mn}.&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
The solution is then given by&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\zeta(x,t) = \sum_{n=0}^{\infty} \left(\int_{-L}^L \rho(x)\zeta_n(x^\prime) \zeta_0 (x^\prime) dx^\prime \right) \zeta_n(x) \cos(\sqrt{\lambda_n} t )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
+ \sum_{n=1} ^{\infty} \left(\int_{-L}^L \rho(x)\zeta_n(x^\prime) \partial_t\zeta_0 (x^\prime) dx^\prime \right) \zeta_n(x) \frac{\sin(\sqrt{\lambda_n} t )}{\sqrt{\lambda_n}}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
where we have assumed that &amp;lt;math&amp;gt;\lambda_0 = 0&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Calculation of &amp;lt;math&amp;gt;\zeta_n&amp;lt;/math&amp;gt; ===&lt;br /&gt;
&lt;br /&gt;
We can calculate the eigenfunctions &amp;lt;math&amp;gt;\zeta_n&amp;lt;/math&amp;gt; by an expansion in the modes for the case of uniform depth.&lt;br /&gt;
We use the Rayleigh-Ritz method. The eigenfunctions are local minimums of &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;J[\zeta] = \int_{-L}^L \frac{1}{2}\left\{ h(x)\left(\partial_x \zeta\right)^2 - \lambda \rho(x) \zeta^2 \right\}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
subject to the boundary conditions that the normal derivative vanishes (where &amp;lt;math&amp;gt;\lambda&amp;lt;/math&amp;gt; is the eigenvalue).&lt;br /&gt;
&lt;br /&gt;
We expand the displacement in the eigenfunctions for constant depth &amp;lt;math&amp;gt;h=1&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\zeta = \sum_{n=0}^{N} a_n \psi_n(x)&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\psi_n = \frac{1}{\sqrt{L}} \cos( n \pi (\frac{1}{2L}x + \frac{1}{2})),\,\,n\ne 1&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\psi_0 = \frac{1}{\sqrt{2L}},\,&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and substitute this expansion into the variational equation we obtain&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
J[\vec{a}] = \int_{-L}^L \frac{1}{2}\left\{ h(x)\left( \sum_{n=0}^{N} a_n \partial_x \psi_n(x)\right)^2 - \lambda \rho(x) \left(\sum_{n=0}^{N} a_n \psi_n(x)\right)^2 \right\}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{dJ}{da_m} = \int_{-L}^L \frac{1}{2}\left\{ h(x)2\partial_x \psi_m(x)\left( \sum_{n=0}^{N} a_n \partial_x \psi_n(x)\right) - \lambda \rho(x)2\psi_m(x)\left(\sum_{n=0}^{N} a_n \psi_n(x)\right) \right\} = 0&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{-L}^L \left\{ h(x)\partial_x \psi_m(x)\left( \sum_{n=0}^{N} a_n \partial_x \psi_n(x)\right) \right\} = \int_{-L}^L \left\{ \lambda \rho(x)\psi_m(x)\left(\sum_{n=0}^{N} a_n \psi_n(x)\right) \right\}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\sum_{n=0}^{N} a_n \int_{-L}^L \left\{ h(x)\partial_x \psi_n(x)\partial_x \psi_m(x)\right\} = \lambda \sum_{n=0}^{N} a_n \int_{-L}^L \left\{ \rho(x)\psi_n(x)\psi_m(x) \right\}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
this equation can be rewritten using matrices as&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\mathbf{K} \vec{a} = \lambda\mathbf{M} \vec{a}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where the elements of the matrices &#039;&#039;&#039;K&#039;&#039;&#039; and &#039;&#039;&#039;M&#039;&#039;&#039; are&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\mathbf{K}_{mn} = \int_{-L}^L \left\{ \left(\partial_x \psi_m h(x) \partial_x \psi_n\right) \right\}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\mathbf{M}_{mn} = \int_{-L}^L \left\{\rho(x)\psi_n(x)\psi_m(x)\right\}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Matlab code ===&lt;br /&gt;
&#039;&#039;&#039;Example of the method of numerical integration; using a weighting matrix to implement Simpson&#039;s Rule:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
x = linspace(-4,4,500).&#039;;&lt;br /&gt;
&lt;br /&gt;
f = exp(-10*(x.^2));&lt;br /&gt;
&lt;br /&gt;
g = sin(x);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
h = x(2)-x(1);&lt;br /&gt;
&lt;br /&gt;
simp = 2*h/3*ones(1,length(x));&lt;br /&gt;
&lt;br /&gt;
simp(2:2:length(x)-1) = 4*h/3;&lt;br /&gt;
&lt;br /&gt;
simp(1) = h/3;&lt;br /&gt;
&lt;br /&gt;
simp(end) = h/3;&lt;br /&gt;
&lt;br /&gt;
simp = diag(simp);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
%The integral of f(x)^2 from (by Simpson&#039;s Rule) -4 to 4 is:&lt;br /&gt;
&lt;br /&gt;
int1 = transpose(f)*simp*f;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
%The integral of f(x)*g(x) from -4 to 4 is:&lt;br /&gt;
&lt;br /&gt;
int2 = transpose(f)*simp*g;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Multiple integrals can be executed in one expression:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
%NUMERICALLY CALCULATING FOURIER COEFICIENTS&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
%Make a row vector of x values&lt;br /&gt;
&lt;br /&gt;
x = linspace(-pi,pi,200);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
%Define a row vector of the values of the function to be fitted by a Fourier sine series&lt;br /&gt;
&lt;br /&gt;
f = 5*x.^3 - 3*x;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
%Simpson&#039;s Rule weighting matrix:&lt;br /&gt;
&lt;br /&gt;
h = x(2)-x(1);&lt;br /&gt;
simp = 2*h/3*ones(1,length(x));&lt;br /&gt;
simp(2:2:length(x)-1) = 4*h/3;&lt;br /&gt;
simp(1) = h/3;&lt;br /&gt;
simp(end) = h/3;&lt;br /&gt;
simp = diag(simp);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
%Create a matrix M with the fourier functions, x increasing along the rows, n increasing down the columns&lt;br /&gt;
&lt;br /&gt;
M = zeros(round(length(x)/2),length(x));&lt;br /&gt;
&lt;br /&gt;
for n = 1:length(M(:,1))&lt;br /&gt;
&lt;br /&gt;
    M(n,:) = sin(n*x)/sqrt(pi);&lt;br /&gt;
&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
%Calculate the column vector containing the coefficients of the sine series  &lt;br /&gt;
&lt;br /&gt;
fourier_coefficients = M*simp*transpose(f);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
%Calculate a row vector of the fitting function evaluated at the values of x&lt;br /&gt;
&lt;br /&gt;
fourier_sine_fit = transpose(fourier_coefficients)*M;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
%Plot to check&lt;br /&gt;
&lt;br /&gt;
plot(x,f,x,fourier_sine_fit)&lt;br /&gt;
&lt;br /&gt;
== Waves in an infinite basin ==&lt;br /&gt;
&lt;br /&gt;
We assume that the density &amp;lt;math&amp;gt;\rho&amp;lt;/math&amp;gt; and the depth &amp;lt;math&amp;gt;h&amp;lt;/math&amp;gt; are constant and equal to one outside the region &amp;lt;math&amp;gt;-L&amp;lt;x&amp;lt;L&amp;lt;/math&amp;gt;. &lt;br /&gt;
We can therefore write the wave as&lt;br /&gt;
&lt;br /&gt;
== Solution using Separation of Variables ==&lt;br /&gt;
&lt;br /&gt;
Taking a separable solution  gives the eigenvalue problem&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\partial_x \left( h(x) \partial_x\zeta \right) = -\omega^{2}\rho(x)\zeta \quad (1)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Given boundary conditions &amp;lt;math&amp;gt;\zeta \mid_{-L} = a&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\zeta \mid_L = b&amp;lt;/math&amp;gt; we can take &amp;lt;math&amp;gt; \zeta = \zeta_p + u &amp;lt;/math&amp;gt; With &amp;lt;math&amp;gt; \zeta_p = \frac{(b-a)}{2L}x + \frac{b+a}{2} &amp;lt;/math&amp;gt; satisfying the boundary conditions and &amp;lt;math&amp;gt; u  &amp;lt;/math&amp;gt;  satisfying &amp;lt;math&amp;gt; u |_{-L} = u |_L = 0&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Substituting this form into (1) gives&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; \partial_x(h(x)\partial_x \zeta_p)+\partial_x(h(x)\partial_xu) = -\omega^{2}\left(\zeta_p+u\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
Or, on rearranging&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; \partial_x(h(x)\partial_xu)+\omega^{2}u = -\partial_x(h(x)\partial_x \zeta_p)-\omega^{2}\zeta_p = f(x)\quad (2)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
so &amp;lt;center&amp;gt;&amp;lt;math&amp;gt; f(x) = -\partial_x(h(x)\partial_x \zeta_p)-\omega^{2}\zeta_p = -\frac{(b-a)}{2L}\partial_xh(x) - \omega^2 \left(\frac{(b-a)}{2L}x + \frac{b+a}{2}\right) &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
Now consider the homogenous Sturm-Liouville problem for u&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; \partial_x(h(x)\partial_xu)+\lambda u = 0\quad u|_0=u|_1=0 \quad (3)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
By Sturm-Liouville theory this has an infinite set of eigenvalues &amp;lt;math&amp;gt; \lambda_k &amp;lt;/math&amp;gt; with corresponding eigenfunctions &amp;lt;math&amp;gt; u_k &amp;lt;/math&amp;gt;.  Also since &amp;lt;math&amp;gt; u_k|_0=u_k|_1=0\quad \forall k &amp;lt;/math&amp;gt; Each &amp;lt;math&amp;gt; u_k&amp;lt;/math&amp;gt; can be expanded as a fourier series in terms of sine functions.&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; u_k = \sum_{n=1}^{\infty} a_{n,k} \psi_n&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\psi_n = \sin\left(\frac{n\pi}{2}\left(\frac{x}{L} + 1\right)\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
Transforming (3) into the equivalent variational problem gives&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; J[u] = \int_{-L}^{L}\,hu&#039;^{2}-\lambda \rho u^{2} \, dx \quad (4) &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
Substituting the fourier expansion for &amp;lt;math&amp;gt;u_k&amp;lt;/math&amp;gt; into (4):&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; J = \int_{-L}^{L}\,h\left(\sum_{n=1}^{\infty} a_{n} \psi_n&#039;\right)^{2}-\lambda \rho \left(\sum_{n=1}^{\infty} a_{n} \psi_n\right)^{2} \, dx \quad &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
Since &amp;lt;math&amp;gt;u_k&amp;lt;/math&amp;gt; minimises J, we require &amp;lt;math&amp;gt; \frac{\partial J}{\partial a_{n}}=0 \quad \forall n &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; \frac{\partial J}{\partial a_{m}}=\int_{-L}^{L}\left\{2h\psi_m&#039;\sum_{n=1}^{\infty} a_{n}\psi_n&#039;-2\lambda\rho \psi_m \sum_{n=1}^{\infty} a_{n} \psi_n\right\}dx=0&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; \implies \int_{-L}^{L}2h\psi_m&#039;\sum_{n=1}^{\infty} a_{n}\psi_n&#039;dx= \int_{-L}^{L}2\lambda\rho \psi_m \sum_{n=1}^{\infty} a_{n} \psi_ndx&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \implies \sum_{n=1}^{\infty}a_{n}\int_{-L}^{L}h\psi_m&#039;\psi_n&#039;dx= \lambda\sum_{n=1}^{\infty}a_{n}\int_{-L}^{L}\rho \psi_m \psi_ndx&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
By defining a vector &amp;lt;math&amp;gt; \textbf{a} = \left(a_{n}\right)&amp;lt;/math&amp;gt; and matrices &amp;lt;math&amp;gt;K_{(n,m)} = \int_{-L}^{L}h(x)\psi_m&#039;(x)\psi_n&#039;(x)dx &amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;M_{(n,m)} = \int_{-L}^{L}\rho(x)\psi_m(x)\psi_n(x)dx &amp;lt;/math&amp;gt; we have the linear system &amp;lt;math&amp;gt; K\textbf{a} = \lambda M\textbf{a} &amp;lt;/math&amp;gt; which returns the eigenvalues and eigenvectors of equation (3), with eigenvectors &amp;lt;math&amp;gt; \textbf{a} &amp;lt;/math&amp;gt; representing coefficient vectors of the fourier expansions of eigenfunctions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If we now construct &amp;lt;math&amp;gt; u(x,\omega) = \sum_{k=1}^{\infty} b_k u_k &amp;lt;/math&amp;gt; and substitute this into equation (2) we get&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \sum_{k=1}^{\infty} (\partial_x(h(x)\partial_x u_k) + \omega^{2}\rho u_k)b_k = f(x) &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \implies \sum_{k=1}^{\infty} (-\lambda_k\rho u_k + \omega^{2}\rho u_k)b_k = f(x) &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \implies \sum_{k=1}^{\infty} (\omega^{2}-\lambda_k) b_k \rho u_k = f(x) \quad (5) &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
And defining the RHS of equation (5) as &amp;lt;math&amp;gt; f(x) &amp;lt;/math&amp;gt;, a known function, we can retrieve the coefficients &amp;lt;math&amp;gt; b_k &amp;lt;/math&amp;gt; by integrating against &amp;lt;math&amp;gt; u_k &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; b_k = \frac{\int_{-L}^{L}\,f u_k\,dx}{(\omega^{2}-\lambda_k) \int_{-L}^{L}\, \rho u_{k}^{2}\,dx} &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The coefficients &amp;lt;math&amp;gt; c_n &amp;lt;/math&amp;gt; of the fourier expansion of u are just &amp;lt;math&amp;gt; \sum_{k=1}^{\infty}a_{n,k}b_{k} &amp;lt;/math&amp;gt; with &amp;lt;math&amp;gt; a_{n.k} &amp;lt;/math&amp;gt; being the &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;th coefficient of the &amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt;th eigenfunction of the Sturm-Liouville problem.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So &amp;lt;math&amp;gt; \zeta(x,\omega)=\frac{(b-a)}{2L}x + \frac{b+a}{2}+\sum_{n=1}^{\infty}c_{n} \sin\left(\frac{n\pi}{2}\left(\frac{x}{L} + 1\right)\right) \quad (6)&amp;lt;/math&amp;gt; &lt;br /&gt;
,with &amp;lt;math&amp;gt; \zeta |_{-L}=a \quad \zeta |_{L}=b &amp;lt;/math&amp;gt; and, given &amp;lt;math&amp;gt; a &amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt; b &amp;lt;/math&amp;gt; explicitly differentiating &amp;lt;math&amp;gt; \zeta &amp;lt;/math&amp;gt; gives &amp;lt;math&amp;gt; \partial_x \zeta |_{-L} &amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt; \partial_x \zeta |_L &amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We choose a basis of the solution space for any particular &amp;lt;math&amp;gt;\omega&amp;lt;/math&amp;gt; to be &amp;lt;math&amp;gt;\{\zeta_1,\,\zeta_2\}&amp;lt;/math&amp;gt;, where &amp;lt;math&amp;gt; \zeta_1 &amp;lt;/math&amp;gt; is the solution to the BVP(a=1,b=0) and &amp;lt;math&amp;gt; \zeta_1 &amp;lt;/math&amp;gt; is the solution to the BVP(a=0,b=1). The functions &amp;lt;math&amp;gt; \zeta_1 &amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt; \zeta_2 &amp;lt;/math&amp;gt; can be calculated for any &amp;lt;math&amp;gt; \omega &amp;lt;/math&amp;gt; from (6).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The aim here is to construct a matrix &#039;&#039;&#039;S&#039;&#039;&#039; such that, given &amp;lt;math&amp;gt; a &amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt; b &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; S \begin{pmatrix} \zeta |_{-L} \\ \zeta |_L \end{pmatrix}=\begin{pmatrix} \partial_x \zeta |_{-L} \\ \partial_x \zeta |_L \end{pmatrix}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Taking &amp;lt;math&amp;gt; a=1,\,b=0 &amp;lt;/math&amp;gt;  to give &amp;lt;math&amp;gt; \zeta_1 &amp;lt;/math&amp;gt; shows that the first column of &#039;&#039;&#039;S&#039;&#039;&#039; must be &amp;lt;math&amp;gt; \begin{pmatrix} \partial_x \zeta_1 |_{-L} \\ \partial_x \zeta_1 |_L \end{pmatrix} &amp;lt;/math&amp;gt; and likewise taking &amp;lt;math&amp;gt; a=0,\,b=1 &amp;lt;/math&amp;gt; to give &amp;lt;math&amp;gt; \zeta_2 &amp;lt;/math&amp;gt; shows the second column must be &amp;lt;math&amp;gt; \begin{pmatrix} \partial_x \zeta_2 |_{-L} \\ \partial_x \zeta_2 |_L \end{pmatrix} &amp;lt;/math&amp;gt;. So &#039;&#039;&#039;S&#039;&#039;&#039; is given by&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; \begin{pmatrix}  \partial_x \zeta_1 |_{-L}  \, \partial_x \zeta_2 |_{-L} \\ \partial_x \zeta_1 |_L \, \partial_x \zeta_2 |_L \end{pmatrix} &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now for the area of constant depth on the left hand side there is a potential of the form &amp;lt;math&amp;gt; e^{i\omega x} &amp;lt;/math&amp;gt; which, creates  reflected and transmitted potentials from the variable depth area of the form &amp;lt;math&amp;gt; Re^{-i\omega x} &amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt; Te^{i\omega x} &amp;lt;/math&amp;gt; respectively where the magnitudes of &amp;lt;math&amp;gt; R &amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt; T &amp;lt;/math&amp;gt; are unknown.  We can calculate that the boundary conditions for &amp;lt;math&amp;gt; \zeta &amp;lt;/math&amp;gt; must be&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; \zeta |_{-L} = e^{-i\omega L}+Re^{i\omega L}, \quad \zeta |_L = Te^{i\omega L}, \quad \partial_x \zeta |_{-L} = i\omega e^{-i\omega L}-i\omega Re^{i\omega L}, \quad \partial_x \zeta |_L = i\omega Te^{i\omega L} &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; \begin{pmatrix}  i\omega e^{-i\omega L}-i\omega Re^{i\omega L} \\ i\omega Te^{i\omega L} \end{pmatrix} = S\begin{pmatrix}  e^{-i\omega L}+Re^{i\omega L} \\ Te^{i\omega L} \end{pmatrix} &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Knowing &#039;&#039;&#039;S&#039;&#039;&#039; these boundary conditions can be solved for &amp;lt;math&amp;gt; R&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;T&amp;lt;/math&amp;gt;, which in turn gives actual numerical boundary conditions to the original problem(&amp;lt;math&amp;gt;a_+=e^{-i\omega L}+Re^{i\omega L}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt; b_+=Te^{i\omega L}&amp;lt;/math&amp;gt;). Taking a linear combination of the solutions already calculated (&amp;lt;math&amp;gt; a_+\zeta_1(x,\omega) + b_+\zeta_2(x,\omega) &amp;lt;/math&amp;gt;) will provide the solution for these new boundary conditions. This solution, along with the potentials outside this region gives a generalised eigenfunction potential for the whole real axis which we denote as &amp;lt;math&amp;gt; \zeta_+(x,\omega)&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Independent generalised eigenfunctons (which we denote as &amp;lt;math&amp;gt; \zeta_-(x,\omega)&amp;lt;/math&amp;gt;)can be found by considering the potential &amp;lt;math&amp;gt; e^{-i\omega x} &amp;lt;/math&amp;gt; on the right hand region of constant depth. The corresponding reflected and transmitted potentials from the variable depth area are of the form &amp;lt;math&amp;gt; Re^{i\omega x} &amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt; Te^{-i\omega x} &amp;lt;/math&amp;gt; respectively. Again knowing &#039;&#039;&#039;S&#039;&#039;&#039; we can solve for R and T and hence find the numerical boundary conditions (&amp;lt;math&amp;gt;a_-=Te^{i\omega L}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;b_-=e^{-i\omega L}+Re^{i\omega L}&amp;lt;/math&amp;gt;). &lt;br /&gt;
&lt;br /&gt;
We come out with:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; &lt;br /&gt;
\zeta_+(x,\omega) = \left\{ \begin{matrix} &lt;br /&gt;
{e^{i\omega x}+Re^{-i\omega x}, \quad \mbox{ for } x&amp;lt;-L} &lt;br /&gt;
\\ {a_+\zeta_1(x,\omega) + b_+\zeta_2(x,\omega),\quad \mbox{ for } -L\leq x \leq L} &lt;br /&gt;
\\ {Te^{i\omega x}, \quad \mbox{ for } x&amp;gt;L}&lt;br /&gt;
\end{matrix} \right.&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where R and T are found by solving:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
 \begin{pmatrix}   (S_{11} + i\omega)e^{i\omega L}  &amp;amp;  S_{12}e^{i\omega L}  \\&lt;br /&gt;
 S_{21}e^{i\omega L} &amp;amp; (S_{22}-i\omega)e^{i\omega L} \end{pmatrix}      \begin{pmatrix}R\\T\end{pmatrix}&lt;br /&gt;
= \begin{pmatrix}  (i\omega - S_{11}) e^{-i\omega L} \\ -S_{21}e^{-i\omega L} \end{pmatrix} &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and &amp;lt;math&amp;gt;a_+=e^{-i\omega L}+Re^{i\omega L}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt; b_+=Te^{i\omega L}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note that the values of R and T for \zeta_- are different from those for \zeta_+ (Although they are related through some identities). For \zeta_- we have:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; &lt;br /&gt;
\zeta_-(x,\omega) = \left\{ \begin{matrix} &lt;br /&gt;
{Te^{-i\omega x}, \quad \mbox{ for } x&amp;lt;-L} &lt;br /&gt;
\\ {a_-\zeta_1(x,\omega) + b_-\zeta_2(x,\omega),\quad \mbox{ for } -L\leq x \leq L} &lt;br /&gt;
\\ {e^{-i\omega x}+Re^{i\omega x}, \quad \mbox{ for } x&amp;gt;L}&lt;br /&gt;
\end{matrix} \right.&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where R and T are found by solving:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
 \begin{pmatrix}   S_{12}e^{i\omega L}  &amp;amp;  (S_{11}+i\omega)e^{i\omega L}  \\&lt;br /&gt;
   (S_{22}-i\omega)e^{i\omega L} &amp;amp; S_{21}e^{i\omega L}\end{pmatrix}      \begin{pmatrix}R\\T\end{pmatrix}&lt;br /&gt;
= \begin{pmatrix}  S_{12}e^{-i\omega L} \\ -(i\omega + S_{21})e^{-i\omega L} \end{pmatrix} &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note a_+, b_+, a_- and b_- are found frm their corresponding R and T values.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Now we have the generalised eigenfunctions &amp;lt;math&amp;gt;\zeta_+(x,\omega)&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\zeta_-(x,\omega)&amp;lt;/math&amp;gt;, which have the orthogonality relationsips:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; &lt;br /&gt;
\int_{-\infty}^{\infty}\zeta_+(x,\omega)\zeta_-(x,\omega&#039;)dx= 0 \qquad (7)&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; &lt;br /&gt;
\int_{-\infty}^{\infty}\zeta_+(x,\omega)\zeta_+(x,\omega&#039;)dx= 2 \pi \delta(\omega-\omega&#039;) \qquad (8)&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; &lt;br /&gt;
\int_{-\infty}^{\infty}\zeta_-(x,\omega)\zeta_-(x,\omega&#039;)dx= 2 \pi \delta(\omega-\omega&#039;) \qquad (9)&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For any particular &amp;lt;math&amp;gt;\omega &amp;lt;/math&amp;gt; the general solution to the differential equation can be written as:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; &lt;br /&gt;
\zeta(x,t,\omega) = cos(\omega t)\left(c_1(\omega)\zeta_+(x,\omega)+d_1(\omega)\zeta_-(x,\omega)\right) + \frac{sin(\omega t)}{\omega}\left(c_2(\omega)\zeta_+(x,\omega)+d_2(\omega)\zeta_-(x,\omega)\right)&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The general solution to the PDE is therefore:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; &lt;br /&gt;
\zeta(x,t) = \int_{0}^{\infty} \zeta(x,t,\omega) d \omega&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; &lt;br /&gt;
\implies \zeta(x,t) = \int_{0}^{\infty} \left\{ cos(\omega t)\left(c_1(\omega)\zeta_+(x,\omega)+d_1(\omega)\zeta_-(x,\omega)\right) + \frac{sin(\omega t)}{\omega}\left(c_2(\omega)\zeta_+(x,\omega)+d_2(\omega)\zeta_-(x,\omega)\right)&lt;br /&gt;
\right\} d \omega \qquad (10)&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Giving the initial conditions:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; &lt;br /&gt;
F(x) = \zeta(x,0) = \int_{0}^{\infty} \left\{ c_1(\omega)\zeta_+(x,\omega)+d_1(\omega)\zeta_-(x,\omega) \right\} d \omega&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; &lt;br /&gt;
G(x) = \partial_t \zeta(x,0) = \int_{0}^{\infty} \left\{ c_2(\omega)\zeta_+(x,\omega)+d_2(\omega)\zeta_-(x,\omega) \right\} d \omega&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using identities (7),(8) and (9) we can show:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; &lt;br /&gt;
c_1(\omega) = \frac{1}{2\pi}\langle F(x), \zeta_+(x,\omega) \rangle&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; &lt;br /&gt;
d_1(\omega) = \frac{1}{2\pi}\langle F(x), \zeta_-(x,\omega) \rangle&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; &lt;br /&gt;
c_2(\omega) = \frac{1}{2\pi}\langle G(x), \zeta_+(x,\omega) \rangle&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; &lt;br /&gt;
d_2(\omega) = \frac{1}{2\pi}\langle G(x), \zeta_-(x,\omega) \rangle&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Which we can use in combination with (10) to solve the IVP.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Shallow Depth]]&lt;/div&gt;</summary>
		<author><name>Sean Curry</name></author>
	</entry>
	<entry>
		<id>https://www.wikiwaves.org/index.php?title=Variable_Depth_Shallow_Water_Wave_Equation&amp;diff=8708</id>
		<title>Variable Depth Shallow Water Wave Equation</title>
		<link rel="alternate" type="text/html" href="https://www.wikiwaves.org/index.php?title=Variable_Depth_Shallow_Water_Wave_Equation&amp;diff=8708"/>
		<updated>2009-02-25T03:54:17Z</updated>

		<summary type="html">&lt;p&gt;Sean Curry: /* Solution using Separation of Variables */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction ==&lt;br /&gt;
&lt;br /&gt;
We consider here the problem of waves reflected by a region of variable depth in&lt;br /&gt;
an otherwise uniform depth region assuming the equations of [[:Category:Shallow Depth|Shallow Depth]].&lt;br /&gt;
&lt;br /&gt;
== Equations ==&lt;br /&gt;
&lt;br /&gt;
We begin with the shallow depth equation&lt;br /&gt;
{{shallow depth one dimension}} &lt;br /&gt;
&lt;br /&gt;
== Waves in a finite basin ==&lt;br /&gt;
&lt;br /&gt;
We consider the problem of waves in a finite basin &amp;lt;math&amp;gt;-L&amp;lt;x&amp;lt;L&amp;lt;/math&amp;gt;. At the edge of the basin the boundary conditions are&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\left.\partial_x \zeta\right|_{x=-L} = \left.\partial_x \zeta\right|_{x=L} =0&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
We solve the equations by expanding in the modes for the basin which satisfy&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\partial_x \left(h(x) \partial_x \zeta_n \right) = -\lambda_n \rho(x) \zeta_n ,&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
normalised so that &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{-L}^L \rho\zeta_n \zeta_m = \delta_{mn}.&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
The solution is then given by&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\zeta(x,t) = \sum_{n=0}^{\infty} \left(\int_{-L}^L \rho(x)\zeta_n(x^\prime) \zeta_0 (x^\prime) dx^\prime \right) \zeta_n(x) \cos(\sqrt{\lambda_n} t )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
+ \sum_{n=1} ^{\infty} \left(\int_{-L}^L \rho(x)\zeta_n(x^\prime) \partial_t\zeta_0 (x^\prime) dx^\prime \right) \zeta_n(x) \frac{\sin(\sqrt{\lambda_n} t )}{\sqrt{\lambda_n}}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
where we have assumed that &amp;lt;math&amp;gt;\lambda_0 = 0&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Calculation of &amp;lt;math&amp;gt;\zeta_n&amp;lt;/math&amp;gt; ===&lt;br /&gt;
&lt;br /&gt;
We can calculate the eigenfunctions &amp;lt;math&amp;gt;\zeta_n&amp;lt;/math&amp;gt; by an expansion in the modes for the case of uniform depth.&lt;br /&gt;
We use the Rayleigh-Ritz method. The eigenfunctions are local minimums of &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;J[\zeta] = \int_{-L}^L \frac{1}{2}\left\{ h(x)\left(\partial_x \zeta\right)^2 - \lambda \rho(x) \zeta^2 \right\}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
subject to the boundary conditions that the normal derivative vanishes (where &amp;lt;math&amp;gt;\lambda&amp;lt;/math&amp;gt; is the eigenvalue).&lt;br /&gt;
&lt;br /&gt;
We expand the displacement in the eigenfunctions for constant depth &amp;lt;math&amp;gt;h=1&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\zeta = \sum_{n=0}^{N} a_n \psi_n(x)&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\psi_n = \frac{1}{\sqrt{L}} \cos( n \pi (\frac{1}{2L}x + \frac{1}{2})),\,\,n\ne 1&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\psi_0 = \frac{1}{\sqrt{2L}},\,&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and substitute this expansion into the variational equation we obtain&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
J[\vec{a}] = \int_{-L}^L \frac{1}{2}\left\{ h(x)\left( \sum_{n=0}^{N} a_n \partial_x \psi_n(x)\right)^2 - \lambda \rho(x) \left(\sum_{n=0}^{N} a_n \psi_n(x)\right)^2 \right\}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{dJ}{da_m} = \int_{-L}^L \frac{1}{2}\left\{ h(x)2\partial_x \psi_m(x)\left( \sum_{n=0}^{N} a_n \partial_x \psi_n(x)\right) - \lambda \rho(x)2\psi_m(x)\left(\sum_{n=0}^{N} a_n \psi_n(x)\right) \right\} = 0&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{-L}^L \left\{ h(x)\partial_x \psi_m(x)\left( \sum_{n=0}^{N} a_n \partial_x \psi_n(x)\right) \right\} = \int_{-L}^L \left\{ \lambda \rho(x)\psi_m(x)\left(\sum_{n=0}^{N} a_n \psi_n(x)\right) \right\}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\sum_{n=0}^{N} a_n \int_{-L}^L \left\{ h(x)\partial_x \psi_n(x)\partial_x \psi_m(x)\right\} = \lambda \sum_{n=0}^{N} a_n \int_{-L}^L \left\{ \rho(x)\psi_n(x)\psi_m(x) \right\}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
this equation can be rewritten using matrices as&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\mathbf{K} \vec{a} = \lambda\mathbf{M} \vec{a}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where the elements of the matrices &#039;&#039;&#039;K&#039;&#039;&#039; and &#039;&#039;&#039;M&#039;&#039;&#039; are&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\mathbf{K}_{mn} = \int_{-L}^L \left\{ \left(\partial_x \psi_m h(x) \partial_x \psi_n\right) \right\}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\mathbf{M}_{mn} = \int_{-L}^L \left\{\rho(x)\psi_n(x)\psi_m(x)\right\}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Matlab code ===&lt;br /&gt;
&#039;&#039;&#039;Example of the method of numerical integration; using a weighting matrix to implement Simpson&#039;s Rule:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
x = linspace(-4,4,500).&#039;;&lt;br /&gt;
&lt;br /&gt;
f = exp(-10*(x.^2));&lt;br /&gt;
&lt;br /&gt;
g = sin(x);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
h = x(2)-x(1);&lt;br /&gt;
&lt;br /&gt;
simp = 2*h/3*ones(1,length(x));&lt;br /&gt;
&lt;br /&gt;
simp(2:2:length(x)-1) = 4*h/3;&lt;br /&gt;
&lt;br /&gt;
simp(1) = h/3;&lt;br /&gt;
&lt;br /&gt;
simp(end) = h/3;&lt;br /&gt;
&lt;br /&gt;
simp = diag(simp);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
%The integral of f(x)^2 from (by Simpson&#039;s Rule) -4 to 4 is:&lt;br /&gt;
&lt;br /&gt;
int1 = transpose(f)*simp*f;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
%The integral of f(x)*g(x) from -4 to 4 is:&lt;br /&gt;
&lt;br /&gt;
int2 = transpose(f)*simp*g;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Multiple integrals can be executed in one expression:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
%NUMERICALLY CALCULATING FOURIER COEFICIENTS&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
%Make a row vector of x values&lt;br /&gt;
&lt;br /&gt;
x = linspace(-pi,pi,200);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
%Define a row vector of the values of the function to be fitted by a Fourier sine series&lt;br /&gt;
&lt;br /&gt;
f = 5*x.^3 - 3*x;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
%Simpson&#039;s Rule weighting matrix:&lt;br /&gt;
&lt;br /&gt;
h = x(2)-x(1);&lt;br /&gt;
simp = 2*h/3*ones(1,length(x));&lt;br /&gt;
simp(2:2:length(x)-1) = 4*h/3;&lt;br /&gt;
simp(1) = h/3;&lt;br /&gt;
simp(end) = h/3;&lt;br /&gt;
simp = diag(simp);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
%Create a matrix M with the fourier functions, x increasing along the rows, n increasing down the columns&lt;br /&gt;
&lt;br /&gt;
M = zeros(round(length(x)/2),length(x));&lt;br /&gt;
&lt;br /&gt;
for n = 1:length(M(:,1))&lt;br /&gt;
&lt;br /&gt;
    M(n,:) = sin(n*x)/sqrt(pi);&lt;br /&gt;
&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
%Calculate the column vector containing the coefficients of the sine series  &lt;br /&gt;
&lt;br /&gt;
fourier_coefficients = M*simp*transpose(f);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
%Calculate a row vector of the fitting function evaluated at the values of x&lt;br /&gt;
&lt;br /&gt;
fourier_sine_fit = transpose(fourier_coefficients)*M;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
%Plot to check&lt;br /&gt;
&lt;br /&gt;
plot(x,f,x,fourier_sine_fit)&lt;br /&gt;
&lt;br /&gt;
== Waves in an infinite basin ==&lt;br /&gt;
&lt;br /&gt;
We assume that the density &amp;lt;math&amp;gt;\rho&amp;lt;/math&amp;gt; and the depth &amp;lt;math&amp;gt;h&amp;lt;/math&amp;gt; are constant and equal to one outside the region &amp;lt;math&amp;gt;-L&amp;lt;x&amp;lt;L&amp;lt;/math&amp;gt;. &lt;br /&gt;
We can therefore write the wave as&lt;br /&gt;
&lt;br /&gt;
== Solution using Separation of Variables ==&lt;br /&gt;
&lt;br /&gt;
Taking a separable solution  gives the eigenvalue problem&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\partial_x \left( h(x) \partial_x\zeta \right) = -\omega^{2}\rho(x)\zeta \quad (1)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Given boundary conditions &amp;lt;math&amp;gt;\zeta \mid_{-L} = a&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\zeta \mid_L = b&amp;lt;/math&amp;gt; we can take &amp;lt;math&amp;gt; \zeta = \zeta_p + u &amp;lt;/math&amp;gt; With &amp;lt;math&amp;gt; \zeta_p = \frac{(b-a)}{2L}x + \frac{b+a}{2} &amp;lt;/math&amp;gt; satisfying the boundary conditions and &amp;lt;math&amp;gt; u  &amp;lt;/math&amp;gt;  satisfying &amp;lt;math&amp;gt; u |_{-L} = u |_L = 0&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Substituting this form into (1) gives&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; \partial_x(h(x)\partial_x \zeta_p)+\partial_x(h(x)\partial_xu) = -\omega^{2}\left(\zeta_p+u\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
Or, on rearranging&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; \partial_x(h(x)\partial_xu)+\omega^{2}u = -\partial_x(h(x)\partial_x \zeta_p)-\omega^{2}\zeta_p = f(x)\quad (2)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
so &amp;lt;center&amp;gt;&amp;lt;math&amp;gt; f(x) = -\partial_x(h(x)\partial_x \zeta_p)-\omega^{2}\zeta_p = -\frac{(b-a)}{2L}\partial_xh(x) - \omega^2 \left(\frac{(b-a)}{2L}x + \frac{b+a}{2}\right) &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
Now consider the homogenous Sturm-Liouville problem for u&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; \partial_x(h(x)\partial_xu)+\lambda u = 0\quad u|_0=u|_1=0 \quad (3)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
By Sturm-Liouville theory this has an infinite set of eigenvalues &amp;lt;math&amp;gt; \lambda_k &amp;lt;/math&amp;gt; with corresponding eigenfunctions &amp;lt;math&amp;gt; u_k &amp;lt;/math&amp;gt;.  Also since &amp;lt;math&amp;gt; u_k|_0=u_k|_1=0\quad \forall k &amp;lt;/math&amp;gt; Each &amp;lt;math&amp;gt; u_k&amp;lt;/math&amp;gt; can be expanded as a fourier series in terms of sine functions.&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; u_k = \sum_{n=1}^{\infty} a_{n,k} \psi_n&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\psi_n = \sin\left(\frac{n\pi}{2}\left(\frac{x}{L} + 1\right)\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
Transforming (3) into the equivalent variational problem gives&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; J[u] = \int_{-L}^{L}\,hu&#039;^{2}-\lambda \rho u^{2} \, dx \quad (4) &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
Substituting the fourier expansion for &amp;lt;math&amp;gt;u_k&amp;lt;/math&amp;gt; into (4):&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; J = \int_{-L}^{L}\,h\left(\sum_{n=1}^{\infty} a_{n} \psi_n&#039;\right)^{2}-\lambda \rho \left(\sum_{n=1}^{\infty} a_{n} \psi_n\right)^{2} \, dx \quad &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
Since &amp;lt;math&amp;gt;u_k&amp;lt;/math&amp;gt; minimises J, we require &amp;lt;math&amp;gt; \frac{\partial J}{\partial a_{n}}=0 \quad \forall n &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; \frac{\partial J}{\partial a_{m}}=\int_{-L}^{L}\left\{2h\psi_m&#039;\sum_{n=1}^{\infty} a_{n}\psi_n&#039;-2\lambda\rho \psi_m \sum_{n=1}^{\infty} a_{n} \psi_n\right\}dx=0&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; \implies \int_{-L}^{L}2h\psi_m&#039;\sum_{n=1}^{\infty} a_{n}\psi_n&#039;dx= \int_{-L}^{L}2\lambda\rho \psi_m \sum_{n=1}^{\infty} a_{n} \psi_ndx&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \implies \sum_{n=1}^{\infty}a_{n}\int_{-L}^{L}h\psi_m&#039;\psi_n&#039;dx= \lambda\sum_{n=1}^{\infty}a_{n}\int_{-L}^{L}\rho \psi_m \psi_ndx&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
By defining a vector &amp;lt;math&amp;gt; \textbf{a} = \left(a_{n}\right)&amp;lt;/math&amp;gt; and matrices &amp;lt;math&amp;gt;K_{(n,m)} = \int_{-L}^{L}h(x)\psi_m&#039;(x)\psi_n&#039;(x)dx &amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;M_{(n,m)} = \int_{-L}^{L}\rho(x)\psi_m(x)\psi_n(x)dx &amp;lt;/math&amp;gt; we have the linear system &amp;lt;math&amp;gt; K\textbf{a} = \lambda M\textbf{a} &amp;lt;/math&amp;gt; which returns the eigenvalues and eigenvectors of equation (3), with eigenvectors &amp;lt;math&amp;gt; \textbf{a} &amp;lt;/math&amp;gt; representing coefficient vectors of the fourier expansions of eigenfunctions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If we now construct &amp;lt;math&amp;gt; u(x,\omega) = \sum_{k=1}^{\infty} b_k u_k &amp;lt;/math&amp;gt; and substitute this into equation (2) we get&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \sum_{k=1}^{\infty} (\partial_x(h(x)\partial_x u_k) + \omega^{2}\rho u_k)b_k = f(x) &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \implies \sum_{k=1}^{\infty} (-\lambda_k\rho u_k + \omega^{2}\rho u_k)b_k = f(x) &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \implies \sum_{k=1}^{\infty} (\omega^{2}-\lambda_k) b_k \rho u_k = f(x) \quad (5) &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
And defining the RHS of equation (5) as &amp;lt;math&amp;gt; f(x) &amp;lt;/math&amp;gt;, a known function, we can retrieve the coefficients &amp;lt;math&amp;gt; b_k &amp;lt;/math&amp;gt; by integrating against &amp;lt;math&amp;gt; u_k &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; b_k = \frac{\int_{-L}^{L}\,f u_k\,dx}{(\omega^{2}-\lambda_k) \int_{-L}^{L}\, \rho u_{k}^{2}\,dx} &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The coefficients &amp;lt;math&amp;gt; c_n &amp;lt;/math&amp;gt; of the fourier expansion of u are just &amp;lt;math&amp;gt; \sum_{k=1}^{\infty}a_{n,k}b_{k} &amp;lt;/math&amp;gt; with &amp;lt;math&amp;gt; a_{n.k} &amp;lt;/math&amp;gt; being the &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;th coefficient of the &amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt;th eigenfunction of the Sturm-Liouville problem.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So &amp;lt;math&amp;gt; \zeta(x,\omega)=\frac{(b-a)}{2L}x + \frac{b+a}{2}+\sum_{n=1}^{\infty}c_{n} \sin\left(\frac{n\pi}{2}\left(\frac{x}{L} + 1\right)\right) \quad (6)&amp;lt;/math&amp;gt; &lt;br /&gt;
,with &amp;lt;math&amp;gt; \zeta |_{-L}=a \quad \zeta |_{L}=b &amp;lt;/math&amp;gt; and, given &amp;lt;math&amp;gt; a &amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt; b &amp;lt;/math&amp;gt; explicitly differentiating &amp;lt;math&amp;gt; \zeta &amp;lt;/math&amp;gt; gives &amp;lt;math&amp;gt; \partial_x \zeta |_{-L} &amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt; \partial_x \zeta |_L &amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We choose a basis of the solution space for any particular &amp;lt;math&amp;gt;\omega&amp;lt;/math&amp;gt; to be &amp;lt;math&amp;gt;\{\zeta_1,\,\zeta_2\}&amp;lt;/math&amp;gt;, where &amp;lt;math&amp;gt; \zeta_1 &amp;lt;/math&amp;gt; is the solution to the BVP(a=1,b=0) and &amp;lt;math&amp;gt; \zeta_1 &amp;lt;/math&amp;gt; is the solution to the BVP(a=0,b=1). The functions &amp;lt;math&amp;gt; \zeta_1 &amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt; \zeta_2 &amp;lt;/math&amp;gt; can be calculated for any &amp;lt;math&amp;gt; \omega &amp;lt;/math&amp;gt; from (6).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The aim here is to construct a matrix &#039;&#039;&#039;S&#039;&#039;&#039; such that, given &amp;lt;math&amp;gt; a &amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt; b &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; S \begin{pmatrix} \zeta |_{-L} \\ \zeta |_L \end{pmatrix}=\begin{pmatrix} \partial_x \zeta |_{-L} \\ \partial_x \zeta |_L \end{pmatrix}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Taking &amp;lt;math&amp;gt; a=1,\,b=0 &amp;lt;/math&amp;gt;  to give &amp;lt;math&amp;gt; \zeta_1 &amp;lt;/math&amp;gt; shows that the first column of &#039;&#039;&#039;S&#039;&#039;&#039; must be &amp;lt;math&amp;gt; \begin{pmatrix} \partial_x \zeta_1 |_{-L} \\ \partial_x \zeta_1 |_L \end{pmatrix} &amp;lt;/math&amp;gt; and likewise taking &amp;lt;math&amp;gt; a=0,\,b=1 &amp;lt;/math&amp;gt; to give &amp;lt;math&amp;gt; \zeta_2 &amp;lt;/math&amp;gt; shows the second column must be &amp;lt;math&amp;gt; \begin{pmatrix} \partial_x \zeta_2 |_{-L} \\ \partial_x \zeta_2 |_L \end{pmatrix} &amp;lt;/math&amp;gt;. So &#039;&#039;&#039;S&#039;&#039;&#039; is given by&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; \begin{pmatrix}  \partial_x \zeta_1 |_{-L}  \, \partial_x \zeta_2 |_{-L} \\ \partial_x \zeta_1 |_L \, \partial_x \zeta_2 |_L \end{pmatrix} &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now for the area of constant depth on the left hand side there is a potential of the form &amp;lt;math&amp;gt; e^{i\omega x} &amp;lt;/math&amp;gt; which, creates  reflected and transmitted potentials from the variable depth area of the form &amp;lt;math&amp;gt; Re^{-i\omega x} &amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt; Te^{i\omega x} &amp;lt;/math&amp;gt; respectively where the magnitudes of &amp;lt;math&amp;gt; R &amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt; T &amp;lt;/math&amp;gt; are unknown.  We can calculate that the boundary conditions for &amp;lt;math&amp;gt; \zeta &amp;lt;/math&amp;gt; must be&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; \zeta |_{-L} = e^{-i\omega L}+Re^{i\omega L}, \quad \zeta |_L = Te^{i\omega L}, \quad \partial_x \zeta |_{-L} = i\omega e^{-i\omega L}-i\omega Re^{i\omega L}, \quad \partial_x \zeta |_L = i\omega Te^{i\omega L} &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; \begin{pmatrix}  i\omega e^{-i\omega L}-i\omega Re^{i\omega L} \\ i\omega Te^{i\omega L} \end{pmatrix} = S\begin{pmatrix}  e^{-i\omega L}+Re^{i\omega L} \\ Te^{i\omega L} \end{pmatrix} &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Knowing &#039;&#039;&#039;S&#039;&#039;&#039; these boundary conditions can be solved for &amp;lt;math&amp;gt; R&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;T&amp;lt;/math&amp;gt;, which in turn gives actual numerical boundary conditions to the original problem(&amp;lt;math&amp;gt;a_+=e^{-i\omega L}+Re^{i\omega L}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt; b_+=Te^{i\omega L}&amp;lt;/math&amp;gt;). Taking a linear combination of the solutions already calculated (&amp;lt;math&amp;gt; a_+\zeta_1(x,\omega) + b_+\zeta_2(x,\omega) &amp;lt;/math&amp;gt;) will provide the solution for these new boundary conditions. This solution, along with the potentials outside this region gives a generalised eigenfunction potential for the whole real axis which we denote as &amp;lt;math&amp;gt; \zeta_+(x,\omega)&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Independent generalised eigenfunctons (which we denote as &amp;lt;math&amp;gt; \zeta_-(x,\omega)&amp;lt;/math&amp;gt;)can be found by considering the potential &amp;lt;math&amp;gt; e^{-i\omega x} &amp;lt;/math&amp;gt; on the right hand region of constant depth. The corresponding reflected and transmitted potentials from the variable depth area are of the form &amp;lt;math&amp;gt; Re^{i\omega x} &amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt; Te^{-i\omega x} &amp;lt;/math&amp;gt; respectively. Again knowing &#039;&#039;&#039;S&#039;&#039;&#039; we can solve for R and T and hence find the numerical boundary conditions (&amp;lt;math&amp;gt;a_-=Te^{i\omega L}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;b_-=e^{-i\omega L}+Re^{i\omega L}&amp;lt;/math&amp;gt;). &lt;br /&gt;
&lt;br /&gt;
We come out with:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; &lt;br /&gt;
\zeta_+(x,\omega) = \left\{ \begin{matrix} &lt;br /&gt;
{e^{i\omega x}+Re^{-i\omega x}, \quad \mbox{ for } x&amp;lt;-L} &lt;br /&gt;
\\ {a_+\zeta_1(x,\omega) + b_+\zeta_2(x,\omega),\quad \mbox{ for } -L\leq x \leq L} &lt;br /&gt;
\\ {Te^{i\omega x}, \quad \mbox{ for } x&amp;gt;L}&lt;br /&gt;
\end{matrix} \right.&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where R and T are found by solving:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
 \begin{pmatrix}   (S_{11} + i\omega)e^{i\omega L}  &amp;amp;  S_{12}e^{i\omega L}  \\&lt;br /&gt;
 S_{21}e^{i\omega L} &amp;amp; (S_{22}-i\omega)e^{i\omega L} \end{pmatrix}      \begin{pmatrix}R\\T\end{pmatrix}&lt;br /&gt;
= \begin{pmatrix}  (i\omega - S_{11}) e^{-i\omega L} \\ -S_{21}e^{-i\omega L} \end{pmatrix} &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and &amp;lt;math&amp;gt;a_+=e^{-i\omega L}+Re^{i\omega L}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt; b_+=Te^{i\omega L}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note that the values of R and T for \zeta_- are different from those for \zeta_+ (Although they are related through some identities). For \zeta_- we have:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; &lt;br /&gt;
\zeta_-(x,\omega) = \left\{ \begin{matrix} &lt;br /&gt;
{Te^{-i\omega x}, \quad \mbox{ for } x&amp;lt;-L} &lt;br /&gt;
\\ {a_-\zeta_1(x,\omega) + b_-\zeta_2(x,\omega),\quad \mbox{ for } -L\leq x \leq L} &lt;br /&gt;
\\ {e^{-i\omega x}+Re^{i\omega x}, \quad \mbox{ for } x&amp;gt;L}&lt;br /&gt;
\end{matrix} \right.&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where R and T are found by solving:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
 \begin{pmatrix}   S_{12}e^{i\omega L}  &amp;amp;  (S_{11}+i\omega)e^{i\omega L}  \\&lt;br /&gt;
   (S_{22}-i\omega)e^{i\omega L} &amp;amp; S_{21}e^{i\omega L}\end{pmatrix}      \begin{pmatrix}R\\T\end{pmatrix}&lt;br /&gt;
= \begin{pmatrix}  S_{12}e^{-i\omega L} \\ -(i\omega + S_{21})e^{-i\omega L} \end{pmatrix} &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note a_+, b_+, a_- and b_- are found frm their corresponding R and T values.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Now we have the generalised eigenfunctions &amp;lt;math&amp;gt;\zeta_+(x,\omega)&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\zeta_-(x,\omega)&amp;lt;/math&amp;gt;, which have the orthogonality relationsips:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; &lt;br /&gt;
\int_{-\infty}^{\infty}\zeta_+(x,\omega)\zeta_-(x,\omega&#039;)dx= 0 \qquad (7)&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; &lt;br /&gt;
\int_{-\infty}^{\infty}\zeta_+(x,\omega)\zeta_+(x,\omega&#039;)dx= 2 \pi \delta(\omega-\omega&#039;) \qquad (8)&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; &lt;br /&gt;
\int_{-\infty}^{\infty}\zeta_-(x,\omega)\zeta_-(x,\omega&#039;)dx= 2 \pi \delta(\omega-\omega&#039;) \qquad (9)&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For any particular \omega the general solution to the differential equation can be written as:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; &lt;br /&gt;
\zeta(x,t,\omega) = cos(\omega t)\left(c_1(\omega)\zeta_+(x,\omega)+d_1(\omega)\zeta_-(x,\omega)\right) + \frac{sin(\omega t)}{\omega}\left(c_2(\omega)\zeta_+(x,\omega)+d_2(\omega)\zeta_-(x,\omega)\right)&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The general solution to the PDE is therefore:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; &lt;br /&gt;
\zeta(x,t) = \int_{0}^{\infty} \zeta(x,t,\omega) d \omega&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; &lt;br /&gt;
\implies \zeta(x,t) = \int_{0}^{\infty} \left\{ cos(\omega t)\left(c_1(\omega)\zeta_+(x,\omega)+d_1(\omega)\zeta_-(x,\omega)\right) + \frac{sin(\omega t)}{\omega}\left(c_2(\omega)\zeta_+(x,\omega)+d_2(\omega)\zeta_-(x,\omega)\right)&lt;br /&gt;
\right\} d \omega \qquad (10)&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Giving the initial conditions:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; &lt;br /&gt;
F(x) = \zeta(x,0) = \int_{0}^{\infty} \left\{ c_1(\omega)\zeta_+(x,\omega)+d_1(\omega)\zeta_-(x,\omega) \right\} d \omega&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; &lt;br /&gt;
G(x) = \partial_t \zeta(x,0) = \int_{0}^{\infty} \left\{ c_2(\omega)\zeta_+(x,\omega)+d_2(\omega)\zeta_-(x,\omega) \right\} d \omega&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using identities (7),(8) and (9) we can show:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; &lt;br /&gt;
c_1(\omega) = \frac{1}{2\pi}\langle F(x), \zeta_+(x,\omega) \rangle&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; &lt;br /&gt;
d_1(\omega) = \frac{1}{2\pi}\langle F(x), \zeta_-(x,\omega) \rangle&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; &lt;br /&gt;
c_2(\omega) = \frac{1}{2\pi}\langle G(x), \zeta_+(x,\omega) \rangle&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; &lt;br /&gt;
d_2(\omega) = \frac{1}{2\pi}\langle G(x), \zeta_-(x,\omega) \rangle&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Which we can use in combination with (10) to solve the IVP.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Shallow Depth]]&lt;/div&gt;</summary>
		<author><name>Sean Curry</name></author>
	</entry>
	<entry>
		<id>https://www.wikiwaves.org/index.php?title=Variable_Depth_Shallow_Water_Wave_Equation&amp;diff=8707</id>
		<title>Variable Depth Shallow Water Wave Equation</title>
		<link rel="alternate" type="text/html" href="https://www.wikiwaves.org/index.php?title=Variable_Depth_Shallow_Water_Wave_Equation&amp;diff=8707"/>
		<updated>2009-02-25T03:49:25Z</updated>

		<summary type="html">&lt;p&gt;Sean Curry: /* Solution using Separation of Variables */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction ==&lt;br /&gt;
&lt;br /&gt;
We consider here the problem of waves reflected by a region of variable depth in&lt;br /&gt;
an otherwise uniform depth region assuming the equations of [[:Category:Shallow Depth|Shallow Depth]].&lt;br /&gt;
&lt;br /&gt;
== Equations ==&lt;br /&gt;
&lt;br /&gt;
We begin with the shallow depth equation&lt;br /&gt;
{{shallow depth one dimension}} &lt;br /&gt;
&lt;br /&gt;
== Waves in a finite basin ==&lt;br /&gt;
&lt;br /&gt;
We consider the problem of waves in a finite basin &amp;lt;math&amp;gt;-L&amp;lt;x&amp;lt;L&amp;lt;/math&amp;gt;. At the edge of the basin the boundary conditions are&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\left.\partial_x \zeta\right|_{x=-L} = \left.\partial_x \zeta\right|_{x=L} =0&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
We solve the equations by expanding in the modes for the basin which satisfy&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\partial_x \left(h(x) \partial_x \zeta_n \right) = -\lambda_n \rho(x) \zeta_n ,&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
normalised so that &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{-L}^L \rho\zeta_n \zeta_m = \delta_{mn}.&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
The solution is then given by&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\zeta(x,t) = \sum_{n=0}^{\infty} \left(\int_{-L}^L \rho(x)\zeta_n(x^\prime) \zeta_0 (x^\prime) dx^\prime \right) \zeta_n(x) \cos(\sqrt{\lambda_n} t )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
+ \sum_{n=1} ^{\infty} \left(\int_{-L}^L \rho(x)\zeta_n(x^\prime) \partial_t\zeta_0 (x^\prime) dx^\prime \right) \zeta_n(x) \frac{\sin(\sqrt{\lambda_n} t )}{\sqrt{\lambda_n}}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
where we have assumed that &amp;lt;math&amp;gt;\lambda_0 = 0&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Calculation of &amp;lt;math&amp;gt;\zeta_n&amp;lt;/math&amp;gt; ===&lt;br /&gt;
&lt;br /&gt;
We can calculate the eigenfunctions &amp;lt;math&amp;gt;\zeta_n&amp;lt;/math&amp;gt; by an expansion in the modes for the case of uniform depth.&lt;br /&gt;
We use the Rayleigh-Ritz method. The eigenfunctions are local minimums of &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;J[\zeta] = \int_{-L}^L \frac{1}{2}\left\{ h(x)\left(\partial_x \zeta\right)^2 - \lambda \rho(x) \zeta^2 \right\}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
subject to the boundary conditions that the normal derivative vanishes (where &amp;lt;math&amp;gt;\lambda&amp;lt;/math&amp;gt; is the eigenvalue).&lt;br /&gt;
&lt;br /&gt;
We expand the displacement in the eigenfunctions for constant depth &amp;lt;math&amp;gt;h=1&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\zeta = \sum_{n=0}^{N} a_n \psi_n(x)&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\psi_n = \frac{1}{\sqrt{L}} \cos( n \pi (\frac{1}{2L}x + \frac{1}{2})),\,\,n\ne 1&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\psi_0 = \frac{1}{\sqrt{2L}},\,&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and substitute this expansion into the variational equation we obtain&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
J[\vec{a}] = \int_{-L}^L \frac{1}{2}\left\{ h(x)\left( \sum_{n=0}^{N} a_n \partial_x \psi_n(x)\right)^2 - \lambda \rho(x) \left(\sum_{n=0}^{N} a_n \psi_n(x)\right)^2 \right\}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{dJ}{da_m} = \int_{-L}^L \frac{1}{2}\left\{ h(x)2\partial_x \psi_m(x)\left( \sum_{n=0}^{N} a_n \partial_x \psi_n(x)\right) - \lambda \rho(x)2\psi_m(x)\left(\sum_{n=0}^{N} a_n \psi_n(x)\right) \right\} = 0&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{-L}^L \left\{ h(x)\partial_x \psi_m(x)\left( \sum_{n=0}^{N} a_n \partial_x \psi_n(x)\right) \right\} = \int_{-L}^L \left\{ \lambda \rho(x)\psi_m(x)\left(\sum_{n=0}^{N} a_n \psi_n(x)\right) \right\}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\sum_{n=0}^{N} a_n \int_{-L}^L \left\{ h(x)\partial_x \psi_n(x)\partial_x \psi_m(x)\right\} = \lambda \sum_{n=0}^{N} a_n \int_{-L}^L \left\{ \rho(x)\psi_n(x)\psi_m(x) \right\}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
this equation can be rewritten using matrices as&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\mathbf{K} \vec{a} = \lambda\mathbf{M} \vec{a}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where the elements of the matrices &#039;&#039;&#039;K&#039;&#039;&#039; and &#039;&#039;&#039;M&#039;&#039;&#039; are&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\mathbf{K}_{mn} = \int_{-L}^L \left\{ \left(\partial_x \psi_m h(x) \partial_x \psi_n\right) \right\}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\mathbf{M}_{mn} = \int_{-L}^L \left\{\rho(x)\psi_n(x)\psi_m(x)\right\}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Matlab code ===&lt;br /&gt;
&#039;&#039;&#039;Example of the method of numerical integration; using a weighting matrix to implement Simpson&#039;s Rule:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
x = linspace(-4,4,500).&#039;;&lt;br /&gt;
&lt;br /&gt;
f = exp(-10*(x.^2));&lt;br /&gt;
&lt;br /&gt;
g = sin(x);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
h = x(2)-x(1);&lt;br /&gt;
&lt;br /&gt;
simp = 2*h/3*ones(1,length(x));&lt;br /&gt;
&lt;br /&gt;
simp(2:2:length(x)-1) = 4*h/3;&lt;br /&gt;
&lt;br /&gt;
simp(1) = h/3;&lt;br /&gt;
&lt;br /&gt;
simp(end) = h/3;&lt;br /&gt;
&lt;br /&gt;
simp = diag(simp);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
%The integral of f(x)^2 from (by Simpson&#039;s Rule) -4 to 4 is:&lt;br /&gt;
&lt;br /&gt;
int1 = transpose(f)*simp*f;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
%The integral of f(x)*g(x) from -4 to 4 is:&lt;br /&gt;
&lt;br /&gt;
int2 = transpose(f)*simp*g;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Multiple integrals can be executed in one expression:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
%NUMERICALLY CALCULATING FOURIER COEFICIENTS&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
%Make a row vector of x values&lt;br /&gt;
&lt;br /&gt;
x = linspace(-pi,pi,200);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
%Define a row vector of the values of the function to be fitted by a Fourier sine series&lt;br /&gt;
&lt;br /&gt;
f = 5*x.^3 - 3*x;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
%Simpson&#039;s Rule weighting matrix:&lt;br /&gt;
&lt;br /&gt;
h = x(2)-x(1);&lt;br /&gt;
simp = 2*h/3*ones(1,length(x));&lt;br /&gt;
simp(2:2:length(x)-1) = 4*h/3;&lt;br /&gt;
simp(1) = h/3;&lt;br /&gt;
simp(end) = h/3;&lt;br /&gt;
simp = diag(simp);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
%Create a matrix M with the fourier functions, x increasing along the rows, n increasing down the columns&lt;br /&gt;
&lt;br /&gt;
M = zeros(round(length(x)/2),length(x));&lt;br /&gt;
&lt;br /&gt;
for n = 1:length(M(:,1))&lt;br /&gt;
&lt;br /&gt;
    M(n,:) = sin(n*x)/sqrt(pi);&lt;br /&gt;
&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
%Calculate the column vector containing the coefficients of the sine series  &lt;br /&gt;
&lt;br /&gt;
fourier_coefficients = M*simp*transpose(f);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
%Calculate a row vector of the fitting function evaluated at the values of x&lt;br /&gt;
&lt;br /&gt;
fourier_sine_fit = transpose(fourier_coefficients)*M;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
%Plot to check&lt;br /&gt;
&lt;br /&gt;
plot(x,f,x,fourier_sine_fit)&lt;br /&gt;
&lt;br /&gt;
== Waves in an infinite basin ==&lt;br /&gt;
&lt;br /&gt;
We assume that the density &amp;lt;math&amp;gt;\rho&amp;lt;/math&amp;gt; and the depth &amp;lt;math&amp;gt;h&amp;lt;/math&amp;gt; are constant and equal to one outside the region &amp;lt;math&amp;gt;-L&amp;lt;x&amp;lt;L&amp;lt;/math&amp;gt;. &lt;br /&gt;
We can therefore write the wave as&lt;br /&gt;
&lt;br /&gt;
== Solution using Separation of Variables ==&lt;br /&gt;
&lt;br /&gt;
Taking a separable solution  gives the eigenvalue problem&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\partial_x \left( h(x) \partial_x\zeta \right) = -\omega^{2}\rho(x)\zeta \quad (1)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Given boundary conditions &amp;lt;math&amp;gt;\zeta \mid_{-L} = a&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\zeta \mid_L = b&amp;lt;/math&amp;gt; we can take &amp;lt;math&amp;gt; \zeta = \zeta_p + u &amp;lt;/math&amp;gt; With &amp;lt;math&amp;gt; \zeta_p = \frac{(b-a)}{2L}x + \frac{b+a}{2} &amp;lt;/math&amp;gt; satisfying the boundary conditions and &amp;lt;math&amp;gt; u  &amp;lt;/math&amp;gt;  satisfying &amp;lt;math&amp;gt; u |_{-L} = u |_L = 0&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Substituting this form into (1) gives&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; \partial_x(h(x)\partial_x \zeta_p)+\partial_x(h(x)\partial_xu) = -\omega^{2}\left(\zeta_p+u\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
Or, on rearranging&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; \partial_x(h(x)\partial_xu)+\omega^{2}u = -\partial_x(h(x)\partial_x \zeta_p)-\omega^{2}\zeta_p = f(x)\quad (2)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
so &amp;lt;center&amp;gt;&amp;lt;math&amp;gt; f(x) = -\frac{(b-a)}{2L}\partial_xh(x) - \omega^2 \left(\frac{(b-a)}{2L}x + \frac{b+a}{2}\right) &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
Now consider the homogenous Sturm-Liouville problem for u&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; \partial_x(h(x)\partial_xu)+\lambda u = 0\quad u|_0=u|_1=0 \quad (3)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
By Sturm-Liouville theory this has an infinite set of eigenvalues &amp;lt;math&amp;gt; \lambda_k &amp;lt;/math&amp;gt; with corresponding eigenfunctions &amp;lt;math&amp;gt; u_k &amp;lt;/math&amp;gt;.  Also since &amp;lt;math&amp;gt; u_k|_0=u_k|_1=0\quad \forall k &amp;lt;/math&amp;gt; Each &amp;lt;math&amp;gt; u_k&amp;lt;/math&amp;gt; can be expanded as a fourier series in terms of sine functions.&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; u_k = \sum_{n=1}^{\infty} a_{n,k} \psi_n&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\psi_n = \sin\left(\frac{n\pi}{2}\left(\frac{x}{L} + 1\right)\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
Transforming (3) into the equivalent variational problem gives&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; J[u] = \int_{-L}^{L}\,hu&#039;^{2}-\lambda \rho u^{2} \, dx \quad (4) &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
Substituting the fourier expansion for &amp;lt;math&amp;gt;u_k&amp;lt;/math&amp;gt; into (4):&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; J = \int_{-L}^{L}\,h\left(\sum_{n=1}^{\infty} a_{n} \psi_n&#039;\right)^{2}-\lambda \rho \left(\sum_{n=1}^{\infty} a_{n} \psi_n\right)^{2} \, dx \quad &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
Since &amp;lt;math&amp;gt;u_k&amp;lt;/math&amp;gt; minimises J, we require &amp;lt;math&amp;gt; \frac{\partial J}{\partial a_{n}}=0 \quad \forall n &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; \frac{\partial J}{\partial a_{m}}=\int_{-L}^{L}\left\{2h\psi_m&#039;\sum_{n=1}^{\infty} a_{n}\psi_n&#039;-2\lambda\rho \psi_m \sum_{n=1}^{\infty} a_{n} \psi_n\right\}dx=0&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; \implies \int_{-L}^{L}2h\psi_m&#039;\sum_{n=1}^{\infty} a_{n}\psi_n&#039;dx= \int_{-L}^{L}2\lambda\rho \psi_m \sum_{n=1}^{\infty} a_{n} \psi_ndx&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \implies \sum_{n=1}^{\infty}a_{n}\int_{-L}^{L}h\psi_m&#039;\psi_n&#039;dx= \lambda\sum_{n=1}^{\infty}a_{n}\int_{-L}^{L}\rho \psi_m \psi_ndx&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
By defining a vector &amp;lt;math&amp;gt; \textbf{a} = \left(a_{n}\right)&amp;lt;/math&amp;gt; and matrices &amp;lt;math&amp;gt;K_{(n,m)} = \int_{-L}^{L}h(x)\psi_m&#039;(x)\psi_n&#039;(x)dx &amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;M_{(n,m)} = \int_{-L}^{L}\rho(x)\psi_m(x)\psi_n(x)dx &amp;lt;/math&amp;gt; we have the linear system &amp;lt;math&amp;gt; K\textbf{a} = \lambda M\textbf{a} &amp;lt;/math&amp;gt; which returns the eigenvalues and eigenvectors of equation (3), with eigenvectors &amp;lt;math&amp;gt; \textbf{a} &amp;lt;/math&amp;gt; representing coefficient vectors of the fourier expansions of eigenfunctions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If we now construct &amp;lt;math&amp;gt; u(x,\omega) = \sum_{k=1}^{\infty} b_k u_k &amp;lt;/math&amp;gt; and substitute this into equation (2) we get&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \sum_{k=1}^{\infty} (\partial_x(h(x)\partial_x u_k) + \omega^{2}\rho u_k)b_k = f(x) &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \implies \sum_{k=1}^{\infty} (-\lambda_k\rho u_k + \omega^{2}\rho u_k)b_k = f(x) &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \implies \sum_{k=1}^{\infty} (\omega^{2}-\lambda_k) b_k \rho u_k = f(x) \quad (5) &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
And defining the RHS of equation (5) as &amp;lt;math&amp;gt; f(x) &amp;lt;/math&amp;gt;, a known function, we can retrieve the coefficients &amp;lt;math&amp;gt; b_k &amp;lt;/math&amp;gt; by integrating against &amp;lt;math&amp;gt; u_k &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; b_k = \frac{\int_{-L}^{L}\,f u_k\,dx}{(\omega^{2}-\lambda_k) \int_{-L}^{L}\, \rho u_{k}^{2}\,dx} &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The coefficients &amp;lt;math&amp;gt; c_n &amp;lt;/math&amp;gt; of the fourier expansion of u are just &amp;lt;math&amp;gt; \sum_{k=1}^{\infty}a_{n,k}b_{k} &amp;lt;/math&amp;gt; with &amp;lt;math&amp;gt; a_{n.k} &amp;lt;/math&amp;gt; being the &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;th coefficient of the &amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt;th eigenfunction of the Sturm-Liouville problem.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So &amp;lt;math&amp;gt; \zeta(x,\omega)=\frac{(b-a)}{2L}x + \frac{b+a}{2}+\sum_{n=1}^{\infty}c_{n} \sin\left(\frac{n\pi}{2}\left(\frac{x}{L} + 1\right)\right) \quad (6)&amp;lt;/math&amp;gt; &lt;br /&gt;
,with &amp;lt;math&amp;gt; \zeta |_{-L}=a \quad \zeta |_{L}=b &amp;lt;/math&amp;gt; and, given &amp;lt;math&amp;gt; a &amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt; b &amp;lt;/math&amp;gt; explicitly differentiating &amp;lt;math&amp;gt; \zeta &amp;lt;/math&amp;gt; gives &amp;lt;math&amp;gt; \partial_x \zeta |_{-L} &amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt; \partial_x \zeta |_L &amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We choose a basis of the solution space for any particular &amp;lt;math&amp;gt;\omega&amp;lt;/math&amp;gt; to be &amp;lt;math&amp;gt;\{\zeta_1,\,\zeta_2\}&amp;lt;/math&amp;gt;, where &amp;lt;math&amp;gt; \zeta_1 &amp;lt;/math&amp;gt; is the solution to the BVP(a=1,b=0) and &amp;lt;math&amp;gt; \zeta_1 &amp;lt;/math&amp;gt; is the solution to the BVP(a=0,b=1). The functions &amp;lt;math&amp;gt; \zeta_1 &amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt; \zeta_2 &amp;lt;/math&amp;gt; can be calculated for any &amp;lt;math&amp;gt; \omega &amp;lt;/math&amp;gt; from (6).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The aim here is to construct a matrix &#039;&#039;&#039;S&#039;&#039;&#039; such that, given &amp;lt;math&amp;gt; a &amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt; b &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; S \begin{pmatrix} \zeta |_{-L} \\ \zeta |_L \end{pmatrix}=\begin{pmatrix} \partial_x \zeta |_{-L} \\ \partial_x \zeta |_L \end{pmatrix}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Taking &amp;lt;math&amp;gt; a=1,\,b=0 &amp;lt;/math&amp;gt;  to give &amp;lt;math&amp;gt; \zeta_1 &amp;lt;/math&amp;gt; shows that the first column of &#039;&#039;&#039;S&#039;&#039;&#039; must be &amp;lt;math&amp;gt; \begin{pmatrix} \partial_x \zeta_1 |_{-L} \\ \partial_x \zeta_1 |_L \end{pmatrix} &amp;lt;/math&amp;gt; and likewise taking &amp;lt;math&amp;gt; a=0,\,b=1 &amp;lt;/math&amp;gt; to give &amp;lt;math&amp;gt; \zeta_2 &amp;lt;/math&amp;gt; shows the second column must be &amp;lt;math&amp;gt; \begin{pmatrix} \partial_x \zeta_2 |_{-L} \\ \partial_x \zeta_2 |_L \end{pmatrix} &amp;lt;/math&amp;gt;. So &#039;&#039;&#039;S&#039;&#039;&#039; is given by&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; \begin{pmatrix}  \partial_x \zeta_1 |_{-L}  \, \partial_x \zeta_2 |_{-L} \\ \partial_x \zeta_1 |_L \, \partial_x \zeta_2 |_L \end{pmatrix} &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now for the area of constant depth on the left hand side there is a potential of the form &amp;lt;math&amp;gt; e^{i\omega x} &amp;lt;/math&amp;gt; which, creates  reflected and transmitted potentials from the variable depth area of the form &amp;lt;math&amp;gt; Re^{-i\omega x} &amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt; Te^{i\omega x} &amp;lt;/math&amp;gt; respectively where the magnitudes of &amp;lt;math&amp;gt; R &amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt; T &amp;lt;/math&amp;gt; are unknown.  We can calculate that the boundary conditions for &amp;lt;math&amp;gt; \zeta &amp;lt;/math&amp;gt; must be&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; \zeta |_{-L} = e^{-i\omega L}+Re^{i\omega L}, \quad \zeta |_L = Te^{i\omega L}, \quad \partial_x \zeta |_{-L} = i\omega e^{-i\omega L}-i\omega Re^{i\omega L}, \quad \partial_x \zeta |_L = i\omega Te^{i\omega L} &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; \begin{pmatrix}  i\omega e^{-i\omega L}-i\omega Re^{i\omega L} \\ i\omega Te^{i\omega L} \end{pmatrix} = S\begin{pmatrix}  e^{-i\omega L}+Re^{i\omega L} \\ Te^{i\omega L} \end{pmatrix} &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Knowing &#039;&#039;&#039;S&#039;&#039;&#039; these boundary conditions can be solved for &amp;lt;math&amp;gt; R&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;T&amp;lt;/math&amp;gt;, which in turn gives actual numerical boundary conditions to the original problem(&amp;lt;math&amp;gt;a_+=e^{-i\omega L}+Re^{i\omega L}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt; b_+=Te^{i\omega L}&amp;lt;/math&amp;gt;). Taking a linear combination of the solutions already calculated (&amp;lt;math&amp;gt; a_+\zeta_1(x,\omega) + b_+\zeta_2(x,\omega) &amp;lt;/math&amp;gt;) will provide the solution for these new boundary conditions. This solution, along with the potentials outside this region gives a generalised eigenfunction potential for the whole real axis which we denote as &amp;lt;math&amp;gt; \zeta_+(x,\omega)&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Independent generalised eigenfunctons (which we denote as &amp;lt;math&amp;gt; \zeta_-(x,\omega)&amp;lt;/math&amp;gt;)can be found by considering the potential &amp;lt;math&amp;gt; e^{-i\omega x} &amp;lt;/math&amp;gt; on the right hand region of constant depth. The corresponding reflected and transmitted potentials from the variable depth area are of the form &amp;lt;math&amp;gt; Re^{i\omega x} &amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt; Te^{-i\omega x} &amp;lt;/math&amp;gt; respectively. Again knowing &#039;&#039;&#039;S&#039;&#039;&#039; we can solve for R and T and hence find the numerical boundary conditions (&amp;lt;math&amp;gt;a_-=Te^{i\omega L}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;b_-=e^{-i\omega L}+Re^{i\omega L}&amp;lt;/math&amp;gt;). &lt;br /&gt;
&lt;br /&gt;
We come out with:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; &lt;br /&gt;
\zeta_+(x,\omega) = \left\{ \begin{matrix} &lt;br /&gt;
{e^{i\omega x}+Re^{-i\omega x}, \quad \mbox{ for } x&amp;lt;-L} &lt;br /&gt;
\\ {a_+\zeta_1(x,\omega) + b_+\zeta_2(x,\omega),\quad \mbox{ for } -L\leq x \leq L} &lt;br /&gt;
\\ {Te^{i\omega x}, \quad \mbox{ for } x&amp;gt;L}&lt;br /&gt;
\end{matrix} \right.&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where R and T are found by solving:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
 \begin{pmatrix}   (S_{11} + i\omega)e^{i\omega L}  &amp;amp;  S_{12}e^{i\omega L}  \\&lt;br /&gt;
 S_{21}e^{i\omega L} &amp;amp; (S_{22}-i\omega)e^{i\omega L} \end{pmatrix}      \begin{pmatrix}R\\T\end{pmatrix}&lt;br /&gt;
= \begin{pmatrix}  (i\omega - S_{11}) e^{-i\omega L} \\ -S_{21}e^{-i\omega L} \end{pmatrix} &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and &amp;lt;math&amp;gt;a_+=e^{-i\omega L}+Re^{i\omega L}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt; b_+=Te^{i\omega L}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note that the values of R and T for \zeta_- are different from those for \zeta_+ (Although they are related through some identities). For \zeta_- we have:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; &lt;br /&gt;
\zeta_-(x,\omega) = \left\{ \begin{matrix} &lt;br /&gt;
{Te^{-i\omega x}, \quad \mbox{ for } x&amp;lt;-L} &lt;br /&gt;
\\ {a_-\zeta_1(x,\omega) + b_-\zeta_2(x,\omega),\quad \mbox{ for } -L\leq x \leq L} &lt;br /&gt;
\\ {e^{-i\omega x}+Re^{i\omega x}, \quad \mbox{ for } x&amp;gt;L}&lt;br /&gt;
\end{matrix} \right.&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where R and T are found by solving:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
 \begin{pmatrix}   S_{12}e^{i\omega L}  &amp;amp;  (S_{11}+i\omega)e^{i\omega L}  \\&lt;br /&gt;
   (S_{22}-i\omega)e^{i\omega L} &amp;amp; S_{21}e^{i\omega L}\end{pmatrix}      \begin{pmatrix}R\\T\end{pmatrix}&lt;br /&gt;
= \begin{pmatrix}  S_{12}e^{-i\omega L} \\ -(i\omega + S_{21})e^{-i\omega L} \end{pmatrix} &lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note a_+, b_+, a_- and b_- are found frm their corresponding R and T values.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Now we have the generalised eigenfunctions &amp;lt;math&amp;gt;\zeta_+(x,\omega)&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\zeta_-(x,\omega)&amp;lt;/math&amp;gt;, which have the orthogonality relationsips:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; &lt;br /&gt;
\int_{-\infty}^{\infty}\zeta_+(x,\omega)\zeta_-(x,\omega&#039;)dx= 0 \qquad (7)&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; &lt;br /&gt;
\int_{-\infty}^{\infty}\zeta_+(x,\omega)\zeta_+(x,\omega&#039;)dx= 2 \pi \delta(\omega-\omega&#039;) \qquad (8)&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; &lt;br /&gt;
\int_{-\infty}^{\infty}\zeta_-(x,\omega)\zeta_-(x,\omega&#039;)dx= 2 \pi \delta(\omega-\omega&#039;) \qquad (9)&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For any particular \omega the general solution to the differential equation can be written as:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; &lt;br /&gt;
\zeta(x,t,\omega) = cos(\omega t)\left(c_1(\omega)\zeta_+(x,\omega)+d_1(\omega)\zeta_-(x,\omega)\right) + \frac{sin(\omega t)}{\omega}\left(c_2(\omega)\zeta_+(x,\omega)+d_2(\omega)\zeta_-(x,\omega)\right)&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The general solution to the PDE is therefore:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; &lt;br /&gt;
\zeta(x,t) = \int_{0}^{\infty} \zeta(x,t,\omega) d \omega&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; &lt;br /&gt;
\implies \zeta(x,t) = \int_{0}^{\infty} \left\{ cos(\omega t)\left(c_1(\omega)\zeta_+(x,\omega)+d_1(\omega)\zeta_-(x,\omega)\right) + \frac{sin(\omega t)}{\omega}\left(c_2(\omega)\zeta_+(x,\omega)+d_2(\omega)\zeta_-(x,\omega)\right)&lt;br /&gt;
\right\} d \omega \qquad (10)&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Giving the initial conditions:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; &lt;br /&gt;
F(x) = \zeta(x,0) = \int_{0}^{\infty} \left\{ c_1(\omega)\zeta_+(x,\omega)+d_1(\omega)\zeta_-(x,\omega) \right\} d \omega&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; &lt;br /&gt;
G(x) = \partial_t \zeta(x,0) = \int_{0}^{\infty} \left\{ c_2(\omega)\zeta_+(x,\omega)+d_2(\omega)\zeta_-(x,\omega) \right\} d \omega&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using identities (7),(8) and (9) we can show:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; &lt;br /&gt;
c_1(\omega) = \frac{1}{2\pi}\langle F(x), \zeta_+(x,\omega) \rangle&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; &lt;br /&gt;
d_1(\omega) = \frac{1}{2\pi}\langle F(x), \zeta_-(x,\omega) \rangle&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; &lt;br /&gt;
c_2(\omega) = \frac{1}{2\pi}\langle G(x), \zeta_+(x,\omega) \rangle&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; &lt;br /&gt;
d_2(\omega) = \frac{1}{2\pi}\langle G(x), \zeta_-(x,\omega) \rangle&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Which we can use in combination with (10) to solve the IVP.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Shallow Depth]]&lt;/div&gt;</summary>
		<author><name>Sean Curry</name></author>
	</entry>
	<entry>
		<id>https://www.wikiwaves.org/index.php?title=Variable_Depth_Shallow_Water_Wave_Equation&amp;diff=8706</id>
		<title>Variable Depth Shallow Water Wave Equation</title>
		<link rel="alternate" type="text/html" href="https://www.wikiwaves.org/index.php?title=Variable_Depth_Shallow_Water_Wave_Equation&amp;diff=8706"/>
		<updated>2009-02-24T21:11:28Z</updated>

		<summary type="html">&lt;p&gt;Sean Curry: /* Matlab code */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction ==&lt;br /&gt;
&lt;br /&gt;
We consider here the problem of waves reflected by a region of variable depth in&lt;br /&gt;
an otherwise uniform depth region assuming the equations of [[:Category:Shallow Depth|Shallow Depth]].&lt;br /&gt;
&lt;br /&gt;
== Equations ==&lt;br /&gt;
&lt;br /&gt;
We begin with the shallow depth equation&lt;br /&gt;
{{shallow depth one dimension}} &lt;br /&gt;
&lt;br /&gt;
== Waves in a finite basin ==&lt;br /&gt;
&lt;br /&gt;
We consider the problem of waves in a finite basin &amp;lt;math&amp;gt;-L&amp;lt;x&amp;lt;L&amp;lt;/math&amp;gt;. At the edge of the basin the boundary conditions are&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\left.\partial_x \zeta\right|_{x=-L} = \left.\partial_x \zeta\right|_{x=L} =0&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
We solve the equations by expanding in the modes for the basin which satisfy&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\partial_x \left(h(x) \partial_x \zeta_n \right) = -\lambda_n \rho(x) \zeta_n ,&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
normalised so that &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{-L}^L \rho\zeta_n \zeta_m = \delta_{mn}.&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
The solution is then given by&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\zeta(x,t) = \sum_{n=0}^{\infty} \left(\int_{-L}^L \rho(x)\zeta_n(x^\prime) \zeta_0 (x^\prime) dx^\prime \right) \zeta_n(x) \cos(\sqrt{\lambda_n} t )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
+ \sum_{n=1} ^{\infty} \left(\int_{-L}^L \rho(x)\zeta_n(x^\prime) \partial_t\zeta_0 (x^\prime) dx^\prime \right) \zeta_n(x) \frac{\sin(\sqrt{\lambda_n} t )}{\sqrt{\lambda_n}}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
where we have assumed that &amp;lt;math&amp;gt;\lambda_0 = 0&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Calculation of &amp;lt;math&amp;gt;\zeta_n&amp;lt;/math&amp;gt; ===&lt;br /&gt;
&lt;br /&gt;
We can calculate the eigenfunctions &amp;lt;math&amp;gt;\zeta_n&amp;lt;/math&amp;gt; by an expansion in the modes for the case of uniform depth.&lt;br /&gt;
We use the Rayleigh-Ritz method. The eigenfunctions are local minimums of &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;J[\zeta] = \int_{-L}^L \frac{1}{2}\left\{ h(x)\left(\partial_x \zeta\right)^2 - \lambda \rho(x) \zeta^2 \right\}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
subject to the boundary conditions that the normal derivative vanishes (where &amp;lt;math&amp;gt;\lambda&amp;lt;/math&amp;gt; is the eigenvalue).&lt;br /&gt;
&lt;br /&gt;
We expand the displacement in the eigenfunctions for constant depth &amp;lt;math&amp;gt;h=1&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\zeta = \sum_{n=0}^{N} a_n \psi_n(x)&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\psi_n = \frac{1}{\sqrt{L}} \cos( n \pi (\frac{1}{2L}x + \frac{1}{2})),\,\,n\ne 1&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\psi_0 = \frac{1}{\sqrt{2L}},\,&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and substitute this expansion into the variational equation we obtain&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
J[\vec{a}] = \int_{-L}^L \frac{1}{2}\left\{ h(x)\left( \sum_{n=0}^{N} a_n \partial_x \psi_n(x)\right)^2 - \lambda \rho(x) \left(\sum_{n=0}^{N} a_n \psi_n(x)\right)^2 \right\}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{dJ}{da_m} = \int_{-L}^L \frac{1}{2}\left\{ h(x)2\partial_x \psi_m(x)\left( \sum_{n=0}^{N} a_n \partial_x \psi_n(x)\right) - \lambda \rho(x)2\psi_m(x)\left(\sum_{n=0}^{N} a_n \psi_n(x)\right) \right\} = 0&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{-L}^L \left\{ h(x)\partial_x \psi_m(x)\left( \sum_{n=0}^{N} a_n \partial_x \psi_n(x)\right) \right\} = \int_{-L}^L \left\{ \lambda \rho(x)\psi_m(x)\left(\sum_{n=0}^{N} a_n \psi_n(x)\right) \right\}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\sum_{n=0}^{N} a_n \int_{-L}^L \left\{ h(x)\partial_x \psi_n(x)\partial_x \psi_m(x)\right\} = \lambda \sum_{n=0}^{N} a_n \int_{-L}^L \left\{ \rho(x)\psi_n(x)\psi_m(x) \right\}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
this equation can be rewritten using matrices as&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\mathbf{K} \vec{a} = \lambda\mathbf{M} \vec{a}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where the elements of the matrices &#039;&#039;&#039;K&#039;&#039;&#039; and &#039;&#039;&#039;M&#039;&#039;&#039; are&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\mathbf{K}_{mn} = \int_{-L}^L \left\{ \left(\partial_x \psi_m h(x) \partial_x \psi_n\right) \right\}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\mathbf{M}_{mn} = \int_{-L}^L \left\{\rho(x)\psi_n(x)\psi_m(x)\right\}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Matlab code ===&lt;br /&gt;
&#039;&#039;&#039;Example of the method of numerical integration; using a weighting matrix to implement Simpson&#039;s Rule:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
x = linspace(-4,4,500).&#039;;&lt;br /&gt;
&lt;br /&gt;
f = exp(-10*(x.^2));&lt;br /&gt;
&lt;br /&gt;
g = sin(x);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
h = x(2)-x(1);&lt;br /&gt;
&lt;br /&gt;
simp = 2*h/3*ones(1,length(x));&lt;br /&gt;
&lt;br /&gt;
simp(2:2:length(x)-1) = 4*h/3;&lt;br /&gt;
&lt;br /&gt;
simp(1) = h/3;&lt;br /&gt;
&lt;br /&gt;
simp(end) = h/3;&lt;br /&gt;
&lt;br /&gt;
simp = diag(simp);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
%The integral of f(x)^2 from (by Simpson&#039;s Rule) -4 to 4 is:&lt;br /&gt;
&lt;br /&gt;
int1 = transpose(f)*simp*f;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
%The integral of f(x)*g(x) from -4 to 4 is:&lt;br /&gt;
&lt;br /&gt;
int2 = transpose(f)*simp*g;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Multiple integrals can be executed in one expression:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
%NUMERICALLY CALCULATING FOURIER COEFICIENTS&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
%Make a row vector of x values&lt;br /&gt;
&lt;br /&gt;
x = linspace(-pi,pi,200);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
%Define a row vector of the values of the function to be fitted by a Fourier sine series&lt;br /&gt;
&lt;br /&gt;
f = 5*x.^3 - 3*x;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
%Simpson&#039;s Rule weighting matrix:&lt;br /&gt;
&lt;br /&gt;
h = x(2)-x(1);&lt;br /&gt;
simp = 2*h/3*ones(1,length(x));&lt;br /&gt;
simp(2:2:length(x)-1) = 4*h/3;&lt;br /&gt;
simp(1) = h/3;&lt;br /&gt;
simp(end) = h/3;&lt;br /&gt;
simp = diag(simp);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
%Create a matrix M with the fourier functions, x increasing along the rows, n increasing down the columns&lt;br /&gt;
&lt;br /&gt;
M = zeros(round(length(x)/2),length(x));&lt;br /&gt;
&lt;br /&gt;
for n = 1:length(M(:,1))&lt;br /&gt;
&lt;br /&gt;
    M(n,:) = sin(n*x)/sqrt(pi);&lt;br /&gt;
&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
%Calculate the column vector containing the coefficients of the sine series  &lt;br /&gt;
&lt;br /&gt;
fourier_coefficients = M*simp*transpose(f);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
%Calculate a row vector of the fitting function evaluated at the values of x&lt;br /&gt;
&lt;br /&gt;
fourier_sine_fit = transpose(fourier_coefficients)*M;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
%Plot to check&lt;br /&gt;
&lt;br /&gt;
plot(x,f,x,fourier_sine_fit)&lt;br /&gt;
&lt;br /&gt;
== Waves in an infinite basin ==&lt;br /&gt;
&lt;br /&gt;
We assume that the density &amp;lt;math&amp;gt;\rho&amp;lt;/math&amp;gt; and the depth &amp;lt;math&amp;gt;h&amp;lt;/math&amp;gt; are constant and equal to one outside the region &amp;lt;math&amp;gt;-L&amp;lt;x&amp;lt;L&amp;lt;/math&amp;gt;. &lt;br /&gt;
We can therefore write the wave as&lt;br /&gt;
&lt;br /&gt;
== Solution using Separation of Variables ==&lt;br /&gt;
&lt;br /&gt;
Taking a separable solution  gives the eigenvalue problem&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\partial_x \left( h(x) \partial_x\zeta \right) = -\omega^{2}\rho(x)\zeta \quad (1)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Given boundary conditions &amp;lt;math&amp;gt;\zeta \mid_{-L} = a&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\zeta \mid_L = b&amp;lt;/math&amp;gt; we can take &amp;lt;math&amp;gt; \zeta = \zeta_p + u &amp;lt;/math&amp;gt; With &amp;lt;math&amp;gt; \zeta_p = \frac{(b-a)}{2L}x + \frac{b+a}{2} &amp;lt;/math&amp;gt; satisfying the boundary conditions and &amp;lt;math&amp;gt; u  &amp;lt;/math&amp;gt;  satisfying &amp;lt;math&amp;gt; u |_{-L} = u |_L = 0&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Substituting this form into (1) gives&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; \partial_x(h(x)\partial_x \zeta_p)+\partial_x(h(x)\partial_xu) = -\omega^{2}\left(\zeta_p+u\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
Or, on rearranging&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; \partial_x(h(x)\partial_xu)+\omega^{2}u = -\partial_x(h(x)\partial_x \zeta_p)-\omega^{2}\zeta_p = f(x)\quad (2)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
so &amp;lt;center&amp;gt;&amp;lt;math&amp;gt; f(x) = -\frac{(b-a)}{2L}\partial_xh(x) - \omega^2 \left(\frac{(b-a)}{2L}x + \frac{b+a}{2}\right) &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
Now consider the homogenous Sturm-Liouville problem for u&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; \partial_x(h(x)\partial_xu)+\lambda u = 0\quad u|_0=u|_1=0 \quad (3)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
By Sturm-Liouville theory this has an infinite set of eigenvalues &amp;lt;math&amp;gt; \lambda_k &amp;lt;/math&amp;gt; with corresponding eigenfunctions &amp;lt;math&amp;gt; u_k &amp;lt;/math&amp;gt;.  Also since &amp;lt;math&amp;gt; u_k|_0=u_k|_1=0\quad \forall k &amp;lt;/math&amp;gt; Each &amp;lt;math&amp;gt; u_k&amp;lt;/math&amp;gt; can be expanded as a fourier series in terms of sine functions.&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; u_k = \sum_{n=1}^{\infty} a_{n,k} \psi_n&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\psi_n = \sin\left(\frac{n\pi}{2}\left(\frac{x}{L} + 1\right)\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
Transforming (3) into the equivalent variational problem gives&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; J[u] = \int_{-L}^{L}\,hu&#039;^{2}-\lambda \rho u^{2} \, dx \quad (4) &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
Substituting the fourier expansion for &amp;lt;math&amp;gt;u_k&amp;lt;/math&amp;gt; into (4):&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; J = \int_{-L}^{L}\,h\left(\sum_{n=1}^{\infty} a_{n} \psi_n&#039;\right)^{2}-\lambda \rho \left(\sum_{n=1}^{\infty} a_{n} \psi_n\right)^{2} \, dx \quad &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
Since &amp;lt;math&amp;gt;u_k&amp;lt;/math&amp;gt; minimises J, we require &amp;lt;math&amp;gt; \frac{\partial J}{\partial a_{n}}=0 \quad \forall n &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; \frac{\partial J}{\partial a_{m}}=\int_{-L}^{L}\left\{2h\psi_m&#039;\sum_{n=1}^{\infty} a_{n}\psi_n&#039;-2\lambda\rho \psi_m \sum_{n=1}^{\infty} a_{n} \psi_n\right\}dx=0&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; \implies \int_{-L}^{L}2h\psi_m&#039;\sum_{n=1}^{\infty} a_{n}\psi_n&#039;dx= \int_{-L}^{L}2\lambda\rho \psi_m \sum_{n=1}^{\infty} a_{n} \psi_ndx&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \implies \sum_{n=1}^{\infty}a_{n}\int_{-L}^{L}h\psi_m&#039;\psi_n&#039;dx= \lambda\sum_{n=1}^{\infty}a_{n}\int_{-L}^{L}\rho \psi_m \psi_ndx&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
By defining a vector &amp;lt;math&amp;gt; \textbf{a} = \left(a_{n}\right)&amp;lt;/math&amp;gt; and matrices &amp;lt;math&amp;gt;K_{(n,m)} = \int_{-L}^{L}h(x)\psi_m&#039;(x)\psi_n&#039;(x)dx &amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;M_{(n,m)} = \int_{-L}^{L}\rho(x)\psi_m(x)\psi_n(x)dx &amp;lt;/math&amp;gt; we have the linear system &amp;lt;math&amp;gt; K\textbf{a} = \lambda M\textbf{a} &amp;lt;/math&amp;gt; which returns the eigenvalues and eigenvectors of equation (3), with eigenvectors &amp;lt;math&amp;gt; \textbf{a} &amp;lt;/math&amp;gt; representing coefficient vectors of the fourier expansions of eigenfunctions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If we now construct &amp;lt;math&amp;gt; u(x,\omega) = \sum_{k=1}^{\infty} b_k u_k &amp;lt;/math&amp;gt; and substitute this into equation (2) we get&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \sum_{k=1}^{\infty} (\partial_x(h(x)\partial_x u_k) + \omega^{2}\rho u_k)b_k = f(x) &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \implies \sum_{k=1}^{\infty} (-\lambda_k\rho u_k + \omega^{2}\rho u_k)b_k = f(x) &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \implies \sum_{k=1}^{\infty} (\omega^{2}-\lambda_k) b_k \rho u_k = f(x) \quad (5) &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
And defining the RHS of equation (5) as &amp;lt;math&amp;gt; f(x) &amp;lt;/math&amp;gt;, a known function, we can retrieve the coefficients &amp;lt;math&amp;gt; b_k &amp;lt;/math&amp;gt; by integrating against &amp;lt;math&amp;gt; u_k &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; b_k = \frac{\int_{-L}^{L}\,f u_k\,dx}{(\omega^{2}-\lambda_k) \int_{-L}^{L}\, \rho u_{k}^{2}\,dx} &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The coefficients &amp;lt;math&amp;gt; c_n &amp;lt;/math&amp;gt; of the fourier expansion of u are just &amp;lt;math&amp;gt; \sum_{k=1}^{\infty}a_{n,k}b_{k} &amp;lt;/math&amp;gt; with &amp;lt;math&amp;gt; a_{n.k} &amp;lt;/math&amp;gt; being the &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;th coefficient of the &amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt;th eigenfunction of the Sturm-Liouville problem.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So &amp;lt;math&amp;gt; \zeta(x,\omega)=\frac{(b-a)}{2L}x + \frac{b+a}{2}+\sum_{n=1}^{\infty}c_{n} \sin\left(\frac{n\pi}{2}\left(\frac{x}{L} + 1\right)\right) \quad (6)&amp;lt;/math&amp;gt; &lt;br /&gt;
,with &amp;lt;math&amp;gt; \zeta |_{-L}=a \quad \zeta |_{L}=b &amp;lt;/math&amp;gt; and, given &amp;lt;math&amp;gt; a &amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt; b &amp;lt;/math&amp;gt; explicitly differentiating &amp;lt;math&amp;gt; \zeta &amp;lt;/math&amp;gt; gives &amp;lt;math&amp;gt; \partial_x \zeta |_{-L} &amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt; \partial_x \zeta |_L &amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We choose a basis of the solution space for any particular &amp;lt;math&amp;gt;\omega&amp;lt;/math&amp;gt; to be &amp;lt;math&amp;gt;\{\zeta_1,\,\zeta_2\}&amp;lt;/math&amp;gt;, where &amp;lt;math&amp;gt; \zeta_1 &amp;lt;/math&amp;gt; is the solution to the BVP(a=1,b=0) and &amp;lt;math&amp;gt; \zeta_1 &amp;lt;/math&amp;gt; is the solution to the BVP(a=0,b=1). The functions &amp;lt;math&amp;gt; \zeta_1 &amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt; \zeta_2 &amp;lt;/math&amp;gt; can be calculated for any &amp;lt;math&amp;gt; \omega &amp;lt;/math&amp;gt; from (6).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The aim here is to construct a matrix &#039;&#039;&#039;S&#039;&#039;&#039; such that, given &amp;lt;math&amp;gt; a &amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt; b &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; S \begin{pmatrix} \zeta |_{-L} \\ \zeta |_L \end{pmatrix}=\begin{pmatrix} \partial_x \zeta |_{-L} \\ \partial_x \zeta |_L \end{pmatrix}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Taking &amp;lt;math&amp;gt; a=1,\,b=0 &amp;lt;/math&amp;gt;  to give &amp;lt;math&amp;gt; \zeta_1 &amp;lt;/math&amp;gt; shows that the first column of &#039;&#039;&#039;S&#039;&#039;&#039; must be &amp;lt;math&amp;gt; \begin{pmatrix} \partial_x \zeta_1 |_{-L} \\ \partial_x \zeta_1 |_L \end{pmatrix} &amp;lt;/math&amp;gt; and likewise taking &amp;lt;math&amp;gt; a=0,\,b=1 &amp;lt;/math&amp;gt; to give &amp;lt;math&amp;gt; \zeta_2 &amp;lt;/math&amp;gt; shows the second column must be &amp;lt;math&amp;gt; \begin{pmatrix} \partial_x \zeta_2 |_{-L} \\ \partial_x \zeta_2 |_L \end{pmatrix} &amp;lt;/math&amp;gt;. So &#039;&#039;&#039;S&#039;&#039;&#039; is given by&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; \begin{pmatrix}  \partial_x \zeta_1 |_{-L}  \, \partial_x \zeta_2 |_{-L} \\ \partial_x \zeta_1 |_L \, \partial_x \zeta_2 |_L \end{pmatrix} &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now for the area of constant depth on the left hand side there is a potential of the form &amp;lt;math&amp;gt; e^{i\omega x} &amp;lt;/math&amp;gt; which, creates  reflected and transmitted potentials from the variable depth area of the form &amp;lt;math&amp;gt; Re^{-i\omega x} &amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt; Te^{i\omega x} &amp;lt;/math&amp;gt; respectively where the magnitudes of &amp;lt;math&amp;gt; R &amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt; T &amp;lt;/math&amp;gt; are unknown.  We can calculate that the boundary conditions for &amp;lt;math&amp;gt; \zeta &amp;lt;/math&amp;gt; must be&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; \zeta |_{-L} = e^{-i\omega L}+Re^{i\omega L}, \quad \zeta |_L = Te^{i\omega L}, \quad \partial_x \zeta |_{-L} = i\omega e^{-i\omega L}-i\omega Re^{i\omega L}, \quad \partial_x \zeta |_L = i\omega Te^{i\omega L} &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; \begin{pmatrix}  i\omega e^{-i\omega L}-i\omega Re^{i\omega L} \\ i\omega Te^{i\omega L} \end{pmatrix} = S\begin{pmatrix}  e^{-i\omega L}+Re^{i\omega L} \\ Te^{i\omega L} \end{pmatrix} &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Knowing &#039;&#039;&#039;S&#039;&#039;&#039; these boundary conditions can be solved for &amp;lt;math&amp;gt; R&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;T&amp;lt;/math&amp;gt;, which in turn gives actual numerical boundary conditions to the original problem(&amp;lt;math&amp;gt;a=e^{-i\omega L}+Re^{i\omega L}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt; b=Te^{i\omega L}&amp;lt;/math&amp;gt;). Taking a linear combination of the solutions already calculated (&amp;lt;math&amp;gt; a\zeta_1(x,\omega) + b\zeta_2(x,\omega) &amp;lt;/math&amp;gt;) will provide the solution for these new boundary conditions. This solution, along with the potentials outside this region gives a generalised eigenfunction potential for the whole real axis which we denote as &amp;lt;math&amp;gt; \zeta_+(x,\omega)&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Independent generalised eigenfunctons can be found by considering the potential &amp;lt;math&amp;gt; e^{-i\omega x} &amp;lt;/math&amp;gt; on the right hand region of constant depth. The corresponding reflected and transmitted potentials from the variable depth area are of the form &amp;lt;math&amp;gt; Re^{i\omega x} &amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt; Te^{-i\omega x} &amp;lt;/math&amp;gt; respectively. Again knowing &#039;&#039;&#039;S&#039;&#039;&#039; we can solve for R and T and hence find the numerical boundary conditions (&amp;lt;math&amp;gt;a=Te^{i\omega L}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;b=e^{-i\omega L}+Re^{i\omega L}&amp;lt;/math&amp;gt;). &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If a waveform &amp;lt;math&amp;gt; f(x) &amp;lt;/math&amp;gt; is travelling in from &amp;lt;math&amp;gt; -\infty &amp;lt;/math&amp;gt; Taking the fourier transform gives&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; \hat{f}(\omega)=\int_{-\infty}^{\infty}\,f(x)e^{2\pi i \omega} \,dx &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and then inverting &amp;lt;math&amp;gt; \hat{f}(\omega) \zeta(x) &amp;lt;/math&amp;gt; with respect to &amp;lt;math&amp;gt; t &amp;lt;/math&amp;gt; gives&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;  f(x,t) = \int_{-\infty}^{\infty}\,\hat{f}(\omega) \zeta(x) e^{-2\pi i \omega t} \,d\omega &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
which is the time dependent solution for the wave form.&lt;br /&gt;
&lt;br /&gt;
[[Category:Shallow Depth]]&lt;/div&gt;</summary>
		<author><name>Sean Curry</name></author>
	</entry>
	<entry>
		<id>https://www.wikiwaves.org/index.php?title=Variable_Depth_Shallow_Water_Wave_Equation&amp;diff=8670</id>
		<title>Variable Depth Shallow Water Wave Equation</title>
		<link rel="alternate" type="text/html" href="https://www.wikiwaves.org/index.php?title=Variable_Depth_Shallow_Water_Wave_Equation&amp;diff=8670"/>
		<updated>2009-02-24T02:52:27Z</updated>

		<summary type="html">&lt;p&gt;Sean Curry: /* Solution using Separation of Variables */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction ==&lt;br /&gt;
&lt;br /&gt;
We consider here the problem of waves reflected by a region of variable depth in&lt;br /&gt;
an otherwise uniform depth region assuming the equations of [[:Category:Shallow Depth|Shallow Depth]].&lt;br /&gt;
&lt;br /&gt;
== Equations ==&lt;br /&gt;
&lt;br /&gt;
We begin with the shallow depth equation&lt;br /&gt;
{{shallow depth one dimension}} &lt;br /&gt;
&lt;br /&gt;
== Waves in a finite basin ==&lt;br /&gt;
&lt;br /&gt;
We consider the problem of waves in a finite basin &amp;lt;math&amp;gt;-L&amp;lt;x&amp;lt;L&amp;lt;/math&amp;gt;. At the edge of the basin the boundary conditions are&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\left.\partial_x \zeta\right|_{x=-L} = \left.\partial_x \zeta\right|_{x=L} =0&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
We solve the equations by expanding in the modes for the basin which satisfy&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\partial_x \left(h(x) \partial_x \zeta_n \right) = -\lambda_n \rho(x) \zeta_n ,&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
normalised so that &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{-L}^L \rho\zeta_n \zeta_m = \delta_{mn}.&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
The solution is then given by&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\zeta(x,t) = \sum_{n=0}^{\infty} \left(\int_{-L}^L \rho(x)\zeta_n(x^\prime) \zeta_0 (x^\prime) dx^\prime \right) \zeta_n(x) \cos(\sqrt{\lambda_n} t )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
+ \sum_{n=1} ^{\infty} \left(\int_{-L}^L \rho(x)\zeta_n(x^\prime) \partial_t\zeta_0 (x^\prime) dx^\prime \right) \zeta_n(x) \frac{\sin(\sqrt{\lambda_n} t )}{\sqrt{\lambda_n}}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
where we have assumed that &amp;lt;math&amp;gt;\lambda_0 = 0&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Calculation of &amp;lt;math&amp;gt;\zeta_n&amp;lt;/math&amp;gt; ===&lt;br /&gt;
&lt;br /&gt;
We can calculate the eigenfunctions &amp;lt;math&amp;gt;\zeta_n&amp;lt;/math&amp;gt; by an expansion in the modes for the case of uniform depth.&lt;br /&gt;
We use the Rayleigh-Ritz method. The eigenfunctions are local minimums of &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;J[\zeta] = \int_{-L}^L \frac{1}{2}\left\{ h(x)\left(\partial_x \zeta\right)^2 - \lambda \rho(x) \zeta^2 \right\}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
subject to the boundary conditions that the normal derivative vanishes (where &amp;lt;math&amp;gt;\lambda&amp;lt;/math&amp;gt; is the eigenvalue).&lt;br /&gt;
&lt;br /&gt;
We expand the displacement in the eigenfunctions for constant depth &amp;lt;math&amp;gt;h=1&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\zeta = \sum_{n=0}^{N} a_n \psi_n(x)&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\psi_n = \frac{1}{\sqrt{L}} \cos( n \pi (\frac{1}{2L}x + \frac{1}{2})),\,\,n\ne 1&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\psi_0 = \frac{1}{\sqrt{2L}},\,&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and substitute this expansion into the variational equation we obtain&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
J[\vec{a}] = \int_{-L}^L \frac{1}{2}\left\{ h(x)\left( \sum_{n=0}^{N} a_n \partial_x \psi_n(x)\right)^2 - \lambda \rho(x) \left(\sum_{n=0}^{N} a_n \psi_n(x)\right)^2 \right\}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{dJ}{da_m} = \int_{-L}^L \frac{1}{2}\left\{ h(x)2\partial_x \psi_m(x)\left( \sum_{n=0}^{N} a_n \partial_x \psi_n(x)\right) - \lambda \rho(x)2\psi_m(x)\left(\sum_{n=0}^{N} a_n \psi_n(x)\right) \right\} = 0&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{-L}^L \left\{ h(x)\partial_x \psi_m(x)\left( \sum_{n=0}^{N} a_n \partial_x \psi_n(x)\right) \right\} = \int_{-L}^L \left\{ \lambda \rho(x)\psi_m(x)\left(\sum_{n=0}^{N} a_n \psi_n(x)\right) \right\}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\sum_{n=0}^{N} a_n \int_{-L}^L \left\{ h(x)\partial_x \psi_n(x)\partial_x \psi_m(x)\right\} = \lambda \sum_{n=0}^{N} a_n \int_{-L}^L \left\{ \rho(x)\psi_n(x)\psi_m(x) \right\}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
this equation can be rewritten using matrices as&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\mathbf{K} \vec{a} = \lambda\mathbf{M} \vec{a}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where the elements of the matrices &#039;&#039;&#039;K&#039;&#039;&#039; and &#039;&#039;&#039;M&#039;&#039;&#039; are&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\mathbf{K}_{mn} = \int_{-L}^L \left\{ \left(\partial_x \psi_m h(x) \partial_x \psi_n\right) \right\}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\mathbf{M}_{mn} = \int_{-L}^L \left\{\rho(x)\psi_n(x)\psi_m(x)\right\}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Matlab code ===&lt;br /&gt;
&#039;&#039;&#039;Example of the method of numerical integration; using a weighting matrix to implement Simpson&#039;s Rule:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
x = linspace(-4,4,500).&#039;;&lt;br /&gt;
&lt;br /&gt;
f = exp(-10*(x.^2));&lt;br /&gt;
&lt;br /&gt;
g = sin(x);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
h = x(2)-x(1);&lt;br /&gt;
&lt;br /&gt;
simp = 2*h/3*ones(1,length(x));&lt;br /&gt;
&lt;br /&gt;
simp(2:2:length(x)-1) = 4*h/3;&lt;br /&gt;
&lt;br /&gt;
simp(1) = h/3;&lt;br /&gt;
&lt;br /&gt;
simp(end) = h/3;&lt;br /&gt;
&lt;br /&gt;
simp = diag(simp);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
%The integral of f(x)^2 from (by Simpson&#039;s Rule) -4 to 4 is:&lt;br /&gt;
&lt;br /&gt;
int1 = transpose(f)*simp*f;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
%The integral of f(x)*g(x) from -4 to 4 is:&lt;br /&gt;
&lt;br /&gt;
int2 = transpose(f)*simp*g;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Multiple integrals can be executed in one expression:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
%NUMERICALLY CALCULATING FOURIER COEFICIENTS&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
%Make a row vector of x values&lt;br /&gt;
&lt;br /&gt;
x = linspace(-pi,pi,200);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
%Define a row vector of the values of the function to be fitted by a Fourier sine series&lt;br /&gt;
&lt;br /&gt;
f = 5*x.^3 - 3*x;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
%Simpson&#039;s Rule weighting matrix:&lt;br /&gt;
&lt;br /&gt;
h = x(2)-x(1);&lt;br /&gt;
simp = 2*h/3*ones(1,length(x));&lt;br /&gt;
simp(2:2:length(x)-1) = 4*h/3;&lt;br /&gt;
simp(1) = h/3;&lt;br /&gt;
simp(end) = h/3;&lt;br /&gt;
simp = diag(simp);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
%Create a matrix M with the fourier functions, x increasing along the rows, n increasing down the columns&lt;br /&gt;
&lt;br /&gt;
M = zeros(round(length(x)/2),length(x));&lt;br /&gt;
&lt;br /&gt;
for n = 1:length(M(:,1))&lt;br /&gt;
&lt;br /&gt;
    M(n,1:length(x)) = sin(n*x)/sqrt(pi);&lt;br /&gt;
&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
%Calculate the column vector containing the coefficients of the sine series  &lt;br /&gt;
&lt;br /&gt;
fourier_coefficients = M*simp*transpose(f);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
%Calculate a row vector of the fitting function evaluated at the values of x&lt;br /&gt;
&lt;br /&gt;
fourier_sine_fit = transpose(fourier_coefficients)*M;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
%Plot to check&lt;br /&gt;
&lt;br /&gt;
plot(x,f,x,fourier_sine_fit)&lt;br /&gt;
&lt;br /&gt;
== Waves in an infinite basin ==&lt;br /&gt;
&lt;br /&gt;
We assume that the density &amp;lt;math&amp;gt;\rho&amp;lt;/math&amp;gt; and the depth &amp;lt;math&amp;gt;h&amp;lt;/math&amp;gt; are constant and equal to one outside the region &amp;lt;math&amp;gt;-L&amp;lt;x&amp;lt;L&amp;lt;/math&amp;gt;. &lt;br /&gt;
We can therefore write the wave as&lt;br /&gt;
&lt;br /&gt;
== Solution using Separation of Variables ==&lt;br /&gt;
&lt;br /&gt;
Taking a separable solution  gives the eigenvalue problem&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\partial_x \left( h(x) \partial_x\zeta \right) = -\omega^{2}\rho(x)\zeta \quad (1)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Given boundary conditions &amp;lt;math&amp;gt;\zeta \mid_{-L} = a&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\zeta \mid_L = b&amp;lt;/math&amp;gt; we can take &amp;lt;math&amp;gt; \zeta = \zeta_p + u &amp;lt;/math&amp;gt; With &amp;lt;math&amp;gt; \zeta_p = \frac{(b-a)}{2L}x + \frac{b+a}{2} &amp;lt;/math&amp;gt; satisfying the boundary conditions and &amp;lt;math&amp;gt; u  &amp;lt;/math&amp;gt;  satisfying &amp;lt;math&amp;gt; u |_{-L} = u |_L = 0&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Substituting this form into (1) gives&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; \partial_x(h(x)\partial_x \zeta_p)+\partial_x(h(x)\partial_xu) = -\omega^{2}\left(\zeta_p+u\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
Or, on rearranging&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; \partial_x(h(x)\partial_xu)+\omega^{2}u = -\partial_x(h(x)\partial_x \zeta_p)-\omega^{2}\zeta_p = f(x)\quad (2)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
so &amp;lt;center&amp;gt;&amp;lt;math&amp;gt; f(x) = -\frac{(b-a)}{2L}\partial_xh(x) - \omega^2 \left(\frac{(b-a)}{2L}x + \frac{b+a}{2}\right) &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
Now consider the homogenous Sturm-Liouville problem for u&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; \partial_x(h(x)\partial_xu)+\lambda u = 0\quad u|_0=u|_1=0 \quad (3)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
By Sturm-Liouville theory this has an infinite set of eigenvalues &amp;lt;math&amp;gt; \lambda_k &amp;lt;/math&amp;gt; with corresponding eigenfunctions &amp;lt;math&amp;gt; u_k &amp;lt;/math&amp;gt;.  Also since &amp;lt;math&amp;gt; u_k|_0=u_k|_1=0\quad \forall k &amp;lt;/math&amp;gt; Each &amp;lt;math&amp;gt; u_k&amp;lt;/math&amp;gt; can be expanded as a fourier series in terms of sine functions.&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; u_k = \sum_{n=1}^{\infty} a_{n,k} \psi_n&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\psi_n = \sin\left(\frac{n\pi}{2}\left(\frac{x}{L} + 1\right)\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
Transforming (3) into the equivalent variational problem gives&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; J[u] = \int_{-L}^{L}\,hu&#039;^{2}-\lambda \rho u^{2} \, dx \quad (4) &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
Substituting the fourier expansion for &amp;lt;math&amp;gt;u_k&amp;lt;/math&amp;gt; into (4):&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; J = \int_{-L}^{L}\,h\left(\sum_{n=1}^{\infty} a_{n} \psi_n&#039;\right)^{2}-\lambda \rho \left(\sum_{n=1}^{\infty} a_{n} \psi_n\right)^{2} \, dx \quad &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
Since &amp;lt;math&amp;gt;u_k&amp;lt;/math&amp;gt; minimises J, we require &amp;lt;math&amp;gt; \frac{\partial J}{\partial a_{n}}=0 \quad \forall n &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; \frac{\partial J}{\partial a_{m}}=\int_{-L}^{L}\left\{2h\psi_m&#039;\sum_{n=1}^{\infty} a_{n}\psi_n&#039;-2\lambda\rho \psi_m \sum_{n=1}^{\infty} a_{n} \psi_n\right\}dx=0&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; \implies \int_{-L}^{L}2h\psi_m&#039;\sum_{n=1}^{\infty} a_{n}\psi_n&#039;dx= \int_{-L}^{L}2\lambda\rho \psi_m \sum_{n=1}^{\infty} a_{n} \psi_ndx&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \implies \sum_{n=1}^{\infty}a_{n}\int_{-L}^{L}h\psi_m&#039;\psi_n&#039;dx= \lambda\sum_{n=1}^{\infty}a_{n}\int_{-L}^{L}\rho \psi_m \psi_ndx&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
By defining a vector &amp;lt;math&amp;gt; \textbf{a} = \left(a_{n}\right)&amp;lt;/math&amp;gt; and matrices &amp;lt;math&amp;gt;K_{(n,m)} = \int_{-L}^{L}h(x)\psi_m&#039;(x)\psi_n&#039;(x)dx &amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;M_{(n,m)} = \int_{-L}^{L}\rho(x)\psi_m(x)\psi_n(x)dx &amp;lt;/math&amp;gt; we have the linear system &amp;lt;math&amp;gt; K\textbf{a} = \lambda M\textbf{a} &amp;lt;/math&amp;gt; which returns the eigenvalues and eigenvectors of equation (3), with eigenvectors &amp;lt;math&amp;gt; \textbf{a} &amp;lt;/math&amp;gt; representing coefficient vectors of the fourier expansions of eigenfunctions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If we now construct &amp;lt;math&amp;gt; u(x,\omega) = \sum_{k=1}^{\infty} b_k u_k &amp;lt;/math&amp;gt; and substitute this into equation (2) we get&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \sum_{k=1}^{\infty} (\partial_x(h(x)\partial_x u_k) + \omega^{2}\rho u_k)b_k = f(x) &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \implies \sum_{k=1}^{\infty} (-\lambda_k\rho u_k + \omega^{2}\rho u_k)b_k = f(x) &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \implies \sum_{k=1}^{\infty} (\omega^{2}-\lambda_k) b_k \rho u_k = f(x) \quad (5) &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
And defining the RHS of equation (5) as &amp;lt;math&amp;gt; f(x) &amp;lt;/math&amp;gt;, a known function, we can retrieve the coefficients &amp;lt;math&amp;gt; b_k &amp;lt;/math&amp;gt; by integrating against &amp;lt;math&amp;gt; u_k &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; b_k = \frac{\int_{-L}^{L}\,f u_k\,dx}{(\omega^{2}-\lambda_k) \int_{-L}^{L}\, \rho u_{k}^{2}\,dx} &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The coefficients &amp;lt;math&amp;gt; c_n &amp;lt;/math&amp;gt; of the fourier expansion of u are just &amp;lt;math&amp;gt; \sum_{k=1}^{\infty}a_{n,k}b_{k} &amp;lt;/math&amp;gt; with &amp;lt;math&amp;gt; a_{n.k} &amp;lt;/math&amp;gt; being the &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;th coefficient of the &amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt;th eigenfunction of the Sturm-Liouville problem.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So &amp;lt;math&amp;gt; \zeta(x,\omega)=\frac{(b-a)}{2L}x + \frac{b+a}{2}+\sum_{n=1}^{\infty}c_{n} \sin\left(\frac{n\pi}{2}\left(\frac{x}{L} + 1\right)\right) \quad (6)&amp;lt;/math&amp;gt; &lt;br /&gt;
,with &amp;lt;math&amp;gt; \zeta |_{-L}=a \quad \zeta |_{L}=b &amp;lt;/math&amp;gt; and, given &amp;lt;math&amp;gt; a &amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt; b &amp;lt;/math&amp;gt; explicitly differentiating &amp;lt;math&amp;gt; \zeta &amp;lt;/math&amp;gt; gives &amp;lt;math&amp;gt; \partial_x \zeta |_{-L} &amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt; \partial_x \zeta |_L &amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We choose a basis of the solution space for any particular &amp;lt;math&amp;gt;\omega&amp;lt;/math&amp;gt; to be &amp;lt;math&amp;gt;\{\zeta_1,\,\zeta_2\}&amp;lt;/math&amp;gt;, where &amp;lt;math&amp;gt; \zeta_1 &amp;lt;/math&amp;gt; is the solution to the BVP(a=1,b=0) and &amp;lt;math&amp;gt; \zeta_1 &amp;lt;/math&amp;gt; is the solution to the BVP(a=0,b=1). The functions &amp;lt;math&amp;gt; \zeta_1 &amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt; \zeta_2 &amp;lt;/math&amp;gt; can be calculated for any &amp;lt;math&amp;gt; \omega &amp;lt;/math&amp;gt; from (6).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The aim here is to construct a matrix &#039;&#039;&#039;S&#039;&#039;&#039; such that, given &amp;lt;math&amp;gt; a &amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt; b &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; S \begin{pmatrix} \zeta |_{-L} \\ \zeta |_L \end{pmatrix}=\begin{pmatrix} \partial_x \zeta |_{-L} \\ \partial_x \zeta |_L \end{pmatrix}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Taking &amp;lt;math&amp;gt; a=1,\,b=0 &amp;lt;/math&amp;gt;  to give &amp;lt;math&amp;gt; \zeta_1 &amp;lt;/math&amp;gt; shows that the first column of &#039;&#039;&#039;S&#039;&#039;&#039; must be &amp;lt;math&amp;gt; \begin{pmatrix} \partial_x \zeta_1 |_{-L} \\ \partial_x \zeta_1 |_L \end{pmatrix} &amp;lt;/math&amp;gt; and likewise taking &amp;lt;math&amp;gt; a=0,\,b=1 &amp;lt;/math&amp;gt; to give &amp;lt;math&amp;gt; \zeta_2 &amp;lt;/math&amp;gt; shows the second column must be &amp;lt;math&amp;gt; \begin{pmatrix} \partial_x \zeta_2 |_{-L} \\ \partial_x \zeta_2 |_L \end{pmatrix} &amp;lt;/math&amp;gt;. So &#039;&#039;&#039;S&#039;&#039;&#039; is given by&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; \begin{pmatrix}  \partial_x \zeta_1 |_{-L}  \, \partial_x \zeta_2 |_{-L} \\ \partial_x \zeta_1 |_L \, \partial_x \zeta_2 |_L \end{pmatrix} &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now for the area of constant depth on the left hand side there is a potential of the form &amp;lt;math&amp;gt; e^{i\omega x} &amp;lt;/math&amp;gt; which, creates  reflected and transmitted potentials from the variable depth area of the form &amp;lt;math&amp;gt; Re^{-i\omega x} &amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt; Te^{i\omega x} &amp;lt;/math&amp;gt; respectively where the magnitudes of &amp;lt;math&amp;gt; R &amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt; T &amp;lt;/math&amp;gt; are unknown.  We can calculate that the boundary conditions for &amp;lt;math&amp;gt; \zeta &amp;lt;/math&amp;gt; must be&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; \zeta |_{-L} = e^{-i\omega L}+Re^{i\omega L}, \quad \zeta |_L = Te^{i\omega L}, \quad \partial_x \zeta |_{-L} = i\omega e^{-i\omega L}-i\omega Re^{i\omega L}, \quad \partial_x \zeta |_L = i\omega Te^{i\omega L} &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; \begin{pmatrix}  i\omega e^{-i\omega L}-i\omega Re^{i\omega L} \\ i\omega Te^{i\omega L} \end{pmatrix} = S\begin{pmatrix}  e^{-i\omega L}+Re^{i\omega L} \\ Te^{i\omega L} \end{pmatrix} &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Knowing &#039;&#039;&#039;S&#039;&#039;&#039; these boundary conditions can be solved for &amp;lt;math&amp;gt; R&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;T&amp;lt;/math&amp;gt;, which in turn gives actual numerical boundary conditions to the original problem(&amp;lt;math&amp;gt;a=e^{-i\omega L}+Re^{i\omega L}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt; b=Te^{i\omega L}&amp;lt;/math&amp;gt;). Taking a linear combination of the solutions already calculated (&amp;lt;math&amp;gt; a\zeta_1(x,\omega) + b\zeta_2(x,\omega) &amp;lt;/math&amp;gt;) will provide the solution for these new boundary conditions. This solution, along with the potentials outside this region gives a generalised eigenfunction potential for the whole real axis which we denote as &amp;lt;math&amp;gt; \zeta_+(x,\omega)&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Independent generalised eigenfunctons can be found by considering the potential &amp;lt;math&amp;gt; e^{-i\omega x} &amp;lt;/math&amp;gt; on the right hand region of constant depth. The corresponding reflected and transmitted potentials from the variable depth area are of the form &amp;lt;math&amp;gt; Re^{i\omega x} &amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt; Te^{-i\omega x} &amp;lt;/math&amp;gt; respectively. Again knowing &#039;&#039;&#039;S&#039;&#039;&#039; we can solve for R and T and hence find the numerical boundary conditions (&amp;lt;math&amp;gt;a=Te^{i\omega L}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;b=e^{-i\omega L}+Re^{i\omega L}&amp;lt;/math&amp;gt;). &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If a waveform &amp;lt;math&amp;gt; f(x) &amp;lt;/math&amp;gt; is travelling in from &amp;lt;math&amp;gt; -\infty &amp;lt;/math&amp;gt; Taking the fourier transform gives&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; \hat{f}(\omega)=\int_{-\infty}^{\infty}\,f(x)e^{2\pi i \omega} \,dx &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and then inverting &amp;lt;math&amp;gt; \hat{f}(\omega) \zeta(x) &amp;lt;/math&amp;gt; with respect to &amp;lt;math&amp;gt; t &amp;lt;/math&amp;gt; gives&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;  f(x,t) = \int_{-\infty}^{\infty}\,\hat{f}(\omega) \zeta(x) e^{-2\pi i \omega t} \,d\omega &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
which is the time dependent solution for the wave form.&lt;br /&gt;
&lt;br /&gt;
[[Category:Shallow Depth]]&lt;/div&gt;</summary>
		<author><name>Sean Curry</name></author>
	</entry>
	<entry>
		<id>https://www.wikiwaves.org/index.php?title=Variable_Depth_Shallow_Water_Wave_Equation&amp;diff=8669</id>
		<title>Variable Depth Shallow Water Wave Equation</title>
		<link rel="alternate" type="text/html" href="https://www.wikiwaves.org/index.php?title=Variable_Depth_Shallow_Water_Wave_Equation&amp;diff=8669"/>
		<updated>2009-02-24T02:26:58Z</updated>

		<summary type="html">&lt;p&gt;Sean Curry: /* Solution using Separation of Variables */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction ==&lt;br /&gt;
&lt;br /&gt;
We consider here the problem of waves reflected by a region of variable depth in&lt;br /&gt;
an otherwise uniform depth region assuming the equations of [[:Category:Shallow Depth|Shallow Depth]].&lt;br /&gt;
&lt;br /&gt;
== Equations ==&lt;br /&gt;
&lt;br /&gt;
We begin with the shallow depth equation&lt;br /&gt;
{{shallow depth one dimension}} &lt;br /&gt;
&lt;br /&gt;
== Waves in a finite basin ==&lt;br /&gt;
&lt;br /&gt;
We consider the problem of waves in a finite basin &amp;lt;math&amp;gt;-L&amp;lt;x&amp;lt;L&amp;lt;/math&amp;gt;. At the edge of the basin the boundary conditions are&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\left.\partial_x \zeta\right|_{x=-L} = \left.\partial_x \zeta\right|_{x=L} =0&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
We solve the equations by expanding in the modes for the basin which satisfy&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\partial_x \left(h(x) \partial_x \zeta_n \right) = -\lambda_n \rho(x) \zeta_n ,&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
normalised so that &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{-L}^L \rho\zeta_n \zeta_m = \delta_{mn}.&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
The solution is then given by&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\zeta(x,t) = \sum_{n=0}^{\infty} \left(\int_{-L}^L \rho(x)\zeta_n(x^\prime) \zeta_0 (x^\prime) dx^\prime \right) \zeta_n(x) \cos(\sqrt{\lambda_n} t )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
+ \sum_{n=1} ^{\infty} \left(\int_{-L}^L \rho(x)\zeta_n(x^\prime) \partial_t\zeta_0 (x^\prime) dx^\prime \right) \zeta_n(x) \frac{\sin(\sqrt{\lambda_n} t )}{\sqrt{\lambda_n}}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
where we have assumed that &amp;lt;math&amp;gt;\lambda_0 = 0&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Calculation of &amp;lt;math&amp;gt;\zeta_n&amp;lt;/math&amp;gt; ===&lt;br /&gt;
&lt;br /&gt;
We can calculate the eigenfunctions &amp;lt;math&amp;gt;\zeta_n&amp;lt;/math&amp;gt; by an expansion in the modes for the case of uniform depth.&lt;br /&gt;
We use the Rayleigh-Ritz method. The eigenfunctions are local minimums of &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;J[\zeta] = \int_{-L}^L \frac{1}{2}\left\{ h(x)\left(\partial_x \zeta\right)^2 - \lambda \rho(x) \zeta^2 \right\}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
subject to the boundary conditions that the normal derivative vanishes (where &amp;lt;math&amp;gt;\lambda&amp;lt;/math&amp;gt; is the eigenvalue).&lt;br /&gt;
&lt;br /&gt;
We expand the displacement in the eigenfunctions for constant depth &amp;lt;math&amp;gt;h=1&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\zeta = \sum_{n=0}^{N} a_n \psi_n(x)&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\psi_n = \frac{1}{\sqrt{L}} \cos( n \pi (\frac{1}{2L}x + \frac{1}{2})),\,\,n\ne 1&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\psi_0 = \frac{1}{\sqrt{2L}},\,&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and substitute this expansion into the variational equation we obtain&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
J[\vec{a}] = \int_{-L}^L \frac{1}{2}\left\{ h(x)\left( \sum_{n=0}^{N} a_n \partial_x \psi_n(x)\right)^2 - \lambda \rho(x) \left(\sum_{n=0}^{N} a_n \psi_n(x)\right)^2 \right\}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{dJ}{da_m} = \int_{-L}^L \frac{1}{2}\left\{ h(x)2\partial_x \psi_m(x)\left( \sum_{n=0}^{N} a_n \partial_x \psi_n(x)\right) - \lambda \rho(x)2\psi_m(x)\left(\sum_{n=0}^{N} a_n \psi_n(x)\right) \right\} = 0&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{-L}^L \left\{ h(x)\partial_x \psi_m(x)\left( \sum_{n=0}^{N} a_n \partial_x \psi_n(x)\right) \right\} = \int_{-L}^L \left\{ \lambda \rho(x)\psi_m(x)\left(\sum_{n=0}^{N} a_n \psi_n(x)\right) \right\}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\sum_{n=0}^{N} a_n \int_{-L}^L \left\{ h(x)\partial_x \psi_n(x)\partial_x \psi_m(x)\right\} = \lambda \sum_{n=0}^{N} a_n \int_{-L}^L \left\{ \rho(x)\psi_n(x)\psi_m(x) \right\}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
this equation can be rewritten using matrices as&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\mathbf{K} \vec{a} = \lambda\mathbf{M} \vec{a}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where the elements of the matrices &#039;&#039;&#039;K&#039;&#039;&#039; and &#039;&#039;&#039;M&#039;&#039;&#039; are&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\mathbf{K}_{mn} = \int_{-L}^L \left\{ \left(\partial_x \psi_m h(x) \partial_x \psi_n\right) \right\}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\mathbf{M}_{mn} = \int_{-L}^L \left\{\rho(x)\psi_n(x)\psi_m(x)\right\}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Matlab code ===&lt;br /&gt;
&#039;&#039;&#039;Example of the method of numerical integration; using a weighting matrix to implement Simpson&#039;s Rule:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
x = linspace(-4,4,500).&#039;;&lt;br /&gt;
&lt;br /&gt;
f = exp(-10*(x.^2));&lt;br /&gt;
&lt;br /&gt;
g = sin(x);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
h = x(2)-x(1);&lt;br /&gt;
&lt;br /&gt;
simp = 2*h/3*ones(1,length(x));&lt;br /&gt;
&lt;br /&gt;
simp(2:2:length(x)-1) = 4*h/3;&lt;br /&gt;
&lt;br /&gt;
simp(1) = h/3;&lt;br /&gt;
&lt;br /&gt;
simp(end) = h/3;&lt;br /&gt;
&lt;br /&gt;
simp = diag(simp);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
%The integral of f(x)^2 from (by Simpson&#039;s Rule) -4 to 4 is:&lt;br /&gt;
&lt;br /&gt;
int1 = transpose(f)*simp*f;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
%The integral of f(x)*g(x) from -4 to 4 is:&lt;br /&gt;
&lt;br /&gt;
int2 = transpose(f)*simp*g;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Multiple integrals can be executed in one expression:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
%NUMERICALLY CALCULATING FOURIER COEFICIENTS&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
%Make a row vector of x values&lt;br /&gt;
&lt;br /&gt;
x = linspace(-pi,pi,200);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
%Define a row vector of the values of the function to be fitted by a Fourier sine series&lt;br /&gt;
&lt;br /&gt;
f = 5*x.^3 - 3*x;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
%Simpson&#039;s Rule weighting matrix:&lt;br /&gt;
&lt;br /&gt;
h = x(2)-x(1);&lt;br /&gt;
simp = 2*h/3*ones(1,length(x));&lt;br /&gt;
simp(2:2:length(x)-1) = 4*h/3;&lt;br /&gt;
simp(1) = h/3;&lt;br /&gt;
simp(end) = h/3;&lt;br /&gt;
simp = diag(simp);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
%Create a matrix M with the fourier functions, x increasing along the rows, n increasing down the columns&lt;br /&gt;
&lt;br /&gt;
M = zeros(round(length(x)/2),length(x));&lt;br /&gt;
&lt;br /&gt;
for n = 1:length(M(:,1))&lt;br /&gt;
&lt;br /&gt;
    M(n,1:length(x)) = sin(n*x)/sqrt(pi);&lt;br /&gt;
&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
%Calculate the column vector containing the coefficients of the sine series  &lt;br /&gt;
&lt;br /&gt;
fourier_coefficients = M*simp*transpose(f);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
%Calculate a row vector of the fitting function evaluated at the values of x&lt;br /&gt;
&lt;br /&gt;
fourier_sine_fit = transpose(fourier_coefficients)*M;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
%Plot to check&lt;br /&gt;
&lt;br /&gt;
plot(x,f,x,fourier_sine_fit)&lt;br /&gt;
&lt;br /&gt;
== Waves in an infinite basin ==&lt;br /&gt;
&lt;br /&gt;
We assume that the density &amp;lt;math&amp;gt;\rho&amp;lt;/math&amp;gt; and the depth &amp;lt;math&amp;gt;h&amp;lt;/math&amp;gt; are constant and equal to one outside the region &amp;lt;math&amp;gt;-L&amp;lt;x&amp;lt;L&amp;lt;/math&amp;gt;. &lt;br /&gt;
We can therefore write the wave as&lt;br /&gt;
&lt;br /&gt;
== Solution using Separation of Variables ==&lt;br /&gt;
&lt;br /&gt;
Taking a separable solution  gives the eigenvalue problem&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\partial_x \left( h(x) \partial_x\zeta \right) = -\omega^{2}\rho(x)\zeta \quad (1)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Given boundary conditions &amp;lt;math&amp;gt;\zeta \mid_{-L} = a&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\zeta \mid_L = b&amp;lt;/math&amp;gt; we can take &amp;lt;math&amp;gt; \zeta = \zeta_p + u &amp;lt;/math&amp;gt; With &amp;lt;math&amp;gt; \zeta_p = \frac{(b-a)}{2L}x + \frac{b+a}{2} &amp;lt;/math&amp;gt; satisfying the boundary conditions and &amp;lt;math&amp;gt; u  &amp;lt;/math&amp;gt;  satisfying &amp;lt;math&amp;gt; u |_{-L} = u |_L = 0&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Substituting this form into (1) gives&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; \partial_x(h(x)\partial_x \zeta_p)+\partial_x(h(x)\partial_xu) = -\omega^{2}\left(\zeta_p+u\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
Or, on rearranging&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; \partial_x(h(x)\partial_xu)+\omega^{2}u = -\partial_x(h(x)\partial_x \zeta_p)-\omega^{2}\zeta_p = f(x)\quad (2)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
so &amp;lt;center&amp;gt;&amp;lt;math&amp;gt; f(x) = -\frac{(b-a)}{2L}\partial_xh(x) - \omega^2 \left(\frac{(b-a)}{2L}x + \frac{b+a}{2}\right) &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
Now consider the homogenous Sturm-Liouville problem for u&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; \partial_x(h(x)\partial_xu)+\lambda u = 0\quad u|_0=u|_1=0 \quad (3)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
By Sturm-Liouville theory this has an infinite set of eigenvalues &amp;lt;math&amp;gt; \lambda_k &amp;lt;/math&amp;gt; with corresponding eigenfunctions &amp;lt;math&amp;gt; u_k &amp;lt;/math&amp;gt;.  Also since &amp;lt;math&amp;gt; u_k|_0=u_k|_1=0\quad \forall k &amp;lt;/math&amp;gt; Each &amp;lt;math&amp;gt; u_k&amp;lt;/math&amp;gt; can be expanded as a fourier series in terms of sine functions.&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; u_k = \sum_{n=1}^{\infty} a_{n,k} \psi_n&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\psi_n = \sin\left(\frac{n\pi}{2}\left(\frac{x}{L} + 1\right)\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
Transforming (3) into the equivalent variational problem gives&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; J[u] = \int_{-L}^{L}\,hu&#039;^{2}-\lambda \rho u^{2} \, dx \quad (4) &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
Substituting the fourier expansion for &amp;lt;math&amp;gt;u_k&amp;lt;/math&amp;gt; into (4):&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; J = \int_{-L}^{L}\,h\left(\sum_{n=1}^{\infty} a_{n} \psi_n&#039;\right)^{2}-\lambda \rho \left(\sum_{n=1}^{\infty} a_{n} \psi_n\right)^{2} \, dx \quad (4) &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
Since &amp;lt;math&amp;gt;u_k&amp;lt;/math&amp;gt; minimises J, we require &amp;lt;math&amp;gt; \frac{\partial J}{\partial a_{n}}=0 \quad \forall n &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; \frac{\partial J}{\partial a_{m}}=\int_{-L}^{L}\left\{2h\psi_m&#039;\sum_{n=1}^{\infty} a_{n}\psi_n&#039;-2\lambda\rho \psi_m \sum_{n=1}^{\infty} a_{n} \psi_n\right\}dx=0&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; \implies \int_{-L}^{L}2h\psi_m&#039;\sum_{n=1}^{\infty} a_{n}\psi_n&#039;dx= \int_{-L}^{L}2\lambda\rho \psi_m \sum_{n=1}^{\infty} a_{n} \psi_ndx&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \implies \sum_{n=1}^{\infty}a_{n}\int_{-L}^{L}h\psi_m&#039;\psi_n&#039;dx= \lambda\sum_{n=1}^{\infty}a_{n}\int_{-L}^{L}\rho \psi_m \psi_ndx&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
By defining a vector &amp;lt;math&amp;gt; \textbf{a} = \left(a_{n}\right)&amp;lt;/math&amp;gt; and matrices &amp;lt;math&amp;gt;K_{(n,m)} = \int_{-L}^{L}h(x)\psi_m&#039;(x)\psi_n&#039;(x)dx &amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;M_{(n,m)} = \int_{-L}^{L}\rho(x)\psi_m(x)\psi_n(x)dx &amp;lt;/math&amp;gt; we have the linear system &amp;lt;math&amp;gt; K\textbf{a} = \lambda M\textbf{a} &amp;lt;/math&amp;gt; which returns the eigenvalues and eigenvectors of equation (3), with eigenvectors &amp;lt;math&amp;gt; \textbf{a} &amp;lt;/math&amp;gt; representing coefficient vectors of the fourier expansions of eigenfunctions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If we now construct &amp;lt;math&amp;gt; u(x,\omega) = \sum_{k=1}^{\infty} b_k u_k &amp;lt;/math&amp;gt; and substitute this into equation (2) we get&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \sum_{k=1}^{\infty} (\partial_x(h(x)\partial_x u_k) + \omega^{2}\rho u_k)b_k = f(x) &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \implies \sum_{k=1}^{\infty} (-\lambda_k\rho u_k + \omega^{2}\rho u_k)b_k = f(x) &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \implies \sum_{k=1}^{\infty} (\omega^{2}-\lambda_k) b_k \rho u_k = f(x) \quad (5) &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
And defining the RHS of equation (5) as &amp;lt;math&amp;gt; f(x) &amp;lt;/math&amp;gt;, a known function, we can retrieve the coefficients &amp;lt;math&amp;gt; b_k &amp;lt;/math&amp;gt; by integrating against &amp;lt;math&amp;gt; u_k &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; b_k = \frac{\int_{-L}^{L}\,f u_k\,dx}{(\omega^{2}-\lambda_k) \int_{-L}^{L}\, \rho u_{k}^{2}\,dx} &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The coefficients &amp;lt;math&amp;gt; c_n &amp;lt;/math&amp;gt; of the fourier expansion of u are just &amp;lt;math&amp;gt; \sum_{k=1}^{\infty}a_{n,k}b_{k} &amp;lt;/math&amp;gt; with &amp;lt;math&amp;gt; a_{n.k} &amp;lt;/math&amp;gt; being the &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;th coefficient of the &amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt;th eigenfunction of the Sturm-Liouville problem.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So &amp;lt;math&amp;gt; \zeta(x,\omega)=\frac{(b-a)}{2L}x + \frac{b+a}{2}+\sum_{n=1}^{\infty}c_{n} \sin\left(\frac{n\pi}{2}\left(\frac{x}{L} + 1\right)\right) &amp;lt;/math&amp;gt; with &amp;lt;math&amp;gt; \zeta |_{-L}=a \quad \zeta |_{L}=b &amp;lt;/math&amp;gt; and, given &amp;lt;math&amp;gt; a &amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt; b &amp;lt;/math&amp;gt; explicitly differentiating &amp;lt;math&amp;gt; \zeta &amp;lt;/math&amp;gt; gives &amp;lt;math&amp;gt; \partial_x \zeta |_{-L} &amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt; \partial_x \zeta |_L &amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We choose a basis of the solution space to be &amp;lt;math&amp;gt;\{\zeta_1,\,\zeta_2\}&amp;lt;/math&amp;gt;, where &amp;lt;math&amp;gt; \zeta_1 &amp;lt;/math&amp;gt; is the solution to the BVP(a=1,b=0) and &amp;lt;math&amp;gt; \zeta_1 &amp;lt;/math&amp;gt; is the solution to the BVP(a=0,b=1).&lt;br /&gt;
&lt;br /&gt;
The aim here is to construct a matrix &#039;&#039;&#039;S&#039;&#039;&#039; such that, given &amp;lt;math&amp;gt; a &amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt; b &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; S \begin{pmatrix} \zeta |_{-L} \\ \zeta |_L \end{pmatrix}=\begin{pmatrix} \partial_x \zeta |_{-L} \\ \partial_x \zeta |_L \end{pmatrix}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Taking &amp;lt;math&amp;gt; a=1,\,b=0 &amp;lt;/math&amp;gt;  to give &amp;lt;math&amp;gt; \zeta_1 &amp;lt;/math&amp;gt; shows that the first column of &#039;&#039;&#039;S&#039;&#039;&#039; must be &amp;lt;math&amp;gt; \begin{pmatrix} \partial_x \zeta_1 |_{-L} \\ \partial_x \zeta_1 |_L \end{pmatrix} &amp;lt;/math&amp;gt; and likewise taking &amp;lt;math&amp;gt; a=0,\,b=1 &amp;lt;/math&amp;gt; to give &amp;lt;math&amp;gt; \zeta_2 &amp;lt;/math&amp;gt; shows the second column must be &amp;lt;math&amp;gt; \begin{pmatrix} \partial_x \zeta_2 |_{-L} \\ \partial_x \zeta_2 |_L \end{pmatrix} &amp;lt;/math&amp;gt;. So &#039;&#039;&#039;S&#039;&#039;&#039; is given by&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; \begin{pmatrix}  \partial_x \zeta_1 |_{-L}  \, \partial_x \zeta_2 |_{-L} \\ \partial_x \zeta_1 |_L \, \partial_x \zeta_2 |_L \end{pmatrix} &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now for the area of constant depth on the left hand side there is a potential of the form &amp;lt;math&amp;gt; e^{i\omega x} &amp;lt;/math&amp;gt; which, creates  reflected and transmitted potentials from the variable depth area of the form &amp;lt;math&amp;gt; Re^{-i\omega x} &amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt; Te^{i\omega x} &amp;lt;/math&amp;gt; respectively where the magnitudes of &amp;lt;math&amp;gt; R &amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt; T &amp;lt;/math&amp;gt; are unknown.  We can calculate that the boundary conditions for &amp;lt;math&amp;gt; \zeta &amp;lt;/math&amp;gt; must be&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; \zeta |_{-L} = e^{-i\omega L}+Re^{i\omega L}, \quad \zeta |_L = Te^{i\omega L}, \quad \partial_x \zeta |_{-L} = i\omega e^{-i\omega L}-i\omega Re^{i\omega L}, \quad \partial_x \zeta |_L = i\omega Te^{i\omega L} &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; \begin{pmatrix}  i\omega e^{-i\omega L}-i\omega Re^{i\omega L} \\ i\omega Te^{i\omega L} \end{pmatrix} = S\begin{pmatrix}  e^{-i\omega L}+Re^{i\omega L} \\ Te^{i\omega L} \end{pmatrix} &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Knowing &#039;&#039;&#039;S&#039;&#039;&#039; these boundary conditions can be solved for &amp;lt;math&amp;gt; R&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;T&amp;lt;/math&amp;gt;, which in turn gives actual numerical boundary conditions to the original problem(&amp;lt;math&amp;gt;a=e^{-i\omega L}+Re^{i\omega L} and b=Te^{i\omega L}&amp;lt;/math&amp;gt;). Taking a linear combination of the solutions already calculated (&amp;lt;math&amp;gt; a\zeta_1(x,\omega) + b\zeta_2(x,\omega) &amp;lt;/math&amp;gt;) will provide the solution for these new boundary conditions. This solution, along with the potentials outside this region gives a generalised eigenfunction potential for the whole real axis which we denote as &amp;lt;math&amp;gt; \zeta_+(x,\omega)&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Independent generalised eigenfunctons can be found by considering the potential &amp;lt;math&amp;gt; e^{-i\omega x} &amp;lt;/math&amp;gt; on the right hand region of constant depth. The corresponding reflected and transmitted potentials from the variable depth area are of the form &amp;lt;math&amp;gt; Re^{i\omega x} &amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt; Te^{-i\omega x} &amp;lt;/math&amp;gt; respectively.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If a waveform &amp;lt;math&amp;gt; f(x) &amp;lt;/math&amp;gt; is travelling in from &amp;lt;math&amp;gt; -\infty &amp;lt;/math&amp;gt; Taking the fourier transform gives&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; \hat{f}(\omega)=\int_{-\infty}^{\infty}\,f(x)e^{2\pi i \omega} \,dx &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and then inverting &amp;lt;math&amp;gt; \hat{f}(\omega) \zeta(x) &amp;lt;/math&amp;gt; with respect to &amp;lt;math&amp;gt; t &amp;lt;/math&amp;gt; gives&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;  f(x,t) = \int_{-\infty}^{\infty}\,\hat{f}(\omega) \zeta(x) e^{-2\pi i \omega t} \,d\omega &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
which is the time dependent solution for the wave form.&lt;br /&gt;
&lt;br /&gt;
[[Category:Shallow Depth]]&lt;/div&gt;</summary>
		<author><name>Sean Curry</name></author>
	</entry>
	<entry>
		<id>https://www.wikiwaves.org/index.php?title=Variable_Depth_Shallow_Water_Wave_Equation&amp;diff=8618</id>
		<title>Variable Depth Shallow Water Wave Equation</title>
		<link rel="alternate" type="text/html" href="https://www.wikiwaves.org/index.php?title=Variable_Depth_Shallow_Water_Wave_Equation&amp;diff=8618"/>
		<updated>2009-02-17T21:27:48Z</updated>

		<summary type="html">&lt;p&gt;Sean Curry: /* Solution using Separation of Variables */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction ==&lt;br /&gt;
&lt;br /&gt;
We consider here the problem of waves reflected by a region of variable depth in&lt;br /&gt;
an otherwise uniform depth region assuming the equations of [[:Category:Shallow Depth|Shallow Depth]].&lt;br /&gt;
&lt;br /&gt;
== Equations ==&lt;br /&gt;
&lt;br /&gt;
We begin with the shallow depth equation&lt;br /&gt;
{{shallow depth one dimension}} &lt;br /&gt;
&lt;br /&gt;
== Waves in a finite basin ==&lt;br /&gt;
&lt;br /&gt;
We consider the problem of waves in a finite basin &amp;lt;math&amp;gt;-L&amp;lt;x&amp;lt;L&amp;lt;/math&amp;gt;. At the edge of the basin the boundary conditions are&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\left.\partial_x \zeta\right|_{x=-L} = \left.\partial_x \zeta\right|_{x=L} =0&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
We solve the equations by expanding in the modes for the basin which satisfy&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\partial_x \left(h(x) \partial_x \zeta_n \right) = -\lambda_n \rho(x) \zeta_n ,&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
normalised so that &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{-L}^L \rho\zeta_n \zeta_m = \delta_{mn}.&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
The solution is then given by&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\zeta(x,t) = \sum_{n=0}^{\infty} \left(\int_{-L}^L \rho(x)\zeta_n(x^\prime) \zeta_0 (x^\prime) dx^\prime \right) \zeta_n(x) \cos(\sqrt{\lambda_n} t )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
+ \sum_{n=1} ^{\infty} \left(\int_{-L}^L \rho(x)\zeta_n(x^\prime) \partial_t\zeta_0 (x^\prime) dx^\prime \right) \zeta_n(x) \frac{\sin(\sqrt{\lambda_n} t )}{\sqrt{\lambda_n}}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
where we have assumed that &amp;lt;math&amp;gt;\lambda_0 = 0&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Calculation of &amp;lt;math&amp;gt;\zeta_n&amp;lt;/math&amp;gt; ===&lt;br /&gt;
&lt;br /&gt;
We can calculate the eigenfunctions &amp;lt;math&amp;gt;\zeta_n&amp;lt;/math&amp;gt; by an expansion in the modes for the case of uniform depth.&lt;br /&gt;
We use the Rayleigh-Ritz method. The eigenfunctions are local minimums of &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;J[\zeta] = \int_{-L}^L \frac{1}{2}\left\{ h(x)\left(\partial_x \zeta\right)^2 - \lambda \rho(x) \zeta^2 \right\}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
subject to the boundary conditions that the normal derivative vanishes (where &amp;lt;math&amp;gt;\lambda&amp;lt;/math&amp;gt; is the eigenvalue).&lt;br /&gt;
&lt;br /&gt;
We expand the displacement in the eigenfunctions for constant depth &amp;lt;math&amp;gt;h=1&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\zeta = \sum_{n=0}^{N} a_n \psi_n(x)&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\psi_n = \frac{1}{\sqrt{L}} \cos( n \pi (\frac{1}{2L}x + \frac{1}{2})),\,\,n\ne 1&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\psi_0 = \frac{1}{\sqrt{2L}},\,&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and substitute this expansion into the variational equation we obtain&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
J[\vec{a}] = \int_{-L}^L \frac{1}{2}\left\{ h(x)\left( \sum_{n=0}^{N} a_n \partial_x \psi_n(x)\right)^2 - \lambda \rho(x) \left(\sum_{n=0}^{N} a_n \psi_n(x)\right)^2 \right\}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{dJ}{da_m} = \int_{-L}^L \frac{1}{2}\left\{ h(x)2\partial_x \psi_m(x)\left( \sum_{n=0}^{N} a_n \partial_x \psi_n(x)\right) - \lambda \rho(x)2\psi_m(x)\left(\sum_{n=0}^{N} a_n \psi_n(x)\right) \right\} = 0&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{-L}^L \left\{ h(x)\partial_x \psi_m(x)\left( \sum_{n=0}^{N} a_n \partial_x \psi_n(x)\right) \right\} = \int_{-L}^L \left\{ \lambda \rho(x)\psi_m(x)\left(\sum_{n=0}^{N} a_n \psi_n(x)\right) \right\}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\sum_{n=0}^{N} a_n \int_{-L}^L \left\{ h(x)\partial_x \psi_n(x)\partial_x \psi_m(x)\right\} = \lambda \sum_{n=0}^{N} a_n \int_{-L}^L \left\{ \rho(x)\psi_n(x)\psi_m(x) \right\}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
this equation can be rewritten using matrices as&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\mathbf{K} \vec{a} = \lambda\mathbf{M} \vec{a}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where the elements of the matrices &#039;&#039;&#039;K&#039;&#039;&#039; and &#039;&#039;&#039;M&#039;&#039;&#039; are&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\mathbf{K}_{mn} = \int_{-L}^L \left\{ \left(\partial_x \psi_m h(x) \partial_x \psi_n\right) \right\}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\mathbf{M}_{mn} = \int_{-L}^L \left\{\rho(x)\psi_n(x)\psi_m(x)\right\}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Matlab code ===&lt;br /&gt;
&#039;&#039;&#039;Example of the method of numerical integration; using a weighting matrix to implement Simpson&#039;s Rule:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
x = linspace(-4,4,500).&#039;;&lt;br /&gt;
&lt;br /&gt;
f = exp(-10*(x.^2));&lt;br /&gt;
&lt;br /&gt;
g = sin(x);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
h = x(2)-x(1);&lt;br /&gt;
&lt;br /&gt;
simp = 2*h/3*ones(1,length(x));&lt;br /&gt;
&lt;br /&gt;
simp(2:2:length(x)-1) = 4*h/3;&lt;br /&gt;
&lt;br /&gt;
simp(1) = h/3;&lt;br /&gt;
&lt;br /&gt;
simp(end) = h/3;&lt;br /&gt;
&lt;br /&gt;
simp = diag(simp);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
%The integral of f(x)^2 from (by Simpson&#039;s Rule) -4 to 4 is:&lt;br /&gt;
&lt;br /&gt;
int1 = transpose(f)*simp*f;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
%The integral of f(x)*g(x) from -4 to 4 is:&lt;br /&gt;
&lt;br /&gt;
int2 = transpose(f)*simp*g;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Multiple integrals can be executed in one expression:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
%NUMERICALLY CALCULATING FOURIER COEFICIENTS&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
%Make a row vector of x values&lt;br /&gt;
&lt;br /&gt;
x = linspace(-pi,pi,200);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
%Define a row vector of the values of the function to be fitted by a Fourier sine series&lt;br /&gt;
&lt;br /&gt;
f = 5*x.^3 - 3*x;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
%Simpson&#039;s Rule weighting matrix:&lt;br /&gt;
&lt;br /&gt;
h = x(2)-x(1);&lt;br /&gt;
simp = 2*h/3*ones(1,length(x));&lt;br /&gt;
simp(2:2:length(x)-1) = 4*h/3;&lt;br /&gt;
simp(1) = h/3;&lt;br /&gt;
simp(end) = h/3;&lt;br /&gt;
simp = diag(simp);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
%Create a matrix M with the fourier functions, x increasing along the rows, n increasing down the columns&lt;br /&gt;
&lt;br /&gt;
M = zeros(round(length(x)/2),length(x));&lt;br /&gt;
&lt;br /&gt;
for n = 1:length(M(:,1))&lt;br /&gt;
&lt;br /&gt;
    M(n,1:length(x)) = sin(n*x)/sqrt(pi);&lt;br /&gt;
&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
%Calculate the column vector containing the coefficients of the sine series  &lt;br /&gt;
&lt;br /&gt;
fourier_coefficients = M*simp*transpose(f);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
%Calculate a row vector of the fitting function evaluated at the values of x&lt;br /&gt;
&lt;br /&gt;
fourier_sine_fit = transpose(fourier_coefficients)*M;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
%Plot to check&lt;br /&gt;
&lt;br /&gt;
plot(x,f,x,fourier_sine_fit)&lt;br /&gt;
&lt;br /&gt;
== Waves in an infinite basin ==&lt;br /&gt;
&lt;br /&gt;
We assume that the density &amp;lt;math&amp;gt;\rho&amp;lt;/math&amp;gt; and the depth &amp;lt;math&amp;gt;h&amp;lt;/math&amp;gt; are constant and equal to one outside the region &amp;lt;math&amp;gt;-L&amp;lt;x&amp;lt;L&amp;lt;/math&amp;gt;. &lt;br /&gt;
We can therefore write the wave as&lt;br /&gt;
&lt;br /&gt;
== Solution using Separation of Variables ==&lt;br /&gt;
&lt;br /&gt;
Taking a separable solution  gives the eigenvalue problem&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\partial_x \left( h(x) \partial_x\zeta \right) = -\omega^{2}\rho(x)\zeta \quad (1)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Given boundary conditions &amp;lt;math&amp;gt;\zeta \mid_{-L} = a&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\zeta \mid_L = b&amp;lt;/math&amp;gt; we can take &amp;lt;math&amp;gt; \zeta = \zeta_p + u &amp;lt;/math&amp;gt; With &amp;lt;math&amp;gt; \zeta_p = \frac{(b-a)}{2L}x + \frac{b+a}{2} &amp;lt;/math&amp;gt; satisfying the boundary conditions and &amp;lt;math&amp;gt; u  &amp;lt;/math&amp;gt;  satisfying &amp;lt;math&amp;gt; u |_{-L} = u |_L = 0&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Substituting this form into (1) gives&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; \partial_x(h(x)\partial_x \zeta_p)+\partial_x(h(x)\partial_xu) = -\omega^{2}\left(\zeta_p+u\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
Or, on rearranging&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; \partial_x(h(x)\partial_xu)+\omega^{2}u = -\partial_x(h(x)\partial_x \zeta_p)-\omega^{2}\zeta_p = f(x)\quad (2)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
so &amp;lt;center&amp;gt;&amp;lt;math&amp;gt; f(x) = -\frac{(b-a)}{2L}\partial_xh(x) - \omega^2 \left(\frac{(b-a)}{2L}x + \frac{b+a}{2}\right) &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
Now consider the homogenous Sturm-Liouville problem for u&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; \partial_x(h(x)\partial_xu)+\lambda u = 0\quad u|_0=u|_1=0 \quad (3)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
By Sturm-Liouville theory this has an infinite set of eigenvalues &amp;lt;math&amp;gt; \lambda_k &amp;lt;/math&amp;gt; with corresponding eigenfunctions &amp;lt;math&amp;gt; u_k &amp;lt;/math&amp;gt;.  Also since &amp;lt;math&amp;gt; u_k|_0=u_k|_1=0\quad \forall k &amp;lt;/math&amp;gt; Each &amp;lt;math&amp;gt; u_k&amp;lt;/math&amp;gt; can be expanded as a fourier series in terms of sine functions.&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; u_k = \sum_{n=1}^{\infty} a_{n,k} \psi_n&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\psi_n = \sin\left(\frac{n\pi}{2}\left(\frac{x}{L} + 1\right)\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
Transforming (3) into the equivalent variational problem gives&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; J[u] = \int_{-L}^{L}\,hu&#039;^{2}-\lambda \rho u^{2} \, dx \quad (4) &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
Substituting the fourier expansion for &amp;lt;math&amp;gt;u_k&amp;lt;/math&amp;gt; into (4):&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; J = \int_{-L}^{L}\,h\left(\sum_{n=1}^{\infty} a_{n} \psi_n&#039;\right)^{2}-\lambda \rho \left(\sum_{n=1}^{\infty} a_{n} \psi_n\right)^{2} \, dx \quad (4) &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
Since &amp;lt;math&amp;gt;u_k&amp;lt;/math&amp;gt; minimises J, we require &amp;lt;math&amp;gt; \frac{\partial J}{\partial a_{n}}=0 \quad \forall n &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; \frac{\partial J}{\partial a_{m}}=\int_{-L}^{L}\left\{2h\psi_m&#039;\sum_{n=1}^{\infty} a_{n}\psi_n&#039;-2\lambda\rho \psi_m \sum_{n=1}^{\infty} a_{n} \psi_n\right\}dx=0&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; \implies \int_{-L}^{L}2h\psi_m&#039;\sum_{n=1}^{\infty} a_{n}\psi_n&#039;dx= \int_{-L}^{L}2\lambda\rho \psi_m \sum_{n=1}^{\infty} a_{n} \psi_ndx&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \implies \sum_{n=1}^{\infty}a_{n}\int_{-L}^{L}h\psi_m&#039;\psi_n&#039;dx= \lambda\sum_{n=1}^{\infty}a_{n}\int_{-L}^{L}\rho \psi_m \psi_ndx&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
By defining a vector &amp;lt;math&amp;gt; \textbf{a} = \left(a_{n}\right)&amp;lt;/math&amp;gt; and matrices &amp;lt;math&amp;gt;K_{(n,m)} = \int_{-L}^{L}h(x)\psi_m&#039;(x)\psi_n&#039;(x)dx &amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;M_{(n,m)} = \int_{-L}^{L}\rho(x)\psi_m(x)\psi_n(x)dx &amp;lt;/math&amp;gt; we have the linear system &amp;lt;math&amp;gt; K\textbf{a} = \lambda M\textbf{a} &amp;lt;/math&amp;gt; which returns the eigenvalues and eigenvectors of equation (3), with eigenvectors &amp;lt;math&amp;gt; \textbf{a} &amp;lt;/math&amp;gt; representing coefficient vectors of the fourier expansions of eigenfunctions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If we now construct &amp;lt;math&amp;gt; u = \sum_{k=1}^{\infty} b_k u_k &amp;lt;/math&amp;gt; and substitute this into equation (2) we get&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \sum_{k=1}^{\infty} (\partial_x(h(x)\partial_x u_k) + \omega^{2}\rho u_k)b_k = f(x) &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \implies \sum_{k=1}^{\infty} (-\lambda_k\rho u_k + \omega^{2}\rho u_k)b_k = f(x) &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \implies \sum_{k=1}^{\infty} (\omega^{2}-\lambda_k) b_k \rho u_k = f(x) \quad (5) &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
And defining the RHS of equation (5) as &amp;lt;math&amp;gt; f(x) &amp;lt;/math&amp;gt;, a known function, we can retrieve the coefficients &amp;lt;math&amp;gt; b_k &amp;lt;/math&amp;gt; by integrating against &amp;lt;math&amp;gt; u_k &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; b_k = \frac{\int_{0}^{1}\,f u_k\,dx}{(\omega^{2}-\lambda_k) \int_{0}^{1}\, \rho u_{k}^{2}\,dx} &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The coefficients &amp;lt;math&amp;gt; c_n &amp;lt;/math&amp;gt; of the fourier expansion of u are just &amp;lt;math&amp;gt; \sum_{k=1}^{\infty}a_{n,k}b_{k} &amp;lt;/math&amp;gt; with &amp;lt;math&amp;gt; a_{n.k} &amp;lt;/math&amp;gt; being the &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;th coefficient of the &amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt;th eigenfunction of the Sturm-Liouville problem.&lt;br /&gt;
&lt;br /&gt;
So &amp;lt;math&amp;gt; \zeta=\frac{(b-a)}{2L}x + \frac{b+a}{2}+\sum_{n=1}^{\infty}c_{n} \sin\left(\frac{n\pi}{2}\left(\frac{x}{L} + 1\right)\right) &amp;lt;/math&amp;gt; with &amp;lt;math&amp;gt; \zeta |_{-L}=a \quad \zeta |_{L}=b &amp;lt;/math&amp;gt; and, given &amp;lt;math&amp;gt; a &amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt; b &amp;lt;/math&amp;gt; explicitly differentiating &amp;lt;math&amp;gt; \zeta &amp;lt;/math&amp;gt; gives &amp;lt;math&amp;gt; \partial_x \zeta |_{-L} &amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt; \partial_x \zeta |_L &amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The aim here is to construct a matrix &amp;lt;math&amp;gt; S &amp;lt;/math&amp;gt; such that, given &amp;lt;math&amp;gt; a &amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt; b &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; S \begin{pmatrix} \zeta |_{-L} \\ \zeta |_L \end{pmatrix}=\begin{pmatrix} \partial_x \zeta |_{-L} \\ \partial_x \zeta |_L \end{pmatrix}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Taking &amp;lt;math&amp;gt; a=1,\,b=0 &amp;lt;/math&amp;gt;  to give &amp;lt;math&amp;gt; \zeta_1 &amp;lt;/math&amp;gt; shows that the first column of &amp;lt;math&amp;gt; S &amp;lt;/math&amp;gt; must be &amp;lt;math&amp;gt; \begin{pmatrix} \partial_x \zeta_1 |_{-L} \\ \partial_x \zeta_1 |_L \end{pmatrix} &amp;lt;/math&amp;gt; and likewise taking &amp;lt;math&amp;gt; a=0,\,b=1 &amp;lt;/math&amp;gt; to give &amp;lt;math&amp;gt; \zeta_2 &amp;lt;/math&amp;gt; shows the second column must be &amp;lt;math&amp;gt; \begin{pmatrix} \partial_x \zeta_2 |_{-L} \\ \partial_x \zeta_2 |_L \end{pmatrix} &amp;lt;/math&amp;gt;. So &amp;lt;math&amp;gt;S&amp;lt;/math&amp;gt; is given by&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; \begin{pmatrix}  \partial_x \zeta_1 |_{-L}  \, \partial_x \zeta_2 |_{-L} \\ \partial_x \zeta_1 |_L \, \partial_x \zeta_2 |_L \end{pmatrix} &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now for the areas of constant depth there is a potential of the form &amp;lt;math&amp;gt; e^{i\omega x} &amp;lt;/math&amp;gt; which, creates  reflected and transmitted potentials from the variable depth area  of the form &amp;lt;math&amp;gt; Re^{i\omega x} &amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt; Te^{i\omega x} &amp;lt;/math&amp;gt; respectively where the magnitudes of &amp;lt;math&amp;gt; R &amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt; T &amp;lt;/math&amp;gt; are unknown.  We can calculate that the boundary conditions for &amp;lt;math&amp;gt; \zeta &amp;lt;/math&amp;gt; must be&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; \zeta |_{-L} = e^{-i\omega L}+Re^{i\omega L}, \quad \zeta |_L = Te^{i\omega L}, \quad \partial_x \zeta |_{-L} = i\omega e^{-i\omega L}-i\omega Re^{i\omega L}, \quad \partial_x \zeta |_L = i\omega Te^{i\omega L} &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Knowing &amp;lt;math&amp;gt; S &amp;lt;/math&amp;gt; these boundary conditions can be solved for &amp;lt;math&amp;gt; R&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;T&amp;lt;/math&amp;gt;, which in turn gives actual numerical boundary conditions  to the original problem. Taking a linear combination of the solutions already calculated (&amp;lt;math&amp;gt; \zeta_1 &amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt; \zeta_2 &amp;lt;/math&amp;gt;) will provide the solution for these new boundary conditions. This solution, along with the potentials outside this region gives a potential for the whole real axis.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If a waveform &amp;lt;math&amp;gt; f(x) &amp;lt;/math&amp;gt; is travelling in from &amp;lt;math&amp;gt; -\infty &amp;lt;/math&amp;gt; Taking the fourier transform gives&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; \hat{f}(\omega)=\int_{-\infty}^{\infty}\,f(x)e^{2\pi i \omega} \,dx &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and then inverting &amp;lt;math&amp;gt; \hat{f}(\omega) \zeta(x) &amp;lt;/math&amp;gt; with respect to &amp;lt;math&amp;gt; t &amp;lt;/math&amp;gt; gives&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;  f(x,t) = \int_{-\infty}^{\infty}\,\hat{f}(\omega) \zeta(x) e^{-2\pi i \omega t} \,d\omega &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
which is the time dependent solution for the wave form.&lt;br /&gt;
&lt;br /&gt;
[[Category:Shallow Depth]]&lt;/div&gt;</summary>
		<author><name>Sean Curry</name></author>
	</entry>
	<entry>
		<id>https://www.wikiwaves.org/index.php?title=Variable_Depth_Shallow_Water_Wave_Equation&amp;diff=8617</id>
		<title>Variable Depth Shallow Water Wave Equation</title>
		<link rel="alternate" type="text/html" href="https://www.wikiwaves.org/index.php?title=Variable_Depth_Shallow_Water_Wave_Equation&amp;diff=8617"/>
		<updated>2009-02-16T23:28:12Z</updated>

		<summary type="html">&lt;p&gt;Sean Curry: /* Solution using Separation of Variables */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction ==&lt;br /&gt;
&lt;br /&gt;
We consider here the problem of waves reflected by a region of variable depth in&lt;br /&gt;
an otherwise uniform depth region assuming the equations of [[:Category:Shallow Depth|Shallow Depth]].&lt;br /&gt;
&lt;br /&gt;
== Equations ==&lt;br /&gt;
&lt;br /&gt;
We begin with the shallow depth equation&lt;br /&gt;
{{shallow depth one dimension}} &lt;br /&gt;
&lt;br /&gt;
== Waves in a finite basin ==&lt;br /&gt;
&lt;br /&gt;
We consider the problem of waves in a finite basin &amp;lt;math&amp;gt;-L&amp;lt;x&amp;lt;L&amp;lt;/math&amp;gt;. At the edge of the basin the boundary conditions are&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\left.\partial_x \zeta\right|_{x=-L} = \left.\partial_x \zeta\right|_{x=L} =0&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
We solve the equations by expanding in the modes for the basin which satisfy&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\partial_x \left(h(x) \partial_x \zeta_n \right) = -\lambda_n \rho(x) \zeta_n ,&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
normalised so that &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{-L}^L \rho\zeta_n \zeta_m = \delta_{mn}.&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
The solution is then given by&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\zeta(x,t) = \sum_{n=0}^{\infty} \left(\int_{-L}^L \rho(x)\zeta_n(x^\prime) \zeta_0 (x^\prime) dx^\prime \right) \zeta_n(x) \cos(\sqrt{\lambda_n} t )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
+ \sum_{n=1} ^{\infty} \left(\int_{-L}^L \rho(x)\zeta_n(x^\prime) \partial_t\zeta_0 (x^\prime) dx^\prime \right) \zeta_n(x) \frac{\sin(\sqrt{\lambda_n} t )}{\sqrt{\lambda_n}}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
where we have assumed that &amp;lt;math&amp;gt;\lambda_0 = 0&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Calculation of &amp;lt;math&amp;gt;\zeta_n&amp;lt;/math&amp;gt; ===&lt;br /&gt;
&lt;br /&gt;
We can calculate the eigenfunctions &amp;lt;math&amp;gt;\zeta_n&amp;lt;/math&amp;gt; by an expansion in the modes for the case of uniform depth.&lt;br /&gt;
We use the Rayleigh-Ritz method. The eigenfunctions are local minimums of &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;J[\zeta] = \int_{-L}^L \frac{1}{2}\left\{ h(x)\left(\partial_x \zeta\right)^2 - \lambda \rho(x) \zeta^2 \right\}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
subject to the boundary conditions that the normal derivative vanishes (where &amp;lt;math&amp;gt;\lambda&amp;lt;/math&amp;gt; is the eigenvalue).&lt;br /&gt;
&lt;br /&gt;
We expand the displacement in the eigenfunctions for constant depth &amp;lt;math&amp;gt;h=1&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\zeta = \sum_{n=0}^{N} a_n \psi_n(x)&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\psi_n = \frac{1}{\sqrt{L}} \cos( n \pi (\frac{1}{2L}x + \frac{1}{2})),\,\,n\ne 1&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\psi_0 = \frac{1}{\sqrt{2L}},\,&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and substitute this expansion into the variational equation we obtain&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
J[\vec{a}] = \int_{-L}^L \frac{1}{2}\left\{ h(x)\left( \sum_{n=0}^{N} a_n \partial_x \psi_n(x)\right)^2 - \lambda \rho(x) \left(\sum_{n=0}^{N} a_n \psi_n(x)\right)^2 \right\}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{dJ}{da_m} = \int_{-L}^L \frac{1}{2}\left\{ h(x)2\partial_x \psi_m(x)\left( \sum_{n=0}^{N} a_n \partial_x \psi_n(x)\right) - \lambda \rho(x)2\psi_m(x)\left(\sum_{n=0}^{N} a_n \psi_n(x)\right) \right\} = 0&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{-L}^L \left\{ h(x)\partial_x \psi_m(x)\left( \sum_{n=0}^{N} a_n \partial_x \psi_n(x)\right) \right\} = \int_{-L}^L \left\{ \lambda \rho(x)\psi_m(x)\left(\sum_{n=0}^{N} a_n \psi_n(x)\right) \right\}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\sum_{n=0}^{N} a_n \int_{-L}^L \left\{ h(x)\partial_x \psi_n(x)\partial_x \psi_m(x)\right\} = \lambda \sum_{n=0}^{N} a_n \int_{-L}^L \left\{ \rho(x)\psi_n(x)\psi_m(x) \right\}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
this equation can be rewritten using matrices as&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\mathbf{K} \vec{a} = \lambda\mathbf{M} \vec{a}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where the elements of the matrices &#039;&#039;&#039;K&#039;&#039;&#039; and &#039;&#039;&#039;M&#039;&#039;&#039; are&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\mathbf{K}_{mn} = \int_{-L}^L \left\{ \left(\partial_x \psi_m h(x) \partial_x \psi_n\right) \right\}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\mathbf{M}_{mn} = \int_{-L}^L \left\{\rho(x)\psi_n(x)\psi_m(x)\right\}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Matlab code ===&lt;br /&gt;
&#039;&#039;&#039;Example of the method of numerical integration; using a weighting matrix to implement Simpson&#039;s Rule:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
x = linspace(-4,4,500).&#039;;&lt;br /&gt;
&lt;br /&gt;
f = exp(-10*(x.^2));&lt;br /&gt;
&lt;br /&gt;
g = sin(x);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
h = x(2)-x(1);&lt;br /&gt;
&lt;br /&gt;
simp = 2*h/3*ones(1,length(x));&lt;br /&gt;
&lt;br /&gt;
simp(2:2:length(x)-1) = 4*h/3;&lt;br /&gt;
&lt;br /&gt;
simp(1) = h/3;&lt;br /&gt;
&lt;br /&gt;
simp(end) = h/3;&lt;br /&gt;
&lt;br /&gt;
simp = diag(simp);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
%The integral of f(x)^2 from (by Simpson&#039;s Rule) -4 to 4 is:&lt;br /&gt;
&lt;br /&gt;
int1 = transpose(f)*simp*f;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
%The integral of f(x)*g(x) from -4 to 4 is:&lt;br /&gt;
&lt;br /&gt;
int2 = transpose(f)*simp*g;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Multiple integrals can be executed in one expression:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
%NUMERICALLY CALCULATING FOURIER COEFICIENTS&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
%Make a row vector of x values&lt;br /&gt;
&lt;br /&gt;
x = linspace(-pi,pi,200);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
%Define a row vector of the values of the function to be fitted by a Fourier sine series&lt;br /&gt;
&lt;br /&gt;
f = 5*x.^3 - 3*x;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
%Simpson&#039;s Rule weighting matrix:&lt;br /&gt;
&lt;br /&gt;
h = x(2)-x(1);&lt;br /&gt;
simp = 2*h/3*ones(1,length(x));&lt;br /&gt;
simp(2:2:length(x)-1) = 4*h/3;&lt;br /&gt;
simp(1) = h/3;&lt;br /&gt;
simp(end) = h/3;&lt;br /&gt;
simp = diag(simp);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
%Create a matrix M with the fourier functions, x increasing along the rows, n increasing down the columns&lt;br /&gt;
&lt;br /&gt;
M = zeros(round(length(x)/2),length(x));&lt;br /&gt;
&lt;br /&gt;
for n = 1:length(M(:,1))&lt;br /&gt;
&lt;br /&gt;
    M(n,1:length(x)) = sin(n*x)/sqrt(pi);&lt;br /&gt;
&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
%Calculate the column vector containing the coefficients of the sine series  &lt;br /&gt;
&lt;br /&gt;
fourier_coefficients = M*simp*transpose(f);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
%Calculate a row vector of the fitting function evaluated at the values of x&lt;br /&gt;
&lt;br /&gt;
fourier_sine_fit = transpose(fourier_coefficients)*M;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
%Plot to check&lt;br /&gt;
&lt;br /&gt;
plot(x,f,x,fourier_sine_fit)&lt;br /&gt;
&lt;br /&gt;
== Waves in an infinite basin ==&lt;br /&gt;
&lt;br /&gt;
We assume that the density &amp;lt;math&amp;gt;\rho&amp;lt;/math&amp;gt; and the depth &amp;lt;math&amp;gt;h&amp;lt;/math&amp;gt; are constant and equal to one outside the region &amp;lt;math&amp;gt;-L&amp;lt;x&amp;lt;L&amp;lt;/math&amp;gt;. &lt;br /&gt;
We can therefore write the wave as&lt;br /&gt;
&lt;br /&gt;
== Solution using Separation of Variables ==&lt;br /&gt;
&lt;br /&gt;
Taking a separable solution  gives the eigenvalue problem&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\partial_x \left( h(x) \partial_x\zeta \right) = -\kappa^{2}\rho(x)\zeta \quad (1)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Given boundary conditions &amp;lt;math&amp;gt;\zeta \mid_{-L} = a&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\zeta \mid_L = b&amp;lt;/math&amp;gt; we can take &amp;lt;math&amp;gt; \zeta = \zeta_p + u &amp;lt;/math&amp;gt; With &amp;lt;math&amp;gt; \zeta_p = \frac{(b-a)}{2L}x + \frac{b+a}{2} &amp;lt;/math&amp;gt; satisfying the boundary conditions and &amp;lt;math&amp;gt; u  &amp;lt;/math&amp;gt;  satisfying &amp;lt;math&amp;gt; u |_{-L} = u |_L = 0&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Substituting this form into (1) gives&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; \partial_x(h(x)\partial_x \zeta_p)+\partial_x(h(x)\partial_xu) = -\kappa^{2}\left(\zeta_p+u\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
Or, on rearranging&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; \partial_x(h(x)\partial_xu)+\kappa^{2}u = -\partial_x(h(x)\partial_x \zeta_p)-\kappa^{2}\zeta_p = f(x)\quad (2)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
so &amp;lt;center&amp;gt;&amp;lt;math&amp;gt; f(x) = -\frac{(b-a)}{2L}\partial_xh(x) - \kappa^2 \left(\frac{(b-a)}{2L}x + \frac{b+a}{2}\right) &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
Now consider the homogenous Sturm-Liouville problem for u&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; \partial_x(h(x)\partial_xu)+\lambda u = 0\quad u|_0=u|_1=0 \quad (3)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
By Sturm-Liouville theory this has an infinite set of eigenvalues &amp;lt;math&amp;gt; \lambda_k &amp;lt;/math&amp;gt; with corresponding eigenfunctions &amp;lt;math&amp;gt; u_k &amp;lt;/math&amp;gt;.  Also since &amp;lt;math&amp;gt; u_k|_0=u_k|_1=0\quad \forall k &amp;lt;/math&amp;gt; Each &amp;lt;math&amp;gt; u_k&amp;lt;/math&amp;gt; can be expanded as a fourier series in terms of sine functions.&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; u_k = \sum_{n=1}^{\infty} a_{n,k} \psi_n&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\psi_n = \sin\left(\frac{n\pi}{2}\left(\frac{x}{L} + 1\right)\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
Transforming (3) into the equivalent variational problem gives&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; J[u] = \int_{-L}^{L}\,hu&#039;^{2}-\lambda \rho u^{2} \, dx \quad (4) &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
Substituting the fourier expansion for &amp;lt;math&amp;gt;u_k&amp;lt;/math&amp;gt; into (4):&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; J = \int_{-L}^{L}\,h\left(\sum_{n=1}^{\infty} a_{n} \psi_n&#039;\right)^{2}-\lambda \rho \left(\sum_{n=1}^{\infty} a_{n} \psi_n\right)^{2} \, dx \quad (4) &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
Since &amp;lt;math&amp;gt;u_k&amp;lt;/math&amp;gt; minimises J, we require &amp;lt;math&amp;gt; \frac{\partial J}{\partial a_{n}}=0 \quad \forall n &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; \frac{\partial J}{\partial a_{m}}=\int_{-L}^{L}\left\{2h\psi_m&#039;\sum_{n=1}^{\infty} a_{n}\psi_n&#039;-2\lambda\rho \psi_m \sum_{n=1}^{\infty} a_{n} \psi_n\right\}dx=0&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; \implies \int_{-L}^{L}2h\psi_m&#039;\sum_{n=1}^{\infty} a_{n}\psi_n&#039;dx= \int_{-L}^{L}2\lambda\rho \psi_m \sum_{n=1}^{\infty} a_{n} \psi_ndx&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \implies \sum_{n=1}^{\infty}a_{n}\int_{-L}^{L}h\psi_m&#039;\psi_n&#039;dx= \lambda\sum_{n=1}^{\infty}a_{n}\int_{-L}^{L}\rho \psi_m \psi_ndx&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
By defining a vector &amp;lt;math&amp;gt; \textbf{a} = \left(a_{n}\right)&amp;lt;/math&amp;gt; and matrices &amp;lt;math&amp;gt;K_{(n,m)} = \int_{-L}^{L}h(x)\psi_m&#039;(x)\psi_n&#039;(x)dx &amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;M_{(n,m)} = \int_{-L}^{L}\rho(x)\psi_m(x)\psi_n(x)dx &amp;lt;/math&amp;gt; we have the linear system &amp;lt;math&amp;gt; K\textbf{a} = \lambda M\textbf{a} &amp;lt;/math&amp;gt; which returns the eigenvalues and eigenvectors of equation (3), with eigenvectors &amp;lt;math&amp;gt; \textbf{a} &amp;lt;/math&amp;gt; representing coefficient vectors of the fourier expansions of eigenfunctions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If we now construct &amp;lt;math&amp;gt; u = \sum_{k=1}^{\infty} b_k u_k &amp;lt;/math&amp;gt; and substitute this into equation (2) we get&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \sum_{k=1}^{\infty} (\partial_x(h(x)\partial_x u_k) + \kappa^{2}\rho u_k)b_k = f(x) &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \implies \sum_{k=1}^{\infty} (-\lambda_k\rho u_k + \kappa^{2}\rho u_k)b_k = f(x) &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \implies \sum_{k=1}^{\infty} (\kappa^{2}-\lambda_k) b_k \rho u_k = f(x) \quad (5) &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
And defining the RHS of equation (5) as &amp;lt;math&amp;gt; f(x) &amp;lt;/math&amp;gt;, a known function, we can retrieve the coefficients &amp;lt;math&amp;gt; b_k &amp;lt;/math&amp;gt; by integrating against &amp;lt;math&amp;gt; u_k &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; b_k = \frac{\int_{0}^{1}\,f u_k\,dx}{(\kappa^{2}-\lambda_k) \int_{0}^{1}\, \rho u_{k}^{2}\,dx} &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The coefficients &amp;lt;math&amp;gt; c_n &amp;lt;/math&amp;gt; of the fourier expansion of u are just &amp;lt;math&amp;gt; \sum_{k=1}^{\infty}a_{n,k}b_{k} &amp;lt;/math&amp;gt; with &amp;lt;math&amp;gt; a_{n.k} &amp;lt;/math&amp;gt; being the &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;th coefficient of the &amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt;th eigenfunction of the Sturm-Liouville problem.&lt;br /&gt;
&lt;br /&gt;
So &amp;lt;math&amp;gt; \zeta=\frac{(b-a)}{2L}x + \frac{b+a}{2}+\sum_{n=1}^{\infty}c_{n} \sin\left(\frac{n\pi}{2}\left(\frac{x}{L} + 1\right)\right) &amp;lt;/math&amp;gt; with &amp;lt;math&amp;gt; \zeta |_{-L}=a \quad \zeta |_{L}=b &amp;lt;/math&amp;gt; and, given &amp;lt;math&amp;gt; a &amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt; b &amp;lt;/math&amp;gt; explicitly differentiating &amp;lt;math&amp;gt; \zeta &amp;lt;/math&amp;gt; gives &amp;lt;math&amp;gt; \partial_x \zeta |_{-L} &amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt; \partial_x |zeta |_L &amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The aim here is to construct a matrix &amp;lt;math&amp;gt; S &amp;lt;/math&amp;gt; such that, given &amp;lt;math&amp;gt; a &amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt; b &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; S \begin{pmatrix} \zeta |_{-L} \\ \zeta |_L \end{pmatrix}=\begin{pmatrix} \partial_x \zeta |_{-L} \\ \partial_x \zeta |_L \end{pmatrix}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Taking &amp;lt;math&amp;gt; a=1,\,b=0 &amp;lt;/math&amp;gt;  to give &amp;lt;math&amp;gt; \zeta_1 &amp;lt;/math&amp;gt; shows that the first column of &amp;lt;math&amp;gt; S &amp;lt;/math&amp;gt; must be &amp;lt;math&amp;gt; \begin{pmatrix} \partial_x \zeta_1 |_{-L} \\ \partial_x \zeta_1 |_L \end{pmatrix} &amp;lt;/math&amp;gt; and likewise taking &amp;lt;math&amp;gt; a=0,\,b=1 &amp;lt;/math&amp;gt; to give &amp;lt;math&amp;gt; \zeta_2 &amp;lt;/math&amp;gt; shows the second column must be &amp;lt;math&amp;gt; \begin{pmatrix} \partial_x \zeta_2 |_{-L} \\ \partial_x \zeta_2 |_L \end{pmatrix} &amp;lt;/math&amp;gt;. So &amp;lt;math&amp;gt;S&amp;lt;/math&amp;gt; is given by&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; \begin{pmatrix}  \partial_x \zeta_1 |_{-L}  \, \partial_x \zeta_2 |_{-L} \\ \partial_x \zeta_1 |_L \, \partial_x \zeta_2 |_L \end{pmatrix} &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now for the areas of constant depth there is a potential of the form &amp;lt;math&amp;gt; e^{ikx} &amp;lt;/math&amp;gt; which, creates  reflected and transmitted potentials from the variable depth area  of the form &amp;lt;math&amp;gt; Re^{ikx} &amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt; Te^{ikx} &amp;lt;/math&amp;gt; respectively where the magnitudes of &amp;lt;math&amp;gt; R &amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt; T &amp;lt;/math&amp;gt; are unknown.  We can calculate that the boundary conditions for &amp;lt;math&amp;gt; \zeta &amp;lt;/math&amp;gt; must be&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; \zeta |_{-L} = e^{-ikL}+Re^{ikL}, \quad \zeta |_L = Te^{ikL}, \quad \partial_x \zeta |_{-L} = ike^{-ikL}-ikRe^{ikL}, \quad \partial_x \zeta |_L = ikTe^{ikL} &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Knowing &amp;lt;math&amp;gt; S &amp;lt;/math&amp;gt; these boundary conditions can be solved for &amp;lt;math&amp;gt; R&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;T&amp;lt;/math&amp;gt;, which in turn gives actual numerical boundary conditions  to the original problem. Taking a linear combination of the solutions already calculated (&amp;lt;math&amp;gt; \zeta_1 &amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt; \zeta_2 &amp;lt;/math&amp;gt;) will provide the solution for these new boundary conditions. This solution, along with the potentials outside this region gives a potential for the whole real axis.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If a waveform &amp;lt;math&amp;gt; f(x) &amp;lt;/math&amp;gt; is travelling in from &amp;lt;math&amp;gt; -\infty &amp;lt;/math&amp;gt; Taking the fourier transform gives&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; \hat{f}(k)=\int_{-\infty}^{\infty}\,f(x)e^{2\pi i k} \,dx &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and then inverting &amp;lt;math&amp;gt; \hat{f}(k) \zeta(x) &amp;lt;/math&amp;gt; with respect to &amp;lt;math&amp;gt; t &amp;lt;/math&amp;gt; gives&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;  f(x,t) = \int_{-\infty}^{\infty}\,\hat{f}(k) \zeta(x) e^{-2\pi i k t} \,dk &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
which is the time dependent solution for the wave form.&lt;br /&gt;
&lt;br /&gt;
[[Category:Shallow Depth]]&lt;/div&gt;</summary>
		<author><name>Sean Curry</name></author>
	</entry>
	<entry>
		<id>https://www.wikiwaves.org/index.php?title=Variable_Depth_Shallow_Water_Wave_Equation&amp;diff=8616</id>
		<title>Variable Depth Shallow Water Wave Equation</title>
		<link rel="alternate" type="text/html" href="https://www.wikiwaves.org/index.php?title=Variable_Depth_Shallow_Water_Wave_Equation&amp;diff=8616"/>
		<updated>2009-02-16T23:11:28Z</updated>

		<summary type="html">&lt;p&gt;Sean Curry: /* Solution using Separation of Variables */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction ==&lt;br /&gt;
&lt;br /&gt;
We consider here the problem of waves reflected by a region of variable depth in&lt;br /&gt;
an otherwise uniform depth region assuming the equations of [[:Category:Shallow Depth|Shallow Depth]].&lt;br /&gt;
&lt;br /&gt;
== Equations ==&lt;br /&gt;
&lt;br /&gt;
We begin with the shallow depth equation&lt;br /&gt;
{{shallow depth one dimension}} &lt;br /&gt;
&lt;br /&gt;
== Waves in a finite basin ==&lt;br /&gt;
&lt;br /&gt;
We consider the problem of waves in a finite basin &amp;lt;math&amp;gt;-L&amp;lt;x&amp;lt;L&amp;lt;/math&amp;gt;. At the edge of the basin the boundary conditions are&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\left.\partial_x \zeta\right|_{x=-L} = \left.\partial_x \zeta\right|_{x=L} =0&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
We solve the equations by expanding in the modes for the basin which satisfy&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\partial_x \left(h(x) \partial_x \zeta_n \right) = -\lambda_n \rho(x) \zeta_n ,&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
normalised so that &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{-L}^L \rho\zeta_n \zeta_m = \delta_{mn}.&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
The solution is then given by&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\zeta(x,t) = \sum_{n=0}^{\infty} \left(\int_{-L}^L \rho(x)\zeta_n(x^\prime) \zeta_0 (x^\prime) dx^\prime \right) \zeta_n(x) \cos(\sqrt{\lambda_n} t )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
+ \sum_{n=1} ^{\infty} \left(\int_{-L}^L \rho(x)\zeta_n(x^\prime) \partial_t\zeta_0 (x^\prime) dx^\prime \right) \zeta_n(x) \frac{\sin(\sqrt{\lambda_n} t )}{\sqrt{\lambda_n}}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
where we have assumed that &amp;lt;math&amp;gt;\lambda_0 = 0&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Calculation of &amp;lt;math&amp;gt;\zeta_n&amp;lt;/math&amp;gt; ===&lt;br /&gt;
&lt;br /&gt;
We can calculate the eigenfunctions &amp;lt;math&amp;gt;\zeta_n&amp;lt;/math&amp;gt; by an expansion in the modes for the case of uniform depth.&lt;br /&gt;
We use the Rayleigh-Ritz method. The eigenfunctions are local minimums of &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;J[\zeta] = \int_{-L}^L \frac{1}{2}\left\{ h(x)\left(\partial_x \zeta\right)^2 - \lambda \rho(x) \zeta^2 \right\}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
subject to the boundary conditions that the normal derivative vanishes (where &amp;lt;math&amp;gt;\lambda&amp;lt;/math&amp;gt; is the eigenvalue).&lt;br /&gt;
&lt;br /&gt;
We expand the displacement in the eigenfunctions for constant depth &amp;lt;math&amp;gt;h=1&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\zeta = \sum_{n=0}^{N} a_n \psi_n(x)&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\psi_n = \frac{1}{\sqrt{L}} \cos( n \pi (\frac{1}{2L}x + \frac{1}{2})),\,\,n\ne 1&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\psi_0 = \frac{1}{\sqrt{2L}},\,&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and substitute this expansion into the variational equation we obtain&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
J[\vec{a}] = \int_{-L}^L \frac{1}{2}\left\{ h(x)\left( \sum_{n=0}^{N} a_n \partial_x \psi_n(x)\right)^2 - \lambda \rho(x) \left(\sum_{n=0}^{N} a_n \psi_n(x)\right)^2 \right\}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{dJ}{da_m} = \int_{-L}^L \frac{1}{2}\left\{ h(x)2\partial_x \psi_m(x)\left( \sum_{n=0}^{N} a_n \partial_x \psi_n(x)\right) - \lambda \rho(x)2\psi_m(x)\left(\sum_{n=0}^{N} a_n \psi_n(x)\right) \right\} = 0&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{-L}^L \left\{ h(x)\partial_x \psi_m(x)\left( \sum_{n=0}^{N} a_n \partial_x \psi_n(x)\right) \right\} = \int_{-L}^L \left\{ \lambda \rho(x)\psi_m(x)\left(\sum_{n=0}^{N} a_n \psi_n(x)\right) \right\}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\sum_{n=0}^{N} a_n \int_{-L}^L \left\{ h(x)\partial_x \psi_n(x)\partial_x \psi_m(x)\right\} = \lambda \sum_{n=0}^{N} a_n \int_{-L}^L \left\{ \rho(x)\psi_n(x)\psi_m(x) \right\}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
this equation can be rewritten using matrices as&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\mathbf{K} \vec{a} = \lambda\mathbf{M} \vec{a}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where the elements of the matrices &#039;&#039;&#039;K&#039;&#039;&#039; and &#039;&#039;&#039;M&#039;&#039;&#039; are&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\mathbf{K}_{mn} = \int_{-L}^L \left\{ \left(\partial_x \psi_m h(x) \partial_x \psi_n\right) \right\}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\mathbf{M}_{mn} = \int_{-L}^L \left\{\rho(x)\psi_n(x)\psi_m(x)\right\}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Matlab code ===&lt;br /&gt;
&#039;&#039;&#039;Example of the method of numerical integration; using a weighting matrix to implement Simpson&#039;s Rule:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
x = linspace(-4,4,500).&#039;;&lt;br /&gt;
&lt;br /&gt;
f = exp(-10*(x.^2));&lt;br /&gt;
&lt;br /&gt;
g = sin(x);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
h = x(2)-x(1);&lt;br /&gt;
&lt;br /&gt;
simp = 2*h/3*ones(1,length(x));&lt;br /&gt;
&lt;br /&gt;
simp(2:2:length(x)-1) = 4*h/3;&lt;br /&gt;
&lt;br /&gt;
simp(1) = h/3;&lt;br /&gt;
&lt;br /&gt;
simp(end) = h/3;&lt;br /&gt;
&lt;br /&gt;
simp = diag(simp);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
%The integral of f(x)^2 from (by Simpson&#039;s Rule) -4 to 4 is:&lt;br /&gt;
&lt;br /&gt;
int1 = transpose(f)*simp*f;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
%The integral of f(x)*g(x) from -4 to 4 is:&lt;br /&gt;
&lt;br /&gt;
int2 = transpose(f)*simp*g;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Multiple integrals can be executed in one expression:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
%NUMERICALLY CALCULATING FOURIER COEFICIENTS&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
%Make a row vector of x values&lt;br /&gt;
&lt;br /&gt;
x = linspace(-pi,pi,200);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
%Define a row vector of the values of the function to be fitted by a Fourier sine series&lt;br /&gt;
&lt;br /&gt;
f = 5*x.^3 - 3*x;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
%Simpson&#039;s Rule weighting matrix:&lt;br /&gt;
&lt;br /&gt;
h = x(2)-x(1);&lt;br /&gt;
simp = 2*h/3*ones(1,length(x));&lt;br /&gt;
simp(2:2:length(x)-1) = 4*h/3;&lt;br /&gt;
simp(1) = h/3;&lt;br /&gt;
simp(end) = h/3;&lt;br /&gt;
simp = diag(simp);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
%Create a matrix M with the fourier functions, x increasing along the rows, n increasing down the columns&lt;br /&gt;
&lt;br /&gt;
M = zeros(round(length(x)/2),length(x));&lt;br /&gt;
&lt;br /&gt;
for n = 1:length(M(:,1))&lt;br /&gt;
&lt;br /&gt;
    M(n,1:length(x)) = sin(n*x)/sqrt(pi);&lt;br /&gt;
&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
%Calculate the column vector containing the coefficients of the sine series  &lt;br /&gt;
&lt;br /&gt;
fourier_coefficients = M*simp*transpose(f);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
%Calculate a row vector of the fitting function evaluated at the values of x&lt;br /&gt;
&lt;br /&gt;
fourier_sine_fit = transpose(fourier_coefficients)*M;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
%Plot to check&lt;br /&gt;
&lt;br /&gt;
plot(x,f,x,fourier_sine_fit)&lt;br /&gt;
&lt;br /&gt;
== Waves in an infinite basin ==&lt;br /&gt;
&lt;br /&gt;
We assume that the density &amp;lt;math&amp;gt;\rho&amp;lt;/math&amp;gt; and the depth &amp;lt;math&amp;gt;h&amp;lt;/math&amp;gt; are constant and equal to one outside the region &amp;lt;math&amp;gt;-L&amp;lt;x&amp;lt;L&amp;lt;/math&amp;gt;. &lt;br /&gt;
We can therefore write the wave as&lt;br /&gt;
&lt;br /&gt;
== Solution using Separation of Variables ==&lt;br /&gt;
&lt;br /&gt;
Taking a separable solution  gives the eigenvalue problem&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\partial_x \left( h(x) \partial_x\zeta \right) = -\kappa^{2}\rho(x)\zeta \quad (1)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Given boundary conditions &amp;lt;math&amp;gt;\zeta \mid_{-L} = a&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\zeta \mid_L = b&amp;lt;/math&amp;gt; we can take &amp;lt;math&amp;gt; \zeta = \zeta_p + u &amp;lt;/math&amp;gt; With &amp;lt;math&amp;gt; \zeta_p = \frac{(b-a)}{2L}x + \frac{b+a}{2} &amp;lt;/math&amp;gt; satisfying the boundary conditions and &amp;lt;math&amp;gt; u  &amp;lt;/math&amp;gt;  satisfying &amp;lt;math&amp;gt; u |_{-L} = u |_L = 0&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Substituting this form into (1) gives&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; \partial_x(h(x)\partial_x \zeta_p)+\partial_x(h(x)\partial_xu) = -\kappa^{2}\left(\zeta_p+u\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
Or, on rearranging&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; \partial_x(h(x)\partial_xu)+\kappa^{2}u = -\partial_x(h(x)\partial_x \zeta_p)-\kappa^{2}\zeta_p = f(x)\quad (2)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
so &amp;lt;center&amp;gt;&amp;lt;math&amp;gt; f(x) = -\frac{(b-a)}{2L}\partial_xh(x) - \kappa^2 \left(\frac{(b-a)}{2L}x + \frac{b+a}{2}\right) &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
Now consider the homogenous Sturm-Liouville problem for u&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; \partial_x(h(x)\partial_xu)+\lambda u = 0\quad u|_0=u|_1=0 \quad (3)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
By Sturm-Liouville theory this has an infinite set of eigenvalues &amp;lt;math&amp;gt; \lambda_k &amp;lt;/math&amp;gt; with corresponding eigenfunctions &amp;lt;math&amp;gt; u_k &amp;lt;/math&amp;gt;.  Also since &amp;lt;math&amp;gt; u_k|_0=u_k|_1=0\quad \forall k &amp;lt;/math&amp;gt; Each &amp;lt;math&amp;gt; u_k&amp;lt;/math&amp;gt; can be expanded as a fourier series in terms of sine functions.&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; u_k = \sum_{n=1}^{\infty} a_{n,k} \psi_n&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\psi_n = \sin\left(\frac{n\pi}{2}\left(\frac{x}{L} + 1\right)\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
Transforming (3) into the equivalent variational problem gives&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; J[u] = \int_{-L}^{L}\,hu&#039;^{2}-\lambda \rho u^{2} \, dx \quad (4) &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
Substituting the fourier expansion for &amp;lt;math&amp;gt;u_k&amp;lt;/math&amp;gt; into (4):&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; J = \int_{-L}^{L}\,h\left(\sum_{n=1}^{\infty} a_{n} \psi_n&#039;\right)^{2}-\lambda \rho \left(\sum_{n=1}^{\infty} a_{n} \psi_n\right)^{2} \, dx \quad (4) &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
Since &amp;lt;math&amp;gt;u_k&amp;lt;/math&amp;gt; minimises J, we require &amp;lt;math&amp;gt; \frac{\partial J}{\partial a_{n}}=0 \quad \forall n &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; \frac{\partial J}{\partial a_{m}}=\int_{-L}^{L}\left\{2h\psi_m&#039;\sum_{n=1}^{\infty} a_{n}\psi_n&#039;-2\lambda\rho \psi_m \sum_{n=1}^{\infty} a_{n} \psi_n\right\}dx=0&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; \implies \int_{-L}^{L}2h\psi_m&#039;\sum_{n=1}^{\infty} a_{n}\psi_n&#039;dx= \int_{-L}^{L}2\lambda\rho \psi_m \sum_{n=1}^{\infty} a_{n} \psi_ndx&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \implies \sum_{n=1}^{\infty}a_{n}\int_{-L}^{L}h\psi_m&#039;\psi_n&#039;dx= \lambda\sum_{n=1}^{\infty}a_{n}\int_{-L}^{L}\rho \psi_m \psi_ndx&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
By defining a vector &amp;lt;math&amp;gt; \textbf{a} = \left(a_{n}\right)&amp;lt;/math&amp;gt; and matrices &amp;lt;math&amp;gt;K_{(n,m)} = \int_{-L}^{L}h(x)\psi_m&#039;(x)\psi_n&#039;(x)dx &amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;M_{(n,m)} = \int_{-L}^{L}\rho(x)\psi_m(x)\psi_n(x)dx &amp;lt;/math&amp;gt; we have the linear system &amp;lt;math&amp;gt; K\textbf{a} = \lambda M\textbf{a} &amp;lt;/math&amp;gt; which returns the eigenvalues and eigenvectors of equation (3), with eigenvectors &amp;lt;math&amp;gt; \textbf{a} &amp;lt;/math&amp;gt; representing coefficient vectors of the fourier expansions of eigenfunctions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If we now construct &amp;lt;math&amp;gt; u = \sum_{k=1}^{\infty} b_k u_k &amp;lt;/math&amp;gt; and substitute this into equation (2) we get&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \sum_{k=1}^{\infty} (\partial_x(h(x)\partial_x u_k) + \kappa^{2}\rho u_k)b_k = f(x) &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \implies \sum_{k=1}^{\infty} (-\lambda_k\rho u_k + \kappa^{2}\rho u_k)b_k = f(x) &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \implies \sum_{k=1}^{\infty} (\kappa^{2}-\lambda_k) b_k \rho u_k = f(x) \quad (5) &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
And defining the RHS of equation (5) as &amp;lt;math&amp;gt; f(x) &amp;lt;/math&amp;gt;, a known function, we can retrieve the coefficients &amp;lt;math&amp;gt; b_k &amp;lt;/math&amp;gt; by integrating against &amp;lt;math&amp;gt; u_k &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; b_k = \frac{\int_{0}^{1}\,f u_k\,dx}{(\kappa^{2}-\lambda_k) \int_{0}^{1}\, \rho u_{k}^{2}\,dx} &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Also to find the coefficients &amp;lt;math&amp;gt; c_n &amp;lt;/math&amp;gt; of the fourier expansion of u are just &amp;lt;math&amp;gt; \sum_{k=1}^{\infty}a_{n,k}b_{k} &amp;lt;/math&amp;gt; with &amp;lt;math&amp;gt; a_{n.k} &amp;lt;/math&amp;gt; being the &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;th coefficient of the &amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt;th eigenfunction of the Sturm-Liouville problem.&lt;br /&gt;
&lt;br /&gt;
So &amp;lt;math&amp;gt; \zeta=(b-a)x+a+\sum_{n=1}^{\infty}c_{n} \sin(n\pi x) &amp;lt;/math&amp;gt; with &amp;lt;math&amp;gt; \zeta |_0=a \quad \zeta |_1=b &amp;lt;/math&amp;gt; and, given &amp;lt;math&amp;gt; a &amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt; b &amp;lt;/math&amp;gt; explicitly differentiating &amp;lt;math&amp;gt; \zeta &amp;lt;/math&amp;gt; gives &amp;lt;math&amp;gt; \partial_x \zeta |_0 &amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt; \partial_x |zeta |_1 &amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The aim here is to construct a matrix &amp;lt;math&amp;gt; S &amp;lt;/math&amp;gt; such that, given &amp;lt;math&amp;gt; a &amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt; b &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; S \begin{pmatrix} \zeta |_0 \\ \zeta |_1 \end{pmatrix}=\begin{pmatrix} \partial_x \zeta |_0 \\ \partial_x \zeta |_1 \end{pmatrix}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Taking &amp;lt;math&amp;gt; a=1,\,b=0 &amp;lt;/math&amp;gt;  to give &amp;lt;math&amp;gt; \zeta_1 &amp;lt;/math&amp;gt; shows that the first column of &amp;lt;math&amp;gt; S &amp;lt;/math&amp;gt; must be &amp;lt;math&amp;gt; \begin{pmatrix} \partial_x \zeta_1 |_0 \\ \partial_x \zeta_1 |_1 \end{pmatrix} &amp;lt;/math&amp;gt; and likewise taking &amp;lt;math&amp;gt; a=0,\,b=1 &amp;lt;/math&amp;gt; to give &amp;lt;math&amp;gt; \zeta_2 &amp;lt;/math&amp;gt; shows the second column must be &amp;lt;math&amp;gt; \begin{pmatrix} \partial_x \zeta_2 |_0 \\ \partial_x \zeta_2 |_1 \end{pmatrix} &amp;lt;/math&amp;gt;. So &amp;lt;math&amp;gt;S&amp;lt;/math&amp;gt; is given by&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; \begin{pmatrix}  \partial_x \zeta_1 |_0  \, \partial_x \zeta_2 |_0 \\ \partial_x \zeta_1 |_1 \, \partial_x \zeta_2 |_1 \end{pmatrix} &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now for the areas of constant depth there is a potential of the form &amp;lt;math&amp;gt; e^{ikx} &amp;lt;/math&amp;gt; which, creates  reflected and transmitted potentials from the variable depth area  of the form &amp;lt;math&amp;gt; Re^{ikx} &amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt; Te^{ikx} &amp;lt;/math&amp;gt; respectively where the magnitudes of &amp;lt;math&amp;gt; R &amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt; T &amp;lt;/math&amp;gt; are unknown.  We can calculate that the boundary conditions for &amp;lt;math&amp;gt; \zeta &amp;lt;/math&amp;gt; must be&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; \zeta |_0 = 1+R, \quad \zeta |_1 = Te^{ik}, \quad \partial_x \zeta |_0 = ik(1-R), \quad \partial_x \zeta |_1 = ikTe^{ik} &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Knowing &amp;lt;math&amp;gt; S &amp;lt;/math&amp;gt; these boundary conditions can be solved for &amp;lt;math&amp;gt; R&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;T&amp;lt;/math&amp;gt;, which in turn gives actual numerical boundary conditions  to the original problem. Taking a linear combination of the solutions already calculated (&amp;lt;math&amp;gt; \zeta_1 &amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt; \zeta_2 &amp;lt;/math&amp;gt;) will provide the solution for these new boundary conditions. This solution, along with the potentials outside this region gives a potential for the whole real axis.&lt;br /&gt;
&lt;br /&gt;
If a waveform &amp;lt;math&amp;gt; f(x) &amp;lt;/math&amp;gt; is travelling in from &amp;lt;math&amp;gt; -\infty &amp;lt;/math&amp;gt; Taking the fourier transform gives&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; \hat{f}(k)=\int_{-\infty}^{\infty}\,f(x)e^{2\pi i k} \,dx &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and then inverting &amp;lt;math&amp;gt; \hat{f}(k) \zeta(x) &amp;lt;/math&amp;gt; with respect to &amp;lt;math&amp;gt; t &amp;lt;/math&amp;gt; gives&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;  f(x,t) = \int_{-\infty}^{\infty}\,\hat{f}(k) \zeta(x) e^{-2\pi i k t} \,dk &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
which is the time dependent solution for the wave form.&lt;br /&gt;
&lt;br /&gt;
[[Category:Shallow Depth]]&lt;/div&gt;</summary>
		<author><name>Sean Curry</name></author>
	</entry>
	<entry>
		<id>https://www.wikiwaves.org/index.php?title=Variable_Depth_Shallow_Water_Wave_Equation&amp;diff=8615</id>
		<title>Variable Depth Shallow Water Wave Equation</title>
		<link rel="alternate" type="text/html" href="https://www.wikiwaves.org/index.php?title=Variable_Depth_Shallow_Water_Wave_Equation&amp;diff=8615"/>
		<updated>2009-02-16T22:48:45Z</updated>

		<summary type="html">&lt;p&gt;Sean Curry: /* Solution using Separation of Variables */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction ==&lt;br /&gt;
&lt;br /&gt;
We consider here the problem of waves reflected by a region of variable depth in&lt;br /&gt;
an otherwise uniform depth region assuming the equations of [[:Category:Shallow Depth|Shallow Depth]].&lt;br /&gt;
&lt;br /&gt;
== Equations ==&lt;br /&gt;
&lt;br /&gt;
We begin with the shallow depth equation&lt;br /&gt;
{{shallow depth one dimension}} &lt;br /&gt;
&lt;br /&gt;
== Waves in a finite basin ==&lt;br /&gt;
&lt;br /&gt;
We consider the problem of waves in a finite basin &amp;lt;math&amp;gt;-L&amp;lt;x&amp;lt;L&amp;lt;/math&amp;gt;. At the edge of the basin the boundary conditions are&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\left.\partial_x \zeta\right|_{x=-L} = \left.\partial_x \zeta\right|_{x=L} =0&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
We solve the equations by expanding in the modes for the basin which satisfy&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\partial_x \left(h(x) \partial_x \zeta_n \right) = -\lambda_n \rho(x) \zeta_n ,&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
normalised so that &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{-L}^L \rho\zeta_n \zeta_m = \delta_{mn}.&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
The solution is then given by&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\zeta(x,t) = \sum_{n=0}^{\infty} \left(\int_{-L}^L \rho(x)\zeta_n(x^\prime) \zeta_0 (x^\prime) dx^\prime \right) \zeta_n(x) \cos(\sqrt{\lambda_n} t )&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
+ \sum_{n=1} ^{\infty} \left(\int_{-L}^L \rho(x)\zeta_n(x^\prime) \partial_t\zeta_0 (x^\prime) dx^\prime \right) \zeta_n(x) \frac{\sin(\sqrt{\lambda_n} t )}{\sqrt{\lambda_n}}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
where we have assumed that &amp;lt;math&amp;gt;\lambda_0 = 0&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Calculation of &amp;lt;math&amp;gt;\zeta_n&amp;lt;/math&amp;gt; ===&lt;br /&gt;
&lt;br /&gt;
We can calculate the eigenfunctions &amp;lt;math&amp;gt;\zeta_n&amp;lt;/math&amp;gt; by an expansion in the modes for the case of uniform depth.&lt;br /&gt;
We use the Rayleigh-Ritz method. The eigenfunctions are local minimums of &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;J[\zeta] = \int_{-L}^L \frac{1}{2}\left\{ h(x)\left(\partial_x \zeta\right)^2 - \lambda \rho(x) \zeta^2 \right\}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
subject to the boundary conditions that the normal derivative vanishes (where &amp;lt;math&amp;gt;\lambda&amp;lt;/math&amp;gt; is the eigenvalue).&lt;br /&gt;
&lt;br /&gt;
We expand the displacement in the eigenfunctions for constant depth &amp;lt;math&amp;gt;h=1&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\zeta = \sum_{n=0}^{N} a_n \psi_n(x)&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\psi_n = \frac{1}{\sqrt{L}} \cos( n \pi (\frac{1}{2L}x + \frac{1}{2})),\,\,n\ne 1&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\psi_0 = \frac{1}{\sqrt{2L}},\,&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and substitute this expansion into the variational equation we obtain&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
J[\vec{a}] = \int_{-L}^L \frac{1}{2}\left\{ h(x)\left( \sum_{n=0}^{N} a_n \partial_x \psi_n(x)\right)^2 - \lambda \rho(x) \left(\sum_{n=0}^{N} a_n \psi_n(x)\right)^2 \right\}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{dJ}{da_m} = \int_{-L}^L \frac{1}{2}\left\{ h(x)2\partial_x \psi_m(x)\left( \sum_{n=0}^{N} a_n \partial_x \psi_n(x)\right) - \lambda \rho(x)2\psi_m(x)\left(\sum_{n=0}^{N} a_n \psi_n(x)\right) \right\} = 0&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\int_{-L}^L \left\{ h(x)\partial_x \psi_m(x)\left( \sum_{n=0}^{N} a_n \partial_x \psi_n(x)\right) \right\} = \int_{-L}^L \left\{ \lambda \rho(x)\psi_m(x)\left(\sum_{n=0}^{N} a_n \psi_n(x)\right) \right\}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\sum_{n=0}^{N} a_n \int_{-L}^L \left\{ h(x)\partial_x \psi_n(x)\partial_x \psi_m(x)\right\} = \lambda \sum_{n=0}^{N} a_n \int_{-L}^L \left\{ \rho(x)\psi_n(x)\psi_m(x) \right\}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
this equation can be rewritten using matrices as&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\mathbf{K} \vec{a} = \lambda\mathbf{M} \vec{a}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where the elements of the matrices &#039;&#039;&#039;K&#039;&#039;&#039; and &#039;&#039;&#039;M&#039;&#039;&#039; are&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\mathbf{K}_{mn} = \int_{-L}^L \left\{ \left(\partial_x \psi_m h(x) \partial_x \psi_n\right) \right\}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\mathbf{M}_{mn} = \int_{-L}^L \left\{\rho(x)\psi_n(x)\psi_m(x)\right\}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Matlab code ===&lt;br /&gt;
&#039;&#039;&#039;Example of the method of numerical integration; using a weighting matrix to implement Simpson&#039;s Rule:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
x = linspace(-4,4,500).&#039;;&lt;br /&gt;
&lt;br /&gt;
f = exp(-10*(x.^2));&lt;br /&gt;
&lt;br /&gt;
g = sin(x);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
h = x(2)-x(1);&lt;br /&gt;
&lt;br /&gt;
simp = 2*h/3*ones(1,length(x));&lt;br /&gt;
&lt;br /&gt;
simp(2:2:length(x)-1) = 4*h/3;&lt;br /&gt;
&lt;br /&gt;
simp(1) = h/3;&lt;br /&gt;
&lt;br /&gt;
simp(end) = h/3;&lt;br /&gt;
&lt;br /&gt;
simp = diag(simp);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
%The integral of f(x)^2 from (by Simpson&#039;s Rule) -4 to 4 is:&lt;br /&gt;
&lt;br /&gt;
int1 = transpose(f)*simp*f;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
%The integral of f(x)*g(x) from -4 to 4 is:&lt;br /&gt;
&lt;br /&gt;
int2 = transpose(f)*simp*g;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Multiple integrals can be executed in one expression:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
%NUMERICALLY CALCULATING FOURIER COEFICIENTS&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
%Make a row vector of x values&lt;br /&gt;
&lt;br /&gt;
x = linspace(-pi,pi,200);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
%Define a row vector of the values of the function to be fitted by a Fourier sine series&lt;br /&gt;
&lt;br /&gt;
f = 5*x.^3 - 3*x;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
%Simpson&#039;s Rule weighting matrix:&lt;br /&gt;
&lt;br /&gt;
h = x(2)-x(1);&lt;br /&gt;
simp = 2*h/3*ones(1,length(x));&lt;br /&gt;
simp(2:2:length(x)-1) = 4*h/3;&lt;br /&gt;
simp(1) = h/3;&lt;br /&gt;
simp(end) = h/3;&lt;br /&gt;
simp = diag(simp);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
%Create a matrix M with the fourier functions, x increasing along the rows, n increasing down the columns&lt;br /&gt;
&lt;br /&gt;
M = zeros(round(length(x)/2),length(x));&lt;br /&gt;
&lt;br /&gt;
for n = 1:length(M(:,1))&lt;br /&gt;
&lt;br /&gt;
    M(n,1:length(x)) = sin(n*x)/sqrt(pi);&lt;br /&gt;
&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
%Calculate the column vector containing the coefficients of the sine series  &lt;br /&gt;
&lt;br /&gt;
fourier_coefficients = M*simp*transpose(f);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
%Calculate a row vector of the fitting function evaluated at the values of x&lt;br /&gt;
&lt;br /&gt;
fourier_sine_fit = transpose(fourier_coefficients)*M;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
%Plot to check&lt;br /&gt;
&lt;br /&gt;
plot(x,f,x,fourier_sine_fit)&lt;br /&gt;
&lt;br /&gt;
== Waves in an infinite basin ==&lt;br /&gt;
&lt;br /&gt;
We assume that the density &amp;lt;math&amp;gt;\rho&amp;lt;/math&amp;gt; and the depth &amp;lt;math&amp;gt;h&amp;lt;/math&amp;gt; are constant and equal to one outside the region &amp;lt;math&amp;gt;-L&amp;lt;x&amp;lt;L&amp;lt;/math&amp;gt;. &lt;br /&gt;
We can therefore write the wave as&lt;br /&gt;
&lt;br /&gt;
== Solution using Separation of Variables ==&lt;br /&gt;
&lt;br /&gt;
Taking a separable solution  gives the eigenvalue problem&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\partial_x \left( h(x) \partial_x\zeta \right) = -\kappa^{2}\rho(x)\zeta \quad (1)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Given boundary conditions &amp;lt;math&amp;gt;\zeta \mid_{-L} = a&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\zeta \mid_L = b&amp;lt;/math&amp;gt; we can take &amp;lt;math&amp;gt; \zeta = \zeta_p + u &amp;lt;/math&amp;gt; With &amp;lt;math&amp;gt; \zeta_p = \frac{(b-a)}{2L}x + \frac{b+a}{2} &amp;lt;/math&amp;gt; satisfying the boundary conditions and &amp;lt;math&amp;gt; u  &amp;lt;/math&amp;gt;  satisfying &amp;lt;math&amp;gt; u |_{-L} = u |_L = 0&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Substituting this form into (1) gives&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; \partial_x(h(x)\partial_x \zeta_p)+\partial_x(h(x)\partial_xu) = -\kappa^{2}\left(\zeta_p+u\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
Or, on rearranging&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; \partial_x(h(x)\partial_xu)+\kappa^{2}u = -\partial_x(h(x)\partial_x \zeta_p)-\kappa^{2}\zeta_p = f(x)\quad (2)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
so &amp;lt;center&amp;gt;&amp;lt;math&amp;gt; f(x) = -\frac{(b-a)}{2L}\partial_xh(x) - \kappa^2 \left(\frac{(b-a)}{2L}x + \frac{b+a}{2}\right) &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
Now consider the homogenous Sturm-Liouville problem for u&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; \partial_x(h(x)\partial_xu)+\lambda u = 0\quad u|_0=u|_1=0 \quad (3)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
By Sturm-Liouville theory this has an infinite set of eigenvalues &amp;lt;math&amp;gt; \lambda_k &amp;lt;/math&amp;gt; with corresponding eigenfunctions &amp;lt;math&amp;gt; u_k &amp;lt;/math&amp;gt;.  Also since &amp;lt;math&amp;gt; u_k|_0=u_k|_1=0\quad \forall k &amp;lt;/math&amp;gt; Each &amp;lt;math&amp;gt; u_k&amp;lt;/math&amp;gt; can be expanded as a fourier series in terms of sine functions.&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; u_k = \sum_{n=1}^{\infty} a_{n,k} \psi_n&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\psi_n = \sin\left(\frac{n\pi}{2}\left(\frac{x}{L} + 1\right)\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
Transforming (3) into the equivalent variational problem gives&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; J[u] = \int_{-L}^{L}\,hu&#039;^{2}-\lambda \rho u^{2} \, dx \quad (4) &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
Substituting the fourier expansion for &amp;lt;math&amp;gt;u_k&amp;lt;/math&amp;gt; into (4):&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; J = \int_{-L}^{L}\,h\left(\sum_{n=1}^{\infty} a_{n} \psi_n&#039;\right)^{2}-\lambda \rho \left(\sum_{n=1}^{\infty} a_{n} \psi_n\right)^{2} \, dx \quad (4) &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
Since &amp;lt;math&amp;gt;u_k&amp;lt;/math&amp;gt; minimises J, we require &amp;lt;math&amp;gt; \frac{\partial J}{\partial a_{n}}=0 \quad \forall n &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; \frac{\partial J}{\partial a_{m}}=\int_{-L}^{L}\left\{2h\psi_m&#039;\sum_{n=1}^{\infty} a_{n}\psi_n&#039;-2\lambda\rho \psi_m \sum_{n=1}^{\infty} a_{n} \psi_n\right\}dx=0&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; \implies \int_{-L}^{L}2h\psi_m&#039;\sum_{n=1}^{\infty} a_{n}\psi_n&#039;dx= \int_{-L}^{L}2\lambda\rho \psi_m \sum_{n=1}^{\infty} a_{n} \psi_ndx&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \implies \sum_{n=1}^{\infty}a_{n}\int_{-L}^{L}h\psi_m&#039;\psi_n&#039;dx= \lambda\sum_{n=1}^{\infty}a_{n}\int_{-L}^{L}\rho \psi_m \psi_ndx&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
By defining a vector &amp;lt;math&amp;gt; \textbf{a} = \left(a_{n}\right)&amp;lt;/math&amp;gt; and matrices &amp;lt;math&amp;gt;K_{(n,m)} = \int_{-L}^{L}h(x)\psi_m&#039;(x)\psi_n&#039;(x)dx &amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;M_{(n,m)} = \int_{-L}^{L}\rho(x)\psi_m(x)\psi_n(x)dx &amp;lt;/math&amp;gt; we have the linear system &amp;lt;math&amp;gt; K\textbf{a} = \lambda M\textbf{a} &amp;lt;/math&amp;gt; which returns the eigenvalues and eigenvectors of equation (3), with eigenvectors &amp;lt;math&amp;gt; \textbf{a} &amp;lt;/math&amp;gt; representing coefficient vectors of the fourier expansions of eigenfunctions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If we now construct &amp;lt;math&amp;gt; u = \sum_{k=1}^{\infty} b_k u_k &amp;lt;/math&amp;gt; and substitute this into equation (2) we get&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; \sum_{k=1}^{\infty} (\kappa^{2}-\lambda_k) b_k u_k = -(b-a)\partial_xh(x)-\kappa^{2}\left((b-a)x+a\right) \quad (5) &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
And defining the RHS of equation (5) as &amp;lt;math&amp;gt; f(x) &amp;lt;/math&amp;gt;, a known function, we can retrieve the coefficients &amp;lt;math&amp;gt; b_k &amp;lt;/math&amp;gt; by integrating against &amp;lt;math&amp;gt; u_k &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; b_k = \frac{\int_{0}^{1}\,f u_k\,dx}{(\kappa^{2}-\lambda_k) \int_{0}^{1}\, u_{k}^{2}\,dx} &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Also to find the coefficients &amp;lt;math&amp;gt; c_n &amp;lt;/math&amp;gt; of the fourier expansion of u are just &amp;lt;math&amp;gt; \sum_{k=1}^{\infty}a_{n,k}b_{k} &amp;lt;/math&amp;gt; with &amp;lt;math&amp;gt; a_{n.k} &amp;lt;/math&amp;gt; being the &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;th coefficient of the &amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt;th eigenfunction of the Sturm-Liouville problem.&lt;br /&gt;
&lt;br /&gt;
So &amp;lt;math&amp;gt; \zeta=(b-a)x+a+\sum_{n=1}^{\infty}c_{n} \sin(n\pi x) &amp;lt;/math&amp;gt; with &amp;lt;math&amp;gt; \zeta |_0=a \quad \zeta |_1=b &amp;lt;/math&amp;gt; and, given &amp;lt;math&amp;gt; a &amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt; b &amp;lt;/math&amp;gt; explicitly differentiating &amp;lt;math&amp;gt; \zeta &amp;lt;/math&amp;gt; gives &amp;lt;math&amp;gt; \partial_x \zeta |_0 &amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt; \partial_x |zeta |_1 &amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The aim here is to construct a matrix &amp;lt;math&amp;gt; S &amp;lt;/math&amp;gt; such that, given &amp;lt;math&amp;gt; a &amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt; b &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; S \begin{pmatrix} \zeta |_0 \\ \zeta |_1 \end{pmatrix}=\begin{pmatrix} \partial_x \zeta |_0 \\ \partial_x \zeta |_1 \end{pmatrix}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Taking &amp;lt;math&amp;gt; a=1,\,b=0 &amp;lt;/math&amp;gt;  to give &amp;lt;math&amp;gt; \zeta_1 &amp;lt;/math&amp;gt; shows that the first column of &amp;lt;math&amp;gt; S &amp;lt;/math&amp;gt; must be &amp;lt;math&amp;gt; \begin{pmatrix} \partial_x \zeta_1 |_0 \\ \partial_x \zeta_1 |_1 \end{pmatrix} &amp;lt;/math&amp;gt; and likewise taking &amp;lt;math&amp;gt; a=0,\,b=1 &amp;lt;/math&amp;gt; to give &amp;lt;math&amp;gt; \zeta_2 &amp;lt;/math&amp;gt; shows the second column must be &amp;lt;math&amp;gt; \begin{pmatrix} \partial_x \zeta_2 |_0 \\ \partial_x \zeta_2 |_1 \end{pmatrix} &amp;lt;/math&amp;gt;. So &amp;lt;math&amp;gt;S&amp;lt;/math&amp;gt; is given by&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; \begin{pmatrix}  \partial_x \zeta_1 |_0  \, \partial_x \zeta_2 |_0 \\ \partial_x \zeta_1 |_1 \, \partial_x \zeta_2 |_1 \end{pmatrix} &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now for the areas of constant depth there is a potential of the form &amp;lt;math&amp;gt; e^{ikx} &amp;lt;/math&amp;gt; which, creates  reflected and transmitted potentials from the variable depth area  of the form &amp;lt;math&amp;gt; Re^{ikx} &amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt; Te^{ikx} &amp;lt;/math&amp;gt; respectively where the magnitudes of &amp;lt;math&amp;gt; R &amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt; T &amp;lt;/math&amp;gt; are unknown.  We can calculate that the boundary conditions for &amp;lt;math&amp;gt; \zeta &amp;lt;/math&amp;gt; must be&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; \zeta |_0 = 1+R, \quad \zeta |_1 = Te^{ik}, \quad \partial_x \zeta |_0 = ik(1-R), \quad \partial_x \zeta |_1 = ikTe^{ik} &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Knowing &amp;lt;math&amp;gt; S &amp;lt;/math&amp;gt; these boundary conditions can be solved for &amp;lt;math&amp;gt; R&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;T&amp;lt;/math&amp;gt;, which in turn gives actual numerical boundary conditions  to the original problem. Taking a linear combination of the solutions already calculated (&amp;lt;math&amp;gt; \zeta_1 &amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt; \zeta_2 &amp;lt;/math&amp;gt;) will provide the solution for these new boundary conditions. This solution, along with the potentials outside this region gives a potential for the whole real axis.&lt;br /&gt;
&lt;br /&gt;
If a waveform &amp;lt;math&amp;gt; f(x) &amp;lt;/math&amp;gt; is travelling in from &amp;lt;math&amp;gt; -\infty &amp;lt;/math&amp;gt; Taking the fourier transform gives&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; \hat{f}(k)=\int_{-\infty}^{\infty}\,f(x)e^{2\pi i k} \,dx &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and then inverting &amp;lt;math&amp;gt; \hat{f}(k) \zeta(x) &amp;lt;/math&amp;gt; with respect to &amp;lt;math&amp;gt; t &amp;lt;/math&amp;gt; gives&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;  f(x,t) = \int_{-\infty}^{\infty}\,\hat{f}(k) \zeta(x) e^{-2\pi i k t} \,dk &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
which is the time dependent solution for the wave form.&lt;br /&gt;
&lt;br /&gt;
[[Category:Shallow Depth]]&lt;/div&gt;</summary>
		<author><name>Sean Curry</name></author>
	</entry>
</feed>