# Why is ' the conjugate transpose of a matrix?

**URL:** <https://discourse.julialang.org/t/why-is-the-conjugate-transpose-of-a-matrix/109450>\
**Category:** New to Julia\
**Created:** [January 30, 2024, 1:39pm UTC](https://discourse.julialang.org/t/why-is-the-conjugate-transpose-of-a-matrix/109450 "2024-01-30T13:39:04Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![stevengj](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stevengj/32/71_2.png) [@stevengj](https://discourse.julialang.org/u/stevengj)\
**Post date:** [January 30, 2024, 4:07pm UTC](https://discourse.julialang.org/t/why-is-the-conjugate-transpose-of-a-matrix/109450/6 "2024-01-30T16:07:58Z")

</div>

> [@Mason](#):
>
> **What does this have to do with complex numbers?** Well, we typically treat complex numbers as their own fundamental algebraic objects, but we actually do have the freedom to reinterpret them in terms of matrix algebra over real numbers.

This seems to me to be making things more complicated than necessary. As I said above, the underlying reason for conjugate-transposition stems from **how you define an inner product** of complex vectors.

You want an inner (“dot”) product of a vector _with itself_ to be a norm², which should _always be ≥ 0_ (and = 0 only if the vector is zero). But for complex vectors this means you need a conjugation.

Consider the “column” vector z = [1, i]. Then:

z^T z = \begin{pmatrix}1 & i \end{pmatrix} \begin{pmatrix}1 \\ i \end{pmatrix} = 1^2 + i^2 = 0

does not make sense as a norm because z \ne 0. Whereas if you conjugate:

\overline{z^T} z = \begin{pmatrix}1 & -i \end{pmatrix} \begin{pmatrix}1 \\ i \end{pmatrix} = 1^2 - i^2 = 2

you get a reasonable “Euclidean” length² ≥ 0.

In general, for an n-component complex vector z \in \mathbb{C}^n, you have

\overline{z^T} z = \Vert z \Vert^2 = \sum\_{k=1}^n |z\_k|^2 \, ,

which is clearly ≥ 0 for all z, and = 0 only if z = 0.

Once you accept that complex conjugation is necessary for inner products of complex vectors, then it follows that you want the conjugate transpose for matrices too (to move the matrix from one side to the other of an inner product).

(It is for the same reason that you want the complex-transposition to be recursive for matrices of matrices, in order that `x'y` is an inner product for vectors of vectors.)

---

_[View the full topic](https://discourse.julialang.org/t/why-is-the-conjugate-transpose-of-a-matrix/109450)._
