Sign in

Libre University uses your GitHub account. Signing in is only needed to sit a final test, so the score is kept on your profile.

Constant coefficients

The previous lesson proved that a second order linear equation has exactly two independent solutions and gave no way to find even one, and this lesson closes that gap for the case that covers most of physics.

The case is constant coefficients:

ay''+by'+cy=0

with a, b and c numbers rather than functions of t. Every mass on a spring, every RLC circuit, every small oscillation about equilibrium in a system whose parts do not change with time is of this form, and the whole problem reduces to solving a quadratic.

The guess

Look at what the equation asks. A solution must be a function that reproduces itself, up to a constant, when differentiated once and again, so that the three terms can cancel. Exponentials do exactly that, so try y=ert with r unknown.

Then y'=rert and y''=r2ert, and substituting gives

(ar2+br+c)ert=0

The exponential is never zero, so the trial function solves the equation precisely when

ar2+br+c=0

the characteristic equation. A calculus problem has become an algebra problem, and this substitution is the entire method. The quadratic has two roots, and the three cases of the discriminant b2-4ac give the three behaviours that the rest of the course keeps meeting.

Two real roots

If b2-4ac>0 the roots r1r2 are real, and er1t and er2t are two solutions. They are independent: their Wronskian is (r2-r1)e(r1+r2)t, which is nonzero exactly because the roots differ. So the general solution is

y=c1er1t+c2er2t

and no other solutions exist, by the dimension argument of the previous lesson.

Example. Solve y''+5y'+6y=0 with y(0)=2 and y'(0)=-1.

The characteristic equation is r2+5r+6=(r+2)(r+3)=0, so r=-2 and r=-3 and y=c1e-2t+c2e-3t. The conditions give c1+c2=2 and -2c1-3c2=-1. Substituting c2=2-c1 into the second gives c1-6=-1, so c1=5 and c2=-3, and

y=5e-2t-3e-3t

At t=1 this is 5(0.1353)-3(0.0498)=0.527. Both terms decay, so y0, and after a short time the e-3t term is negligible and the decay is governed by the root nearer zero. That root is the one that matters in any real system: the slowest decaying mode dominates everything eventually.

Now you. Solve y''+y'-12y=0 with y(0)=1 and y'(0)=10.

Answer

r2+r-12=(r-3)(r+4)=0, so y=c1e3t+c2e-4t. Then c1+c2=1 and 3c1-4c2=10, giving 7c1=14, so c1=2 and c2=-1, and y=2e3t-e-4t. The positive root means this solution grows without bound.

Complex roots and Euler's formula

If b2-4ac<0 the roots are a complex conjugate pair r=α±iβ, with α=-b/2a and β=4ac-b2/2a. The algebra does not care: e(α+iβ)t is a perfectly good solution once the exponential of a complex number is defined. But the equation has real coefficients and describes a real system, so a real answer is wanted.

Euler's formula, eiθ=cosθ+isinθ, supplies it. Writing

e(α+iβ)t=eαt(cosβt+isinβt)

and using superposition, the sum of the two complex solutions is 2eαtcosβt and their difference is 2ieαtsinβt. Both are combinations of solutions, so both are solutions, and dividing by the constants leaves two real ones. Their Wronskian is βe2αt, nonzero since β0, so the general solution is

y=eαt(c1cosβt+c2sinβt)

This is the most important formula in the subject. The real part of the root sets the envelope, growing if α>0 and decaying if α<0, and the imaginary part sets the frequency of oscillation inside it. A single complex number carries both facts, which is why engineers work with complex roots and read off the physics at the end.

Example. Solve y''+2y'+5y=0 with y(0)=1 and y'(0)=3, and give the amplitude of the oscillation at t=0.

The characteristic equation is r2+2r+5=0, with roots r=-2±4-202=-1±2i. So y=e-t(c1cos2t+c2sin2t). At t=0, y=c1=1. Differentiating with the product rule,

y'=-e-t(c1cos2t+c2sin2t)+e-t(-2c1sin2t+2c2cos2t)

so y'(0)=-c1+2c2=3, giving c2=2. The solution is y=e-t(cos2t+2sin2t). Combining the trigonometric pair, its initial amplitude is 1+4=2.236, so the motion is an oscillation of period π inside an envelope ±2.236e-t. At t=1 the value is 0.516.

Now you. Solve y''+4y'+13y=0 with y(0)=2 and y'(0)=-1.

Answer

The roots are r=-4±16-522=-2±3i, so y=e-2t(c1cos3t+c2sin3t). Then c1=2, and y'(0)=-2c1+3c2=-1 gives c2=1. So y=e-2t(2cos3t+sin3t).

Writing the answer as a single sinusoid is often clearer. Since c1cosβt+c2sinβt=Rcos(βt-δ) with R=c12+c22 and tanδ=c2/c1, the example above is y=2.236e-tcos(2t-1.107), with the phase in radians. The amplitude-and-phase form is what an oscilloscope shows; the sine-and-cosine form is what the initial conditions fit easily. Both are used, and converting between them is worth doing until it is automatic.

The repeated root

If b2-4ac=0 there is only one root, r=-b/2a, and only one solution ert. The theory demands two, so the second must be found another way, and reduction of order supplies it exactly as in the previous lesson: putting y=vert into the equation makes the terms in v and v' both vanish, leaving v''=0, so v=A+Bt and the new solution is tert. The general solution is

y=(c1+c2t)ert

The factor of t is not a patch. It is what the double root means: the two exponentials of the nearby non-repeated case, er1t and er2t, have a difference which, divided by r2-r1 and taken to the limit as the roots merge, is precisely tert. The pair does not degenerate into one solution; it degenerates into a solution and a derivative.

Example. Solve y''+6y'+9y=0 with y(0)=1 and y'(0)=-1.

The characteristic equation is r2+6r+9=(r+3)2, so r=-3 twice and y=(c1+c2t)e-3t. Then c1=1, and differentiating, y'=c2e-3t-3(c1+c2t)e-3t, so y'(0)=c2-3c1=-1 and c2=2. Hence y=(1+2t)e-3t, which rises briefly before decaying, since the linear factor beats the exponential at first. At t=1 it is 3e-3=0.149.

Now you. Solve y''-4y'+4y=0 with y(0)=3 and y'(0)=4.

Answer

r2-4r+4=(r-2)2, so y=(c1+c2t)e2t. Then c1=3 and y'(0)=c2+2c1=4, so c2=-2 and y=(3-2t)e2t.

Reading the roots

Before any initial conditions are applied, the roots already say what the system does, and this is the habit worth acquiring.

Both roots negative and real: the solution decays without oscillating, and the slower root sets the timescale. Roots complex with negative real part: a decaying oscillation, frequency β, envelope time constant 1/|α|. Purely imaginary roots, meaning b=0: undamped oscillation at frequency β forever. Any root with a positive real part: growth, and the system is unstable, oscillating or not. A zero root, meaning c=0: a constant solution, so the system has no restoring force and drifts.

That classification is the whole qualitative theory of a linear second order system, and the next lesson does nothing but attach physical names to its cases.

Higher order, and one other solvable family

The method does not care about the order. For any(n)++a0y=0, substituting ert gives a polynomial of degree n, and each root contributes a solution: real roots give exponentials, complex conjugate pairs give eαtcosβt and eαtsinβt, and a root repeated k times contributes its exponential multiplied by 1,t,,tk-1. Together they give n independent solutions, and the solution space of an n-th order linear equation has dimension n.

For example y'''-y''-4y'+4y=0 has characteristic polynomial r3-r2-4r+4=(r-1)(r-2)(r+2), so the general solution is c1et+c2e2t+c3e-2t. The honest limit is that polynomials of degree five and above have no formula for their roots, so beyond the quartic the characteristic equation itself has to be solved numerically. That is not a serious obstacle, since a numerical root is as good as an exact one for computing a response, but it does mean the method stops being a closed form procedure.

One other family yields to a substitution of the same spirit. The Cauchy-Euler equation t2y''+αty'+βy=0 has coefficients that are not constant, but each derivative comes multiplied by exactly the matching power of t, so trying y=tr works: it gives r(r-1)+αr+β=0. The equation t2y''-3ty'+4y=0 from the previous lesson gives r2-4r+4=0, a repeated root at r=2, and the second solution acquires a factor of lnt rather than t, which is what reduction of order produced there.

What still cannot be done

Everything here is homogeneous: no forcing, no external driving. All these solutions decay, grow or oscillate on their own terms and then, if stable, sit at zero. A system that is being pushed needs a particular solution, which is a different problem.

It is also worth being clear about the reach of constant coefficients. They describe a system whose properties do not change with time and whose response is proportional to the disturbance. A spring stretched too far, a circuit driven into saturation, a pendulum swung through a large angle: none of these is covered, and the last of them is the subject of the final lesson.

Next, though, comes the physics. The equation mx''+cx'+kx=0 is one equation with three regimes, and the same three roots that came out of the algebra above turn out to be the difference between a car that rides well and one that bounces down the road.