text
stringlengths
0
66.2k
(N -n) D(n+1) - N D n + n D(n-1) = D [ (N -n)(n+1) - N n + n(n-1) ]
Expand inside:
(N -n)(n +1) = N(n+1) -n(n+1)
= Nn + N -n² -n
Then subtract Nn: Nn + N -n² -n - Nn = N -n² -n
Add n(n-1): N -n² -n +n² -n = N -2n
Thus total: D (N -2n )
Set equal to 0, so unless D=0 or N-2n=0, which isn't for all n, so E_n = D n is not a solution unless D=0.
Hmm. So perhaps the homogeneous equation only has constant solutions. Therefore, the homogeneous solution is E_n^{(h)} = C.
Now, to find a particular solution for the nonhomogeneous equation:
(N - n) E_{n+1} - N E_n + n E_{n-1} = -N
We can try a particular solution of the form E_n^{(p)} = a n^2 + b n + c. Let me try that.
Let me set E_n = a n² + b n + c.
Compute each term:
First term: (N -n) E_{n+1} = (N -n)[a(n+1)^2 + b(n+1) + c]
Second term: -N E_n = -N [a n² + b n + c]
Third term: n E_{n-1} =n [a(n-1)^2 + b(n-1) + c]
Combine all terms and set equal to -N.
Let me compute each part step by step.
First term expanded:
(N -n)[a(n² + 2n +1) + b(n +1) + c]
= (N -n)[a n² + 2a n + a + b n + b + c]
= (N -n)[a n² + (2a + b)n + (a + b + c)]
Multiply out:
= N [a n² + (2a + b)n + (a + b + c)] - n [a n² + (2a + b)n + (a + b + c)]
= a N n² + (2a + b) N n + (a + b + c) N - a n³ - (2a + b)n² - (a + b + c) n
Second term:
- N [a n² + b n + c] = -a N n² - b N n - c N
Third term:
n [a(n² - 2n +1) + b(n -1) + c]
= n [a n² - 2a n + a + b n - b + c]
= a n³ - 2a n² + a n + b n² - b n + c n
Now, adding all three terms together:
First term + Second term + Third term:
[ a N n² + (2a + b) N n + (a + b + c) N - a n³ - (2a + b)n² - (a + b + c) n ]
+ [ -a N n² - b N n - c N ]
+ [ a n³ - 2a n² + a n + b n² - b n + c n ]
Let me combine term by term:
Terms with n³:
- a n³ + a n³ = 0
Terms with n²:
a N n² - (2a + b) n² -a N n² -2a n² + b n²
Let me compute coefficients:
a N - (2a + b) - a N -2a + b
= [a N - a N] + [ -2a - b -2a + b ]
= 0 + (-4a )
So total n² term: -4a n²
Terms with n:
(2a + b) N n - (a + b + c) n - b N n + a n - b n + c n
Compute coefficients: