PAGE 1

5.1 Intro to 2nd-Order Eqs

Linear 2nd-order:

\[ y'' + p(x)y' + q(x)y = f(x) \]

Note on coefficients \( p(x) \), \( q(x) \), and \( f(x) \):

cannot contain \( y \) (else nonlinear)

First, let's investigate homogeneous equation

right side = 0

\( f(x) = 0 \)

\[ y'' + p(x)y' + q(x)y = 0 \]

To understand the structure of the solution, let's look at a very simple one:

\[ y'' = 0 \]
PAGE 2
\[ y'' = 0 \]
  • integrate: \( y' = c_1 \)
  • integrate: \( y = c_1x + c_2 \)

This shows that the solution is a linear combo of the functions \( y_1 = x \) , \( y_2 = 1 \)

solution is sum of scalar multiples of each

This means the two functions (which are linearly independent) span the solution space

In fact, the two functions form a basis for the solution space

General feature:

solution to \( y'' + p(x)y' + q(x)y = 0 \)

is \( y = c_1y_1 + c_2y_2 \) , \( y_1, y_2 \) span and form a basis for solution space

PAGE 3

Linear independence of functions:

If \( y_1 \) and \( y_2 \) are linearly independent on an interval of \( x \), then on that interval \( c_1 y_1 + c_2 y_2 = 0 \) is possible if and only if \( c_1 = c_2 = 0 \).

If \( y_1, y_2 \) are linearly independent on an interval, then

\[ c_1 y_1 + c_2 y_2 = 0 \]\[ c_1 y_1' + c_2 y_2' = 0 \]

and

\[ \begin{bmatrix} y_1 & y_2 \\ y_1' & y_2' \end{bmatrix} \begin{bmatrix} c_1 \\ c_2 \end{bmatrix} = \begin{bmatrix} 0 \\ 0 \end{bmatrix} \]

unique solution of \( c_1 = c_2 = 0 \) if and only if

\[ \begin{vmatrix} y_1 & y_2 \\ y_1' & y_2' \end{vmatrix} \neq 0 \]

Wronskian of \( y_1, y_2 \)

PAGE 4

Solution of \( y'' + py' + qy = 0 \)

means the function \( y \) that satisfies the equation.

(for 2nd order, there are two)

\[ y'' - y = 0 \rightarrow y'' = y \]

\( y \) is a function that's equal to its 2nd derivative

\[ y_1 = e^x \quad y_2 = e^{-x} \]

Check:

\[ \left. \begin{aligned} y_1 &= e^x \\ y_1' &= e^x \\ y_1'' &= e^x \end{aligned} \right\} \text{ sub into } y'' - y = 0 \]
\[ e^x - e^x = 0 \quad \checkmark \]
\[ \left. \begin{aligned} y_2 &= e^{-x} \\ y_2' &= -e^{-x} \\ y_2'' &= e^{-x} \end{aligned} \right\} \text{ sub into } y'' - y = 0 \]
\[ e^{-x} - e^{-x} = 0 \quad \checkmark \]
PAGE 5

Solutions to Second-Order Differential Equations

Both \( y_1 = e^x \) and \( y_2 = e^{-x} \) are solutions to \( y'' - y = 0 \) and so are all linear combos:

\[ y = c_1 e^x + c_2 e^{-x} \]

general solution

\( y_1 = e^x \) and \( y_2 = e^{-x} \) are linearly indp because their Wronskian is never zero

\[ W = \begin{vmatrix} y_1 & y_2 \\ y_1' & y_2' \end{vmatrix} = \begin{vmatrix} e^x & e^{-x} \\ e^x & -e^{-x} \end{vmatrix} = -1 - 1 = -2 \neq 0 \]

We guessed and checked to solve \( y'' - y = 0 \).

A more systematic way to solve \( y'' + py' + qy = 0 \) is to use the characteristic polynomial or characteristic equation.

PAGE 6
\[ y'' + p(x)y' + q(x)y = 0 \]

For constant coefficient equation, the solutions are ALWAYS in the form \( y = e^{rx} \) because \( e^{rx} \) has derivatives that are constant multiples of itself.

\( y'' + ay' + by = 0 \) is ALWAYS solved by \( y = e^{rx} \) (where \( r \) is const).

Sub in:

  • \( y = e^{rx} \)
  • \( y' = re^{rx} \)
  • \( y'' = r^2 e^{rx} \)

\[ r^2 e^{rx} + are^{rx} + be^{rx} = 0 \]

\[ (r^2 + ar + b)e^{rx} = 0 \]

\( e^{rx} \neq 0 \) for any \( r \)

So, \[ r^2 + ar + b = 0 \]

Characteristic Equation

Solve for \( r \): two solution values \( r_1, r_2 \)

Solutions of diff. eq: \( y_1 = e^{r_1 x} \), \( y_2 = e^{r_2 x} \)

general solution: \( y = c_1 e^{r_1 x} + c_2 e^{r_2 x} \)

PAGE 7

Example

\[ 1y'' + 3y' + 2y = 0 \]

Constant coefficient

Solution

Assume a solution of the form:

\[ y = e^{rx} \]\[ y' = re^{rx} \]\[ y'' = r^2e^{rx} \]

Substitute into the equation above:

\[ r^2e^{rx} + 3re^{rx} + 2e^{rx} = 0 \]\[ e^{rx}(r^2 + 3r + 2) = 0 \]

Characteristic Equation

\[ r^2 + 3r + 2 = 0 \]

Notice coefficients match the original differential equation.

Solve for \( r \):

\[ r^2 + 3r + 2 = 0 \]\[ (r + 2)(r + 1) = 0 \]\[ r_1 = -2, \quad r_2 = -1 \]
PAGE 8

The two linearly independent solutions:

\[ y_1 = e^{r_1x} = e^{-2x} \]\[ y_2 = e^{r_2x} = e^{-x} \]

General solution is a linear combination of them:

\[ y = c_1e^{-2x} + c_2e^{-x} \]

Initial Conditions

To find these constants, we need two initial conditions.

Typically: \( y(x_0) = y_0 \) and \( y'(x_0) = y'_0 \)

For example, suppose \( y(0) = 1 \) and \( y'(0) = 0 \).

General solution: \( y = c_1e^{-2x} + c_2e^{-x} \)

Substitute in \( y(0) = 1 \):

\[ c_1e^0 + c_2e^0 = 1 \]\[ c_1 + c_2 = 1 \quad \text{--- (1)} \]

To use \( y'(0) = 0 \), we need \( y' \).

PAGE 9
\[ y' = -2C_1 e^{-2x} - C_2 e^{-x} \]

sub in \( y'(0) = 0 \)

\[ -2C_1 e^0 - C_2 e^0 = 0 \] \[ -2C_1 - C_2 = 0 \quad \text{--- (2)} \]

Solve (1), (2)

\[ C_1 + C_2 = 1 \] \[ -2C_1 - C_2 = 0 \]

solve this system (Gaussian elimination)

\[ \begin{bmatrix} 1 & 1 & 1 \\ -2 & -1 & 0 \end{bmatrix} \to \begin{bmatrix} 1 & 1 & 1 \\ 0 & 1 & 2 \end{bmatrix} \]
\[ C_2 = 2 \] \[ C_1 + C_2 = 1 \] \[ C_1 = 1 - 2 = -1 \]

Solution:

\[ y = C_1 e^{-2x} + C_2 e^{-x} \] \[ y = -e^{-2x} + 2e^{-x} \]
PAGE 10

Example

\[ 4y'' + 4y' + 1y = 0 \]

characteristic eq has same coefficients

\[ 4r^2 + 4r + 1 = 0 \]
(if you forget, sub \( y = e^{rx} \) into eq.)
\[ (2r + 1)(2r + 1) = 0 \] \[ r_1 = -1/2, \quad r_2 = -1/2 \]

Repeated roots

if roots are repeated

  • \( y_1 = e^{r_1 x} \) as usual
  • \( y_2 = x e^{r_1 x} \) mult. by \( x \)

here,

\[ y_1 = e^{-1/2 x} \] \[ y_2 = x e^{-1/2 x} \]

General solution:

\[ y = C_1 e^{-1/2 x} + C_2 x e^{-1/2 x} \]