Complex Coordinates and Scalar Choices
When real matrices are used with complex eigenvalues and eigenvectors, the same matrix operations must be carried out with complex entries. The procedures are familiar, but every scalar multiplication and addition now uses complex arithmetic. It is also important to say which scalars are allowed: a complex vector can be scaled by a real number, but it can also be scaled by any complex number.
Write \(\mathbb{C}^n\) for the set of columns with \(n\) complex entries. If \(\mathbf{u},\mathbf{v}\in\mathbb{C}^n\), their sum is formed coordinate by coordinate. For \(\alpha\in\mathbb{C}\), the scalar multiple \(\alpha\mathbf{u}\) is formed by multiplying every coordinate by \(\alpha\). These operations also make sense when \(\alpha\in\mathbb{R}\), since every real number is a complex number. In particular, \(\mathbb{C}^n\) can be considered using either real or complex scalars; which scalar field is intended depends on the question.
All vector-operation identities follow coordinate by coordinate from the corresponding rules of complex arithmetic. For example, the \(j\)-th coordinate of \(\alpha(\mathbf{u}+\mathbf{v})\) is \(\alpha(u_j+v_j)=\alpha u_j+\alpha v_j\), which is the \(j\)-th coordinate of \(\alpha\mathbf{u}+\alpha\mathbf{v}\). The same reasoning applies to real scalars, which obey the same arithmetic rules within \(\mathbb{C}\).
Worked Example: Adding and Scaling Complex Vectors
Let \(\mathbf{u}=(1+i,\,2-i)^{\top}\) and \(\mathbf{v}=(2-i,\,-1+3i)^{\top}\). Find \(\mathbf{u}+\mathbf{v}\), \((2-i)\mathbf{u}\), and \(2\mathbf{u}\). The last two calculations compare a complex scalar with a real scalar.
Add the corresponding coordinates:
For the complex scalar multiple, distribute \(2-i\) across each coordinate and use \(i^2=-1\):
By contrast, scaling by the real number \(2\) gives
Check: Adding \(\mathbf{u}\) and \(\mathbf{v}\) again by real and imaginary parts gives first coordinate \(3+0i\) and second coordinate \(1+2i\), as above. Also, \((2-i)(1+i)=2+i- i^2=3+i\), and \((2-i)^2=4-4i+i^2=3-4i\). The complex and real scalar multiples differ because the scalar \(2-i\) is not \(2\).
Matrix-Vector Products Over \(\mathbb{C}\)
A matrix \(\mathbf{A}\in\mathbb{C}^{m\times n}\) can multiply a vector \(\mathbf{x}\in\mathbb{C}^n\). The result is a vector in \(\mathbb{C}^m\): each output coordinate is the product of one row of \(\mathbf{A}\) with the column \(\mathbf{x}\). The number of columns of the matrix must equal the number of entries in the vector.
The definition is the same as for real matrices and vectors, except that entries and intermediate values may be complex. A useful consequence is that a real matrix can act on a complex vector: its entries are also complex numbers, so the same row-by-column formula applies. The output need not be real.
Worked Example: A Complex Matrix Acting on a Complex Vector
Compute \(\mathbf{A}\mathbf{x}\) for \(\mathbf{A}=\begin{bmatrix}1&i\\2&1-i\end{bmatrix}\) and \(\mathbf{x}=(1,i)^{\top}\). The matrix has two columns and the vector has two entries, so the product is defined.
Compute each row-column product separately:
Check: The first row gives \(1\cdot1+i\cdot i=1-1=0\). The second gives \(2\cdot1+(1-i)i=2+i+1=3+i\). Both coordinates agree with the result.
For comparison, consider the real matrix \(\mathbf{R}=\begin{bmatrix}1&2\\0&1\end{bmatrix}\) acting on \(\mathbf{x}\). Its entries are real, but the vector is not. Direct multiplication gives
The complex output is expected: real entries do not turn a complex input vector into a real one.
Matrix-vector multiplication respects addition and scalar multiplication. This is a consequence of the distributive and associative laws in \(\mathbb{C}\), applied to each row.
Proof. For each row index \(i\), the \(i\)-th coordinate of the first left-hand side is \(\sum_{j=1}^{n}a_{ij}(x_j+y_j)\). Distributing each product gives \(\sum_{j=1}^{n}a_{ij}x_j+\sum_{j=1}^{n}a_{ij}y_j\), which is the \(i\)-th coordinate of \(\mathbf{A}\mathbf{x}+\mathbf{A}\mathbf{y}\). For the second identity, the \(i\)-th coordinate of \(\mathbf{A}(\alpha\mathbf{x})\) is \(\sum_{j=1}^{n}a_{ij}(\alpha x_j)\). Since complex multiplication is associative and commutative, this equals \(\alpha\sum_{j=1}^{n}a_{ij}x_j\), the \(i\)-th coordinate of \(\alpha(\mathbf{A}\mathbf{x})\). The coordinates agree for every \(i\), proving both vector identities. \(\square\)
Matrix Products and Their Order
If \(\mathbf{A}\in\mathbb{C}^{m\times n}\) and \(\mathbf{B}\in\mathbb{C}^{n\times p}\), the product \(\mathbf{A}\mathbf{B}\) is defined and has size \(m\times p\). Its entry in row \(i\), column \(j\) is the product of row \(i\) of \(\mathbf{A}\) with column \(j\) of \(\mathbf{B}\): \((\mathbf{A}\mathbf{B})_{ij}=\sum_{k=1}^{n}a_{ik}b_{kj}\). As with matrix-vector multiplication, all sums and products are taken in \(\mathbb{C}\). In general, the reverse product \(\mathbf{B}\mathbf{A}\) may have a different size or may not be defined at all.
Worked Example: Multiplying Complex Matrices in Both Orders
Let \(\mathbf{A}=\begin{bmatrix}1&i\\2&1-i\end{bmatrix}\) and \(\mathbf{B}=\begin{bmatrix}1&1-i\\i&2\end{bmatrix}\). Both products are defined, and both are \(2\times2\). Compute them entry by entry.
For \(\mathbf{A}\mathbf{B}\), the four row-column products are
Therefore \(\mathbf{A}\mathbf{B}=\begin{bmatrix}0&1+i\\3+i&4-4i\end{bmatrix}\).
Now reverse the order. The entries of \(\mathbf{B}\mathbf{A}\) are
Thus \(\mathbf{B}\mathbf{A}=\begin{bmatrix}3-2i&-i\\4+i&1-2i\end{bmatrix}\), which differs from \(\mathbf{A}\mathbf{B}\).
Check: In \(\mathbf{A}\mathbf{B}\), the lower-left entry is \(2+i(1-i)=2+i-i^2=3+i\), and the lower-right entry is \(2(1-i)+(1-i)2=4-4i\). In \(\mathbf{B}\mathbf{A}\), the first column is \(\begin{bmatrix}1+2(1-i)\\i+4\end{bmatrix}=\begin{bmatrix}3-2i\\4+i\end{bmatrix}\), matching the displayed product. The two products are not interchangeable.
Associativity and a Matrix-Vector Check
Although matrix multiplication is not generally commutative, it is associative whenever the products involved are defined. This matters when a matrix product acts on a vector: one may group the factors in either order, without changing the result.
Proof. Both products are \(m\times q\). For any \(i\in\{1,\dots,m\}\) and \(j\in\{1,\dots,q\}\), the \((i,j)\)-entry of the left-hand side is \(\sum_{k=1}^{p}(\mathbf{A}\mathbf{B})_{ik}c_{kj} =\sum_{k=1}^{p}\left(\sum_{\ell=1}^{n}a_{i\ell}b_{\ell k}\right)c_{kj}\). Distributing the finite sums and regrouping gives \(\sum_{\ell=1}^{n}a_{i\ell}\left(\sum_{k=1}^{p}b_{\ell k}c_{kj}\right)\), using the associative and distributive laws of complex arithmetic. The expression in parentheses is \((\mathbf{B}\mathbf{C})_{\ell j}\), so the result is \((\mathbf{A}(\mathbf{B}\mathbf{C}))_{ij}\). Every entry agrees, hence the matrices are equal. \(\square\)
Worked Example: Checking the Grouping of a Matrix-Vector Product
Use the matrices from the previous example and \(\mathbf{x}=(1,i)^{\top}\). Compute \(\mathbf{A}(\mathbf{B}\mathbf{x})\) and \((\mathbf{A}\mathbf{B})\mathbf{x}\) independently.
First compute the intermediate vector:
Then multiply by \(\mathbf{A}\):
For the other grouping, use the product already computed:
Check: In the first calculation, \(3i(1-i)=3+3i\), so the second coordinate is \(4+2i+3+3i=7+5i\). In the second, \((4-4i)i=4i-4i^2=4+4i\), so the second coordinate is \(3+i+4+4i=7+5i\). Both groupings give the same vector, as the associativity theorem requires.
Common Mistakes and a Reliable Routine
A frequent arithmetic error is treating \(i^2\) as \(i\) rather than \(-1\). For instance, a wrong first-coordinate calculation in the matrix-vector example would be \(1+i\cdot i=1+i\), giving a nonzero result. The correction is \(i\cdot i=i^2=-1\), so \(1+i\cdot i=1-1=0\). When a product contains several complex terms, writing out \(i^2=-1\) before simplifying helps prevent a sign error.
Another mistake is to assume that matrix products commute because the entries are numbers. The entries do use commutative complex arithmetic, but the row-column arrangement changes when the matrix order changes. In the worked example, \((\mathbf{A}\mathbf{B})_{11}=0\), whereas \((\mathbf{B}\mathbf{A})_{11}=3-2i\). The products are therefore different. Before calculating, check the dimensions and the order; then compute each entry from the row of the left matrix and the column of the right matrix.
For any calculation over \(\mathbb{C}\), a dependable sequence is to check dimensions, write each coordinate or entry as a row-column product, carry out complex arithmetic, and finally substitute or recompute enough entries to catch sign errors. Keep the scalar field in view as well: multiplying by \(2\) and by \(2-i\) are different operations, even when both are applied to the same vector.
Check Your Understanding
For each question, show the complex arithmetic and check the dimensions before multiplying.
- For \(\mathbf{u}=(2+i,\,-i)^{\top}\) and \(\mathbf{v}=(1-2i,\,3+i)^{\top}\), compute \(\mathbf{u}+\mathbf{v}\) and \((1+i)\mathbf{u}\).
- Compute \(\begin{bmatrix}1&-i\\i&2\end{bmatrix}\begin{bmatrix}i\\1-i\end{bmatrix}\).
- For \(\mathbf{A}=\begin{bmatrix}1&i\\0&1\end{bmatrix}\) and \(\mathbf{B}=\begin{bmatrix}2&1\\i&0\end{bmatrix}\), compute \(\mathbf{A}\mathbf{B}\) and \(\mathbf{B}\mathbf{A}\). Are they equal?
- Explain why multiplying a real matrix by a complex vector can produce a vector with nonreal entries.
- State the dimension condition required for \(\mathbf{A}\mathbf{B}\) to be defined when \(\mathbf{A}\) has \(m\) rows and \(n\) columns.