Salta al contenuto
Note per Studenti First-Order Linear Differential Equations Report

First-Order Linear Differential Equations

In questa pagina 6
In questa pagina 6

Prerequisites: Introduction to Ordinary Differential EquationsAn ordinary differential equation of order n has an unknown function y(t) and links the n-th derivative to t, y, y', ..., y^(n-1). The general integral is the set of solutions, defined on an interval; there are usually infinitely many, depending on n constants. The Cauchy problem adds n initial conditions at a time t0 and under suitable hypotheses has a single solution. The equation y^(n) = f(t) is solved by integrating n times.Introduction to Ordinary Differential Equations →, the exponential and logarithm, the fundamental theorem of integral calculus. Related: 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 →.

The form

Definition (first-order linear equation). A first-order linear differential equation is y′+a(t) y=b(t),a,b∈C(I), I an intervaly' + a(t)\,y = b(t), \qquad a, b \in C(I), \ I \text{ an interval}

Example. y′+2y=ety' + 2y = e^t is first-order linear, with a(t)=2a(t) = 2 and b(t)=etb(t) = e^t.

It is a special case of y′=f(t,y)y' = f(t, y) with f(t,y)=−a(t) y+b(t)f(t, y) = -a(t)\,y + b(t): yy appears only to the first power, multiplied by a function of tt, plus a term depending only on tt. If b=0b = 0 the equation is called homogeneous.

How to recognize it: isolate y′y' and check whether the right-hand side is "a function of tt times yy, plus a function of tt".

Equation Linear? a(t)a(t) b(t)b(t)
y′=log⁡t−sinh⁡3t⋅yy' = \log t - \sinh^3 t\cdot y yes sinh⁡3t\sinh^3 t log⁡t\log t
y′=1+8y1+t2log⁡t=11+t2log⁡t+81+t2log⁡t yy' = \dfrac{1 + 8y}{1 + t^2\log t} = \dfrac{1}{1 + t^2\log t} + \dfrac{8}{1 + t^2\log t}\,y yes −81+t2log⁡t-\dfrac{8}{1 + t^2\log t} 11+t2log⁡t\dfrac{1}{1 + t^2\log t}
y′=t+y2y' = t + y^2 no (y2y^2)
y′=et+y=et⋅eyy' = e^{t + y} = e^t\cdot e^y no (eye^y)

(Watch the sign: with the form y′+a(t)y=b(t)y' + a(t)y = b(t), the coefficient a(t)a(t) is the opposite of the one multiplying yy when y′y' is isolated.)

Existence and uniqueness

Theorem 1 (global existence and uniqueness, without proof). Let a,b∈C(I)a, b \in C(I), with II an interval.

  • The general integral of y′+a(t) y=b(t)y' + a(t)\,y = b(t) consists of functions y∈C1(I)y \in C^1(I), defined on the same interval II as aa and bb.
  • For every initial condition x0∈Rx_0 \in \mathbb{R} at an instant t0∈It_0 \in I, the Cauchy problem {y′+a(t) y=b(t)y(t0)=x0\begin{cases} y' + a(t)\,y = b(t) \\ y(t_0) = x_0 \end{cases} has one and only one solution y∈C1(I)y \in C^1(I).

Example. y′+y=0y' + y = 0, y(0)=1y(0) = 1 has a single solution, y(t)=e−ty(t) = e^{-t}, defined on all of R\mathbb{R}.

The theorem says two things: the solution of the Cauchy problem is unique, and its maximal interval is known at once: it is the largest interval containing t0t_0 on which aa and bb are defined (and continuous). For non-linear equations this is not so (the solution can "blow up" earlier).

The solving method

Theorem 2. Let a,b∈C(I)a, b \in C(I), II an interval.

  1. The general integral of y′+a(t) y=b(t)y' + a(t)\,y = b(t) is y(t)=e−A(t)[c+∫eA(t) b(t) dt]∀c∈Ry(t) = e^{-A(t)}\left[c + \int e^{A(t)}\,b(t)\,dt\right] \qquad \forall c \in \mathbb{R} where A(t)=∫a(t) dtA(t) = \int a(t)\,dt is one primitive of aa (without constant) and ∫eA(t)b(t) dt\int e^{A(t)}b(t)\,dt is one primitive of eA(t)b(t)e^{A(t)}b(t) (without constant: the only constant is cc).
  2. The solution of the Cauchy problem with y(t0)=x0y(t_0) = x_0, t0∈It_0 \in I, is y(t)=e−A(t)[x0+∫t0teA(s) b(s) ds],A(t)=∫t0ta(s) dsy(t) = e^{-A(t)}\left[x_0 + \int_{t_0}^t e^{A(s)}\,b(s)\,ds\right], \qquad A(t) = \int_{t_0}^t a(s)\,ds (so that A(t0)=0A(t_0) = 0).

Example. y′+y=1y' + y = 1: A(t)=tA(t) = t and y(t)=e−t[c+∫et dt]=e−t(c+et)=c e−t+1y(t) = e^{-t}\left[c + \int e^t\,dt\right] = e^{-t}(c + e^t) = c\,e^{-t} + 1.

Proof

1. Let y∈C1(I)y \in C^1(I) be a solution: y′(t)+a(t) y(t)=b(t)∀t∈I(*)y'(t) + a(t)\,y(t) = b(t) \qquad \forall t \in I \tag{*} The trick is to multiply by the integrating factor eA(t)e^{A(t)}, with AA a primitive of aa (it is always positive, so the new equation is equivalent): eA(t) y′(t)+eA(t) a(t) y(t)=eA(t) b(t)e^{A(t)}\,y'(t) + e^{A(t)}\,a(t)\,y(t) = e^{A(t)}\,b(t) The left-hand side is the derivative of a product: by the product rule and the chain rule (A′=aA' = a), ddt(eA(t) y(t))=eA(t) a(t) y(t)+eA(t) y′(t)\frac{d}{dt}\left(e^{A(t)}\,y(t)\right) = e^{A(t)}\,a(t)\,y(t) + e^{A(t)}\,y'(t) which is exactly the left-hand side. So the equation becomes ddt(eA(t) y(t))=eA(t) b(t)\frac{d}{dt}\left(e^{A(t)}\,y(t)\right) = e^{A(t)}\,b(t) The two functions eA(t)y(t)e^{A(t)}y(t) and ∫eA(t)b(t) dt\int e^{A(t)}b(t)\,dt have the same derivative on the interval II, hence (primitives of a function on an interval differ by a constant) there is c∈Rc \in \mathbb{R} with eA(t) y(t)=∫eA(t) b(t) dt+ce^{A(t)}\,y(t) = \int e^{A(t)}\,b(t)\,dt + c Multiplying by e−A(t)e^{-A(t)} gives formula 1. (Conversely, by differentiating one checks that every function of that form solves the equation.)

2. Choose the primitive A(t)=∫t0ta(s) dsA(t) = \int_{t_0}^t a(s)\,ds, which vanishes at t0t_0. As above one gets dds(eA(s)y(s))=eA(s)b(s)\frac{d}{ds}\left(e^{A(s)}y(s)\right) = e^{A(s)}b(s), but now one integrates definitely between t0t_0 and tt (by the fundamental theorem of integral calculus): ∫t0tdds(eA(s) y(s))ds=eA(t) y(t)−eA(t0) y(t0)=eA(t) y(t)−x0\int_{t_0}^t \frac{d}{ds}\left(e^{A(s)}\,y(s)\right)ds = e^{A(t)}\,y(t) - e^{A(t_0)}\,y(t_0) = e^{A(t)}\,y(t) - x_0 (with eA(t0)=e0=1e^{A(t_0)} = e^0 = 1 and y(t0)=x0y(t_0) = x_0). Equating to ∫t0teA(s)b(s) ds\int_{t_0}^t e^{A(s)}b(s)\,ds and multiplying by e−A(t)e^{-A(t)} gives formula 2 ∎.

In practice there is no need to remember formula 2: find the general integral with formula 1 and then choose cc so that y(t0)=x0y(t_0) = x_0.

The homogeneous case

If b=0b = 0 the integral in the formula is 00 and what remains is y′+a(t) y=0⟹y(t)=c e−A(t),A(t)=∫a(t) dt, c∈Ry' + a(t)\,y = 0 \quad\Longrightarrow\quad y(t) = c\,e^{-A(t)}, \qquad A(t) = \int a(t)\,dt, \ c \in \mathbb{R}

The Malthus model

y′=a yy' = a\,y is written y′−a y=0y' - a\,y = 0: it is linear homogeneous, with constant coefficient −a-a in place of a(t)a(t) and I=RI = \mathbb{R}. A primitive of −a-a is −at-at, hence y(t)=c eat∀c∈R, ∀t∈Ry(t) = c\,e^{at} \qquad \forall c \in \mathbb{R},\ \forall t \in \mathbb{R}

  • a=0a = 0: constant population;
  • a>0a > 0: exponential growth;
  • a<0a < 0: exponential decay (extinction).

Grafico interattivo: Solutions of y' = a·y with y(0) = 1: y = e^{at} grows for a > 0, stays constant for a = 0, decays towards 0 for a < 0

The problem: a=3a = 3, t0=0t_0 = 0, x0=50x_0 = 50 inhabitants. From y(t)=c e3ty(t) = c\,e^{3t} and y(0)=c e0=c=50y(0) = c\,e^0 = c = 50: y(t)=50 e3t,y(100)=50 e300y(t) = 50\,e^{3t}, \qquad y(100) = 50\,e^{300} an enormous number (e300≈2⋅10130e^{300} \approx 2\cdot 10^{130}): the Malthus model is good only for short times, because it ignores limited resources.

A trick: second-order equations without yy

If in a second-order equation only y′′y'' and y′y' appear (not yy), set v=y′v = y': then v′=y′′v' = y'' and the equation becomes first-order in vv. Once vv is found, yy is obtained by integrating once.

Common mistakes

  • Getting the sign of a(t)a(t) wrong: the formula holds for the form y′+a(t)y=b(t)y' + a(t)y = b(t). With y′=yt+…y' = \frac{y}{t} + \dots one has a(t)=−1ta(t) = -\frac1t.
  • Adding constants in A(t)A(t) or in ∫eAb\int e^{A}b: the only constant is cc. A constant in AA would multiply cc and the result would not change, but the computations get more complicated.
  • Putting cc outside the bracket: e−A[c+∫eAb]e^{-A}\left[c + \int e^Ab\right] is not c e−A⋅∫eAbc\,e^{-A} \cdot \int e^Ab.
  • Forgetting the interval: with a(t)=−1ta(t) = -\frac1t the solution lives on ]0,+∞[]0, +\infty[ or on ]−∞,0[]-\infty, 0[, depending on where t0t_0 lies.

Versione ripasso

The form

A first-order linear differential equation is y′+a(t) y=b(t),a,b∈C(I), I an intervaly' + a(t)\,y = b(t), \qquad a, b \in C(I), \ I \text{ an interval}

If b=0b = 0 the equation is called homogeneous. To recognize it, isolate y′y': the right-hand side must be "function of tt times yy, plus function of tt", and the coefficient of yy with changed sign is a(t)a(t). E.g. y′=log⁡t−sinh⁡3t⋅yy' = \log t - \sinh^3 t\cdot y is linear with a(t)=sinh⁡3ta(t) = \sinh^3 t; y′=t+y2y' = t + y^2 is not.

Existence and uniqueness

For a,b∈C(I)a, b \in C(I), the Cauchy problem {y′+a(t) y=b(t)y(t0)=x0\begin{cases} y' + a(t)\,y = b(t) \\ y(t_0) = x_0 \end{cases} has one and only one solution y∈C1(I)y \in C^1(I), defined on the whole interval II where aa and bb are continuous.

The solving method

Theorem. Let a,b∈C(I)a, b \in C(I), A(t)=∫a(t) dtA(t) = \int a(t)\,dt. The general integral is: y(t)=e−A(t)[c+∫eA(t) b(t) dt],c∈Ry(t) = e^{-A(t)}\left[c + \int e^{A(t)}\,b(t)\,dt\right], \quad c \in \mathbb{R} (primitives without constant: the only constant is cc). With y(t0)=x0y(t_0) = x_0: y(t)=e−A(t)[x0+∫t0teA(s) b(s) ds]y(t) = e^{-A(t)}\left[x_0 + \int_{t_0}^t e^{A(s)}\,b(s)\,ds\right] with A(t)=∫t0ta(s) dsA(t) = \int_{t_0}^t a(s)\,ds; in practice, choose cc in the general formula.

Idea of the proof. Multiply the equation by the integrating factor eA(t)e^{A(t)}. The left-hand side becomes the derivative of a product: ddt(eA(t)y(t))=eA(t)b(t)\frac{d}{dt}(e^{A(t)}y(t)) = e^{A(t)}b(t). Integrate both sides and isolate yy.

Homogeneous case (b=0b=0): y(t)=c e−A(t)y(t) = c\,e^{-A(t)}.

Example: y′+y=1y' + y = 1: A=tA = t, y=e−t(c+et)=c e−t+1y = e^{-t}(c + e^t) = c\,e^{-t} + 1.

Malthus model

Equation y′=a yy' = a\,y, i.e. y′−a y=0y' - a\,y = 0 (linear homogeneous, coefficient −a-a). Solution: y(t)=c eaty(t) = c\,e^{at}.

  • a>0a > 0: exponential growth; a=0a = 0: constant.
  • a<0a < 0: exponential decay.
  • With a=3a = 3, y(0)=50y(0) = 50: y(t)=50 e3ty(t) = 50\,e^{3t}, y(100)=50 e300y(100) = 50\,e^{300} (the model is valid only for short times).

Trick: second-order equations without yy

If the equation has the form f(t,y′,y′′)=0f(t, y', y'') = 0, set v(t)=y′(t)v(t) = y'(t). The equation becomes first-order in vv: f(t,v,v′)=0f(t, v, v') = 0. Once vv is found, integrate to find yy.

Common mistakes

  • Sign of a(t)a(t): forgetting the opposite sign after isolating y′y'.
  • Arbitrary constants: adding extra constants while computing A(t)A(t) or the integral; the only constant is cc in the final result.
  • Distributing cc: forgetting that cc must be multiplied by e−A(t)e^{-A(t)}.
  • Domain: ignoring that the interval of definition is dictated by the discontinuities of a(t)a(t) and b(t)b(t): with a(t)=−1ta(t) = -\frac1t one stays in ]0,+∞[]0, +\infty[ or in ]−∞,0[]-\infty, 0[, depending on where t0t_0 lies.

Teoria collegata