Numerical Methods in Computational Finance. Daniel J. Duffy
Чтение книги онлайн.
Читать онлайн книгу Numerical Methods in Computational Finance - Daniel J. Duffy страница 22
In Chapter 3 we continue with our discussion of ODEs, including code examples in C++ and Python.
2.2 BACKGROUND AND PROBLEM STATEMENT
In this section we introduce the very first differential equation of this book. It is a scalar first-order linear ordinary differential equation (ODE), and we shall analyse it from several qualitative and quantitative viewpoints.
Consider a bounded interval
where
In general, the problem (2.1) has a unique solution given by:
(See Hochstadt (1964), where the so-called integration factor is used to determine a solution.)
A special case of (2.1) is when the right-hand term
2.2.1 Qualitative Properties of the Solution and Maximum Principle
Before we introduce difference schemes for (2.1), we discuss a number of results that allow us to describe how the solution
Lemma 2.1 (Positivity). Let the operator
Then the following result holds true:
Roughly speaking, this lemma states that you cannot get a negative solution from positive input.
You can verify it by examining Equation (2.2) because all terms are positive.
The following result gives bounds on the growth of
Theorem 2.1 Let