Return to computing page for the first course APMA0330
Return to computing page for the second course APMA0340
Return to Mathematica tutorial for the first course APMA0330
Return to Mathematica tutorial for the second course APMA0340
Return to the main page for the first course APMA0330
Return to the main page for the second course APMA0340
Return to Part VII of the course APMA0340
Introduction to Linear Algebra with Mathematica
The Adomian decomposition method (ADM for short) provides a practical technique for the resolution of a large class of linear
or nonlinear, ordinary or partial, differential equations and it has been applied to many fields of science and engineering.
This section demonstrates an application of the Adomian decomposition method to a system of ordinary differential equations.
The Adomian decomposition method (ADM) gives a series solution, or a rapidly convergent sequence of analytic approximants, generated by recursion. The ADM is applicable to a wide range of problems
whose mathematical models yield nonlinear equations or systems of
equations involving algebraic, differential, integral, integro-differential, or differential-delay terms. In this section we shall describe the main algorithm of Adomian’s decomposition method as it applies to an initial value problem involving a general nonlinear equation of the form
In each equation, the first derivative of one of the unknown functions
is equated to the known function that depends on the independent
variable t (time) and n unknown variables. The equations are shown using Newton's notation \( \dot{y} ≝ {\text d}y/{\text d}t \) a mapping depending on the independent variable
t (which we associate with time) and n unknown variables y1, … ,yn. Of course, we can represent the above system of equations using only its i-th eqution as
where we break the input functions f into a sum of two components:
N is a vector-valued nonlinear algebraic operator (not containing derivatives), and g is known driving function. This allows us to rewrite the given system of ordinary differential equations subject to the initial conditions in compact vector form:
The initial condition is specified at the point t = 0 for simplicity, and y0 is a given vector in n-dimensional Euclidean space. We consider the derivative operator \( L \,y =\dot{y} ≝ {\text d}y/{\text d}t \) on the set of functions with specified condition at t = 0 to be y(0) = y0, then its inverse is known to be
and Jk are accelerated Adomian's polynomials (that were first introduced by George Adomian in his 1989 book, and were detailed and intensively used in 2008 Randolph Rach article)
APmulti[f_, m_, M_] := Module[{i, j, r},
Subscript[u, 0] = Table[Subscript[u, i, 0], {i, 1, m}];
A[0] = f@@Subscript[u, 0]; Table[T[i, j], {i, 1, M}, {j, 1, i}];
se = Table[_, {m}] /. List -> Sequence;
For[r = 1, r <= M, r++,
T[r, 1]=Table[Subscript[u, i, r]*D[f@@Subscript[u, 0],
Subscript[u, i, 0]], {i, 1, m}];
For[k = 2, k <= r, k++,
T[r, k]=Union[Flatten[Table[D[Map[#*Subscript[u, i, 1]/
(Exponent[#, Subscript[u, i, 1]]+1)&,
T[r-1, k-1]], Subscript[u, i, 0]], {i, 1, m}]]]];
For[k = 2, k <= Floor[r/2], k++,
T[r, k] = T[r, k] \[Union](T[r - k, k] /.
Flatten[Table[Subscript[u, i, j] -> Subscript[u, i, j+1], {i,1,m},
{j, 1, r-2*k+1}]])];
A[r] = Sum[Total[T[r, k] ], {k, 1, r}];
If[EvenQ[r], Do[T[r/2, k] =., {k, 1, r/2}]] ];
Table[A[r], {r, 0, M}]]
Thus, one can recurrently determine every term of the
series \( {\bf y}(t) = \sum_{k\ge 0} {\bf u}_k (t) . \)
Consider the initial value problem for a system of ordinary differential equations, written in vector form:
{{x -> Function[{t},
1/6 (4 a Cos[t] + 2 b Cos[t] + 2 a Cos[2 t] - 2 b Cos[2 t] +
4 A Sin[t] + 2 B Sin[t] + A Sin[2 t] - B Sin[2 t])],
y -> Function[{t},
1/3 (2 a Cos[t] + b Cos[t] - 2 a Cos[2 t] + 2 b Cos[2 t] +
2 A Sin[t] + B Sin[t] - A Sin[2 t] + B Sin[2 t])]}}
Manipulate[
ParametricPlot[{1/
6 (4 a Cos[t] + 2 b Cos[t] + 2 a Cos[2 t] - 2 b Cos[2 t] +
4 A Sin[t] + 2 B Sin[t] + A Sin[2 t] - B Sin[2 t]),
1/3 (2 a Cos[t] + b Cos[t] - 2 a Cos[2 t] + 2 b Cos[2 t] +
2 A Sin[t] + B Sin[t] - A Sin[2 t] + B Sin[2 t])}, {t, 0,
20}], {a, -2, 2}, {A, -2, 2}, {b, -2, 2}, {B, -2, 2}]
We denote the second order derivative operator
\( \texttt{D}^2 ≝ {\text d}^2/{\text d}t^2 , \)
acting on the set of functions with prescribed initial conditions by L. Of course, we can incorporate the linear term generated by matrix A into L, but its inverse will contain the exponential matrix
\( e^{{\bf A}t} , \) which will complicate our job.
\[
A_0 \left( {\bf u}_0 \right) = \varepsilon {\bf f}\left( {\bf u}_0 \right) = \varepsilon \begin{bmatrix} \left( x(0) + \dot{x}(0)\,t \right) \left( y(0) + \dot{y}(0)\,t \right)^2 \\ \left( y(0) + \dot{y}(0)\,t \right) \left( x(0) + \dot{x}(0)\,t \right)^2 \end{bmatrix} = \varepsilon \begin{bmatrix} a b^2 + A b^2 t + 2 a b B t + 2 A b B t^2 + a B^2 t^2 + A B^2 t^3
\\ a^2 b + 2 a A b t + a^2 B t + A^2 b t^2 + 2 a A B t^2 + A^2 B t^3
\end{bmatrix} .
\]
The classical Adomian polynomials are defined through the formula
Example 4:
In 1966, Robertson investigated a chemical system containing fast and slow
motions at the same time. By modelling this system he got the following
mathematical model
The system has been investigated in several papers; it is often taken as
a benchmark for numerical methods. A detailed analysis about it can be found
in the text-book
It was shown that explicit methods give oscillating
solutions. Stability was guaranteed in the case of implicit methods
Qualitative analysis of Robertson’s Problem indicates that the component y2 rapidly reaches
its maximal value for which its derivative is zero.
E. Hairer and G. Wanner. Solving Ordinary Differential Equations II: Stiff and
Differential-Algebraic Problems. Springer-Verlag, 1991.
■
Example 5:
Consider the initial value problem for nonlinear system of equations
Bathiha K. and Bathiha, B., A new algorithmfor solving linear ordinary differential equations” World Applied sciences journal, 15(12), 1777-1779, (2011)
Robertson, H.H., The solution of a set of reaction rate equations, in Walsh, J.E., Numerical analysis; an introduction.
Based on a symposium organized by the Institute of Mathematics and Its Applications, Birmingham, England, 1965. Edited by J. Walsh.
Washington, Thompson Book Co., 1967; pp. 178--182.
Return to Mathematica page
Return to the main page (APMA0340)
Return to the Part 1 Matrix Algebra
Return to the Part 2 Linear Systems of Ordinary Differential Equations
Return to the Part 3 Non-linear Systems of Ordinary Differential Equations
Return to the Part 4 Numerical Methods
Return to the Part 5 Fourier Series
Return to the Part 6 Partial Differential Equations
Return to the Part 7 Special Functions