Solving Finite Difference Equation: a_{n+1} - a_{n} = n^2

Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
3 replies · 3K views
Messages
2,181
Reaction score
0
Difference Equation

Hello, can anyone offer any insight on this equation? . I am very very rusty on solving this type of equations.

[tex]a_{n+1} - a_{n} = n^2[/tex]
 
Last edited:
Physics news on Phys.org
Never even seen that one before :bugeye:
 
Use the method of undetermined coefficients.
Homogeneous solution: C, a constant
Particular solution: a quadratic in n
multiply the particular by n so that it shares no terms with the homogeneous, and you get a cubic:
an = An^3 + Bn^2 + Cn + D
Then solve for A, B, C, D. You will need a base case.

Edit: alternatively you could just look up the well-known formula for the sum of the first n squares.
 
Last edited:
0rthodontist said:
Use the method of undetermined coefficients.
Homogeneous solution: C, a constant
Particular solution: a quadratic in n
multiply the particular by n so that it shares no terms with the homogeneous, and you get a cubic:
an = An^3 + Bn^2 + Cn + D
Then solve for A, B, C, D. You will need a base case.

Edit: alternatively you could just look up the well-known formula for the sum of the first n squares.

Thanks, exactly what i was looking for.
 
Last edited: