RechenwegWS 2026/27
Rechenweg · Algebra und Diskrete Mathematik · Lineare Algebra
ADMBeispiel 611·Skalarprodukt (Gram-Matrix, Länge, Winkel)

Verallgemeinertes Skalarprodukt mit anderen Vektoren

PDF

Wie 609, nur mit x=(−1,0,1)\mathbf x = (-1, 0, 1) und y=(2,−1,2)\mathbf y = (2, -1, 2).

(Bsp. 609: Bezüglich des durch G=(130−509−6−5−66)G = \begin{pmatrix} 13 & 0 & -5 \\ 0 & 9 & -6 \\ -5 & -6 & 6 \end{pmatrix} gegebenen Skalarprodukts (a) die Längen von x\mathbf x und y\mathbf y und (b) den Winkel φ\varphi zwischen x\mathbf x und y\mathbf y berechnen.)

Lösung

Lösung verborgen – erst selbst probieren!

Überblick

⟨x,y⟩G=xTGy\langle\mathbf x,\mathbf y\rangle_G = \mathbf x^TG\mathbf y. Die Matrix GG ist symmetrisch mit führenden Hauptminoren 1313, 13⋅9=11713\cdot 9 = 117 und det⁡G=13⋅(54−36)−5⋅45=9\det G = 13\cdot(54 - 36) - 5\cdot 45 = 9, alle positiv – also positiv definit (Sylvester), ⟨⋅,⋅⟩G\langle\cdot,\cdot\rangle_G ist ein Skalarprodukt. Wir berechnen GxG\mathbf x, GyG\mathbf y und daraus Längen und Winkel.

Hilfsvektoren

Gx=(−13+0−50+0−65+0+6)=(−18−611),Gy=(26+0−100−9−12−10+6+12)=(16−218).G\mathbf x = \begin{pmatrix} -13 + 0 - 5 \\ 0 + 0 - 6 \\ 5 + 0 + 6 \end{pmatrix} = \begin{pmatrix} -18 \\ -6 \\ 11 \end{pmatrix}, \qquad G\mathbf y = \begin{pmatrix} 26 + 0 - 10 \\ 0 - 9 - 12 \\ -10 + 6 + 12 \end{pmatrix} = \begin{pmatrix} 16 \\ -21 \\ 8 \end{pmatrix}.

(a) Längen

⟨x,x⟩G=(−1)(−18)+0⋅(−6)+1⋅11=18+11=29,∥x∥G=29≈5,385.\langle\mathbf x,\mathbf x\rangle_G = (-1)(-18) + 0\cdot(-6) + 1\cdot11 = 18 + 11 = 29, \qquad \|\mathbf x\|_G = \sqrt{29} \approx 5{,}385.

⟨y,y⟩G=2⋅16+(−1)(−21)+2⋅8=32+21+16=69,∥y∥G=69≈8,307.\langle\mathbf y,\mathbf y\rangle_G = 2\cdot16 + (-1)(-21) + 2\cdot8 = 32 + 21 + 16 = 69, \qquad \|\mathbf y\|_G = \sqrt{69} \approx 8{,}307.

(a)

∥x∥G=29≈5,39\|\mathbf x\|_G = \sqrt{29} \approx 5{,}39, ∥y∥G=69≈8,31\quad\|\mathbf y\|_G = \sqrt{69} \approx 8{,}31.

(b) Winkel

⟨x,y⟩G=xT(Gy)=(−1)⋅16+0⋅(−21)+1⋅8=−8.\langle\mathbf x,\mathbf y\rangle_G = \mathbf x^T(G\mathbf y) = (-1)\cdot16 + 0\cdot(-21) + 1\cdot8 = -8.

(Gegenprobe: (Gx)Ty=−36+6+22=−8(G\mathbf x)^T\mathbf y = -36 + 6 + 22 = -8 ✓.)

cos⁡φ=−82969=−82001≈−844,733≈−0,17884,\cos\varphi = \frac{-8}{\sqrt{29}\sqrt{69}} = -\frac{8}{\sqrt{2001}} \approx -\frac{8}{44{,}733} \approx -0{,}17884,

φ≈1,7506≈100,30∘.\varphi \approx 1{,}7506 \approx 100{,}30^\circ.

(b)

φ=arccos⁡(−82001)≈100,3∘\varphi = \arccos\left(-\dfrac{8}{\sqrt{2001}}\right) \approx 100{,}3^\circ (≈1,751\approx 1{,}751 rad).

Vergleich

Im Standardskalarprodukt wäre x⋅y=−2+0+2=0\mathbf x\cdot\mathbf y = -2 + 0 + 2 = 0: Die beiden Vektoren stehen dort senkrecht aufeinander. Bezüglich GG ist der Winkel dagegen etwa 100∘100^\circ – ein schönes Beispiel dafür, dass Orthogonalität vom Skalarprodukt abhängt. Cauchy-Schwarz: 8≤2001≈44,78 \le \sqrt{2001} \approx 44{,}7 ✓.

Hilfreiches

Skalarprodukt zu einer Gram-Matrix

⟨x,y⟩G=xTGy\langle\mathbf x,\mathbf y\rangle_G = \mathbf x^TG\mathbf y,  ∥x∥G=xTGx\ \|\mathbf x\|_G = \sqrt{\mathbf x^TG\mathbf x},  cos⁡φ=⟨x,y⟩G∥x∥G∥y∥G\ \cos\varphi = \dfrac{\langle\mathbf x,\mathbf y\rangle_G}{\|\mathbf x\|_G\|\mathbf y\|_G}.

Symmetrie

Ist GG symmetrisch, gilt xTGy=(Gx)Ty=yTGx\mathbf x^TG\mathbf y = (G\mathbf x)^T\mathbf y = \mathbf y^TG\mathbf x – eine bequeme Gegenprobe.

Typische Fehler
  • Aus „im Standardskalarprodukt orthogonal“ auf „bezüglich GG orthogonal“ schließen.
  • 29⋅69\sqrt{29}\cdot\sqrt{69} falsch zusammenfassen: 29⋅69=200129\cdot69 = 2001.

Verwandte Beispiele: Bsp. 609, Bsp. 610, Bsp. 606.