markdown
Complex inner products and unitary matrices - Basic Exercisesmd 69f2ae1
exercise/math/linear-algebra/complex-inner-products-and-unitary-matrices.exercise.n.md

Complex inner products複素内積ふくそないせき and unitary matricesユニタリ行列ぎょうれつ - Basic Exercises

date2026-07-14document_iddoc_eb964a4ebf5304dd6220567e0a730ff2description複素内積、共役転置、エルミート行列、ユニタリ行列、複素での射影を確認する基本演習である。prerequisites複素内積とユニタリ行列 / 内積空間の基本 / 対称行列と直交対角化type問題演習content_typeexercisestatusactiverelateddata/lecture/math/linear-algebra/complex-inner-products-and-unitary-matrices.lecture.n.md / data/lecture/math/linear-algebra/inner-product-space-basics.lecture.n.md / data/lecture/math/linear-algebra/identity-zero-and-transpose-matrices.lecture.n.md / data/lecture/math/linear-algebra/symmetric-matrices-and-orthogonal-diagonalization.lecture.n.md / data/lecture/math/linear-algebra/orthogonalization-basics.lecture.n.md / data/lecture/math/linear-algebra/least-squares-basics.lecture.n.md
mathlinear-algebraexercisecomplex-vector-spaceunitary
data/lecture/math/linear-algebra/complex-inner-products-and-unitary-matrices.lecture.n.md data/lecture/math/linear-algebra/inner-product-space-basics.lecture.n.md data/lecture/math/linear-algebra/symmetric-matrices-and-orthogonal-diagonalization.lecture.n.md data/lecture/math/linear-algebra/least-squares-basics.lecture.n.md

1Exercise plan

In complex calculations, the position of the complex conjugate複素共役ふくそきょうやく is essential. These exercises check what complex inner products複素内積ふくそないせき, conjugate transposes共役転置きょうやくてんち, Hermitian matricesエルミート行列ぎょうれつ, and unitary matricesユニタリ行列ぎょうれつ preserve or test.


For complex inner-product exercises, write conjugates explicitly. The test for orthogonality, norm preservation, and unitarity uses A*, the conjugate transpose, not just AT. This is the most common source of wrong answers when moving from real to complex vector spaces.

A unitary matrixユニタリ行列 can be checked by U*U=I, by preservation of inner products, or by having orthonormal columns. These are equivalent tests, but each is useful in a different problem: column checks are quick for a concrete matrix, while inner-product preservation explains why lengths, angles, and projections are unchanged.

2Problem 1

Using the convention

x,y=k=1nxkyk_,

for u=(1,i)T and v=(i,1)T, find u,v, v,u, and u.

2.1Answer example

u,v=1·i_+i·1_=-i+i=0,
v,u=i·1_+1·i_=i-i=0,

and

u=u,u=1·1_+i·i_=2.

2.2Explanation

In this convention, the second variable is conjugated. Forgetting that conjugate changes orthogonality computations.


3Problem 2

For A=(2i-i3), find A* and decide whether A is Hermitianエルミート行列ぎょうれつ.

3.1Answer example

Transpose first and conjugate each entry:

A*=(2i-i3).

Thus A*=A, so A is Hermitian.

3.2Explanation

In a Hermitian matrix, diagonal entries are real and off-diagonal mirror entries are complex conjugates.


4Problem 3

Confirm that U=(100i) is unitary, and explain why Ux=x for arbitrary x=(x1,x2)T.

4.1Answer example

U*=(100-i),

so

U*U=I.

Also Ux=(x1,ix2)T, hence

Ux2=|x1|2+|ix2|2=|x1|2+|x2|2=x2.

4.2Explanation

A unitary matrix may change phase位相いそう, but it preserves lengths and inner products.


5Problem 4

For y=(1,1+i)T and u=(1,i)T, find the orthogonal projection直交射影ちょっこうしゃえい of y onto span(u).

5.1Answer example

Under this convention,

proju(y)=y,uu,uu.

Now

y,u=1·1_+(1+i)i_=1+(1+i)(-i)=2-i,

and u,u=2. Therefore

proju(y)=2-i2(1i)=(1-i212+i).

5.2Explanation

The denominator is positive real because u0. The conjugate position in the projection coefficient matters.


6Preview review: eigenvalues, eigenvectors, diagonalization, and normal matrices

Problems 5 and later use eigenvalues, diagonalization, and normal matrices before the later exercise sets develop them fully. This review gives only the minimum needed to solve the problems here.

  • If Av=λv for some v0, then λ is an eigenvalue固有値こゆうち and v is an eigenvector固有ベクトル.
  • If eigenvectors form a basis, then A=PDP-1. This form is called diagonalization対角化たいかくか.
  • If a unitary matrixユニタリ行列ぎょうれつ U gives U*AU=D, then this is unitary diagonalizationユニタリ対角化たいかくか.
  • A normal matrix正規行列せいきぎょうれつ is a matrix satisfying A*A=AA*. Over finite-dimensional complex spaces, the later theorem says that normal matrices are exactly the matrices that can be unitarily diagonalized.
data/lecture/math/linear-algebra/eigenvalues-and-eigenvectors.lecture.n.md data/lecture/math/linear-algebra/diagonalization-basics.lecture.n.md data/lecture/math/linear-algebra/symmetric-matrices-and-orthogonal-diagonalization.lecture.n.md

7Problem 5

Find the eigenvalues of B=(2i-i2) and check that they are real as expected for a Hermitian matrix.

7.1Answer example

det(B-λI)=det(2-λi-i2-λ)=(2-λ)2-1.

Thus the eigenvalues are 1,3, both real.

7.2Explanation

Since B*=B, the matrix is Hermitian. Hermitian matrices may have complex entries, but their eigenvalues are real. This is one reason Hermitian matrices are used to represent observables in contexts such as quantum mechanics.


8Problem 6

Decide whether each statement is true and explain why.

  1. A unitary matrix preserves the inner product.
  2. A Hermitian matrix is always normal.
  3. A unitary matrix is always Hermitian.

8.1Answer example

1 is true because U*U=I implies Ux,Uy=x,y. 2 is true because if A*=A, then A*A=A2=AA*. 3 is false: (100i) is unitary but not Hermitian.

8.2Explanation

Unitary, Hermitian, and normal matrices are related but distinct. Separate preservation of inner products from diagonalization conditions.


9Problem 7

Over C, confirm that

A=(01-10)

is normal and diagonalize it by a unitary matrix.

9.1Answer example

Since A*=-A and A2=-I,

A*A=I,AA*=I.

Thus A is normal. Its eigenvalues are i,-i. Eigenvectors may be chosen as (1,i)T and (1,-i)T. Normalizing gives

U=12(11i-i),D=(i00-i),

with U*AU=D.

9.2Explanation

This matrix is not Hermitian, but it is normal. Normal matrices are the natural class for unitary diagonalization over complex spaces.


10Problem 8

Using the convention x,y=kxkyk_, apply Gram-Schmidt to x1=(1,i)T and x2=(1,0)T.

10.1Answer example

Let u1=x1=(1,i)T. Since u1,u1=2,

u2=x2-x2,u1u1,u1u1=(1,0)T-12(1,i)T=(12,-i2)T.

10.2Explanation

The conjugate in the numerator is essential. Here u2 is orthogonal to u1.


11Problem 9

For

A=(1i02),x=(1,1)T,y=(i,1)T,

verify Ax,y=x,A*y.

11.1Answer example

Ax=(1+i,2)T,

so

Ax,y=(1+i)i_+21_=3-i.

Also

A*=(10-i2),A*y=(i,3)T,

so

x,A*y=1i_+13_=3-i.

11.2Explanation

The conjugate transpose is the adjoint随伴ずいはん relative to the complex inner product.


12Problem 10

Let A=(1,i)T and b=(1,0)T. Solve the complex least-squares normal equation and check residual orthogonality.

12.1Answer example

A*=(1-i),

so

A*A=2,A*b=1.

Thus x=12. Then

Ax=(12i2),r=b-Ax=(12-i2).

Finally,

A*r=(1-i)(12-i2)=0.

12.2Explanation

The real least-squares statement "residual orthogonal to the column space" becomes A*r=0 in the complex case.


Here the convention conjugates the second variable in the inner product, so the adjoint is A*=(1,-i). The equation A*r=0 says exactly that the residual has zero inner product with every vector in the one-dimensional column space列空間れつくうかん of A.

13Problem 11

Confirm that

U=12(111-1)

is unitary and verify Ux,Uy=x,y for x=(1,i)T and y=(1,0)T.

13.1Answer example

The matrix U is real symmetric and U*U=UTU=I, so it is unitary. Also

Ux=12(1+i,1-i)T,Uy=12(1,1)T.

Therefore

Ux,Uy=1+i2+1-i2=1,

while x,y=1.

13.2Explanation

Unitary matrices preserve inner products and lengths even when they are not diagonal.


Although the components of x and y change after applying U, the inner product does not. This is the defining geometric role of a unitary matrixユニタリ行列: it preserves lengths and angles in a complex inner product space.

15Proof exercise: unitary matrices preserve inner products

15.1Problem

If U*U=I, prove that for arbitrary complex vectors x,y,

Ux,Uy=x,y.

15.2Answer

With the convention used in this series, x,y=y*x, so

Ux,Uy=(Uy)*(Ux)=y*U*Ux=y*x=x,y.

Taking y=x gives Ux=x.

15.3Explanation

A unitary matrix preserves the complex inner product, so it preserves lengths and angles.

16Supplementary theorem-check problem: normal matrices and unitary diagonalization

16.1Problem 12

Let A be unitarily diagonalizable, so U*AU=D with U unitary and D diagonal. Prove that A is normal. Then explain why the converse is the complex spectral theorem for normal matrices.

16.2Answer example

From U*AU=D, we have A=UDU* and A*=UD*U*. Hence

A*A=UD*U*UDU*=UD*DU*,

and

AA*=UDU*UD*U*=UDD*U*.

Since diagonal matrices commute with their conjugate transposes, D*D=DD*. Thus A*A=AA*, so A is normal. The converse theorem says that every complex normal matrix admits such a unitary diagonalization.

16.3Explanation

Normality is exactly the condition that makes orthonormal eigenvector decompositions possible over C. Hermitian and unitary matrices are important special cases of normal matrices.


raw .n.md をコピー
loc をコピー (filepath:line ~ line)
copy share link
copy encoded share link
path をコピー
copy share link
copy encoded share link
copy share link
copy encoded share link
タブを全て閉じる