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

Länge und Winkel bezüglich eines verallgemeinerten Skalarprodukts

PDF

Im R3\R^3 sei ein verallgemeinertes Skalarprodukt gegeben durch die Matrix

G=(130−509−6−5−66).G = \begin{pmatrix} 13 & 0 & -5 \\ 0 & 9 & -6 \\ -5 & -6 & 6 \end{pmatrix}.

Berechnen Sie für die Vektoren x=(1,2,3)\mathbf x = (1, 2, 3) und y=(3,−1,2)\mathbf y = (3, -1, 2)

(a) die Längen von x\mathbf x und y\mathbf y,

(b) den Winkel φ\varphi zwischen x\mathbf x und y\mathbf y.

Lösung

Lösung verborgen – erst selbst probieren!

Überblick

Das durch GG gegebene Skalarprodukt ist ⟨x,y⟩G=xTG y=∑i,jxi gij yj.\langle\mathbf x,\mathbf y\rangle_G = \mathbf x^T G\,\mathbf y = \sum_{i,j} x_i\,g_{ij}\,y_j. Damit das wirklich ein Skalarprodukt ist, muss GG symmetrisch und positiv definit sein – das prüfen wir kurz. Dann gilt wie gewohnt ∥x∥G=⟨x,x⟩G\|\mathbf x\|_G = \sqrt{\langle\mathbf x,\mathbf x\rangle_G} und cos⁡φ=⟨x,y⟩G∥x∥G∥y∥G\cos\varphi = \frac{\langle\mathbf x,\mathbf y\rangle_G}{\|\mathbf x\|_G\|\mathbf y\|_G}. Rechentechnisch berechnet man am besten zuerst GxG\mathbf x und GyG\mathbf y.

Vorab: GG ist ein zulässiges Skalarprodukt

GG ist symmetrisch (g13=g31=−5g_{13} = g_{31} = -5, g23=g32=−6g_{23} = g_{32} = -6). Hauptminoren (Kriterium von Sylvester):

Δ1=13>0,Δ2=∣13009∣=117>0,\Delta_1 = 13 > 0, \qquad \Delta_2 = \begin{vmatrix} 13 & 0 \\ 0 & 9 \end{vmatrix} = 117 > 0, Δ3=det⁡G=13 (9⋅6−36)−0+(−5) (0⋅(−6)−9⋅(−5))=13⋅18−5⋅45=234−225=9>0.\Delta_3 = \det G = 13\,(9\cdot6 - 36) - 0 + (-5)\,(0\cdot(-6) - 9\cdot(-5)) = 13\cdot18 - 5\cdot45 = 234 - 225 = 9 > 0.

Alle positiv ⇒ GG ist positiv definit.

Hilfsvektoren GxG\mathbf x und GyG\mathbf y

Gx=(13+0−150+18−18−5−12+18)=(−201),Gy=(39+0−100−9−12−15+6+12)=(29−213).G\mathbf x = \begin{pmatrix} 13 + 0 - 15 \\ 0 + 18 - 18 \\ -5 - 12 + 18 \end{pmatrix} = \begin{pmatrix} -2 \\ 0 \\ 1 \end{pmatrix}, \qquad G\mathbf y = \begin{pmatrix} 39 + 0 - 10 \\ 0 - 9 - 12 \\ -15 + 6 + 12 \end{pmatrix} = \begin{pmatrix} 29 \\ -21 \\ 3 \end{pmatrix}.

(a) Längen

⟨x,x⟩G=xT(Gx)=1⋅(−2)+2⋅0+3⋅1=1,∥x∥G=1.\langle\mathbf x,\mathbf x\rangle_G = \mathbf x^T(G\mathbf x) = 1\cdot(-2) + 2\cdot0 + 3\cdot1 = 1, \qquad \|\mathbf x\|_G = 1.

⟨y,y⟩G=yT(Gy)=3⋅29+(−1)⋅(−21)+2⋅3=87+21+6=114,∥y∥G=114≈10,677.\langle\mathbf y,\mathbf y\rangle_G = \mathbf y^T(G\mathbf y) = 3\cdot29 + (-1)\cdot(-21) + 2\cdot3 = 87 + 21 + 6 = 114, \qquad \|\mathbf y\|_G = \sqrt{114} \approx 10{,}677.

(a)

∥x∥G=1\|\mathbf x\|_G = 1, ∥y∥G=114≈10,68\quad\|\mathbf y\|_G = \sqrt{114} \approx 10{,}68.

(b) Winkel

⟨x,y⟩G=xT(Gy)=1⋅29+2⋅(−21)+3⋅3=29−42+9=−4.\langle\mathbf x,\mathbf y\rangle_G = \mathbf x^T(G\mathbf y) = 1\cdot29 + 2\cdot(-21) + 3\cdot3 = 29 - 42 + 9 = -4.

(Gegenprobe über die Symmetrie: (Gx)Ty=−2⋅3+0+1⋅2=−4(G\mathbf x)^T\mathbf y = -2\cdot3 + 0 + 1\cdot2 = -4 ✓.)

cos⁡φ=−41⋅114≈−0,37463,φ=arccos⁡(−4114)≈1,9548≈112,00∘.\cos\varphi = \frac{-4}{1\cdot\sqrt{114}} \approx -0{,}37463, \qquad \varphi = \arccos\Bigl(-\frac{4}{\sqrt{114}}\Bigr) \approx 1{,}9548 \approx 112{,}00^\circ.

(b)

φ=arccos⁡(−4114)≈112,0∘\varphi = \arccos\left(-\dfrac{4}{\sqrt{114}}\right) \approx 112{,}0^\circ (≈1,955\approx 1{,}955 rad) – ein stumpfer Winkel.

Vergleich mit dem Standardskalarprodukt

Bezüglich des gewöhnlichen Skalarprodukts sind dieselben Vektoren 14\sqrt{14} lang und schließen 60∘60^\circ ein (vgl. Bsp. 606). Länge und Winkel hängen also vom gewählten Skalarprodukt ab!

Hilfreiches

Durch eine Matrix gegebenes Skalarprodukt

Für symmetrisches, positiv definites G∈Rn×nG \in \R^{n\times n} ist ⟨x,y⟩G=xTGy\langle\mathbf x,\mathbf y\rangle_G = \mathbf x^TG\mathbf y ein Skalarprodukt; ∥x∥G=xTGx\|\mathbf x\|_G = \sqrt{\mathbf x^TG\mathbf x}.

Kriterium von Sylvester

Eine symmetrische Matrix ist genau dann positiv definit, wenn alle führenden Hauptminoren Δ1,…,Δn\Delta_1, \dots, \Delta_n positiv sind.

Typische Fehler
  • Einfach das Standardskalarprodukt verwenden und GG ignorieren.
  • xTGy\mathbf x^TG\mathbf y als x⋅y\mathbf x\cdot\mathbf y mal irgendeinen Eintrag von GG missverstehen; es ist ein Matrix-Vektor-Produkt gefolgt von einem Skalarprodukt.

Verwandte Beispiele: Bsp. 610, Bsp. 611, Bsp. 606, Bsp. 613.