Skip to Content
DocsExamplesLaTeX examples

LaTeX examples

Inline formulas

The complex amplitude of a wave is E(x,y)=A(x,y)eiϕ(x,y)E(x,y) = A(x,y) e^{i\phi(x,y)}, where AA is the amplitude and ϕ\phi the phase.

Sets: x∈Rx \in \R, z∈Cz \in \C, n∈Nn \in \N, k∈Zk \in \Z.

Display formulas

The Fourier transform:

F{f(x)}=∫−∞∞f(x)e−2πiξx dx\mathcal{F}\{f(x)\} = \int_{-\infty}^{\infty} f(x) e^{-2\pi i \xi x} \, dx

Fresnel diffraction:

U(x′,y′)=eikziλz∬U(x,y)exp⁡[ik2z((x′−x)2+(y′−y)2)]dx dyU(x', y') = \frac{e^{ikz}}{i\lambda z} \iint U(x, y) \exp\left[\frac{ik}{2z}\left((x'-x)^2 + (y'-y)^2\right)\right] dx \, dy

Equations

The Helmholtz equation:

∇2U+k2U=0\nabla^2 U + k^2 U = 0

where k=2πλk = \frac{2\pi}{\lambda} is the wavenumber.

Matrices

The ray-transfer matrix of a thin lens:

(10−1f1)\begin{pmatrix} 1 & 0 \\ -\frac{1}{f} & 1 \end{pmatrix}

Alignment

Eout=t(x,y)⋅Ein=∣t∣eiϕt⋅Aineiϕin=∣t∣Ainei(ϕt+ϕin)\begin{aligned} E_{out} &= t(x,y) \cdot E_{in} \\ &= |t| e^{i\phi_t} \cdot A_{in} e^{i\phi_{in}} \\ &= |t| A_{in} e^{i(\phi_t + \phi_{in})} \end{aligned}

Fractions and subscripts

The angular spectrum transfer function:

H(fx,fy)=exp⁡(ikz1−λ2fx2−λ2fy2)H(f_x, f_y) = \exp\left(ikz\sqrt{1 - \lambda^2 f_x^2 - \lambda^2 f_y^2}\right)

The point spread function:

I(x,y)=∣F−1{H⋅F{U0}}∣2I(x,y) = \left|\mathcal{F}^{-1}\{H \cdot \mathcal{F}\{U_0\}\}\right|^2