Skip to content
Free public beta until December 4, 2026: every course is open, no card needed. After that, the first chapter of each course stays free and full access is a one-time $39 ($19 for up to 100 founding members chosen for helpful feedback). Your progress is kept. How the beta works

Recipe

Compute a complex inner product \langle u, v\rangle

Use when: you need \langle u, v\rangle for vectors with complex-number entries, where the plain dot product no longer applies

Goal: the single complex number \langle u,v\rangle = \sum u_k\overline{v_k}, with the conjugate on the correct side

Taught in Complex numbers and complex arithmetic you'll need

  1. 1

    This course fixes one convention for every complex inner product: conjugate the second vector's entries, never the first, so \langle \mathbf u,\mathbf v\rangle=\sum u_k\overline{v_k}.

    Example

    For \mathbf u=(2+i,\ 1-i) and \mathbf v=(1+i,\ 2), it is \mathbf v whose entries get conjugated, not \mathbf u.

    Why: swapping which vector is conjugated silently swaps \langle \mathbf u,\mathbf v\rangle into \langle \mathbf v,\mathbf u\rangle, its own conjugate, not the same number.

  2. 2

    Flip the sign of the imaginary part of each entry of the vector named in Step 1, leaving the other vector's entries untouched.

    Example

    \overline{1+i}=1-i and \overline{2}=2, so conjugating \mathbf v=(1+i,\ 2) gives (1-i,\ 2).

    Why: conjugating termwise is exactly what keeps \langle \mathbf v,\mathbf v\rangle a genuine nonnegative length once the two vectors coincide.

  3. 3

    Multiply each entry of \mathbf u by the matching conjugated entry from Step 2, then sum every product.

    Example

    (2+i)(1-i)=2-2i+i-i^2=3-i, and (1-i)(2)=2-2i; adding gives 3-i+2-2i=5-3i.

    • the two vectors are different — the sum can be any complex number, real or not.
    • the two vectors are the same vector — the sum must come out real and nonnegative, checked in Step 4.

    Why: this sum, not a plain dot product, is the definition fixed for every complex vector space this course studies.

  4. 4

    Whenever the two vectors coincide, confirm the result has no leftover imaginary part and is not negative.

    Example

    For \mathbf v=(1+i,\ 2): \langle \mathbf v,\mathbf v\rangle=(1+i)(1-i)+(2)(2)=2+4=6, real and positive.

    ⚡ Shortcut

    For a single complex number z (not a vector), this recipe collapses to the modulus computation: \langle z,z\rangle = z\overline z = |z|^2, so |z|=\sqrt{z\overline z}. For z=3-4i: \overline z=3+4i, z\overline z=9+16=25, so |z|=5.

    Why: a negative or non-real result here would mean a conjugation slip earlier, since every genuine squared length must be real and nonnegative.

Common mistakes

  • Conjugating the first vector's entries instead of the second, reversing the answer into its own conjugate.
  • Forgetting to conjugate at all, which can produce a negative "squared length" for \langle \mathbf v,\mathbf v\rangle.
  • A sign slip multiplying two complex numbers, especially forgetting i^2=-1.
  • Skipping the real-and-nonnegative check on \langle \mathbf v,\mathbf v\rangle, the fastest way to catch a conjugation mistake.