Consider the ODE f(u)≡u′=au+b,u(t_0=0)≡u^0=u_0

Iris Vaughn

Iris Vaughn

Answered question

2022-10-15

Consider the ODE
f ( u ) u = a u + b , u ( t 0 = 0 ) u 0 = u 0
For a timestep k, the forward-difference approximator for u gives the Euler update as
u n + 1 = u n + k f ( u n ) = u n + k ( a u n + b )
I am trying to come up with a closed form expression for u n , that is, one that involves only the constants a , b , u 0 , k.
I've tried to do this by first writing u n as a cumulative sum
u n = u n + k ( a u n + b ) = u 0 + i = 0 n 1 k ( a u i + b )
I then tried to expand the sum on the right and see if there was any easily identifiable pattern to write more generally, or if it would perhaps resemble an expansion of some other known function.After some ugly algebra, this is something like
u n = u 0 + k ( a u 0 + b ) + k ( a u 1 + b ) + k ( a u 2 + b ) + . . . = u 0 + k ( a u 0 + b ) + ( k 2 a + k ) ( a u 0 + b ) + ( k 3 a 2 + 2 k 2 a + k ) ( a u 0 + b ) + . . . = u 0 + ( k 3 a 2 + 3 k 2 a + 3 k + . . . ) ( a u 0 + b )
Nothing jumps out to me, and I'm not sure this approach is promising. Any ideas?
I've massaged it some more and found that it can be written as
u n = ( 1 + k a ) n u 0 + C n
Where C is a function of a,b,k,n, which I've yet to deduce...

Answer & Explanation

Kash Osborn

Kash Osborn

Beginner2022-10-16Added 18 answers

From the same principles that you would solve a linear DE with, you get for the linear recursion a complementary part and a particular solution that can be found via undetermined coefficients
u n = c ( 1 + k a ) n b k a .
To determine the constant of the homogeneous solution, insert into the initial condition
u 0 = c b k a u n = ( 1 + k a ) n u 0 + ( 1 + k a ) n 1 k a b
shiya43

shiya43

Beginner2022-10-17Added 2 answers

Its good

Do you have a similar question?

Recalculate according to your conditions!

Ask your question.
Get an expert answer.

Let our experts help you. Answer in as fast as 15 minutes.

Didn't find what you were looking for?