Skip to content
Sahithyan's S1
Sahithyan's S1 — Mathematics

Solving Second Order Ordinary Differential Equations

Homogenous

d2ydx2+adydx++by=0;  a,bare constants\frac{\text{d}^2y}{\text{d}x^2}+ a\frac{\text{d}y}{\text{d}x}+ +by =0\,;\;a,b\,\text{are constants}

Consider the function y=emxy=e^{mx}. Here mm is a constant to be found.

By applying the function to the above equation:

m2+am+b=0m^2 + am + b = 0

The above equation is called the Auxiliary equation or Characteristic equation.

Case 1: Distinct real roots

y=Aem1x+Bem2xy = Ae^{m_1x}+Be^{m_2x}

Case 2: Equal real roots

y=(Ax+B)emxy = (Ax+B)e^{mx}

Case 3: Complex conjugate roots

y=Ae(p+iq)x+Be(piq)x=epx(Ccos(qx)+Dsin(qx))y = Ae^{(p+iq)x} + Be^{(p−iq)x} = e^{px}\big(C\cos{(qx)}+D\sin{(qx)}\big)

Non-homogenous

d2ydx2+adydx++by=q(x);  a,bare constants\frac{\text{d}^2y}{\text{d}x^2}+ a\frac{\text{d}y}{\text{d}x}+ +by =q(x)\,;\;a,b\,\text{are constants}

Method of undetermined coefficients

ypy_p is guessed with undetermined coefficients. And subtituted in the given equation to find the coefficients. The guess depends on the nature of q(x)q(x).

If q(x)q(x) is:

  • a constant, ypy_p is a constant
  • kxkx, yp=ax+by_p=ax+b
  • kx2kx^2, yp=ax2+bx+cy_p=ax^2+bx+c
  • ksinxk\sin{x} or kcosxk\cos{x}, yp=asinx+bcosxy_p=a\sin{x}+b\cos{x}
  • ekxe^{kx}, yp=cekxy_p=ce^{kx} (Only works if kk is not a root of auxiliary equation)
  • A product of ekxe^{kx} and some f(x)f(x), guess ypy_p for f(x)f(x) individually, and then multiply by ekxe^{kx} (without coefficients)
  • A product of polynomials and trig functions, guess ypy_p for the polynomial, and multiply that by the appropriate cosine. Then add on a new guess for the polynomial with different coefficients and multiply that by the appropriate sine.
  • A sum of functions, can be guessed individually and be summed up

Steps

  • Solve for ycy_c
  • Based on the form of q(x)q(x) , make an initial guess for ypy_p.
  • Check if any term in the guess for ypy_p is a solution to the complementary equation.
  • If so, multiply the guess by xx. Repeat this step until there are no terms in ypy_p that solve the complementary equation.
  • Substitute ypy_p into the differential equation and equate like terms to find values for the unknown coefficients in ypy_p.
  • If coefficients were unable to be found (they cancelled out or something like that), multiply the guess by xx and start again.
  • y=yp+ycy=y_p+y_c