Second Order Differential Equations

Lineal second order differential equations are of the form:

p(t)y+q(t)y+r(t)y=g(t)

Usually we look at constant coefficient second order linear differential equations:

ay+by+cy=g(t)

If g(t)=0 then the D.E is homogeneous and if g(t)0 the D.E. is non-homogeneous

Homogeneous , constant coefficient, linear, 2nd order D.E

ay+by+cy=0
Principle of superposition

If y1(t) and y2(t) are two solutions to a linear, homogeneous differential equation then so is any linear combination:$$y(t) = c_1 y_1(t)+c_2 y_2(t)$$

If we further assume that the D.E. is 2nd order then the general solution will be this superposition.

Let's assume that solutions will be of the form: $$y(t) =e^{rt}$$
and its derivatives : y(t)=rert and y(t)=r2ert . We plug this into the differential:

ay+by+cy=0ar2ert+brert+cert=0ert(ar2+br+c)=0

Exponentials can never be zero, so if indeed the solutions are of this form then it will be true that:

ar2+br+c=0

This is the Characteristic equation for the initial D.E. It is a quadratic equation, meaning it will have two root r1 and r2 and therefore two solutions: $$y_1 =e^{r_1t}$$

y2=er2t

These two roots have 3 possible forms :

  1. Real distinct roots
  2. Complex orders
  3. Double roots

Real distinct roots, r1≠r2

ay+by+cy=0ar2+br+c=0y(t)=c1er1t+c2er2t

And solve for initial conditions or boundary conditions

Complex roots r1,2 = λ±μ i

If the roots are of the form

r1,2=λ±μi

and the corresponding solutions

y1(t)=eλ+μ  &  y2(t)=eλμ

Since we started only with real numbers the solutions must also be real. We can find 2 new real solutions by adding and subtracting y1 and y2 and then superpose those to get the general solution
Euler's Formula :

eiθ=cosθ+isinθeiθ=cosθisinθ

We split the solutions to exponentials with real and imaginary components:

y1=eλteiμt=eλt(cos(μt)+isin(μt))y2=eλteiμt=eλt(cos(μt)isin(μt))

Linear combination of the two solutions to arrive at a real solution:

u1(t)=12y1+12y2=122eλtcos(μt)=eλtcos(μt)u2(t)=12iy112iy2=12i2ieλtsin(μt)=eλtsin(μt)

So the General solution can be written as the linear combination of u1 and u2:

y(t)=c1eλtcos(μt)+c2eλtsin(μt)

Double roots, r1=r2=r

r1=r2=ry1(t)=y2(t)=ert

We have only one solution and we need a second one (2nd order). The roots of the quadratic are:

r1,2=b±b24ac2a

Since we have a double root :

b24ac=0r1,2=b2a

The first solution will be :

y1(t)=ebt2a

Let's suppose that there is a second solution in the form of :

y2=u(t)y1(t)=u(t)ebt2a

If we plug y2 and its derivatives on the initial D.E we will end up with this equation:

ebt2a(au(t)14a(b24ac)u(t))=0

but the second part is 0 and exponentials and the constant a cannot be zero (otherwise it would not be 2nd order):

u(t)=0u(t)=ct+k

The c and k constants can be integrated into the constant of the general solution and we are left with:

y(t)=c1ert+c2tert