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 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.
Finally, the commands in this tutorial are all written in bold black font,
while Mathematica output is in normal font. This means that you can
copy and paste all commands into Mathematica, change the parameters and
run them. 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.
Return to computing page for the first course APMA0330
Return to computing page for the second course APMA0340
Return to Mathematica tutorial for the second course APMA0330
Return to Mathematica tutorial for the first course APMA0340
Return to the main page for the course APMA0340
Return to the main page for the course APMA0330
Return to Part VI of the course APMA0330
Laplace transforms can be used as an alternative to the methods for solving initial value problems for linear
differential equations with constant coefficients that were considered previously. The basic idea of using Laplace
transform is to apply an (as yet underfined) transformation \( {\cal L} \) to both sides
of a differential equation, thus converting the differential equation into an algebraic equation. Then, the algebraic
equation is solved for the transform of the unknown function, and the inverse transform
\( {\cal L}^{-1} \) is applied to both sides of the solved equation, thus yielding the solution
to the differential equation.
Schematically, this process can be illustrated starting with, for example, a second order linear
differential equation with constant coefficients, as follows.
Of course, some details need to be addressed for this to make sense. In particular, we need to
express the left side \( {\cal L} \left[ a\,y'' + b\, y' + c\,y \right] \) in terms of
\( {\cal L} \left[ y \right] = y^L . \) We illustrate the method with examples.
which we have to multiply by the Heaviside function.
The denominator in the second term has two real nulls \( \lambda =2 \) and
\( \lambda =3 \) and two complex conjugate \( \lambda = \pm 2{\bf j} . \)
We calculate residues at each pole separately.
Its solution is the sum \( y(t) = y_h (t) + y_p (t) \) of two functions, one of them,
yh is the solution of the homogeneous equation subject to the given initial conditions