text
stringlengths
0
66.2k
Assume E_k = a k + b.
Then,
E_{k+1} = a(k+1) + b,
E_{k-1} = a(k-1) + b.
Plug into the homogeneous equation:
(N -k)[a(k+1)+b] - N [a k + b] + k [a(k-1) + b] =0
Expand each term:
First term: (N -k)(a(k+1) + b) = (N -k)(a k + a + b) = N(a k + a + b) -k(a k +a +b)
= N a k + N a + N b - a k^2 - a k - b k
Second term: -N(a k + b) = -N a k - N b
Third term: k [a(k-1) + b] =k(a k -a + b) = a k^2 -a k + b k
Now combine all terms:
First term + Second term + Third term:
[N a k + N a + N b - a k^2 - a k - b k] + [-N a k - N b] + [a k^2 -a k + b k]
Let me compute term by term:
- The a k^2 terms: -a k^2 + a k^2 =0
- The terms with a k: N a k -a k - N a k -a k = (N a k - N a k) + (-a k -a k) = -2a k
- The terms with b k: -b k + b k =0
- The terms with N a: N a
- The terms with N b: N b - N b =0
- The other terms: N a remains.
Wait, let me check again:
Wait, after expanding all terms:
First term:
N a k + N a + N b - a k^2 - a k - b k
Second term:
- N a k - N b
Third term:
a k^2 - a k + b k
Now adding them all together:
N a k + N a + N b - a k^2 - a k - b k - N a k - N b + a k^2 - a k + b k
Let me combine like terms:
- a k^2 + a k^2 = 0
N a k - N a k =0
- a k - a k = -2a k
N a remains.
N b - N b =0
- b k + b k =0
Thus, total is N a - 2 a k
Set this equal to 0 (homogeneous equation):
N a - 2 a k =0
This must hold for all k, which is only possible if a=0. Then, the equation reduces to N*0 - 0 =0, which is trivial. So linear functions are not solutions unless a=0, which gives E_k = constant, but plugging E_k = constant into the equation:
(N -k) E_{k+1} - N E_k + k E_{k-1} = (N -k)C - N C +k C = (N -k -N +k)C =0. So constants are solutions to the homogeneous equation.
Therefore, the homogeneous equation has solutions E_k = constant. So the general solution is a constant plus a particular solution.
We need a particular solution. Let me consider the nonhomogeneous equation:
(N -k) E_{k+1} - N E_k + k E_{k-1} = -N
Perhaps we can try a quadratic function. Let me suppose E_k = A k^2 + B k + C.
Let me plug this into the equation and see if we can find A, B, C such that the equation holds.
Compute each term:
E_{k+1} = A(k+1)^2 + B(k+1) + C = A(k² +2k +1) + Bk + B + C = A k² + (2A + B)k + (A + B + C)