Introduction to Ordinary Differential Equations
In questa pagina 6
In questa pagina 4
Prerequisites: primitives and the fundamental theorems of integral calculus, higher-order derivatives and functions. Next: First-Order Linear Differential EquationsFor y' + a(t)y = b(t) with a, b continuous on an interval I, solutions are defined on all of I and the Cauchy problem has a unique solution. General integral: y = e^(-A(t))[c + integral of e^(A(t)) b(t)], with A a primitive of a; for the homogeneous equation (b = 0) y = c e^(-A(t)). The proof multiplies by the integrating factor e^(A(t)).First-Order Linear Differential Equations →, Separable Differential EquationsFor y' = a(t) b(y) with a continuous on I and b continuous on J, the zeros of b give the constant solutions (singular integrals). The others are found by dividing by b(y) and integrating: integral of dy/b(y) = integral of a(t) dt + c, then solving for y. If b is C^1 the Cauchy problem has a unique solution, but it may exist only on a smaller interval than I; if b is only continuous uniqueness may fail (y' = cube root of y).Separable Differential Equations →.
What a differential equation is
- is a quadratic equation: the unknown is a number , and there are two solutions, .
- is a second-order differential equation: the unknown is a function , of class on an interval , and the equation requires its second derivative to equal at every instant.
The variable of the unknown function is usually called (time), because differential equations describe how a system evolves in time. "Ordinary" means that the unknown function depends on a single variable.
The simplest case:
Example 1. Find the solutions of , and then the one with , .
If is a solution, is a primitive of , and is a primitive of . Integrating twice, adding a constant each time: There are infinitely many solutions: one for each choice of the two constants (second order, two constants).
For the solution with the two conditions, impose them one at a time:
- ;
- .
There is a unique solution: for every . (Check: , , .)
Grafico interattivo: Solutions of y'' = 5 with y(1) = 1: the slope y'(1) selects the parabola; for y'(1) = −1 one gets y = (5/2)t² − 6t + 9/2
Solving method for , with continuous: integrate times, adding a constant each time.
- : , with a primitive of ;
- : , hence ;
- : integrations, constants .
What they are for: two models
Differential equations are the language of mathematical models of physical, biological, economic and statistical phenomena. They are usually more complicated than Example 1, because the derivative also depends on the function itself.
Example 2 (Malthus growth model). is the number of inhabitants of a population at time , and the growth rate (births minus deaths, per inhabitant and per unit time). The population grows faster the larger it is: Problem: with and inhabitants at the start, how many inhabitants after years? The solution is in First-Order Linear Differential EquationsFor y' + a(t)y = b(t) with a, b continuous on an interval I, solutions are defined on all of I and the Cauchy problem has a unique solution. General integral: y = e^(-A(t))[c + integral of e^(A(t)) b(t)], with A a primitive of a; for the homogeneous equation (b = 0) y = c e^(-A(t)). The proof multiplies by the integrating factor e^(A(t)).First-Order Linear Differential Equations →.
Example 3 (damped harmonic oscillator). A point mass moves without friction on a straight guide, attached to a spring of elastic constant and slowed by a viscous resistance of constant . If is the position, the velocity and the acceleration, Newton's law gives (the elastic force pulls back toward the origin, the viscous force opposes the velocity; we divided by ). It is solved with the methods of Second-Order Linear Equations with Constant Coefficients - Homogeneous CaseFor y'' + a1 y' + a0 y = 0 with constant a0, a1 one looks for solutions e^(lambda t): they work if lambda is a root of the characteristic polynomial p(lambda) = lambda^2 + a1 lambda + a0. Delta > 0 (roots lambda1 and lambda2 distinct): y = c1 e^(lambda1 t) + c2 e^(lambda2 t). Delta = 0 (double root lambda): y = (c1 + c2 t) e^(lambda t). Delta < 0 (roots alpha plus or minus i omega): y = e^(alpha t)(c1 cos omega t + c2 sin omega t). The same method holds for every order.Second-Order Linear Equations with Constant Coefficients - Homogeneous Case →.
In this course solving methods are seen only for some classes of first- and second-order equations, the most used in applications.
Definition
Definition (ordinary differential equation and general integral). An ordinary differential equation is
- of first order: ;
- of second order: ;
- of order : .
The general integral of an equation of order is the set of its solutions: the functions , with an interval, such that
Example. is of first order and of second order; the general integral of is , with .
The order is that of the highest derivative appearing.
Solutions are always defined on an interval. If a formula makes sense on a set that is not an interval (for instance ), one chooses the interval needed, usually the one containing the initial instant.
The Cauchy problem
First order
Definition (first-order Cauchy problem). Given an instant and a value (the initial condition), the Cauchy problem asks for , with an interval containing , that solves the equation and has .
The largest interval containing on which the solution is defined is called the maximal interval of definition of the solution.
Example. , has the solution , defined on all of .
The idea: the equation says how the function changes (the slope at each point), the initial condition says where it starts. Under suitable hypotheses on the solution of the Cauchy problem is unique.
Second order
Definition (second-order Cauchy problem). Given two initial conditions at an instant , the Cauchy problem asks for , with an interval containing , that solves the equation and the two conditions.
Example. , , has the solution , because and .
For a second-order equation both initial position and velocity are needed (in Example 1, and ): the general integral depends on two constants, and two conditions are needed to fix them. Here too one defines the maximal interval, and under suitable hypotheses on the solution is unique.
Common mistakes
- Forgetting the constants when integrating: one finds a single solution instead of the general integral.
- Taking as domain of the solution a set that is not an interval.
- For second order, giving only one initial condition: the Cauchy problem requires two, and .
Versione ripasso
What a differential equation is
- Ordinary differential equation: it links an unknown function to its derivatives . The order is that of the highest derivative.
- General integral: the set of solutions defined on an interval . For an equation of order it typically contains arbitrary constants.
Simple case:
Method. Integrate times with respect to . Each integration introduces an arbitrary constant ().
Exercise. Solve with .
- Integrate: .
- Integrate: .
- Initial conditions:
- .
- .
- Result: .
Models. Malthus: (First-Order Linear Differential EquationsFor y' + a(t)y = b(t) with a, b continuous on an interval I, solutions are defined on all of I and the Cauchy problem has a unique solution. General integral: y = e^(-A(t))[c + integral of e^(A(t)) b(t)], with A a primitive of a; for the homogeneous equation (b = 0) y = c e^(-A(t)). The proof multiplies by the integrating factor e^(A(t)).First-Order Linear Differential Equations →). Damped harmonic oscillator: (Second-Order Linear Equations with Constant Coefficients - Homogeneous CaseFor y'' + a1 y' + a0 y = 0 with constant a0, a1 one looks for solutions e^(lambda t): they work if lambda is a root of the characteristic polynomial p(lambda) = lambda^2 + a1 lambda + a0. Delta > 0 (roots lambda1 and lambda2 distinct): y = c1 e^(lambda1 t) + c2 e^(lambda2 t). Delta = 0 (double root lambda): y = (c1 + c2 t) e^(lambda t). Delta < 0 (roots alpha plus or minus i omega): y = e^(alpha t)(c1 cos omega t + c2 sin omega t). The same method holds for every order.Second-Order Linear Equations with Constant Coefficients - Homogeneous Case →).
Definition
An equation of order is . Solutions are functions on an interval .
The Cauchy problem
It attaches to the equation initial conditions at an instant . Under suitable hypotheses on the solution is unique.
First order
Look for with . The largest such is the maximal interval of definition.
Second order
Two conditions (position and velocity) fix the two constants of the general integral.
Common mistakes:
- Forgetting the integration constants.
- Choosing as domain of the solution a set that is not an interval.
- Giving a single initial condition for an equation of order .