Getting Started⚓︎
General Viewpoint⚓︎
Overall Task
: Solve linear system of equations
In the discussion afterwards, we assume that \(\boldsymbol{A}\) is invertible, \(\boldsymbol{A}\in \mathbb{R} ^{n\times n}\) but \(n\) is very large.
In scientific computing, there are three important issues:
- Efficiency
- Accuracy
- Stability: a concept measuring how sensitive the algorithm to perturbation
Introductory Examples⚓︎
Here are two examples for linear systems in scientific computing.
ODE⚓︎
Consider:
where \(f(x)\) is given. We want to know \(u\) using the computer.
The important step is to do the discretization.
We split the interval \([0,1]\) into: \(0=x_0<x_1<\cdots <x_{i-1}<x_i<x_{i+1}<\cdots <x_N=1\), where \(x_{i+1}-x_i\triangleq h=\frac{1}{N}, \left( i=0,1,\cdots ,N-1 \right)\). We just need to know the solutions on these points for \(u(x_i)\).
Let \(u\left( x_i \right) \triangleq u_i\).
Using the finite difference method, we know that:
if \(\varepsilon\) is small. We take \(\varepsilon=h\), then \(u\prime\left( x \right) \approx \frac{u\left( x+h \right) -u\left( x \right)}{h}\). We can get \(\frac{u\left( x_i+h \right) -u\left( x_i \right)}{h}=\frac{u_{i+1}-u_i}{h}\).
Similarly, we can get \(u''\left( x \right) \approx \frac{u_{i+1}-2u_i+u_{i-1}}{h^2}\). Also \(u''\left( x \right) \propto O\left( h^2 \right)\).
Therefore, \(-\frac{u_{i+1}-2u_i+u_{i-1}}{h^2}=f\left( x_i \right)\)
To sum up, \(\boldsymbol{u}=\left[ u_1,u_2,\cdots ,u_{N-1} \right]^T\) is a linear system that satisfies:
We can get:
De-blurring Problem in Image Processing⚓︎
The degrading image model is:
Sometimes \(k\left( x \right) =\frac{1}{c}e^{-\frac{x^2}{2}}\) which is Gaussian blur. Usually:
To simplify, we ignore the noise: let \(\eta \left( x \right) =0\).
Given \(g(x)\), we want to find \(u(x)\). Assume that \(k(x)\) is given and the image/signal is 1D. We can model the linear system as:
\(\boldsymbol{A}\) is called Toeplitz matrix.