Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

 Open In Colab

Linear system solvers are the workhorse of scientific computing, and includes the canonical solve.

E.g. the trivial equation for xx with scalars aa and bb:

ax=bax = b

x=b/ax=b/a

In contrast: x2=1x^2 = 1 is nonlinear.

A more complicated example is when you have multiple equations and unknowns:

ax+by=ecx+dy=f\begin{align} a x + b y &= e \\ c x + d y &= f \end{align}

In general, we will have nn unknowns that must be solved simultaneously and a set of mm linear equations. The group of such equations is termed a linear system and is written compactly in matrix form:

Ax=b\mathbf{A} \mathbf{x} = \mathbf{b}

where

  • A\mathbf{A} is the coefficient matrix of dimension m×nm \times n

  • x\mathbf{x} is the variable / unknown vector of dimension (length) nn

  • b\mathbf{b} is the constant / right-hand side vector of dimension mm.

In most cases in this course we will be dealing with nn equations and nn unknowns. In that case, m=nm=n and A\mathbf{A} is called squaresquare. We will discuss the properties of matricies (and by extension, linear systems) in the context of finite precision, direct and iterative methods to solve linear systems, and conclude with a generalization to rectangular matricies.