Überblick
Charakteristische Gleichung λ 2 − λ + 1 = 0 \lambda^2 - \lambda + 1 = 0 λ 2 − λ + 1 = 0 mit den komplexen Wurzeln [ 1 , ± π 3 ] [1, \pm\frac{\pi}{3}] [ 1 , ± 3 π ] – homogene Lösung mit cos n π 3 \cos\frac{n\pi}{3} cos 3 nπ , sin n π 3 \sin\frac{n\pi}{3} sin 3 nπ .
Störfunktion 1 + cos n π 4 1 + \cos\frac{n\pi}{4} 1 + cos 4 nπ : für 1 1 1 Ansatz c c c , für cos n π 4 \cos\frac{n\pi}{4} cos 4 nπ Ansatz P cos n π 4 + Q sin n π 4 P\cos\frac{n\pi}{4} + Q\sin\frac{n\pi}{4} P cos 4 nπ + Q sin 4 nπ . Keine Resonanz, da π 4 ≠ ± π 3 \frac{\pi}{4} \ne \pm\frac{\pi}{3} 4 π = ± 3 π (und 1 1 1 keine Wurzel ist).
Konstanten aus a 0 a_0 a 0 , a 1 a_1 a 1 .
Schritt 1: Homogene Rekursion
λ 2 − λ + 1 = 0 ⟹ λ 1 , 2 = 1 ± 1 − 4 2 = 1 2 ± 3 2 i . \lambda^2 - \lambda + 1 = 0 \implies \lambda_{1,2} = \frac{1 \pm \sqrt{1 - 4}}{2} = \frac12 \pm \frac{\sqrt3}{2}\,i. λ 2 − λ + 1 = 0 ⟹ λ 1 , 2 = 2 1 ± 1 − 4 = 2 1 ± 2 3 i .
Betrag 1 4 + 3 4 = 1 \sqrt{\frac14 + \frac34} = 1 4 1 + 4 3 = 1 , Winkel φ \varphi φ mit cos φ = 1 2 \cos\varphi = \frac12 cos φ = 2 1 , sin φ = 3 2 \sin\varphi = \frac{\sqrt3}{2} sin φ = 2 3 , also φ = π 3 \varphi = \frac{\pi}{3} φ = 3 π :
a n ( h ) = A cos n π 3 + B sin n π 3 . a_n^{(h)} = A\cos\frac{n\pi}{3} + B\sin\frac{n\pi}{3}. a n ( h ) = A cos 3 nπ + B sin 3 nπ .
Schritt 2: Partikuläre Lösung zur Störfunktion 1 1 1
1 1 1 ist keine Wurzel (1 − 1 + 1 = 1 ≠ 0 1 - 1 + 1 = 1 \ne 0 1 − 1 + 1 = 1 = 0 ). Ansatz c c c : c − c + c = c = 1 c - c + c = c = 1 c − c + c = c = 1 .
Schritt 3: Partikuläre Lösung zur Störfunktion cos ( n π / 4 ) \cos(n\pi/4) cos ( nπ /4 )
Mit θ = π 4 \theta = \frac{\pi}{4} θ = 4 π Ansatz u n = P cos n θ + Q sin n θ u_n = P\cos n\theta + Q\sin n\theta u n = P cos n θ + Q sin n θ . Benötigte Werte: cos θ = sin θ = 2 2 \cos\theta = \sin\theta = \frac{\sqrt2}{2} cos θ = sin θ = 2 2 , cos 2 θ = 0 \cos 2\theta = 0 cos 2 θ = 0 , sin 2 θ = 1 \sin 2\theta = 1 sin 2 θ = 1 . Mit den Additionstheoremen (cos ( ( n − k ) θ ) = cos n θ cos k θ + sin n θ sin k θ \cos((n-k)\theta) = \cos n\theta\cos k\theta + \sin n\theta\sin k\theta cos (( n − k ) θ ) = cos n θ cos k θ + sin n θ sin k θ , sin ( ( n − k ) θ ) = sin n θ cos k θ − cos n θ sin k θ \sin((n-k)\theta) = \sin n\theta\cos k\theta - \cos n\theta\sin k\theta sin (( n − k ) θ ) = sin n θ cos k θ − cos n θ sin k θ ):
u n − 1 = 2 2 ( P − Q ) cos n θ + 2 2 ( P + Q ) sin n θ , u n − 2 = − Q cos n θ + P sin n θ . \begin{aligned}
u_{n-1} &= \tfrac{\sqrt2}{2}(P - Q)\cos n\theta + \tfrac{\sqrt2}{2}(P + Q)\sin n\theta,\\
u_{n-2} &= -Q\cos n\theta + P\sin n\theta.
\end{aligned} u n − 1 u n − 2 = 2 2 ( P − Q ) cos n θ + 2 2 ( P + Q ) sin n θ , = − Q cos n θ + P sin n θ .
Damit
u n − u n − 1 + u n − 2 = ( P − 2 2 ( P − Q ) − Q ) cos n θ + ( Q − 2 2 ( P + Q ) + P ) sin n θ = ( 1 − 2 2 ) ( P − Q ) cos n θ + ( 1 − 2 2 ) ( P + Q ) sin n θ = ! cos n θ . \begin{aligned}
u_n - u_{n-1} + u_{n-2} &= \Bigl(P - \tfrac{\sqrt2}{2}(P - Q) - Q\Bigr)\cos n\theta + \Bigl(Q - \tfrac{\sqrt2}{2}(P + Q) + P\Bigr)\sin n\theta\\
&= \Bigl(1 - \tfrac{\sqrt2}{2}\Bigr)(P - Q)\cos n\theta + \Bigl(1 - \tfrac{\sqrt2}{2}\Bigr)(P + Q)\sin n\theta \overset{!}{=} \cos n\theta.
\end{aligned} u n − u n − 1 + u n − 2 = ( P − 2 2 ( P − Q ) − Q ) cos n θ + ( Q − 2 2 ( P + Q ) + P ) sin n θ = ( 1 − 2 2 ) ( P − Q ) cos n θ + ( 1 − 2 2 ) ( P + Q ) sin n θ = ! cos n θ .
Koeffizientenvergleich (cos n θ \cos n\theta cos n θ und sin n θ \sin n\theta sin n θ sind linear unabhängig: n = 0 n = 0 n = 0 und n = 2 n = 2 n = 2 einsetzen):
P + Q = 0 , ( 1 − 2 2 ) ( P − Q ) = 1. P + Q = 0, \qquad \Bigl(1 - \tfrac{\sqrt2}{2}\Bigr)(P - Q) = 1. P + Q = 0 , ( 1 − 2 2 ) ( P − Q ) = 1.
Mit Q = − P Q = -P Q = − P : ( 2 − 2 ) P = 1 (2 - \sqrt2)\,P = 1 ( 2 − 2 ) P = 1 , also
P = 1 2 − 2 = 2 + 2 ( 2 − 2 ) ( 2 + 2 ) = 2 + 2 2 , Q = − 2 + 2 2 . P = \frac{1}{2 - \sqrt2} = \frac{2 + \sqrt2}{(2 - \sqrt2)(2 + \sqrt2)} = \frac{2 + \sqrt2}{2}, \qquad Q = -\frac{2 + \sqrt2}{2}. P = 2 − 2 1 = ( 2 − 2 ) ( 2 + 2 ) 2 + 2 = 2 2 + 2 , Q = − 2 2 + 2 .
Schritt 4: Allgemeine Lösung
a n = A cos n π 3 + B sin n π 3 + 1 + 2 + 2 2 ( cos n π 4 − sin n π 4 ) . a_n = A\cos\frac{n\pi}{3} + B\sin\frac{n\pi}{3} + 1 + \frac{2 + \sqrt2}{2}\Bigl(\cos\frac{n\pi}{4} - \sin\frac{n\pi}{4}\Bigr). a n = A cos 3 nπ + B sin 3 nπ + 1 + 2 2 + 2 ( cos 4 nπ − sin 4 nπ ) .
Schritt 5: Anfangsbedingungen
n = 0 n = 0 n = 0 : A + 1 + 2 + 2 2 = 1 ⟹ A = − 2 + 2 2 A + 1 + \frac{2 + \sqrt2}{2} = 1 \implies A = -\frac{2 + \sqrt2}{2} A + 1 + 2 2 + 2 = 1 ⟹ A = − 2 2 + 2 .
n = 1 n = 1 n = 1 : Die Klammer verschwindet (cos π 4 = sin π 4 \cos\frac{\pi}{4} = \sin\frac{\pi}{4} cos 4 π = sin 4 π ), also 1 2 A + 3 2 B + 1 = − 2 \frac12 A + \frac{\sqrt3}{2}B + 1 = -2 2 1 A + 2 3 B + 1 = − 2 , d. h. 3 B = − 6 − A = − 5 + 2 2 \sqrt3\,B = -6 - A = -5 + \frac{\sqrt2}{2} 3 B = − 6 − A = − 5 + 2 2 und
B = − 10 + 2 2 3 = 6 − 10 3 6 . B = \frac{-10 + \sqrt2}{2\sqrt3} = \frac{\sqrt6 - 10\sqrt3}{6}. B = 2 3 − 10 + 2 = 6 6 − 10 3 .
Kontrolle
Rekursion: a 2 = 1 + cos π 2 + a 1 − a 0 = 1 + 0 − 2 − 1 = − 2 a_2 = 1 + \cos\frac{\pi}{2} + a_1 - a_0 = 1 + 0 - 2 - 1 = -2 a 2 = 1 + cos 2 π + a 1 − a 0 = 1 + 0 − 2 − 1 = − 2 . Formel bei n = 2 n = 2 n = 2 (cos 2 π 3 = − 1 2 \cos\frac{2\pi}{3} = -\frac12 cos 3 2 π = − 2 1 , sin 2 π 3 = 3 2 \sin\frac{2\pi}{3} = \frac{\sqrt3}{2} sin 3 2 π = 2 3 , cos π 2 = 0 \cos\frac{\pi}{2} = 0 cos 2 π = 0 , sin π 2 = 1 \sin\frac{\pi}{2} = 1 sin 2 π = 1 ):
2 + 2 4 + 3 ( 6 − 10 3 ) 12 + 1 − 2 + 2 2 = 1 2 + 2 4 + 2 4 − 5 2 + 1 − 1 − 2 2 = − 2 \frac{2 + \sqrt2}{4} + \frac{\sqrt3(\sqrt6 - 10\sqrt3)}{12} + 1 - \frac{2 + \sqrt2}{2} = \frac12 + \frac{\sqrt2}{4} + \frac{\sqrt2}{4} - \frac52 + 1 - 1 - \frac{\sqrt2}{2} = -2 4 2 + 2 + 12 3 ( 6 − 10 3 ) + 1 − 2 2 + 2 = 2 1 + 4 2 + 4 2 − 2 5 + 1 − 1 − 2 2 = − 2 ✓ (mit 3 ⋅ 6 = 3 2 \sqrt3\cdot\sqrt6 = 3\sqrt2 3 ⋅ 6 = 3 2 ).
a 3 = 1 + cos 3 π 4 + a 2 − a 1 = 1 − 2 2 − 2 + 2 = 1 − 2 2 a_3 = 1 + \cos\frac{3\pi}{4} + a_2 - a_1 = 1 - \frac{\sqrt2}{2} - 2 + 2 = 1 - \frac{\sqrt2}{2} a 3 = 1 + cos 4 3 π + a 2 − a 1 = 1 − 2 2 − 2 + 2 = 1 − 2 2 .
Python (sympy, exakt): Formel und iterierte Rekursion stimmen für n = 0 , … , 17 n = 0, \dots, 17 n = 0 , … , 17 überein ✓.
Ergebnis
a n = 1 − 2 + 2 2 cos n π 3 + 6 − 10 3 6 sin n π 3 + 2 + 2 2 ( cos n π 4 − sin n π 4 ) . a_n = 1 - \frac{2 + \sqrt2}{2}\cos\frac{n\pi}{3} + \frac{\sqrt6 - 10\sqrt3}{6}\sin\frac{n\pi}{3} + \frac{2 + \sqrt2}{2}\Bigl(\cos\frac{n\pi}{4} - \sin\frac{n\pi}{4}\Bigr). a n = 1 − 2 2 + 2 cos 3 nπ + 6 6 − 10 3 sin 3 nπ + 2 2 + 2 ( cos 4 nπ − sin 4 nπ ) .