# Partial Differential Equations


### Handwaving

$$\pd{^2 f(x,y)}{x^2} = \lambda f(x,y)$$

Let $A=\frac{\partial^2}{\partial t^2}$. It turns out that a lot of finite dimensional results, like the spectral theorem, in which a Hermitian operator has an eigenbasis, apply here too, which is a bit mind-bending. So if an operator like $A$ were Hermitian (for the approprite inner product on function spaces), that would be good…

## Separation of variables

You have some PDE, and are solving for some function $V$. Say it’s a function of two arguments, although the approach generalizes. The idea is to try to find a separable solution of the form V(x,y)=X(x)Y(y). This turns out to be much easier, but of course, there’s no reason why a solution of this form should necessarily be able to satisfy your boundary conditions. What you can do, however, in some circumstances, is to consider a solution consisting of an infinite sum of separable solutions. If you’re lucky, the separable solutions will form an orthogonal and complete set (roughly a basis, but I’m hedging because this is infinite dimensional) and then you can satisfy arbitrary boundary conditions.

Solving the wave equation is a typical example, as below.

### Wave Equation Solutions

$$\frac{\partial^2 f(x,t)}{\partial x^2} = \frac{1}{v^2} \frac{\partial^2 f(x,t)}{\partial t^2}$$

Note that any function of the form $f(x)=g(x+vt)$, for an arbitrary $g$, is a solution. This fact explains the choice of the term $\frac{1}{v^2}$, because then $v$ is the velocity of the solution, in the sense that a shift in time is multiplied by the velocity $v$ to yield a shift in space. (Typically, solutions to this PDE are thought of as waves, e.g. sound waves, light waves, etc).

We can consider separable solutions, of the form $f(x,t)=g(x)\cdot h(t)$. Then:

$$\frac{\partial^2 g(x)h(t)}{\partial x^2} = h(t)\frac{\partial^2 g(x)}{\partial x^2} = \frac{1}{v^2} \frac{\partial^2 g(x)h(t)}{\partial t^2} = g(x) \frac{1}{v^2} \frac{\partial^2 h(t)}{\partial t^2}$$

$$\Rightarrow \frac{\partial^2 g(x)}{\partial x^2}\frac{1}{g(x)} = \frac{1}{h(t)v^2} \frac{\partial^2 h(t)}{\partial t^2}$$

Since $x$ and $t$ are independent, both sides must be constant, in order to satisfy this equality. Accordingly:

$$\frac{\partial^2 g(x)}{\partial x^2} = Kg(x)$$

$$\frac{\partial^2 h(t)}{\partial t^2} = Kv^2h(t)$$

These eigenequations have solutions:

$$g(x) = ae^{\sqrt{K}t} + be^{-\sqrt{K}t}$$

$$h(t) = ce^{\sqrt{K}vt} + de^{-\sqrt{K}vt}$$

We might have some further constraints that help us solve the problem. For instance, a common boundary condition is that $\forall t: f(0,t)=0=f(L,t)$, where $L$ is some designated point, for instance the end of a string might be one physical interpretation.

Then we can solve exactly, as follows:

$$0 = g(0) = a+b \Rightarrow a = -b$$

$$0 = g(L) = ae^{\sqrt{K}L} + be^{-\sqrt{L}L} \Rightarrow (a=-b=b=0) \vee (e^{\sqrt{K}L}=0=e^{-\sqrt{K}L})$$

Assuming the latter disjunct, since the former leads to a trivial solution, we consider the latter. In general, if $e^{x}=e^{-x}$, then $x=ni\pi$, for $n\in \Z$ (convince yourself this is true by thinking about complex exponentials as rotations in the complex plane). So $\sqrt{K}=i\frac{n\pi}{L}$.

### Spherical Laplacian

For problems involving spheres and Laplace’s equation, you often end up with a separation of variables which leads to solutions consisting of sums of Legendre polynomials. For reasons probably to do with Sturm-Liouville theory (which I understand to be the study of certain Hermitian operators on function spaces), these are complete and orthogonal, just like the corresponding sine functions you get from separation of variables in Cartesian coordinates, so can satisfy fairly arbitrary boundary conditions. More concretely, assume (just for simplicity) that $V$ is only a function of $r,\theta$. Then, taking the Laplacian in spherical coordinates:

$$\frac{1}{r^2}\pd{}{r}(r^2\pd{V}{r}) + \frac{1}{\sin\theta}\pd{}{\theta}(\sin\theta\pd{V}{\theta}) = 0$$

Assuming a separation of variables, we get:

$$\frac{1}{r^2}\pd{}{r}(r^2\pd{R}{r}) + \frac{1}{\sin\theta}\pd{}{\theta}(\sin\theta\pd{\Theta}{\theta}) = 0$$

Then both terms must be constant. If the constant takes the form $l(l+1)$, then $R( r)= Ar^l+\frac{B}{r^{l+1}}$ and $\Theta(\theta) = P_l(\cos\theta)$, where $P_l$ are the Legendre polynomials.

Since the Legendre polynomials are a “basis”, we can write a fairly arbitrary solution as:

$$V(r,\theta) = \sum_{l=0}^{\infty} (A_lr^l+\frac{B_l}{r^{l+1}})P_l(\cos\theta)$$

### Diffusion Equation Solutions

For any choice of $t$, we first express $x\mapsto \rho(x,t)$ in the basis of complex exponentials (i.e. we express it as the inverse Fourier transform of its Fourier transform):

$$\rho_t(x) = \int_{\R} \mathcal{F}\rho_t(k)e^{i2\pi xk}dk$$

Then $\frac{\partial \rho}{\partial t} = \int_{\R} \frac{d}{dt}(\mathcal{F}\rho_t)(k)e^{i2\pi xk}dk$

And $\frac{\partial^2 \rho}{\partial x^2} = \int_{\R} \mathcal{F}\rho_t(k)e^{i2\pi xk}\cdot(-4\pi^2k^2)dk$

So, since $\frac{\partial \rho}{\partial t} = a\frac{\partial^2 \rho}{\partial x^2}$, it follows that

$$\int_{\R} \frac{d}{dt}(\mathcal{F}\rho_t)(k)e^{i2\pi xk}dk = \int_{\R} \mathcal{F}\rho_t(k)e^{i2\pi xk}\cdot(-a4\pi^2k^2)dk$$

Comparing terms, we have that:

$$\frac{d}{dt}(\mathcal{F}\rho_t)(k) = -a4\pi^2k^2\mathcal{F}\rho_t(k)$$

which implies that $(\mathcal{F}\rho_t)(k)=(\mathcal{F}\rho_0)(k)e^{-a4\pi^2k^2t}$

That gives us:

$$\rho_t(x) = \int_{\R} (\mathcal{F}\rho_0)(k)e^{-a4\pi^2k^2t}e^{i2\pi xk}dk$$

This tells us that as $t$ increases, only values of $k$ close to $0$ will matter, which means that $\rho_t(x)$ will be increasingly uniform. As you’d expect for diffusion.

### Helmholtz theorem

Any vector field $F$ which is differentiable and goes to $0$ quicker than $\frac{1}{r}$ admits a decomposition:

$$F(r ) = \frac{1}{4\pi} \left(\nabla\times\left( \int \frac{\nabla_{r’}\times F(r’)}{||r-r’||} \right) - \nabla\left( \int\frac{\nabla_{r’}\cdot F(r’)}{||r-r’||} \right) \right)$$