All published worksheets from http://sagenb.org
Image: ubuntu2004
Checking solutions.
In this tutorial, we show how to check if a function is a solution of a differential equation. As an example, let's consider the equation:
We start by defining the independent and dependent variables, and an expression defining the right hand side of the differential equation:
We can now compute values of the slope field for the equation:
We know that the solution of the equation will have some exponentials. So, let's try :
We don't get zero, so this is not a solution. Let's try :
The general solution of the equation can be written as . Let's check this:
Guessing solutions
Many differential equations are solved by guessing the form of the solution. Let's consider the equation:
As before, start by defining the right-hand side of the equation:
We guess that solutions of this equation have an exponential form. We try , where is a constant to be determined:
We see that if we get 0 (independently of ). So, is a solution. We check this: