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

Länge und Winkel bezüglich einer anderen Gram-Matrix

PDF

Wie 609, nur mit

G=(65−5510−15−5−1525).G = \begin{pmatrix} 6 & 5 & -5 \\ 5 & 10 & -15 \\ -5 & -15 & 25 \end{pmatrix}.

(Bsp. 609: Für x=(1,2,3)\mathbf x = (1, 2, 3) und y=(3,−1,2)\mathbf y = (3, -1, 2) bezüglich des durch GG 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. Wir prüfen zuerst, dass GG symmetrisch und positiv definit ist, berechnen GxG\mathbf x, GyG\mathbf y und daraus Längen und Winkel.

Vorab: GG ist positiv definit

GG ist symmetrisch. Führende Hauptminoren:

Δ1=6,Δ2=6⋅10−5⋅5=35,\Delta_1 = 6, \qquad \Delta_2 = 6\cdot10 - 5\cdot5 = 35, Δ3=6 (10⋅25−15⋅15)−5 (5⋅25−(−15)(−5))+(−5) (5⋅(−15)−10⋅(−5))=6⋅25−5⋅50−5⋅(−25)=150−250+125=25.\Delta_3 = 6\,(10\cdot25 - 15\cdot15) - 5\,(5\cdot25 - (-15)(-5)) + (-5)\,(5\cdot(-15) - 10\cdot(-5)) = 6\cdot25 - 5\cdot50 - 5\cdot(-25) = 150 - 250 + 125 = 25.

Alle >0> 0 ⇒ positiv definit (Sylvester).

Hilfsvektoren

Gx=(6+10−155+20−45−5−30+75)=(1−2040),Gy=(18−5−1015−10−30−15+15+50)=(3−2550).G\mathbf x = \begin{pmatrix} 6 + 10 - 15 \\ 5 + 20 - 45 \\ -5 - 30 + 75 \end{pmatrix} = \begin{pmatrix} 1 \\ -20 \\ 40 \end{pmatrix}, \qquad G\mathbf y = \begin{pmatrix} 18 - 5 - 10 \\ 15 - 10 - 30 \\ -15 + 15 + 50 \end{pmatrix} = \begin{pmatrix} 3 \\ -25 \\ 50 \end{pmatrix}.

(a) Längen

⟨x,x⟩G=1⋅1+2⋅(−20)+3⋅40=1−40+120=81,∥x∥G=9.\langle\mathbf x,\mathbf x\rangle_G = 1\cdot1 + 2\cdot(-20) + 3\cdot40 = 1 - 40 + 120 = 81, \qquad \|\mathbf x\|_G = 9.

⟨y,y⟩G=3⋅3+(−1)⋅(−25)+2⋅50=9+25+100=134,∥y∥G=134≈11,576.\langle\mathbf y,\mathbf y\rangle_G = 3\cdot3 + (-1)\cdot(-25) + 2\cdot50 = 9 + 25 + 100 = 134, \qquad \|\mathbf y\|_G = \sqrt{134} \approx 11{,}576.

(a)

∥x∥G=9\|\mathbf x\|_G = 9, ∥y∥G=134≈11,58\quad\|\mathbf y\|_G = \sqrt{134} \approx 11{,}58.

(b) Winkel

⟨x,y⟩G=xT(Gy)=3−50+150=103.\langle\mathbf x,\mathbf y\rangle_G = \mathbf x^T(G\mathbf y) = 3 - 50 + 150 = 103.

(Gegenprobe: (Gx)Ty=3+20+80=103(G\mathbf x)^T\mathbf y = 3 + 20 + 80 = 103 ✓.)

cos⁡φ=1039134≈103104,18≈0,98865,φ≈0,1508≈8,64∘.\cos\varphi = \frac{103}{9\sqrt{134}} \approx \frac{103}{104{,}18} \approx 0{,}98865, \qquad \varphi \approx 0{,}1508 \approx 8{,}64^\circ.

(b)

φ=arccos⁡1039134≈8,64∘\varphi = \arccos\dfrac{103}{9\sqrt{134}} \approx 8{,}64^\circ (≈0,151\approx 0{,}151 rad).

Plausibilität

Die Cauchy-Schwarz-Ungleichung verlangt ∣⟨x,y⟩G∣≤∥x∥G∥y∥G|\langle\mathbf x,\mathbf y\rangle_G| \le \|\mathbf x\|_G\|\mathbf y\|_G: 103≤9⋅11,576≈104,2103 \le 9\cdot 11{,}576 \approx 104{,}2 ✓ – knapp erfüllt, daher der kleine Winkel. Bezüglich dieses Skalarprodukts zeigen x\mathbf x und y\mathbf y also fast in dieselbe Richtung, bezüglich des Standardskalarprodukts schließen sie 60∘60^\circ ein.

Hilfreiches

Skalarprodukt zu einer Gram-Matrix

⟨x,y⟩G=xTGy\langle\mathbf x,\mathbf y\rangle_G = \mathbf x^TG\mathbf y mit G=GTG = G^T positiv definit.

Cauchy-Schwarz

∣⟨x,y⟩∣≤∥x∥ ∥y∥|\langle\mathbf x,\mathbf y\rangle| \le \|\mathbf x\|\,\|\mathbf y\| in jedem Skalarproduktraum – deshalb ist cos⁡φ\cos\varphi stets in [−1,1][-1, 1].

Typische Fehler
  • Bei Δ3\Delta_3 das Vorzeichen des mittleren Laplace-Terms vergessen.
  • Einen Wert ∣cos⁡φ∣>1|\cos\varphi| > 1 erhalten und nicht stutzig werden – das zeigt immer einen Rechenfehler an.

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