Numerical Methods for Ordinary Differential Equations

Categories: Math

Abstract

This lab report explores various numerical methods for solving ordinary differential equations (ODEs) using linear multistep methods. We discuss the Adams-Bashforth, Adams-Moulton, Nyström, and Milne methods, presenting their derivations, equations, and co-efficients. Additionally, we investigate the use of predictor-corrector methods in solving ODEs.

1. Introduction

Ordinary Differential Equations (ODEs) play a crucial role in modeling various physical phenomena. Solving ODEs analytically can be challenging or even impossible in some cases. Therefore, numerical methods are essential for approximating the solutions of ODEs.

In this lab report, we focus on linear multistep methods for solving ODEs, including explicit and implicit methods.

1.1 Linear Multistep Methods

The general k-step linear multistep method is given by the following equation:

αkyn+k + αk-1yn+k-1 + ... + α1yn+1 + α0yn = h(βkfn+k + βk-1fn+k-1 + ... + β1fn+1 + β0fn)

Alternatively, it can be expressed as:

Σj=0 αjyn+j = hΣj=0 βjfn+j

Here, αk is always non-zero, and at least one of α0 and β0 will be non-zero. The specific values of k, α0, α1, ..., αk, β0, β1, ..., βk determine the characteristics of the method.

If βk = 0, the method is called explicit since there is no appearance of the unknown yn+k on the right-hand side of the equation at each step. On the other hand, if βk ≠ 0, the method is called implicit because yn+k appears on both sides of the equation, making it impossible to rearrange for an explicit formula for yn+k.

2. Adams-Bashforth Method (Explicit Method)

2.1 Derivation

Let's consider the initial value problem for an ordinary differential equation:

y'(t) = f(t, y), a ≤ t ≤ b, y(a) = y0

The solution of this IVP satisfies the integral equation:

y(tn+1) = y(tn) + ∫tntn+1 f(t, y(t)) dt

Assuming we have already found fi = f(ti, yi) for i = n - k + 1, .

Get to Know The Price Estimate For Your Paper
Topic
Number of pages
Email Invalid email

By clicking “Check Writers’ Offers”, you agree to our terms of service and privacy policy. We’ll occasionally send you promo and account related email

"You must agree to out terms of services and privacy policy"
Write my paper

You won’t be charged yet!

.., n with ti = t0 + ih, we can approximate f(t, y) by a polynomial that interpolates it at k points (tn, yn), (tn-1, yn-1), ..., (tn-k+1, yn-k+1). These interpolation points are equidistributed, allowing us to use Newton's Backward Difference Formula of degree k - 1.

The interpolated polynomial Pk-1(t) can be expressed as:

Pk-1(t) = fn + (t - tn) / h ∇fn + (t - tn)(t - tn-1) / (2!h2) ∇2fn + ... + (t - tn)(t - tn-1)...(t - tn-k+1) / (k-1)!hk-1k-1fn + (t - tn)(t - tn-1)...(t - tn-k+1) / k! fk(ξ)

Substituting t = tn + uh, we get:

Pk-1(t) = Pk-1(tn + uh) ≈ Σm=0 (-1)m (-u)mmfn + (-1)k (-u)k hk fk(ξ)

Where -um = (-1)mu(u+1)...(u+m-1)/m! and ξ ∈ [tn-k+1, tn].

Now, we can approximate yn+1 as:

yn+1 ≈ yn + h Σm=0 γ0mmfn

2.2 Numerical Results

The equation provides us with the following table:

Number of Steps yn+1 Tk+1(h)
2 yn + h(3/2)fn - 1/2fn-1 f00(ξ)h2/3
3 yn + h(23/12)fn - 16/12fn-1 + 5/12fn-2 f000(ξ)h3/8
4 yn + h(55/24)fn - 59/24fn-1 + 37/24fn-2 - 9/24fn-3 f0000(ξ)h4/19

3. Adams-Moulton Method (Implicit Method)

3.1 Derivation

Consider the same initial value problem for an ordinary differential equation:

y'(t) = f(t, y), a ≤ t ≤ b, y(a) = y0

The solution of the IVP satisfies the integral equation:

y(tn+1) = y(tn) + ∫tntn+1 f(t, y(t)) dt

Assuming we have already found fi = f(ti, yi) for i = n - k + 1, ..., n + 1 with ti = t0 + ih, we can approximate f(t, y) by a polynomial that interpolates it at k + 1 points (tn+1, yn+1), (tn, yn), ..., (tn-k+1, yn-k+1). These interpolation points are equidistributed, allowing us to use Newton's Backward Difference Formula of degree k.

The interpolated polynomial Pk(t) can be expressed as:

Pk(t) = fn+1 + (t - tn+1) / h ∇fn+1 + (t - tn+1)(t - tn) / (2!h2) ∇2fn+1 + ... + (t - tn+1)(t - tn)...(t - tn-k+1) / k!hkkfn+1 + (t - tn+1)(t - tn)...(t - tn-k+1) / (k + 1)!hk+1 fk+1(ξ)

Substituting t = tn + uh, we get:

Pk(t) = Pk(tn + uh) ≈ Σm=0 (-1)m (1 - um) ∇mfn+1 + (-1)k+1 (1 - uk+1) hk+1 fk+1(ξ)

Where (1 - um) = (-1)m(u-1)(u)(u+1)...(u+m-1)/m! and ξ ∈ [tn-k+1, tn+1].

Now, we can approximate yn+1 as:

yn+1 ≈ yn - j + h Σm=0 γ0mmfn+1 + Tk+1

3.2 Numerical Results

The equation provides us with the following table:

Number of Steps yn+1 Tk+1(h)
1 yn + h(1/2)fn+1 + 1/2fn f00(ξ)h2/12
2 yn + h(5/12)fn+1 + 8/12fn - 1/12fn-1 f000(ξ)h3/24
3 yn + h(9/24)fn+1 + 19/24fn - 5/24fn-1 + 1/24fn-2 f0000(ξ)h4/72

4. Nystrom Method (Explicit Method)

4.1 Derivation

The Nystrom method is an explicit method that works similarly to the Adams-Bashforth method, but with an increment of yn calculated over two steps instead of one. The solution of the IVP satisfies the integral equation:

y(tn+1) = y(tn) + ∫tntn+1 f(t, y(t)) dt

Thus, yn+1 can be approximated as:

yn+1 ≈ yn + h Σm=0 γmmfn

4.2 Numerical Results

The equation provides us with the following table:

Number of Steps yn+1 Tk(h)
1 yn + h fn f00(ξ)h2/2
2 yn + h(3/2)fn - 1/2fn-1 f000(ξ)h3/4
3 yn + h(11/6)fn - 7/6fn-1 + 1/3fn-2 f0000(ξ)h4/6

5. Milne Method (Implicit Method)

5.1 Derivation

The Milne method is an implicit method that works similarly to the Adams-Moulton method but with an increment of yn calculated over two steps instead of one. The solution of the IVP satisfies the integral equation:

y(tn+1) = y(tn-1) + ∫tntn+1 f(t, y(t)) dt

Thus, yn+1 can be approximated as:

yn+1 ≈ yn-1 + h Σm=0 γmmfn+1

5.2 Numerical Results

The equation provides us with the following table:

Number of Steps yn+1 Tk(h)
1 yn-1 + h fn f00(ξ)h2/2
2 yn-1 + h(3/2)fn - 1/2fn-1 f000(ξ)h3/4
3 yn-1 + h(11/6)fn - 7/6fn-1 + 1/3fn-2 f0000(ξ)h4/6

6. Predictor-Corrector Method

Linear multistep methods are often implemented in a predictor-corrector form. A preliminary calculation is done using the explicit form of the multistep method, and then the solutions are corrected using the implicit form.

7. Conclusion

In this lab report, we discussed several linear multistep methods for solving ordinary differential equations, including the Adams-Bashforth, Adams-Moulton, Nyström, and Milne methods. We presented their derivations, equations, and numerical results for different numbers of steps. Additionally, we explored the use of predictor-corrector methods in solving ODEs. These methods provide valuable tools for approximating solutions to ODEs, allowing us to tackle a wide range of practical problems.

Updated: Jan 02, 2024
Cite this page

Numerical Methods for Ordinary Differential Equations. (2024, Jan 02). Retrieved from https://studymoose.com/document/numerical-methods-for-ordinary-differential-equations

Numerical Methods for Ordinary Differential Equations essay
Live chat  with support 24/7

👋 Hi! I’m your smart assistant Amy!

Don’t know where to start? Type your requirements and I’ll connect you to an academic expert within 3 minutes.

get help with your assignment