Salta al contenuto
Note per Studenti Introduction to Ordinary Differential Equations Report

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 CnC^n 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

  • x2=5x^2 = 5 is a quadratic equation: the unknown is a number x∈Rx \in \mathbb{R}, and there are two solutions, x=±5x = \pm\sqrt5.
  • y′′=5y'' = 5 is a second-order differential equation: the unknown is a function y(t)y(t), of class C2C^2 on an interval II, and the equation requires its second derivative to equal 55 at every instant.

The variable of the unknown function is usually called tt (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: y(n)=f(t)y^{(n)} = f(t)

Example 1. Find the solutions of y′′=5y'' = 5, and then the one with y(1)=1y(1) = 1, y′(1)=−1y'(1) = -1.

If y∈C2(I)y \in C^2(I) is a solution, y′y' is a primitive of y′′=5y'' = 5, and yy is a primitive of y′y'. Integrating twice, adding a constant each time: y′(t)=∫5 dt=5t+c1,y(t)=∫(5t+c1) dt=52t2+c1t+c2∀c1,c2∈Ry'(t) = \int 5\,dt = 5t + c_1, \qquad y(t) = \int(5t + c_1)\,dt = \frac52 t^2 + c_1 t + c_2 \qquad \forall c_1, c_2 \in \mathbb{R} There are infinitely many solutions: one for each choice of the two constants c1,c2c_1, c_2 (second order, two constants).

For the solution with the two conditions, impose them one at a time:

  • y′(1)=5+c1=−1⇒c1=−6y'(1) = 5 + c_1 = -1 \Rightarrow c_1 = -6;
  • y(1)=52−6+c2=1⇒c2=7−52=92y(1) = \frac52 - 6 + c_2 = 1 \Rightarrow c_2 = 7 - \frac52 = \frac92.

There is a unique solution: y(t)=52t2−6t+92y(t) = \frac52 t^2 - 6t + \frac92 for every t∈Rt \in \mathbb{R}. (Check: y′′=5y'' = 5, y(1)=52−6+92=1y(1) = \frac52 - 6 + \frac92 = 1, y′(1)=5−6=−1y'(1) = 5 - 6 = -1.)

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 y(n)=f(t)y^{(n)} = f(t), with ff continuous: integrate nn times, adding a constant each time.

  • y′=f(t)y' = f(t): y(t)=F(t)+c1y(t) = F(t) + c_1, with FF a primitive of ff;
  • y′′=f(t)y'' = f(t): y′(t)=F(t)+c1y'(t) = F(t) + c_1, hence y(t)=∫F(t) dt+c1t+c2y(t) = \int F(t)\,dt + c_1 t + c_2;
  • y(n)=f(t)y^{(n)} = f(t): nn integrations, nn constants c1,…,cnc_1, \dots, c_n.

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). y(t)y(t) is the number of inhabitants of a population at time tt, and a∈Ra \in \mathbb{R} the growth rate (births minus deaths, per inhabitant and per unit time). The population grows faster the larger it is: y′=a yy' = a\,y Problem: with a=3a = 3 and 5050 inhabitants at the start, how many inhabitants after 100100 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 m>0m > 0 moves without friction on a straight guide, attached to a spring of elastic constant h>0h > 0 and slowed by a viscous resistance of constant k>0k > 0. If y(t)y(t) is the position, y′(t)y'(t) the velocity and y′′(t)y''(t) the acceleration, Newton's law F=maF = ma gives m y′′(t)=−h y(t)−k y′(t)⟹y′′=−hm y−km y′m\,y''(t) = -h\,y(t) - k\,y'(t) \quad\Longrightarrow\quad y'' = -\frac hm\,y - \frac km\,y' (the elastic force −hy-hy pulls back toward the origin, the viscous force −ky′-ky' opposes the velocity; we divided by m>0m > 0). 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: y′=f(t,y)y' = f(t, y);
  • of second order: y′′=f(t,y,y′)y'' = f(t, y, y');
  • of order nn: y(n)=f(t,y,y′,…,y(n−1))y^{(n)} = f(t, y, y', \dots, y^{(n-1)}).

The general integral of an equation of order nn is the set of its solutions: the functions y∈Cn(I)y \in C^n(I), with II an interval, such that y(n)(t)=f(t,y(t),y′(t),…,y(n−1)(t))∀t∈Iy^{(n)}(t) = f\big(t, y(t), y'(t), \dots, y^{(n-1)}(t)\big) \qquad \forall t \in I

Example. y′=ayy' = ay is of first order and y′′=5y'' = 5 of second order; the general integral of y′′=5y'' = 5 is y(t)=52t2+c1t+c2y(t) = \frac{5}{2}t^2 + c_1 t + c_2, with c1,c2∈Rc_1, c_2 \in \mathbb{R}.

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 t≠0t \ne 0), 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 t0∈Rt_0 \in \mathbb{R} and a value x0∈Rx_0 \in \mathbb{R} (the initial condition), the Cauchy problem {y′=f(t,y)y(t0)=x0\begin{cases} y' = f(t, y) \\ y(t_0) = x_0 \end{cases} asks for y∈C1(I)y \in C^1(I), with II an interval containing t0t_0, that solves the equation and has y(t0)=x0y(t_0) = x_0.

The largest interval II containing t0t_0 on which the solution is defined is called the maximal interval of definition of the solution.

Example. y′=2yy' = 2y, y(0)=3y(0) = 3 has the solution y(t)=3e2ty(t) = 3e^{2t}, defined on all of R\mathbb{R}.

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 ff the solution of the Cauchy problem is unique.

Second order

Definition (second-order Cauchy problem). Given two initial conditions x0,x1∈Rx_0, x_1 \in \mathbb{R} at an instant t0t_0, the Cauchy problem {y′′=f(t,y,y′)y(t0)=x0y′(t0)=x1\begin{cases} y'' = f(t, y, y') \\ y(t_0) = x_0 \\ y'(t_0) = x_1 \end{cases} asks for y∈C2(I)y \in C^2(I), with II an interval containing t0t_0, that solves the equation and the two conditions.

Example. y′′=5y'' = 5, y(1)=1y(1) = 1, y′(1)=−1y'(1) = -1 has the solution y(t)=52t2−6t+92y(t) = \frac{5}{2}t^2 - 6t + \frac{9}{2}, because y′(t)=5t−6y'(t) = 5t - 6 and y(1)=52−6+92=1y(1) = \frac{5}{2} - 6 + \frac{9}{2} = 1.

For a second-order equation both initial position and velocity are needed (in Example 1, y(1)y(1) and y′(1)y'(1)): 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 ff 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, y(t0)y(t_0) and y′(t0)y'(t_0).

Versione ripasso

What a differential equation is

  • Ordinary differential equation: it links an unknown function y(t)y(t) to its derivatives y′,…,y(n)y', \dots, y^{(n)}. The order is that of the highest derivative.
  • General integral: the set of solutions defined on an interval II. For an equation of order nn it typically contains nn arbitrary constants.

Simple case: y(n)=f(t)y^{(n)} = f(t)

Method. Integrate f(t)f(t) nn times with respect to tt. Each integration introduces an arbitrary constant (c1,…,cnc_1, \dots, c_n).

Exercise. Solve y′′=5y'' = 5 with y(1)=1,y′(1)=−1y(1) = 1, y'(1) = -1.

  1. Integrate: y′(t)=5t+c1y'(t) = 5t + c_1.
  2. Integrate: y(t)=52t2+c1t+c2y(t) = \frac{5}{2}t^2 + c_1 t + c_2.
  3. Initial conditions:
    • y′(1)=5+c1=−1⇒c1=−6y'(1) = 5 + c_1 = -1 \Rightarrow c_1 = -6.
    • y(1)=52−6+c2=1⇒c2=92y(1) = \frac{5}{2} - 6 + c_2 = 1 \Rightarrow c_2 = \frac{9}{2}.
  4. Result: y(t)=52t2−6t+92y(t) = \frac{5}{2}t^2 - 6t + \frac{9}{2}.

Models. Malthus: y′=a yy' = a\,y (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: m y′′=−h y−k y′m\,y'' = -h\,y - k\,y' (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 nn is y(n)=f(t,y,y′,…,y(n−1))y^{(n)} = f(t, y, y', \dots, y^{(n-1)}). Solutions are functions y∈Cn(I)y \in C^n(I) on an interval II.

The Cauchy problem

It attaches to the equation initial conditions at an instant t0t_0. Under suitable hypotheses on ff the solution is unique.

First order

{y′=f(t,y)y(t0)=x0\begin{cases} y' = f(t, y) \\ y(t_0) = x_0 \end{cases} Look for y∈C1(I)y \in C^1(I) with t0∈It_0 \in I. The largest such II is the maximal interval of definition.

Second order

{y′′=f(t,y,y′)y(t0)=x0y′(t0)=x1\begin{cases} y'' = f(t, y, y') \\ y(t_0) = x_0 \\ y'(t_0) = x_1 \end{cases} 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 n≥2n \ge 2.

Teoria collegata