#Differential Equations
A differential equation is an equation that involves one or more derivatives of an unknown function. These equations arrise naturally in most science diciplines. We will be concerned mostly with First Order Differential Equations, equations where the highest derivative on the unknown function is the first derivative. In general a First Order Differential Equation has the form,
Where is some function of our dependent variable and unknown function . The function can take on many different forms. Some examples include:
Toricelli's Law of Water Flow
Simple gravitational motion, gravitational acceleration, velocity
Simple gravitational motion with wind resistance
Logistic population growth, population, carrying capacity of environment.
Newton's Law of Cooling, Ambinent Temperature, Temperature, proportionality constant
###Solutions of Differential Equations
A solution to a differential equation is a differentiable function that satisfies the differential equation. For example, let's look at the differential equation, . The function is a solution. Let's verify this:
Notice that is also a solution for any real number . A family of solutions like this with an arbitrary constant is called a General Solution.
###First Order Solutions Part 1
Let's consider first order differential equations of the form, where the function does not depend on the unknown function. Differential equations like these can be solved directly by integration.
Remark: The arbitrary constant of integration gives us the general solution of our differential equation.
###Example 1
Consider the differential equation . The right hand side is independent of , the unknown function. Thus we can solve by direct integration.
Sage can be used to ingegrate this as well:
We can tell sage to solve the differential equation. First we tell Sage that is a function of . Then we use the command. This command takes two inputs, the differential equation, and the unknown function .
###Initial Value Problems
An Initial Value Problem is a differential equation with an extra piece of information (the initial value) that picks out a particular value for our arbitrary constant. For example, we can add the condition to our previous differential equation to get the initial value problem:
Visually, this solution is the one particular solution that "flows" through the point (1,0). To find the value of that corresponds to this solution, we plug in 0 for and for .
Solving for we get
Thus the solution to our initial value problem is, .
Notice that our "particular solution" passes through the point (1,0) as desired. We can use the command to solve initial value problems as well. Here after the term, we add the initial conditions as a pair within brackets.
#Differential Equations Part 1 Assignment
###Question 1
For the two following differential equations:
Find the general solution by hand, type in .
Use the command find the general solution using Sage.
Give a plot of a family of solutions. Pick an interval that looks representative of the solutions. (You may need to experiment different values here.)
By hand, find the Constant that satisfies the initial value problem. Verify that your constant is the same using Sage.
Plot your paricular solution using a range that includes the initial value point and demonstrates a representative portion of the solution.
,
,
###Question 2
For the two following differential equations:
Find the general solution using Sage
Solve the initial value problem using Sage.
Plot your solution using a range that includes the initial value point and demonstrates a representative portion of the solution.
,
,
,