Complex numbers have a representation as $2×2$ matrices, which can serve to illuminate some initially non-obvious aspects of how they work. A real number $a$ can be represented as a multiple of the identity matrix:

$aI=[a0 0a ]$

with addition and multiplication given by the corresponding matrix operations. In order to extend this representation to the complex numbers, we need a matrix $J$ such that $J_{2}=−I$:

$[01 −10 ]_{2}=[−10 0−1 ]$

We can thus represent any complex number $a+bi$ as:

$aI+bJ=[ab −ba ]$

It can be verified that addition and multiplication of these matrices is equivalent to addition and multiplication of the complex numbers they represent (meaning that matrices of this form comprise a field isomorphic to $C$).

Just as any complex number $a+bi$ can be written in polar form $re_{iθ}$, a matrix of the above form can be written as a scaled rotation (or an “amplitwist,” as Tristan Needham refers to it in *Visual Complex Analysis*):

$[ab −ba ]=r[cosθsinθ −sinθcosθ ]$

(This is a special case of the more general polar decomposition for matrices, by which a square matrix can be written as the product of a symmetric positive-definite matrix and an orthogonal matrix.)

In fact, these matrices act on vectors in the plane in the same way that complex numbers act on one another: by scaling and rotation. So, we can look at complex multiplication as a particular binary operation on vectors in $R_{2}$, or we can look at it as standard matrix multiplication on a particular class of matrices in $R_{2×2}$, *or* we can look at it as multiplication of vectors in $R_{2}$ by that particular class of matrices.

When moving from $R$ to $C$, the proper generalizations of many constructions from linear algebra involve the complex conjugate $a+bi =a−bi$ and the conjugate transpose $X_{∗}=X_{T}$:

- The real inner product $⟨u,v⟩=u_{T}v$ generalizes to the complex inner product $⟨u,v⟩=u_{∗}v$
- Symmetric matrices $A=A_{T}$ generalize to Hermitian matrices $A=A_{∗}$
- Orthogonal matrices $A_{−1}=A_{T}$ generalize to unitary matrices $A_{−1}=A_{∗}$

and so on. There are various explanations for this. One that I am fond of involves replacing the individual complex elements in a matrix or vector with their $2×2$ matrix representations, turning a complex column vector into a $2n×2$ real block matrix:

$⎣⎢⎢⎡ a+bi⋮c+di ⎦⎥⎥⎤ ⇒⎣⎢⎢⎢⎢⎢⎢⎡ ab⋮cd −ba⋮−dc ⎦⎥⎥⎥⎥⎥⎥⎤ $

and a complex matrix into a $2m×2n$ real block matrix:

$⎣⎢⎢⎡ a+bi⋮e+fi ⋯⋱⋯ c+di⋮g+hi ⎦⎥⎥⎤ $

$⇓$

$⎣⎢⎢⎢⎢⎢⎢⎡ ab⋮ef −ba⋮−fe ⋯⋯⋱⋯⋯ cd⋮gh −dc⋮−hg ⎦⎥⎥⎥⎥⎥⎥⎤ $

Since the transpose of an individual $2×2$ block

$[ab −ba ]_{T}=[a−b ba ]$

corresponds to the conjugate of the original complex number, the original notions of inner product, symmetric matrix, orthogonal matrix, and so on give the same results over these block matrices as their complex generalizations do over complex vectors and matrices.

A complex function $C→C$ can be looked at as a function $R_{2}→R_{2}$. The conditions for continuity are the same. However, the conditions for differentiability are different.

The derivative of a real function $f(x,y)=(u(x,y),v(x,y))$ at a point $(x,y)$ is the linear function $R_{2}→R_{2}$ which best locally approximates $f$ at that point. It can be written as the $2×2$ Jacobian matrix of $f$'s partial derivatives:

$df_{(x,y)}=⎣⎢⎢⎡ ∂x∂u ∂x∂v ∂y∂u ∂y∂v ⎦⎥⎥⎤ $

All that is necessary for such a function to be differentiable is for each of these partial derivatives to exist. If $f$ is instead considered as a complex function $f(x+yi)=u(x,y)+v(x,y)i$, its derivative at a point $z=x+yi$ should again be the best local linear approximation, but this time it should be a linear function $C→C$ of a single complex variable, meaning that it can be expressed as a single complex number to be multiplied by its argument.

Which $2×2$ Jacobian matrices can we pack into a single complex number? In other words, which $2×2$ real matrices act on a vector in $R_{2}$ the way complex numbers act on one other? We discovered this above: they are the matrices of the form

$[ab −ba ]$

i.e. scaled rotation matrices or amplitwists. So a function $f(x+yi)=u(x,y)+v(x,y)i$ is differentiable if and only if the following conditions hold:

$∂x∂u =∂y∂v $

$∂y∂u =−∂x∂v $

These are known as the Cauchy-Riemann equations.

Functions with this property are known as holomorphic. This turns out to be a much stronger condition than differentiability over $R_{2}$, with correspondingly much stronger implications:

- Holomorphic functions are analytic, i.e. they are everywhere locally equal to their Taylor series
- Both the real and imaginary parts of a holomorphic function are harmonic, i.e. their Laplacian vanishes everywhere
- A holomorphic function is conformal, i.e. it locally preserves angles, as long as its derivative is nonzero everywhere