Überblick
Die charakteristische Gleichung λ 2 − λ + 1 = 0 \lambda^2 - \lambda + 1 = 0 λ 2 − λ + 1 = 0 hat die Wurzeln e ± i π / 3 = [ 1 , ± π 3 ] e^{\pm i\pi/3} = [1, \pm\frac{\pi}{3}] e ± iπ /3 = [ 1 , ± 3 π ] , die homogenen Lösungen sind cos n π 3 \cos\frac{n\pi}{3} cos 3 nπ und sin n π 3 \sin\frac{n\pi}{3} sin 3 nπ . Die Störfunktion cos n π 3 \cos\frac{n\pi}{3} cos 3 nπ ist selbst homogene Lösung – Resonanz . Daher Ansatz n ( P cos n π 3 + Q sin n π 3 ) n\bigl(P\cos\frac{n\pi}{3} + Q\sin\frac{n\pi}{3}\bigr) n ( P cos 3 nπ + Q sin 3 nπ ) .
Schritt 1: Homogene Rekursion
λ 2 − λ + 1 = 0 ⟹ λ 1 , 2 = 1 2 ± 3 2 i = [ 1 , ± π 3 ] . \lambda^2 - \lambda + 1 = 0 \implies \lambda_{1,2} = \frac12 \pm \frac{\sqrt3}{2}i = \Bigl[1, \pm\frac{\pi}{3}\Bigr]. λ 2 − λ + 1 = 0 ⟹ λ 1 , 2 = 2 1 ± 2 3 i = [ 1 , ± 3 π ] .
Mit θ : = π 3 \theta := \frac{\pi}{3} θ := 3 π :
a n ( h ) = A cos n θ + B sin n θ . a_n^{(h)} = A\cos n\theta + B\sin n\theta. a n ( h ) = A cos n θ + B sin n θ .
Schritt 2: Ansatz für die partikuläre Lösung
Jedes 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 θ erfüllt u n − u n − 1 + u n − 2 = 0 u_n - u_{n-1} + u_{n-2} = 0 u n − u n − 1 + u n − 2 = 0 und kann daher cos n θ \cos n\theta cos n θ nicht erzeugen. Weil e i θ e^{i\theta} e i θ eine einfache Wurzel ist:
a n ( p ) = n u n = n ( P cos n θ + Q sin n θ ) . a_n^{(p)} = n\,u_n = n\bigl(P\cos n\theta + Q\sin n\theta\bigr). a n ( p ) = n u n = n ( P cos n θ + Q sin n θ ) .
Schritt 3: Einsetzen
a n ( p ) − a n − 1 ( p ) + a n − 2 ( p ) = n u n − ( n − 1 ) u n − 1 + ( n − 2 ) u n − 2 = n ( u n − u n − 1 + u n − 2 ) ⏟ = 0 + u n − 1 − 2 u n − 2 (nach n sortiert) = u n − 1 − 2 u n − 2 . \begin{aligned}
a_n^{(p)} - a_{n-1}^{(p)} + a_{n-2}^{(p)} &= n\,u_n - (n-1)\,u_{n-1} + (n-2)\,u_{n-2} && \\
&= n\underbrace{\bigl(u_n - u_{n-1} + u_{n-2}\bigr)}_{=\,0} + u_{n-1} - 2u_{n-2} && \text{(nach } n \text{ sortiert)}\\
&= u_{n-1} - 2u_{n-2}. &&
\end{aligned} a n ( p ) − a n − 1 ( p ) + a n − 2 ( p ) = n u n − ( n − 1 ) u n − 1 + ( n − 2 ) u n − 2 = n = 0 ( u n − u n − 1 + u n − 2 ) + u n − 1 − 2 u n − 2 = u n − 1 − 2 u n − 2 . (nach n sortiert)
Additionstheoreme mit cos θ = 1 2 \cos\theta = \frac12 cos θ = 2 1 , sin θ = 3 2 \sin\theta = \frac{\sqrt3}{2} sin θ = 2 3 , cos 2 θ = − 1 2 \cos 2\theta = -\frac12 cos 2 θ = − 2 1 , sin 2 θ = 3 2 \sin 2\theta = \frac{\sqrt3}{2} sin 2 θ = 2 3 :
u n − 1 = ( 1 2 P − 3 2 Q ) cos n θ + ( 3 2 P + 1 2 Q ) sin n θ , u n − 2 = ( − 1 2 P − 3 2 Q ) cos n θ + ( 3 2 P − 1 2 Q ) sin n θ . \begin{aligned}
u_{n-1} &= \Bigl(\tfrac12 P - \tfrac{\sqrt3}{2}Q\Bigr)\cos n\theta + \Bigl(\tfrac{\sqrt3}{2}P + \tfrac12 Q\Bigr)\sin n\theta,\\
u_{n-2} &= \Bigl(-\tfrac12 P - \tfrac{\sqrt3}{2}Q\Bigr)\cos n\theta + \Bigl(\tfrac{\sqrt3}{2}P - \tfrac12 Q\Bigr)\sin n\theta.
\end{aligned} u n − 1 u n − 2 = ( 2 1 P − 2 3 Q ) cos n θ + ( 2 3 P + 2 1 Q ) sin n θ , = ( − 2 1 P − 2 3 Q ) cos n θ + ( 2 3 P − 2 1 Q ) sin n θ .
Somit
u n − 1 − 2 u n − 2 = ( 3 2 P + 3 2 Q ) cos n θ + ( − 3 2 P + 3 2 Q ) sin n θ = ! cos n θ . u_{n-1} - 2u_{n-2} = \Bigl(\tfrac32 P + \tfrac{\sqrt3}{2}Q\Bigr)\cos n\theta + \Bigl(-\tfrac{\sqrt3}{2}P + \tfrac32 Q\Bigr)\sin n\theta \overset{!}{=} \cos n\theta. u n − 1 − 2 u n − 2 = ( 2 3 P + 2 3 Q ) cos n θ + ( − 2 3 P + 2 3 Q ) sin n θ = ! cos n θ .
Koeffizientenvergleich (cos n θ \cos n\theta cos n θ , sin n θ \sin n\theta sin n θ linear unabhängig – n = 0 n = 0 n = 0 und n = 1 n = 1 n = 1 einsetzen):
− 3 2 P + 3 2 Q = 0 ⟹ Q = P 3 , 3 2 P + 3 2 Q = 1 ⟹ 3 2 P + 1 2 P = 2 P = 1 , \begin{aligned}
-\tfrac{\sqrt3}{2}P + \tfrac32 Q &= 0 &&\implies Q = \tfrac{P}{\sqrt3},\\
\tfrac32 P + \tfrac{\sqrt3}{2}Q &= 1 &&\implies \tfrac32 P + \tfrac12 P = 2P = 1,
\end{aligned} − 2 3 P + 2 3 Q 2 3 P + 2 3 Q = 0 = 1 ⟹ Q = 3 P , ⟹ 2 3 P + 2 1 P = 2 P = 1 ,
also P = 1 2 P = \frac12 P = 2 1 , Q = 1 2 3 = 3 6 Q = \frac{1}{2\sqrt3} = \frac{\sqrt3}{6} Q = 2 3 1 = 6 3 .
Schritt 4: Allgemeine Lösung und Anfangsbedingungen
a n = A cos n π 3 + B sin n π 3 + n ( 1 2 cos n π 3 + 3 6 sin n π 3 ) . a_n = A\cos\frac{n\pi}{3} + B\sin\frac{n\pi}{3} + n\Bigl(\frac12\cos\frac{n\pi}{3} + \frac{\sqrt3}{6}\sin\frac{n\pi}{3}\Bigr). a n = A cos 3 nπ + B sin 3 nπ + n ( 2 1 cos 3 nπ + 6 3 sin 3 nπ ) .
n = 0 n = 0 n = 0 : A = 1 A = 1 A = 1 .
n = 1 n = 1 n = 1 : 1 2 A + 3 2 B + 1 2 ⋅ 1 2 + 3 6 ⋅ 3 2 = 0 ⟺ 1 2 + 3 2 B + 1 4 + 1 4 = 0 ⟺ B = − 2 3 = − 2 3 3 \frac12 A + \frac{\sqrt3}{2}B + \frac12\cdot\frac12 + \frac{\sqrt3}{6}\cdot\frac{\sqrt3}{2} = 0 \iff \frac12 + \frac{\sqrt3}{2}B + \frac14 + \frac14 = 0 \iff B = -\frac{2}{\sqrt3} = -\frac{2\sqrt3}{3} 2 1 A + 2 3 B + 2 1 ⋅ 2 1 + 6 3 ⋅ 2 3 = 0 ⟺ 2 1 + 2 3 B + 4 1 + 4 1 = 0 ⟺ B = − 3 2 = − 3 2 3 .
Kontrolle
n n n
0
1
2
3
4
5
6
Rekursion cos n π 3 + a n − 1 − a n − 2 \cos\frac{n\pi}{3} + a_{n-1} - a_{n-2} cos 3 nπ + a n − 1 − a n − 2
1 1 1
0 0 0
− 1 2 + 0 − 1 = − 3 2 -\frac12 + 0 - 1 = -\frac32 − 2 1 + 0 − 1 = − 2 3
− 1 − 3 2 − 0 = − 5 2 -1 - \frac32 - 0 = -\frac52 − 1 − 2 3 − 0 = − 2 5
− 1 2 − 5 2 + 3 2 = − 3 2 -\frac12 - \frac52 + \frac32 = -\frac32 − 2 1 − 2 5 + 2 3 = − 2 3
1 2 − 3 2 + 5 2 = 3 2 \frac12 - \frac32 + \frac52 = \frac32 2 1 − 2 3 + 2 5 = 2 3
1 + 3 2 + 3 2 = 4 1 + \frac32 + \frac32 = 4 1 + 2 3 + 2 3 = 4
Formel bei n = 3 n = 3 n = 3 (cos π = − 1 \cos\pi = -1 cos π = − 1 , sin π = 0 \sin\pi = 0 sin π = 0 ): − 1 + 3 ⋅ ( − 1 2 ) = − 5 2 -1 + 3\cdot\bigl(-\frac12\bigr) = -\frac52 − 1 + 3 ⋅ ( − 2 1 ) = − 2 5 ✓; bei n = 6 n = 6 n = 6 : 1 + 6 ⋅ 1 2 = 4 1 + 6\cdot\frac12 = 4 1 + 6 ⋅ 2 1 = 4 ✓. Python (sympy, exakt): Übereinstimmung für n = 0 , … , 17 n = 0, \dots, 17 n = 0 , … , 17 ✓.
Ergebnis
a n = cos n π 3 − 2 3 3 sin n π 3 + n ( 1 2 cos n π 3 + 3 6 sin n π 3 ) . a_n = \cos\frac{n\pi}{3} - \frac{2\sqrt3}{3}\sin\frac{n\pi}{3} + n\Bigl(\frac12\cos\frac{n\pi}{3} + \frac{\sqrt3}{6}\sin\frac{n\pi}{3}\Bigr). a n = cos 3 nπ − 3 2 3 sin 3 nπ + n ( 2 1 cos 3 nπ + 6 3 sin 3 nπ ) .