Differential Equations › Section C · Second order differential equations › Topic C.1
Basic concepts and superposition
Newton's second law ties force to acceleration, a second derivative, so springs, circuits and swinging beams all lead to second order equations. This topic sets up the vocabulary, the principle that lets solutions be combined, and the exponential guess that starts every constant coefficient case.
Why second order equations matter
First order equations describe quantities whose rate of change depends on their current value. Many physical laws go one step further. Newton's second law says force equals mass times acceleration, and acceleration is the second derivative of position, so the motion of a mass on a spring is governed by an equation containing \(y''\). The same structure appears in electrical circuits with an inductor, in vibrating beams and in the swaying of tall buildings. This section studies the most useful family: linear second order equations, and above all those with constant coefficients.
The general linear equation
A second order equation is linear when \(y\), \(y'\) and \(y''\) each appear only to the first power and are multiplied only by functions of \(t\):
When the coefficients are numbers, it becomes \(ay'' + by' + cy = g(t)\). If \(g(t) = 0\) the equation is homogeneous; otherwise it is nonhomogeneous. So \(y'' + 4y = 0\) is linear and homogeneous with constant coefficients, \(t^2y'' - ty' + y = 0\) is linear and homogeneous with variable coefficients, and \(y'' + \sin y = 0\) is not linear at all. Some books also call a first order equation \(y' = F(y/t)\) homogeneous; that is an unrelated meaning of the word.
Guessing a few solutions
Look at \(y'' - 4y = 0\). It asks for a function whose second derivative is four times itself. Exponentials come back to themselves when differentiated, so try \(e^{2t}\): its second derivative is \(4e^{2t}\), which works. So does \(e^{-2t}\), because the two minus signs cancel. But these are not the only solutions. The functions \(3e^{2t}\), \(-e^{-2t}\) and \(5e^{2t} - 7e^{-2t}\) all pass the test as well. In fact every function of the form \(c_1e^{2t} + c_2e^{-2t}\) is a solution, whatever the constants. That observation is not an accident of this equation.
The principle of superposition
If \(y_1\) and \(y_2\) both solve a linear homogeneous equation, then so does every combination \(c_1y_1 + c_2y_2\). The reason is that derivatives respect sums and constant multiples. Substituting the combination into the left-hand side splits it into \(c_1\) times the result for \(y_1\) plus \(c_2\) times the result for \(y_2\), and both of those are zero. The principle holds for linear homogeneous equations of any order, but it fails without both words. For the nonhomogeneous \(y'' - 4y = 8\), the constant \(y = -2\) is a solution, yet doubling it gives \(y = -4\) and a left side of 16, not 8.
Two constants need two conditions
For a second order linear homogeneous equation, a suitable pair of solutions gives the general solution
What makes a pair suitable is made precise in the later topic "Fundamental sets and the Wronskian"; for now, two solutions that are not constant multiples of each other will do. Two arbitrary constants need two equations to pin them down. The standard choice is a pair of initial conditions at one instant, \(y(t_0) = y_0\) and \(y'(t_0) = y_0'\): a starting position and a starting velocity. Conditions given at two different points are boundary values, which a later section treats separately.
Worked example: fitting initial conditions
Solve \(y'' - 4y = 0\) with \(y(0) = 3\) and \(y'(0) = -2\). 1. From the guessing card, the general solution is \(y = c_1e^{2t} + c_2e^{-2t}\). 2. Differentiate: \(y' = 2c_1e^{2t} - 2c_2e^{-2t}\). 3. Substitute \(t = 0\), where every exponential equals 1: \(c_1 + c_2 = 3\) and \(2c_1 - 2c_2 = -2\), so \(c_1 - c_2 = -1\). 4. Adding the two equations gives \(2c_1 = 2\), so \(c_1 = 1\) and \(c_2 = 2\). 5. The solution is \(y = e^{2t} + 2e^{-2t}\). 6. Check: \(y(0) = 1 + 2 = 3\) and \(y'(0) = 2 - 4 = -2\), as required.
The exponential trial solution
Guessing works only for simple cases, so we need a method for any \(ay'' + by' + cy = 0\). Since every derivative of \(e^{rt}\) is a multiple of \(e^{rt}\), all three terms can cancel. Substitute \(y = e^{rt}\), \(y' = re^{rt}\) and \(y'' = r^2e^{rt}\):
An exponential is never zero, so \(e^{rt}\) is a solution exactly when \(r\) solves the characteristic equation
To write it down, replace \(y''\) by \(r^2\), \(y'\) by \(r\) and \(y\) by 1, keeping every coefficient and sign.
Worked example: two solutions from the roots
Find two solutions of \(y'' + y' - 6y = 0\). 1. The characteristic equation is \(r^2 + r - 6 = 0\). 2. Factor: \((r + 3)(r - 2) = 0\), so \(r = 2\) or \(r = -3\). 3. Two solutions are \(y_1 = e^{2t}\) and \(y_2 = e^{-3t}\). 4. Check \(y_2\) directly: \(y_2' = -3e^{-3t}\) and \(y_2'' = 9e^{-3t}\), so the left side is \((9 - 3 - 6)e^{-3t} = 0\). 5. By superposition, \(c_1e^{2t} + c_2e^{-3t}\) solves the equation for any constants, and the next topic confirms that this is the general solution.
Three kinds of roots
The characteristic equation is a quadratic, so the discriminant \(b^2 - 4ac\) sorts every constant coefficient equation into one of three cases. If it is positive, there are two real, distinct roots, as for \(y'' - 5y' + 4y = 0\), with roots 1 and 4. If it is negative, the roots are a complex pair \(\alpha \pm \beta i\); for \(y'' + 2y' + 5y = 0\) the quadratic formula gives \(r = -1 \pm 2i\). If it is zero, there is one repeated root, as for \(y'' - 6y' + 9y = 0\), where \(r = 3\) twice. Each case produces a different form of general solution, and the next three topics take them in turn.
Common mistakes to avoid
First, applying superposition to a nonhomogeneous or nonlinear equation, where sums of solutions are generally not solutions. Second, dropping a term when forming the characteristic equation: \(y'' + 4y = 0\) gives \(r^2 + 4 = 0\), not \(r^2 + 4r = 0\), because the \(y\) term becomes a constant. Third, writing a general solution with only one constant; a second order equation needs two. Fourth, using only \(y(t_0)\) when solving for the constants; the derivative condition supplies the second equation, so differentiate the general solution before substituting.
Key takeaways
A linear second order equation has \(y\), \(y'\) and \(y''\) to the first power only, with coefficients depending on \(t\) alone; it is homogeneous when the right side is zero. Superposition: combinations of solutions of a linear homogeneous equation are again solutions. A suitable pair gives the general solution \(c_1y_1 + c_2y_2\), fixed by two initial conditions. Substituting \(e^{rt}\) into \(ay'' + by' + cy = 0\) gives the characteristic equation \(ar^2 + br + c = 0\), whose discriminant decides between real distinct, complex and repeated roots.
Flashcards
Flashcard
a₂(t)y″ + a₁(t)y′ + a₀(t)y = g(t)
Test your understanding
Question 1 of 5
Which of these equations is linear and homogeneous?
Question 2 of 5
What is the characteristic equation of 3y″ − y′ + 2y = 0?
Question 3 of 5
Both e^t and e^(4t) solve y″ − 5y′ + 4y = 0. Which of these is also a solution?
Question 4 of 5
The general solution of y″ − 9y = 0 is y = c₁e^(3t) + c₂e^(−3t). Which constants satisfy y(0) = 4 and y′(0) = 6?
Question 5 of 5
What kind of roots does the characteristic equation of y″ + 4y′ + 13y = 0 have?
