Higher order linear differential equations — Unit 2 Notes (Engineering Mathematics II)

BAS201 · Unit 2

Higher order linear differential equations notes — Unit 2

Free unit-wise study notes on higher order linear differential equations for Engineering Mathematics II, Semester 2 of B.Tech — Computer Science & Engineering — key concepts, examples, important questions and a revision checklist for semester exams.

Complete 20-page hand-written notes covering Higher Order Linear ODEs. Master the Complementary Function (C.F.), Particular Integral (P.I.) shortcut methods, Cauchy-Euler equations, and the Method of Variation of Parameters.

Notebook — 20 pages

Page 1

Wink Notes

B.Tech CSE — 2nd Semester

Engineering Mathematics II

Unit - 2

1. Intro to Higher Order ODEs

A linear differential equation of order nn with constant coefficients is of the form:

dnydxn+a1dn1ydxn1+...+any=X(x)\frac{d^ny}{dx^n} + a_1\frac{d^{n-1}y}{dx^{n-1}} + ... + a_ny = X(x)

where a1,a2,...,ana_1, a_2, ..., a_n are constants and X(x)X(x) is a function of xx.

Next — Page 2 — The Operator D

1 of 20

Page 2

Wink Notes

B.Tech CSE — 2nd Semester

Engineering Mathematics II

Unit - 2

2. The Operator D

To simplify writing, we use the differential operator D=ddxD = \frac{d}{dx}.

  • Dy=dydxDy = \frac{dy}{dx}
  • D2y=d2ydx2D^2y = \frac{d^2y}{dx^2}
  • Dny=dnydxnD^ny = \frac{d^ny}{dx^n}

The general equation becomes:
(Dn+a1Dn1+...+an)y=X(D^n + a_1D^{n-1} + ... + a_n)y = X

Or simply,
f(D)y=Xf(D)y = X.

Next — Page 3 — Auxiliary Equation (A.E.)

2 of 20

Page 3

Wink Notes

B.Tech CSE — 2nd Semester

Engineering Mathematics II

Unit - 2

3. Auxiliary Equation (A.E.)

To find the Complementary Function (C.F.), we equate f(D)y=0f(D)y = 0.

We form the Auxiliary Equation (A.E.) by replacing DD with mm and equating to zero:
f(m)=0f(m) = 0
mn+a1mn1+...+an=0m^n + a_1m^{n-1} + ... + a_n = 0

The nature of the roots of this polynomial equation determines the C.F.

Next — Page 4 — C.F. (Real & Distinct Roots)

3 of 20

Page 4

Wink Notes

B.Tech CSE — 2nd Semester

Engineering Mathematics II

Unit - 2

4. C.F. (Real & Distinct Roots)

Case 1: Roots are Real and Distinct

If the A.E. has real, unequal roots m1,m2,...,mnm_1, m_2, ..., m_n, then the C.F. is:

C.F.=C1em1x+C2em2x+...+CnemnxC.F. = C_1e^{m_1x} + C_2e^{m_2x} + ... + C_ne^{m_nx}

Example: Solve (D25D+6)y=0(D^2 - 5D + 6)y = 0

A.E.:
m25m+6=0m^2 - 5m + 6 = 0
(m2)(m3)=0m=2,3(m-2)(m-3) = 0 \Rightarrow m = 2, 3

C.F.=C1e2x+C2e3xC.F. = C_1e^{2x} + C_2e^{3x}

Next — Page 5 — C.F. (Repeated Roots)

4 of 20

Page 5

Wink Notes

B.Tech CSE — 2nd Semester

Engineering Mathematics II

Unit - 2

5. C.F. (Repeated Roots)

Case 2: Roots are Real and Equal (Repeated)

If a root m1m_1 is repeated twice (m1=m2=mm_1 = m_2 = m), the C.F. is:

C.F.=(C1+C2x)emxC.F. = (C_1 + C_2x)e^{mx}

If repeated three times (m1=m2=m3=mm_1 = m_2 = m_3 = m):

C.F.=(C1+C2x+C3x2)emxC.F. = (C_1 + C_2x + C_3x^2)e^{mx}

Example: (D24D+4)y=0(D^2 - 4D + 4)y = 0
A.E.:
m24m+4=0m=2,2m^2 - 4m + 4 = 0 \Rightarrow m = 2, 2
C.F.=(C1+C2x)e2xC.F. = (C_1 + C_2x)e^{2x}

Next — Page 6 — C.F. (Complex Roots)

5 of 20

Page 6

Wink Notes

B.Tech CSE — 2nd Semester

Engineering Mathematics II

Unit - 2

6. C.F. (Complex Roots)

Case 3: Roots are Complex Conjugates

If the roots are α±iβ\alpha \pm i\beta, the C.F. is:

C.F.=eαx(C1cosβx+C2sinβx)C.F. = e^{\alpha x}(C_1\cos\beta x + C_2\sin\beta x)

Case 4: Repeated Complex Roots

If α±iβ\alpha \pm i\beta occurs twice:

C.F.=eαx[(C1+C2x)cosβx+(C3+C4x)sinβx]C.F. = e^{\alpha x}[(C_1 + C_2x)\cos\beta x + (C_3 + C_4x)\sin\beta x]

Next — Page 7 — Particular Integral (P.I.)

6 of 20

Page 7

Wink Notes

B.Tech CSE — 2nd Semester

Engineering Mathematics II

Unit - 2

7. Particular Integral (P.I.)

The Particular Integral deals with the Right Hand Side X(x)X(x).

P.I.=1f(D)XP.I. = \frac{1}{f(D)} X

We use shortcut methods based on the specific function X(x)X(x). We never use the general integration method unless the shortcuts fail.

Next — Page 8 — P.I. Rule 1: Exponential

7 of 20

Page 8

Wink Notes

B.Tech CSE — 2nd Semester

Engineering Mathematics II

Unit - 2

8. P.I. Rule 1: Exponential

When X=eaxX = e^{ax}

P.I.=1f(D)eax=1f(a)eaxP.I. = \frac{1}{f(D)} e^{ax} = \frac{1}{f(a)} e^{ax}
(Replace DD with aa)

Next — Page 9 — P.I. Rule 2: Trigonometric

8 of 20

Page 9

Wink Notes

B.Tech CSE — 2nd Semester

Engineering Mathematics II

Unit - 2

9. P.I. Rule 2: Trigonometric

When X=sin(ax)X = \sin(ax) or cos(ax)\cos(ax)

P.I.=1f(D2)sin(ax)=1f(a2)sin(ax)P.I. = \frac{1}{f(D^2)} \sin(ax) = \frac{1}{f(-a^2)} \sin(ax)
(Replace ONLY D2D^2 with a2-a^2)

Note: Do not square (a)(-a). For sin(3x)\sin(3x), replace D2D^2 with 9-9, NOT +9+9.

If f(a2)=0f(-a^2) = 0 (failure case), multiply by xx and differentiate the denominator: x1f(D)sin(ax)x \frac{1}{f'(D)} \sin(ax).

Next — Page 10 — P.I. Rule 3: Polynomials

9 of 20

Page 10

Wink Notes

B.Tech CSE — 2nd Semester

Engineering Mathematics II

Unit - 2

10. P.I. Rule 3: Polynomials

When X=xmX = x^m

  1. 1.Write P.I.=1f(D)xmP.I. = \frac{1}{f(D)} x^m.
  2. 2.Take the lowest degree term common from f(D)f(D) to make the denominator of the form (1±ϕ(D))(1 \pm \phi(D)).
  3. 3.Take it to the numerator as (1±ϕ(D))1(1 \pm \phi(D))^{-1}.
  4. 4.Expand using binomial theorem up to DmD^m.
  5. 5.Operate on xmx^m.

Next — Page 11 — P.I. Rule 4

10 of 20

Page 11

Wink Notes

B.Tech CSE — 2nd Semester

Engineering Mathematics II

Unit - 2

11. P.I. Rule 4: $e^{ax} \\cdot V$

When X=eaxV(x)X = e^{ax} \cdot V(x)

This is the Shift Theorem.

P.I.=1f(D)[eaxV]=eax1f(D+a)VP.I. = \frac{1}{f(D)} [e^{ax} V] = e^{ax} \frac{1}{f(D+a)} V

Steps:
1. Pull
eaxe^{ax} to the left side of the operator.
2. Replace every
DD in the denominator with (D+a)(D+a).
3. Solve
1f(D+a)V\frac{1}{f(D+a)} V using previous rules.

Next — Page 12 — P.I. Rule 5

11 of 20

Page 12

Wink Notes

B.Tech CSE — 2nd Semester

Engineering Mathematics II

Unit - 2

12. P.I. Rule 5: $x \\cdot V$

When X=xV(x)X = x \cdot V(x)

Where V(x)V(x) is usually sin(ax)\sin(ax) or cos(ax)\cos(ax).

P.I.=[xf(D)f(D)]1f(D)VP.I. = \left[ x - \frac{f'(D)}{f(D)} \right] \frac{1}{f(D)} V

This formula avoids complicated integrations.

Next — Page 13 — Cauchy-Euler Equation

12 of 20

Page 13

Wink Notes

B.Tech CSE — 2nd Semester

Engineering Mathematics II

Unit - 2

13. Cauchy-Euler Equation

A linear ODE where the degree of the xx multiplier equals the order of the derivative:

xndnydxn+a1xn1dn1ydxn1+...+any=Xx^n \frac{d^ny}{dx^n} + a_1 x^{n-1} \frac{d^{n-1}y}{dx^{n-1}} + ... + a_n y = X

This equation has variable coefficients, so we cannot use f(D)f(D) shortcuts directly. We must reduce it to constant coefficients first.

Next — Page 14 — Cauchy-Euler Method

13 of 20

Page 14

Wink Notes

B.Tech CSE — 2nd Semester

Engineering Mathematics II

Unit - 2

14. Cauchy-Euler Method

  1. 1.Substitute x=ezx = e^z, so z=lnxz = \ln x.
  2. 2.Let D1=ddzD_1 = \frac{d}{dz}.
  3. 3.Substitute:
    xdydx=D1yx \frac{dy}{dx} = D_1 y
    x2d2ydx2=D1(D11)yx^2 \frac{d^2y}{dx^2} = D_1(D_1 - 1)y
    x3d3ydx3=D1(D11)(D12)yx^3 \frac{d^3y}{dx^3} = D_1(D_1 - 1)(D_1 - 2)y
  4. 4.The equation now becomes a Linear ODE with Constant Coefficients in terms of zz.
  5. 5.Solve for C.F. and P.I. using standard rules.
  6. 6.Replace zz with lnx\ln x at the end.

Next — Page 15 — Legendre's Equation

14 of 20

Page 15

Wink Notes

B.Tech CSE — 2nd Semester

Engineering Mathematics II

Unit - 2

15. Legendre's Linear Equation

A generalization of Cauchy's equation:

(ax+b)ndnydxn+c1(ax+b)n1dn1ydxn1+...=X(ax+b)^n \frac{d^ny}{dx^n} + c_1(ax+b)^{n-1} \frac{d^{n-1}y}{dx^{n-1}} + ... = X

  1. 1.Substitute ax+b=ezax+b = e^z, so z=ln(ax+b)z = \ln(ax+b).
  2. 2.Let D1=ddzD_1 = \frac{d}{dz}.
  3. 3.Substitute:
    (ax+b)dydx=aD1y(ax+b) \frac{dy}{dx} = a D_1 y
    (ax+b)2d2ydx2=a2D1(D11)y(ax+b)^2 \frac{d^2y}{dx^2} = a^2 D_1(D_1 - 1)y
  4. 4.Solve the resulting constant-coefficient equation.

Next — Page 16 — Variation of Parameters

15 of 20

Page 16

Wink Notes

B.Tech CSE — 2nd Semester

Engineering Mathematics II

Unit - 2

16. Variation of Parameters

A powerful method to find the P.I. when the shortcut rules fail (e.g., X=tanx,secx,lnxX = \tan x, \sec x, \ln x).

For a second-order ODE: d2ydx2+Pdydx+Qy=X\frac{d^2y}{dx^2} + P\frac{dy}{dx} + Qy = X

  1. 1.Find the C.F.: yc=C1y1+C2y2y_c = C_1 y_1 + C_2 y_2.
  2. 2.Calculate the Wronskian: W=y1y2y2y1W = y_1 y_2' - y_2 y_1'. (Ensure W0W \neq 0).
  3. 3.The P.I. is given by uy1+vy2u \cdot y_1 + v \cdot y_2, where:
    u=y2XWdxu = -\int \frac{y_2 \cdot X}{W} dx
    v=y1XWdxv = \int \frac{y_1 \cdot X}{W} dx

Next — Page 17 — Simultaneous Linear ODEs

16 of 20

Page 17

Wink Notes

B.Tech CSE — 2nd Semester

Engineering Mathematics II

Unit - 2

17. Simultaneous Linear ODEs

Systems with one independent variable (tt) and two dependent variables (x,yx, y).

Example:
dxdt+2y=et\frac{dx}{dt} + 2y = e^t
dydtx=sint\frac{dy}{dt} - x = \sin t

Method:

Use the operator D=ddtD = \frac{d}{dt}. Treat the equations like simultaneous algebraic equations to eliminate one dependent variable, solve the resulting higher-order ODE for the other, and back-substitute.

Next — Page 18 — Engineering Applications

17 of 20

Page 18

Wink Notes

B.Tech CSE — 2nd Semester

Engineering Mathematics II

Unit - 2

18. Applications: LCR Circuits

Higher order ODEs model Series L-C-R circuits.

By Kirchhoff's Voltage Law:
Ldidt+Ri+1Cq=E(t)L\frac{di}{dt} + Ri + \frac{1}{C}q = E(t)

Since i=dqdti = \frac{dq}{dt} and didt=d2qdt2\frac{di}{dt} = \frac{d^2q}{dt^2}, we get a 2nd order ODE:
Ld2qdt2+Rdqdt+1Cq=E(t)L\frac{d^2q}{dt^2} + R\frac{dq}{dt} + \frac{1}{C}q = E(t)

The C.F. represents the transient current (which dies out over time), and the P.I. represents the steady-state current.

Next — Page 19 — Mechanical Oscillations

18 of 20

Page 19

Wink Notes

B.Tech CSE — 2nd Semester

Engineering Mathematics II

Unit - 2

19. Mechanical Oscillations

ODEs also model a mass attached to a spring.

md2xdt2+cdxdt+kx=F(t)m\frac{d^2x}{dt^2} + c\frac{dx}{dt} + kx = F(t)

  • mm = mass
  • cc = damping coefficient (friction/air resistance)
  • kk = spring constant (stiffness)
  • F(t)F(t) = external driving force

The nature of the A.E. roots determines if the system is Overdamped (real roots), Critically Damped (equal roots), or Underdamped (complex roots - oscillating).

Next — Page 20 — Unit 2 Revision Checklist

19 of 20

Page 20

Wink Notes

B.Tech CSE — 2nd Semester

Engineering Mathematics II

Unit - 2

20. Unit 2 Revision Checklist

Before the exam, ensure you can:

  • Write the C.F. for repeated complex roots.
  • State the P.I. rule for sin(ax)\sin(ax) and what to do if f(a2)=0f(-a^2) = 0.
  • Apply the shift theorem eaxVe^{ax}V.
  • Convert a Cauchy-Euler equation into a constant coefficient equation using x=ezx=e^z.
  • Write the formula for the Wronskian in Variation of Parameters.
  • Explain the physical meaning of C.F. and P.I. in an LCR electrical circuit.

20 of 20

Continue in this subject