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.

Second order equations and superposition

An initial position no longer determines a trajectory once the equation involves acceleration, and everything built for first order equations has to be redone.

Mechanics forces the change. Newton's second law relates force to the second derivative of position, so the equation for a mass on a spring is mx''=-kx, and knowing where the mass is says nothing about where it goes next: it might be moving either way at any speed. Two numbers are needed, a position and a velocity, and that count is the visible signature of second order.

This lesson builds the structure that makes second order linear equations tractable. It produces no solutions at all, which is deliberate: the structure says how many solutions to look for and what to do once one is found, and the next lesson does the finding.

The operator and its linearity

Write the general second order linear equation in standard form, having divided by the coefficient of y'':

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

It is convenient to name the left side. Define L[y]=y''+py'+qy, a rule that takes a twice differentiable function and returns another function. The equation is then L[y]=g, homogeneous when g=0 and otherwise driven by the forcing g.

The one property that matters is that L is linear:

L[c1y1+c2y2]=c1L[y1]+c2L[y2]

which follows immediately from the derivative of a sum being the sum of derivatives, and from constants passing through derivatives. Everything in this lesson is a consequence of that identity, and nothing in it survives if the equation contains y2 or siny.

The first consequence is the principle of superposition: if y1 and y2 both solve L[y]=0, then so does c1y1+c2y2 for any constants, since L of that combination is c10+c20. Solutions of the homogeneous equation can be added and scaled freely, which in the language of the linear algebra course makes them a vector space. The question that then decides everything is what its dimension is.

Existence and uniqueness, and what it buys

The relevant theorem is stronger than Picard's, precisely because linearity removes the possibility of blow-up. If p, q and g are continuous on an open interval I containing t0, then for any numbers y0 and v0 there is exactly one solution of L[y]=g on the whole of I with y(t0)=y0 and y'(t0)=v0.

Three points. The interval is the whole of I, not some unknown piece of it. Two numbers are required, matching the order. And uniqueness has an immediately useful corollary: a solution whose value and derivative both vanish at one point is identically zero, because the zero function is one solution with that data and there is only one.

The solution space has dimension exactly two

Take any two solutions y1, y2 of the homogeneous equation, and ask when every solution can be written as c1y1+c2y2.

Let y be any solution, with y(t0)=y0 and y'(t0)=v0. We want constants making the combination match those two numbers:

c1y1(t0)+c2y2(t0)=y0,c1y1'(t0)+c2y2'(t0)=v0

Two linear equations in two unknowns. They have a solution for every right hand side exactly when the determinant of the coefficients is not zero, and that determinant is

W(t0)=y1(t0)y2'(t0)-y1'(t0)y2(t0)

called the Wronskian. If W(t0)0 the constants exist, the combination c1y1+c2y2 agrees with y in value and derivative at t0, and uniqueness forces the two functions to be the same everywhere. So every solution is a combination of the two, the pair is a fundamental set, and c1y1+c2y2 deserves the name general solution.

The dimension is therefore two, no more and no less: two because two constants are needed to meet arbitrary initial data, and no more because those two suffice. This is why a second order equation is solved once two independent solutions are found, and why finding a third is a sign of an algebra error rather than a discovery.

Abel's identity sharpens the test. Differentiating W=y1y2'-y1'y2 and using the equation to replace both second derivatives gives W'=-p(t)W, a separable equation, so W=Ce-pdt. The exponential is never zero, so either C=0 and the Wronskian vanishes identically, or it is never zero at all. Checking independence at one convenient point, usually t=0, settles it for the whole interval.

Example. Show that y1=cos2t and y2=sin2t form a fundamental set for y''+4y=0.

Both are solutions: differentiating twice multiplies each by -4, and the equation holds. The Wronskian is

W=cos2t2cos2t-(-2sin2t)sin2t=2cos22t+2sin22t=2

which is never zero, so the pair is independent and y=c1cos2t+c2sin2t is the general solution. Note that p=0 here, so Abel's identity predicts a constant Wronskian, which is what appeared.

Now you. Show that y1=e3t and y2=e-2t form a fundamental set for y''-y'-6y=0, and compute the Wronskian.

Answer

Substituting e3t gives 9-3-6=0 and e-2t gives 4+2-6=0, so both solve it. The Wronskian is e3t(-2e-2t)-3e3te-2t=-5et, never zero. Abel's identity agrees: p=-1, so W is a constant times et.

Fitting the initial conditions

With a fundamental set in hand, solving an initial value problem is two linear equations in two unknowns, every time.

Example. The general solution of y''-y'-6y=0 is y=c1e3t+c2e-2t. Solve it with y(0)=1 and y'(0)=8.

Setting t=0: c1+c2=1. Differentiating, y'=3c1e3t-2c2e-2t, so 3c1-2c2=8. Substituting c2=1-c1 into the second gives 5c1=10, so c1=2 and c2=-1. The solution is y=2e3t-e-2t.

Now you. Same equation, with y(0)=4 and y'(0)=-3.

Answer

c1+c2=4 and 3c1-2c2=-3. Substituting gives 5c1=5, so c1=1 and c2=3, and y=e3t+3e-2t.

Reduction of order

Suppose one solution y1 is known, by guesswork or from the physics. There is a systematic way to manufacture the second, due to d'Alembert: look for a solution of the form y=v(t)y1(t), with v a function rather than a constant.

Substituting is a short calculation. With y=vy1, y'=v'y1+vy1' and y''=v''y1+2v'y1'+vy1'', so

L[y]=v''y1+v'(2y1'+py1)+v(y1''+py1'+qy1)

The last bracket is L[y1], which is zero because y1 solves the equation. That is the point of the method: the term in v disappears, leaving an equation containing only v'' and v', which is a first order linear equation in the unknown v' and therefore already solvable by the integrating factor.

Example. Verify that y1=t2 solves t2y''-3ty'+4y=0 for t>0, and find a second independent solution.

Substituting y1=t2 gives 2t2-6t2+4t2=0, so it is a solution. Put y=vt2. Then y'=v't2+2tv and y''=v''t2+4tv'+2v, and the equation becomes

t4v''+4t3v'+2t2v-3t3v'-6t2v+4t2v=t4v''+t3v'=0

The terms in v cancel, as promised. Dividing by t4 leaves v''+v'/t=0, so v'=C/t and v=Clnt. Taking C=1, the second solution is y2=t2lnt, and the general solution is y=c1t2+c2t2lnt. Their Wronskian is t3, nonzero for t>0.

Now you. Verify that y1=e2t solves y''-4y'+4y=0, and find a second independent solution by reduction of order.

Answer

Substituting gives 4-8+4=0. With y=ve2t, y'=(v'+2v)e2t and y''=(v''+4v'+4v)e2t, so the equation becomes (v''+4v'+4v-4v'-8v+4v)e2t=v''e2t=0. Hence v''=0, v=A+Bt, and the new solution is y2=te2t.

That last result is worth holding on to. An equation whose characteristic algebra will turn out to have a repeated root produces a second solution with an extra factor of t, and reduction of order is where that factor comes from rather than being pulled out of a hat.

Adding forcing

Now let g be present. Suppose yp is any single solution of L[y]=g, called a particular solution, and let y be any other. Then by linearity

L[y-yp]=L[y]-L[yp]=g-g=0

so the difference solves the homogeneous equation. Therefore every solution of the driven equation is

y=yp+c1y1+c2y2

one particular response plus the general homogeneous solution, which is called the complementary function. This is the same split that appeared for first order equations as steady state plus transient, and it is now a theorem rather than an observation about one formula.

The practical consequences are two. The initial conditions must be applied to the whole expression, never to the complementary function alone, which is the single commonest error in this subject. And superposition extends to forcing: if L[y1]=g1 and L[y2]=g2, then L[y1+y2]=g1+g2, so a complicated forcing can be split into pieces, each handled separately and the results added. A circuit driven by a battery and a sinusoid can be analysed twice and the answers summed, which is the whole basis of frequency domain engineering.

What is still missing

Nothing so far produces a single solution. The theory says that two independent ones exist, that the Wronskian recognises them, that a third would be redundant, and that reduction of order gets the second from the first. It does not say how to get the first.

For general p(t) and q(t) there is no method, and even innocuous cases have no elementary solutions: y''+ty=0, the Airy equation, needs power series and defines new functions. But one case covers most of physics and all of elementary circuit theory, the case of constant coefficients, and there a single guess turns the differential equation into a quadratic. That is the next lesson.