Salta al contenuto
Note per Studenti Second-Order Linear Equations with Constant Coefficients - Nonhomogeneous Case Report

Second-Order Linear Equations with Constant Coefficients - Nonhomogeneous Case

In questa pagina 6
In questa pagina 3

Prerequisites: 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 →, Second-Order Linear Differential Equations - General StructureFor y'' + a1(t)y' + a0(t)y = b(t) with continuous coefficients on an interval, solutions are defined on the whole interval and the Cauchy problem with y(t0), y'(t0) has a unique solution. The general integral of the homogeneous equation is c1 y1 + c2 y2 with y1, y2 linearly independent solutions (checked with the Wronskian); that of the complete equation is yp + c1 y1 + c2 y2, with yp a particular solution. The same structure holds for every order n.Second-Order Linear Differential Equations - General Structure → (structure of the general integral of the complete equation).

What is left to do

For the complete equation y′′+a1 y′+a0 y=b(t),a0,a1∈R(Ec)y'' + a_1\,y' + a_0\,y = b(t), \qquad a_0, a_1 \in \mathbb{R} \tag{$E_c$} the general integral is y(t)=y0(t)+yp(t)y(t) = y_0(t) + y_p(t) where y0y_0 is the general integral of the homogeneous equation (found with the characteristic polynomial) and ypy_p is one particular solution of (Ec)(E_c). Only ypy_p is left to find.

It can be found when b(t)b(t) is a polynomial, an exponential, a sine or a cosine, or a product (or sum) of these functions: b(t)=Qm(t),eαt,cos⁡(ωt), sin⁡(ωt)b(t) = Q_m(t), \qquad e^{\alpha t}, \qquad \cos(\omega t),\ \sin(\omega t) with Qm(t)=b0+b1t+⋯+bmtmQ_m(t) = b_0 + b_1 t + \dots + b_m t^m (bm≠0b_m \ne 0) a polynomial of degree mm.

The method of similarity

The idea: if b(t)b(t) is of a certain type, look for ypy_p of the same type, with unknown coefficients, and find them by substituting in the equation. It works because differentiating a polynomial times an exponential times a sine/cosine gives again a function of the same type.

Criterion (method of similarity). Method. Let b(t)=Qm(t) eαtcos⁡(ωt)b(t) = Q_m(t)\,e^{\alpha t}\cos(\omega t) (or with sin⁡(ωt)\sin(\omega t)), with QmQ_m a polynomial of degree mm, α∈R\alpha \in \mathbb{R}, ω≥0\omega \ge 0. Consider the (possibly complex) number λˉ=α+iω\bar\lambda = \alpha + i\omega and compare it with the roots of the characteristic polynomial p(λ)=λ2+a1λ+a0p(\lambda) = \lambda^2 + a_1\lambda + a_0.

  1. p(λˉ)≠0p(\bar\lambda) \ne 0 (λˉ\bar\lambda is not a root): a particular solution is yp1(t)=eαt(Qm1(t)cos⁡(ωt)+Qm2(t)sin⁡(ωt))y_p^1(t) = e^{\alpha t}\left(Q_m^1(t)\cos(\omega t) + Q_m^2(t)\sin(\omega t)\right) with Qm1(t)=A0+A1t+⋯+AmtmQ_m^1(t) = A_0 + A_1 t + \dots + A_m t^m and Qm2(t)=B0+B1t+⋯+BmtmQ_m^2(t) = B_0 + B_1 t + \dots + B_m t^m polynomials of degree mm whose coefficients are found by substituting yp1y_p^1 in the equation.
  2. λˉ\bar\lambda is a simple root (multiplicity 11) of pp: yp(t)=t⋅yp1(t)y_p(t) = t\cdot y_p^1(t).
  3. λˉ\bar\lambda is a double root of pp (it happens only with Δ=0\Delta = 0 and λˉ\bar\lambda real): yp(t)=t2⋅yp1(t)y_p(t) = t^2\cdot y_p^1(t).

In cases 2 and 3 one speaks of the phenomenon of resonance.

Example. y′′−3y′+2y=ety'' - 3y' + 2y = e^t: λˉ=1\bar\lambda = 1 is a simple root of p(λ)=λ2−3λ+2p(\lambda) = \lambda^2 - 3\lambda + 2, so yp=A t ety_p = A\,t\,e^t; substituting one finds A=−1A = -1, that is yp=−t ety_p = -t\,e^t.

Warning: even if b(t)b(t) contains only the cosine (or only the sine), in ypy_p both must be put, because differentiating one gives the other.

Why multiply by tt. If λˉ\bar\lambda is a root, the function yp1y_p^1 of case 1 solves the homogeneous equation: substituted in the equation it gives 00, not b(t)b(t), and no choice of the coefficients works. Multiplying by tt (or t2t^2) one leaves the solutions of the homogeneous equation, as in the case Δ=0\Delta = 0 of the homogeneous equation, where the second solution is t eλtt\,e^{\lambda t}.

The most frequent special cases

b(t)b(t) λˉ\bar\lambda yp1y_p^1 (no resonance)
Qm(t)Q_m(t) (polynomial) 00 A0+A1t+⋯+AmtmA_0 + A_1 t + \dots + A_m t^m
Qm(t) eαtQ_m(t)\,e^{\alpha t} α\alpha (A0+A1t+⋯+Amtm) eαt(A_0 + A_1 t + \dots + A_m t^m)\,e^{\alpha t}
bcos⁡(ωt)b\cos(\omega t) or bsin⁡(ωt)b\sin(\omega t) iωi\omega Acos⁡(ωt)+Bsin⁡(ωt)A\cos(\omega t) + B\sin(\omega t)
b eαtcos⁡(ωt)b\,e^{\alpha t}\cos(\omega t) α+iω\alpha + i\omega eαt(Acos⁡(ωt)+Bsin⁡(ωt))e^{\alpha t}\left(A\cos(\omega t) + B\sin(\omega t)\right)

For a polynomial, b(t)=Qm(t)=Qm(t) e0tcos⁡(0t)b(t) = Q_m(t) = Q_m(t)\,e^{0t}\cos(0t): so α=0\alpha = 0, ω=0\omega = 0, λˉ=0\bar\lambda = 0, and there is resonance when 00 is a root of pp, that is when a0=0a_0 = 0 (the term in yy is missing).

How to find the coefficients. Compute yp′y_p' and yp′′y_p'', substitute in the equation and equate the coefficients of the same powers of tt (identity principle for polynomials), or of cos⁡(ωt)\cos(\omega t) and sin⁡(ωt)\sin(\omega t) (an identity principle holds for these combinations too).

Resonance in the forced oscillator

For y′′+h y=2cos⁡(2t)y'' + h\,y = 2\cos(2t), with h>0h > 0 (a point attached to a spring, without friction, pushed by a periodic external force), the roots of the characteristic polynomial are ±ih\pm i\sqrt h and λˉ=2i\bar\lambda = 2i:

  • if h≠4h \ne 4 (the frequency of the force differs from the natural one of the spring) the particular solution is 2h−4cos⁡(2t)\frac{2}{h - 4}\cos(2t), bounded;
  • if h=4h = 4 (same frequency) there is resonance: yp=12tsin⁡(2t)y_p = \frac12 t\sin(2t), which oscillates with an amplitude that grows without bound.

Hence the name: a bounded force, with the "right" frequency, produces larger and larger oscillations.

Grafico interattivo: Resonance: y = (1/2) t sin(2t) oscillates with growing amplitude

Superposition principle

Principle (superposition). If b(t)=b1(t)+b2(t)b(t) = b_1(t) + b_2(t), the general integral of y′′+a1y′+a0y=b1(t)+b2(t)y'' + a_1 y' + a_0 y = b_1(t) + b_2(t) is y(t)=y0(t)+yp1(t)+yp2(t)y(t) = y_0(t) + y_{p_1}(t) + y_{p_2}(t) where y0y_0 is the general integral of the homogeneous equation, yp1y_{p_1} a particular solution of y′′+a1y′+a0y=b1(t)y'' + a_1 y' + a_0 y = b_1(t) and yp2y_{p_2} one of y′′+a1y′+a0y=b2(t)y'' + a_1 y' + a_0 y = b_2(t).

Example. y′′−y=2+e2ty'' - y = 2 + e^{2t}: for b1=2b_1 = 2 one has yp1=−2y_{p_1} = -2 and for b2=e2tb_2 = e^{2t} one has yp2=13e2ty_{p_2} = \frac{1}{3}e^{2t}, so yp=−2+13e2ty_p = -2 + \frac{1}{3}e^{2t}.

In this way one handles one forcing term at a time, each with its own λˉ\bar\lambda (one may give resonance and the other not).

Proof (not required). Substitute y=y0+yp1+yp2y = y_0 + y_{p_1} + y_{p_2} and regroup: y′′+a1y′+a0y=(y0′′+a1y0′+a0y0)⏟0+(yp1′′+a1yp1′+a0yp1)⏟b1(t)+(yp2′′+a1yp2′+a0yp2)⏟b2(t)=b1(t)+b2(t)y'' + a_1 y' + a_0 y = \underbrace{(y_0'' + a_1 y_0' + a_0 y_0)}_{0} + \underbrace{(y_{p_1}'' + a_1 y_{p_1}' + a_0 y_{p_1})}_{b_1(t)} + \underbrace{(y_{p_2}'' + a_1 y_{p_2}' + a_0 y_{p_2})}_{b_2(t)} = b_1(t) + b_2(t) So yy is a solution; and yp1+yp2y_{p_1} + y_{p_2} is a particular solution, hence by the structure of the general integral of the complete equation all solutions are obtained ∎.

The method holds for every order

For linear equations with constant coefficients of order nn the method is the same: check whether λˉ\bar\lambda is a root of the characteristic polynomial and with which multiplicity kk, and multiply yp1y_p^1 by tkt^k.

Common mistakes

  • Putting only the cosine in ypy_p when b(t)b(t) contains only the cosine: both Acos⁡A\cos and Bsin⁡B\sin are needed.
  • Forgetting resonance: before writing ypy_p always check whether λˉ\bar\lambda is a root of pp.
  • For a polynomial of degree mm using a polynomial of lower degree: for b(t)=1+t2b(t) = 1 + t^2 one needs A+Bt+Ct2A + Bt + Ct^2 even though the term in tt is missing.
  • Imposing the initial conditions on y0y_0 instead of on y0+ypy_0 + y_p.

Versione ripasso

Prerequisite: 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 →. The general integral of (Ec)(E_c) y′′+a1 y′+a0 y=b(t)y'' + a_1\,y' + a_0\,y = b(t) is: y(t)=y0(t)+yp(t)y(t) = y_0(t) + y_p(t) where y0y_0 is the solution of the associated homogeneous equation and ypy_p is a particular solution.

The method of similarity

Let b(t)=Qm(t) eαtcos⁡(ωt)b(t) = Q_m(t)\,e^{\alpha t}\cos(\omega t) (or sin⁡(ωt)\sin(\omega t)), QmQ_m a polynomial of degree mm, ω≥0\omega \ge 0. Let λˉ=α+iω\bar\lambda = \alpha + i\omega and p(λ)=λ2+a1λ+a0p(\lambda) = \lambda^2 + a_1\lambda + a_0.

Method.

  1. If p(λˉ)≠0p(\bar\lambda) \ne 0: yp1(t)=eαt(Qm1(t)cos⁡(ωt)+Qm2(t)sin⁡(ωt))y_p^1(t) = e^{\alpha t}\left(Q_m^1(t)\cos(\omega t) + Q_m^2(t)\sin(\omega t)\right), with Qm1,Qm2Q_m^1, Q_m^2 polynomials of degree mm with unknown coefficients.
  2. If λˉ\bar\lambda is a simple root: yp=t⋅yp1y_p = t \cdot y_p^1; if it is a double root (only with Δ=0\Delta = 0 and λˉ\bar\lambda real): yp=t2⋅yp1y_p = t^2 \cdot y_p^1 (resonance).

Why tt: if λˉ\bar\lambda is a root, yp1y_p^1 solves the homogeneous equation and gives 00 instead of b(t)b(t).

Example: y′′−3y′+2y=ety'' - 3y' + 2y = e^t: λˉ=1\bar\lambda = 1 simple root, yp=Atety_p = Ate^t, A=−1A = -1.

Frequent cases

b(t)b(t) λˉ\bar\lambda yp1y_p^1 (no resonance)
Qm(t)Q_m(t) 00 A0+A1t+⋯+AmtmA_0 + A_1 t + \dots + A_m t^m
Qm(t) eαtQ_m(t)\,e^{\alpha t} α\alpha (A0+⋯+Amtm) eαt(A_0 + \dots + A_m t^m)\,e^{\alpha t}
bcos⁡(ωt)b\cos(\omega t) or bsin⁡(ωt)b\sin(\omega t) iωi\omega Acos⁡(ωt)+Bsin⁡(ωt)A\cos(\omega t) + B\sin(\omega t)
b eαtcos⁡(ωt)b\,e^{\alpha t}\cos(\omega t) α+iω\alpha + i\omega eαt(Acos⁡(ωt)+Bsin⁡(ωt))e^{\alpha t}\left(A\cos(\omega t) + B\sin(\omega t)\right)

For a polynomial λˉ=0\bar\lambda = 0: there is resonance when a0=0a_0 = 0.

Coefficients: substitute ypy_p in (Ec)(E_c) and equate coefficients.

Resonance in the forced oscillator

For y′′+h y=2cos⁡(2t)y'' + h\,y = 2\cos(2t), h>0h > 0: the roots are ±ih\pm i\sqrt h and λˉ=2i\bar\lambda = 2i.

  • h≠4h \ne 4: yp=2h−4cos⁡(2t)y_p = \frac{2}{h - 4}\cos(2t), bounded.
  • h=4h = 4: λˉ=2i\bar\lambda = 2i is a simple root, resonance: yp=12tsin⁡(2t)y_p = \frac{1}{2} t\sin(2t), with unboundedly growing amplitude.

Superposition principle

If b(t)=b1(t)+b2(t)b(t) = b_1(t) + b_2(t), the particular solution is yp=yp1+yp2y_p = y_{p_1} + y_{p_2}. It follows from linearity: each term has its own λˉ\bar\lambda (one may give resonance and the other not). Example: y′′−y=2+e2ty'' - y = 2 + e^{2t} gives yp=−2+13e2ty_p = -2 + \frac13 e^{2t}.

Common mistakes: omitting the sine (or the cosine) in ypy_p; not checking resonance; using a polynomial of lower degree (for 1+t21 + t^2 one needs A+Bt+Ct2A + Bt + Ct^2); imposing the initial conditions on y0y_0 instead of on y0+ypy_0 + y_p.

Teoria collegata