# Mathematical Methods of Physics/General theory

A Green's function for a linear operator $L$ over $\mathbb {R}$ is a real function $g$ such that $Lx=y$ is solved by $x=g*y$; where $*$ symbolizes convolution. Hence, $L(g*y)=y$ so that $g*y$ is a right inverse of $L$ and $g*$ is a particular solution to the inhomogeneous equation.
For example: $({\tfrac {d}{dt}})^{2}x+x=f$ is solved by $x=\sin *f=\int _{0}^{t}sin(t-\tau )f(\tau )d\tau$
Such a function might not exist and when it does might not be unique. The conditions under which this method is valid require careful examination. However, the theory of Green's functions obtains a more complete and regular form over the theory of distributions, or generalized functions.
As will be seen, the theory of Green's functions provides an extremely elegant procedure of solving differential equations. We wish to present here this method on a rigorous foundation.

## The Dirac delta-function

The Dirac delta-function $\delta (x)$is not a function as it is ordinarily defined. However, we write it as if it were a function, keeping in mind the scope of the definition.
For any function $f:\mathbb {R} \to \mathbb {R}$,we define
$\int _{-\infty }^{\infty }f(x)\delta (x)dx=f(0)$ but for every $\epsilon >0$,
$\int _{-\infty }^{-\epsilon }f(x)\delta (x)dx=\int _{\epsilon }^{\infty }f(x)\delta (x)dx=0$
It follows that $\int _{-\infty }^{\infty }\delta (x)dx=1$
These conditions seem to be satisfied by a "function" $\delta (x)$ which has value zero whenever $x\neq 0$, but has "infinite" value at $x=0$

### Approximations

There are a few ways to approximate the delta function in terms of sequences ordinary functions. We give two examples

#### The Boxcar function

The boxcar function $B_{n}:\mathbb {R} \to \{0,n\}$ such that
$B_{n}(x)={\begin{cases}0&|x|>{\tfrac {1}{2n}}\\n&|x|\leq {\tfrac {1}{2n}}\end{cases}}$
We can see that the sequence $\left\langle B_{n}\right\rangle$ represents an approximation to the delta function.

#### The bell curve

The delta function can also be approximated by the ubiquitous Gaussian.
We write $G_{n}(x)={\frac {n}{\sqrt {\pi }}}\mathrm {e} ^{-x^{2}n^{2}}$

## Green's function

Consider an equation of the type ${\mathcal {L}}u(x)=F(x)$...(1), where ${\mathcal {L}}$ is a differential operator. The functions $u,F$ may in general be functions of several independents, but for sake of clarity, we will write them here as if they were real valued. In most cases of interest, this equation can be written in the form
$a(x){\frac {d^{2}u}{dx^{2}}}+b(x){\frac {du}{dx}}+c(x)=F(x)$ to be solved for $u(x)$ in some closed set $A$, with $a(x)$ being non-zero over $A$
Now, it so happens, that in problems of physics, it is much more convenient to solve the equation ${\mathcal {L}}u(x)=f(x)$, when $f$ is the delta function $f(x)=\delta (x-x_{0})$.
In this case, the solution of the operator ${\mathcal {L}}$ is called the Green's function $G(x,x_{0})$. That is,
${\mathcal {L}}G(x,x_{0})=\delta (x-x_{0})$
Now, by the definition of the delta-function, we have that $F(x)=\int _{-\infty }^{\infty }F(x')\delta (x'-x)dx$, where $F(x')$ act as "weights" to the delta function.
Hence, we have, ${\mathcal {L}}u(x)=\int _{-\infty }^{\infty }F(x'){\mathcal {L}}G(x,x')dx$
Note here that${\mathcal {L}}$ is an operator that depends on $x$ but not $x'$. Thus,
${\mathcal {L}}u(x)={\mathcal {L}}\int _{-\infty }^{\infty }F(x')G(x,x')dx$. We can view this as analogous to the inversion of ${\mathcal {L}}$ and hence, we write
$u_{p}(x)=\int _{-\infty }^{\infty }F(x')G(x,x')dx$
The subscript $p$ denotes that we have found a particular solution among the many possible. For example, consider any harmonic solution ${\mathcal {L}}u_{h}(x)=0$.
If we add $u'(x)=u_{h}(x)+u_{p}(x)$, we see that $u'(x)$ is still a solution of (1). Thus, we have a class of functions satisfying (1).

### Boundary value problems

Problems of physics are often presented as the operator equation ${\mathcal {L}}u(x)=F(x)$ to be solved for $u$ on a closed set $A$, together with the boundary condition that $u(x_{b})=u_{b}(x_{b})$ for all $x_{b}\in \partial A$ ($\partial A$ is the boundary of $A$).
$u_{b}(x_{b})$ is a given function satisfying ${\mathcal {L}}u_{b}(x)=0$ that describes the behaviour of the solution at the boundary of the region of concern.
Thus if a problem is stated as
${\mathcal {L}}u(x)=F(x)$ with
$u(x_{b})=u_{b}(x_{b})$
to be solved for $u(x)$ over a closed set $A$,
The solution can be given as $u_{S}(x)=u_{p}(x)+u_{b}(x)=\int _{-\infty }^{\infty }F(x')G(x,x')dx+u_{b}(x)$

## Green's functions from eigenfunctions

Consider the eigenvalues $\lambda _{n}$ and the corresponding eigenfunctions $\phi _{n}$ of the differential operator ${\mathcal {L}}$, that is ${\mathcal {L}}\phi _{n}=\lambda _{n}\phi _{n}$
Without loss of generality, we assume that these eigenfunctions are orthogonal. Further, we assume that they form a basis.
Thus, we can write $u(x)=\sum _{i=1}^{n}\alpha _{i}\phi _{i}$ and $F(x)=\sum _{i=1}^{n}\beta _{i}\phi _{i}$.
Now ${\mathcal {L}}u(x)={\mathcal {L}}\sum _{i=1}^{n}\alpha _{i}\phi _{i}=\sum _{i=1}^{n}\alpha _{i}{\mathcal {L}}\phi _{i}=\sum _{i=1}^{n}\alpha _{i}\lambda _{i}\phi _{i}=\sum _{i=1}^{n}\beta _{i}\phi _{i}=F(x)$ and hence, $\alpha _{i}={\frac {\beta _{i}}{\lambda _{i}}}$
by definition of orthogonality, $\beta _{n}=\int _{-\infty }^{\infty }F(x)\phi _{n}(x)dx=(F(x)\cdot \phi _{n}(x))$
Now, $u(x)=\sum _{i=1}^{n}\alpha _{i}\phi _{i}(x)=\sum _{i=1}^{n}{\frac {\beta _{i}}{\lambda _{i}}}\phi _{i}(x)=\sum _{i=1}^{n}{\frac {(F(x')\cdot \phi _{i}(x'))}{\lambda _{i}}}\phi _{i}$
and hence, we can write the Green's function as $G(x,x')=\sum _{i=1}^{n}{\frac {\phi _{i}(x)\phi _{i}(x')}{\lambda _{i}}}$