Preface
This tutorial was made solely for the purpose of education and it was designed for students taking Applied Math 0330. It is primarily for students who have very little experience or have never used Mathematica and programming before and would like to learn more of the basics for this computer algebra system. As a friendly reminder, don't forget to clear variables in use and/or the kernel. The Mathematica commands in this tutorial are all written in bold black font, while Mathematica output is in normal font.
Finally, you can copy and paste all commands into your Mathematica notebook, change the parameters, and run them because the tutorial is under the terms of the GNU General Public License (GPL). You, as the user, are free to use the scripts for your needs to learn the Mathematica program, and have the right to distribute this tutorial and refer to this tutorial as long as this tutorial is accredited appropriately. The tutorial accompanies the textbook Applied Differential Equations. The Primary Course by Vladimir Dobrushkin, CRC Press, 2015; http://www.crcpress.com/product/isbn/9781439851043
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 course APMA0330
Return to the main page for the course APMA0340
Return to Part IV of the course APMA0330
Glossary
Annihilator operators
The annihilator of a function is a differential operator which, when operated on it, obliterates it. There is nothing left. We say that the differential operator \( L\left[ \texttt{D} \right] , \) where \( \texttt{D} \) is the derivative operator, annihilates a function f(x) if \( L\left[ \texttt{D} \right] f(x) \equiv 0 . \) For example, the differential operator \( \texttt{D}^2 \) annihilates any linear function. In other words, if an operator annihilates a function f, then f belongs to the kernel of the operator.
Since we consider only linear differential operators, any such operator is a polynomial in \( \texttt{D} \)
It is known, see Applied Differential Equations. The Primary Course by Vladimir Dobrushkin, CRC Press, 2015, that for any set of k linearly independent functions y1, y2, ... , yk, there exists a unique (up to an arbitrary nonzero multiple) linear differential operator of order k that annihilates the given set of functions. This differential operator is defined by the Wronskian
Any two linearly independent functions y1 and y2 span the kernel of the linear differential operator, which is referred to as the annihilator operator:
Example: Let \( y_1 (x) = x \quad\mbox{and} \quad y_2 = 1/x \)
be two linearly independent functions on any interval not containing zero. Then the differential operator that annihilates these two functions becomes
The situation becomes more transparent when we switch to constant coefficient linear differential operators. Any constant coefficient linear differential operator is a polynomial (with constant coefficients) with respect to the derivative operator \( \texttt{D} . \) Therefore, a constant coefficient linear differential operator is generated by the characteristic polynomial \( L\left( \lambda \right) = a_n \lambda^n + \cdots + a_1 \lambda + a_0 . \) It is well known from algebra that any polynomial with real coefficients of order n can be factors into simple terms
Unfortunately, most functions cannot be annihilated by a constant coefficients linear differential operator. For instance, the reciprocal of a linear function such as 1/x cannot be annihilated by a linear constant coefficient differential operator. But some could be; the corresponding set of functions for which we can determine an annihilator includes polynomials, exponentials times polynomials, and previous functions times either sine or cosine. To each of these function we assign a control number, summarized in the table below.
function | formula | control number |
---|---|---|
polynomial | \( p_n t^n + \cdots + p_1 t + p_0 \) | 0 |
polynomial times exponential | \( \left( p_n t^n + \cdots + p_1 t + p_0 \right) e^{at}\) | a |
polynomial times exponential & sine | \( \left( p_n t^n + \cdots + p_1 t + p_0 \right) e^{at} \, \sin bt\) | a + b j |
polynomial times exponential & cosine | \( \left( p_n t^n + \cdots + p_1 t + p_0 \right) e^{at}\, \cos bt\) | a + b j |
A control number is just a root of characteristic polynomial that corresponds to the annihilating operator. For instance, if a control number is known to be α, we know that the annihilating polynomial for such function must be \( \left( \texttt{D} - \alpha \right)^m , \) for some positive integer m (called the multiplicity). Since the characteristic polynomial for any constant coefficient differential operator can be factors into simple terms, it is natural to start analyzing with some such simple multiple.
Let us start with a simple function---polynomial of degree n. It is known from calculus that such functions is annihilated by the (n+1)-th power of the derivative operator: \( \texttt{D}^{n+1} \left( p_n t^n + \cdots + p_1 t + p_0 \right) \equiv 0 . \)
Our next move is to show that the annihilator of the product of the polynomial and an exponential function can be reduced to an elementary case of just polynomials, discussed previously. Therefore, we consider a first order differential operator
Lemma: If f(t) is a smooth function and \( \gamma \in \mathbb{C} \) is a complex number, then for any constant coefficient linear differential operator \( L[\texttt{D}] = a_n \texttt{D}^n + a_{n-1} \texttt{D}^{n-1} + \cdots + a_1 \texttt{D} + a_0 \) of degree n
Lemma: If f(t) is a smooth function and \( \gamma \in \mathbb{C} \) is a complex number, then for any constant coefficient linear differential operator \( L[\texttt{D}] \) of degree n
Now we turn our attention to the second order differential operator
Return to Mathematica page
Return to the main page (APMA0330)
Return to the Part 1 (Plotting)
Return to the Part 2 (First Order ODEs)
Return to the Part 3 (Numerical Methods)
Return to the Part 4 (Second and Higher Order ODEs)
Return to the Part 5 (Series and Recurrences)
Return to the Part 6 (Laplace Transform)
Return to the Part 7 (Boundary Value Problems)