Mathematics & Science
Learning Center |
|||
An Introduction to Differential Equation SolversAt this point in your differential equations course you should have gotten used to a few of the analytic techniques used to solve first order differential equations. The technique varies somewhat according to the form of the original equation, and you may already have seen forms classified as separable, exact, homogeneous, or linear. The method of solution of each of these forms inevitably involves some type of integration in order to eliminate the unwanted derivative. For the most part the techniques can become rote exercises, whereby you, the student, classifies the form of the equation, then follows the appropriate recipe to solve it. This kind of repetition sounds like an ideal task for relegating to a computer. Given this fact, it is surprising how recently personal computer applications were first created to handle the analytic solution of differential equations. (Numerical solutions, on the other hand, were one of the first tasks ever assigned to computers—way back when they were first invented. Indeed, some might even claim that's why they were invented.) The current state of affairs is that there is a growing set of analytic solvers for personal computers, and Mathematica can claim to be among the best of these. The quality of these programs has improved with each new version of the software, but there are still shortcomings in all of the packages. In this laboratory you'll be learning to use Mathematica's built in differential equation solver. The command we'll need is DSolve. As usual when starting to use a new command in Mathematica, it's a good idea to ask it to describe the command itself. In this case we do this by issuing the command ?DSolve, followed by the [ENTER] key on the keyboard's numeric keypad, (not the [RETURN] key). It's now time to switch to Mathematica to try the command. Remember, type ?DSolve, followed by the [ENTER] key. Don't forget to come back here when you're done! See you in a few minutes. Click on the button provided on the left to switch. We call the procedure you just completed "checking the syntax" of the command, i.e. we're checking to see exactly what form we're supposed to use when typing the command into Mathematica. (We wouldn't want to get any brackets, braces, commas, etc. in the wrong places.) Let's now move on to a new page where we can discuss the result that Mathematica just gave you. |
|||
ODE Laboratories: A Sabbatical Project by Christopher A. Barker ©2017 San Joaquin Delta College, 5151 Pacific Ave., Stockton, CA 95207, USA e-mail: cbarker@deltacollege.edu |