Comprehensive Study Guide to Differential Equations

First-Order Linear Differential Equations

  • A first-order linear differential equation possesses the standard form:   dydx+P(x)y=Q(x)\frac{dy}{dx} + P(x) y = Q(x)   where P(x)P(x) and Q(x)Q(x) are continuous functions of xx, or constants.

  • The Integrating Factor (I.F.I.F.) is defined by the exponential integral:   I.F.=e∫P(x) dxI.F. = e^{\int P(x)\,dx}

  • Derivation of the general solution formula:

    • Multiplying the standard differential equation by the integrating factor yields:     e∫P(x) dxdydx+P(x)e∫P(x) dxy=Q(x)e∫P(x) dxe^{\int P(x)\,dx} \frac{dy}{dx} + P(x) e^{\int P(x)\,dx} y = Q(x) e^{\int P(x)\,dx}

    • Recognizing the left-hand side as the derivative of a product via the product rule:     ddx(ye∫P(x) dx)=Q(x)e∫P(x) dx\frac{d}{dx} \left( y e^{\int P(x)\,dx} \right) = Q(x) e^{\int P(x)\,dx}

    • Integrating both sides with respect to xx gives the complete general solution:     ye∫P(x) dx=∫Q(x)e∫P(x) dx dx+Cy e^{\int P(x)\,dx} = \int Q(x) e^{\int P(x)\,dx}\,dx + C     y⋅(I.F.)=∫Q(x)⋅(I.F.) dx+Cy \cdot (I.F.) = \int Q(x) \cdot (I.F.)\,dx + C

  • Example 1: Solve dydx+1xy=x2\frac{dy}{dx} + \frac{1}{x} y = x^2

    • Identify the coefficient functions:     P(x)=1xP(x) = \frac{1}{x}     Q(x)=x2Q(x) = x^2

    • Calculate the Integrating Factor:     I.F.=e∫1x dx=eln⁡(x)=xI.F. = e^{\int \frac{1}{x}\,dx} = e^{\ln(x)} = x

    • Apply the general solution formula:     y⋅x=∫x2⋅x dx+Cy \cdot x = \int x^2 \cdot x\,dx + C     y⋅x=∫x3 dx+Cy \cdot x = \int x^3\,dx + C     yx=x44+Cy x = \frac{x^4}{4} + C     y=x34+Cx−1y = \frac{x^3}{4} + C x^{-1}

  • Example 2: Solve dydx+ycot⁡(x)=sin⁡(2x)\frac{dy}{dx} + y \cot(x) = \sin(2x)

    • Identify the coefficient functions:     P(x)=cot⁡(x)P(x) = \cot(x)     Q(x)=sin⁡(2x)Q(x) = \sin(2x)

    • Calculate the Integrating Factor:     I.F.=e∫cot⁡(x) dx=eln⁡(sin⁡(x))=sin⁡(x)I.F. = e^{\int \cot(x)\,dx} = e^{\ln(\sin(x))} = \sin(x)

    • Apply the general solution formula:     ysin⁡(x)=∫sin⁡(2x)sin⁡(x) dx+Cy \sin(x) = \int \sin(2x) \sin(x)\,dx + C

    • Expand using the double-angle identity sin⁡(2x)=2sin⁡(x)cos⁡(x)\sin(2x) = 2 \sin(x) \cos(x):     ysin⁡(x)=2∫sin⁡2(x)cos⁡(x) dx+Cy \sin(x) = 2 \int \sin^2(x) \cos(x)\,dx + C

    • Evaluate the integral using substitution with t=sin⁡(x)t = \sin(x) and dt=cos⁡(x) dxdt = \cos(x)\,dx:     2∫t2 dt=23t3=23sin⁡3(x)2 \int t^2\,dt = \frac{2}{3} t^3 = \frac{2}{3} \sin^3(x)

    • The explicit solution is:     ysin⁡(x)=23sin⁡3(x)+Cy \sin(x) = \frac{2}{3} \sin^3(x) + C     y=23sin⁡2(x)+C(sin⁡(x))−1y = \frac{2}{3} \sin^2(x) + C (\sin(x))^{-1}

Higher-Order Linear Differential Equations with Constant Coefficients

  • The general linear differential equation of order nn is expressed as:   Pn(x)dnydxn+Pn−1(x)dn−1ydxn−1+⋯+P1(x)dydx+P0(x)y=Q(x)P_n(x) \frac{d^n y}{dx^n} + P_{n-1}(x) \frac{d^{n-1} y}{dx^{n-1}} + \dots + P_1(x) \frac{dy}{dx} + P_0(x) y = Q(x)

  • When all coefficients are constant scalars an,an−1,…,a0a_n, a_{n-1}, \dots, a_0, the equation becomes a Linear Differential Equation with Constant Coefficients (LDE with c.c.):   andnydxn+an−1dn−1ydxn−1+⋯+a1dydx+a0y=Q(x)a_n \frac{d^n y}{dx^n} + a_{n-1} \frac{d^{n-1} y}{dx^{n-1}} + \dots + a_1 \frac{dy}{dx} + a_0 y = Q(x)

  • Differential operator notation:

    • The differential operator is defined as D=ddxD = \frac{d}{dx}, D2=d2dx2D^2 = \frac{d^2}{dx^2}, up to Dn=dndxnD^n = \frac{d^n}{dx^n}.

    • The differential operator polynomial is:     F(D)=anDn+an−1Dn−1+⋯+a1D+a0F(D) = a_n D^n + a_{n-1} D^{n-1} + \dots + a_1 D + a_0

    • The differential equation is compactly written as:     F(D)y=Q(x)F(D) y = Q(x)

  • Structure of the complete solution:

    • The total general solution is the sum of two independent components:     y=yc+yp=C.F.+P.I.y = y_c + y_p = C.F. + P.I.     where C.F.C.F. denotes the Complementary Function (ycy_c) and P.I.P.I. denotes the Particular Integral (ypy_p).

    • Linearity verification:     F(D)(yc+yp)=F(D)yc+F(D)yp=0+Q(x)=Q(x)F(D)(y_c + y_p) = F(D) y_c + F(D) y_p = 0 + Q(x) = Q(x)     satisfying the non-homogeneous equation.

Complementary Function (C.F.) Determination

  • The Complementary Function (ycy_c) is the general solution of the associated homogeneous differential equation:   F(D)y=0F(D) y = 0

  • Auxiliary Equation (A.E.):

    • Setting F(D)=0F(D) = 0 yields the algebraic auxiliary equation.

    • Solving this equation produces nn characteristic roots: r1,r2,…,rnr_1, r_2, \dots, r_n.

  • Case 1: Real and Distinct Roots

    • If roots r1,r2,…,rnr_1, r_2, \dots, r_n are all real and unequal:     yc=C1er1x+C2er2x+⋯+Cnernxy_c = C_1 e^{r_1 x} + C_2 e^{r_2 x} + \dots + C_n e^{r_n x}

  • Case 2: Real and Repeated Roots

    • If a real root rr is repeated kk times (r1=r2=⋯=rk=rr_1 = r_2 = \dots = r_k = r):     yc=(C1+C2x+C3x2+⋯+Ckxk−1)erxy_c = (C_1 + C_2 x + C_3 x^2 + \dots + C_k x^{k-1}) e^{r x}

    • If remaining roots are distinct real numbers, they are appended in the standard form Ck+1erk+1xC_{k+1} e^{r_{k+1} x}.

  • Case 3: Complex and Distinct Roots

    • If a pair of roots is complex conjugate: r=a±ibr = a \pm i b

    • Derivation using Euler's formula:     yc=C1e(a+ib)x+C2e(a−ib)xy_c = C_1 e^{(a + i b)x} + C_2 e^{(a - i b)x}     yc=eax[C1(cos⁡(bx)+isin⁡(bx))+C2(cos⁡(bx)−isin⁡(bx))]y_c = e^{a x} [C_1 (\cos(b x) + i \sin(b x)) + C_2 (\cos(b x) - i \sin(b x))]     yc=eax[cos⁡(bx)(C1+C2)+sin⁡(bx)(iC1−iC2)]y_c = e^{a x} [\cos(b x)(C_1 + C_2) + \sin(b x)(i C_1 - i C_2)]

    • Combining arbitrary constants into real constants A=C1+C2A = C_1 + C_2 and B=i(C1−C2)B = i(C_1 - C_2), the Complementary Function is:     yc=eax[Acos⁡(bx)+Bsin⁡(bx)]y_c = e^{a x} [A \cos(b x) + B \sin(b x)]

  • Case 4: Complex and Repeated Roots

    • If complex conjugate roots a±iba \pm i b occur with multiplicity 2:     yc=eax[(C1x+C2)cos⁡(bx)+(C3x+C4)sin⁡(bx)]y_c = e^{a x} [(C_1 x + C_2) \cos(b x) + (C_3 x + C_4) \sin(b x)]

    • Alternatively written with arbitrary constants A,B,C,DA, B, C, D:     yc=eax[(Ax+B)cos⁡(bx)+(Cx+D)sin⁡(bx)]y_c = e^{a x} [(A x + B) \cos(b x) + (C x + D) \sin(b x)]

  • Example: Solve d3ydx3+2d2ydx2+dydx=0\frac{d^3 y}{dx^3} + 2 \frac{d^2 y}{dx^2} + \frac{dy}{dx} = 0

    • Operator form:     (D3+2D2+D)y=0(D^3 + 2 D^2 + D) y = 0

    • Auxiliary equation:     D3+2D2+D=0D^3 + 2 D^2 + D = 0     D(D2+2D+1)=0D(D^2 + 2 D + 1) = 0     D(D+1)2=0D(D + 1)^2 = 0

    • Roots are:     D=0,−1,−1D = 0, -1, -1

    • General solution:     y=C1e0⋅x+(C2x+C3)e−1⋅xy = C_1 e^{0 \cdot x} + (C_2 x + C_3) e^{-1 \cdot x}     y=C1+(C2x+C3)e−xy = C_1 + (C_2 x + C_3) e^{-x}

Particular Integral (P.I.) Evaluation Methods

  • Definition of the Particular Integral:   yp=1F(D)Q(x)y_p = \frac{1}{F(D)} Q(x)

  • General resolution via linear factors:

    • Any linear factor (D−a)(D - a) operating on Q(x)Q(x) evaluates to:     1D−aQ(x)=eax∫e−axQ(x) dx\frac{1}{D - a} Q(x) = e^{a x} \int e^{-a x} Q(x)\,dx

    • For higher-order operators factored as F(D)=(D−r1)(D−r2)…(D−rn)F(D) = (D - r_1)(D - r_2) \dots (D - r_n), the integral formula is applied sequentially:     z1=1D−rnQ(x)=ernx∫e−rnxQ(x) dxz_1 = \frac{1}{D - r_n} Q(x) = e^{r_n x} \int e^{-r_n x} Q(x)\,dx     z2=1D−rn−1z1z_2 = \frac{1}{D - r_{n-1}} z_1     continuing down to the final solution.

  • Shortcut Method I: Exponential Function Q(x)=eaxQ(x) = e^{a x}

    • Rule:     yp=1F(D)eax=eaxF(a)y_p = \frac{1}{F(D)} e^{a x} = \frac{e^{a x}}{F(a)}     provided that F(a)≠0F(a) \neq 0.

  • Case of Failure (F(a)=0F(a) = 0):

    • If substituting D=aD = a gives zero, differentiate the denominator with respect to DD and multiply the numerator by xx:     yp=xeaxF′(a)y_p = x \frac{e^{a x}}{F'(a)}     provided that F′(a)≠0F'(a) \neq 0.

  • If F′(a)=0F'(a) = 0, repeat the procedure:   yp=x2eaxF′′(a)y_p = x^2 \frac{e^{a x}}{F''(a)}   provided that F′′(a)≠0F''(a) \neq 0.

  • Example 1 (Shortcut I): Solve d2ydx2−2dydx+10y=e2x\frac{d^2 y}{dx^2} - 2 \frac{dy}{dx} + 10 y = e^{2x}

    • Differential operator form:     (D2−2D+10)y=e2x(D^2 - 2 D + 10) y = e^{2x}

    • Auxiliary equation:     D2−2D+10=0D^2 - 2 D + 10 = 0     D=2±(−2)2−4(1)(10)2=2±−362=1±3iD = \frac{2 \pm \sqrt{(-2)^2 - 4(1)(10)}}{2} = \frac{2 \pm \sqrt{-36}}{2} = 1 \pm 3i

    • Complementary Function:     yc=ex[Acos⁡(3x)+Bsin⁡(3x)]y_c = e^{x} [A \cos(3x) + B \sin(3x)]

    • Particular Integral with a=2a = 2:     F(2)=22−2(2)+10=4−4+10=10≠0F(2) = 2^2 - 2(2) + 10 = 4 - 4 + 10 = 10 \neq 0     yp=e2x10y_p = \frac{e^{2x}}{10}

    • General solution:     y=ex[Acos⁡(3x)+Bsin⁡(3x)]+e2x10y = e^{x} [A \cos(3x) + B \sin(3x)] + \frac{e^{2x}}{10}

  • Example 2 (Shortcut I, Case of Failure): Solve d2ydx2+dydx−2y=ex\frac{d^2 y}{dx^2} + \frac{dy}{dx} - 2 y = e^x

    • Operator form:     (D2+D−2)y=ex(D^2 + D - 2) y = e^x

    • Auxiliary equation:     D2+D−2=0D^2 + D - 2 = 0     (D+2)(D−1)=0(D + 2)(D - 1) = 0     D=1,−2D = 1, -2

    • Complementary Function:     yc=C1ex+C2e−2xy_c = C_1 e^{x} + C_2 e^{-2x}

    • Particular Integral evaluation with a=1a = 1:     F(1)=12+1−2=0F(1) = 1^2 + 1 - 2 = 0

    • Differentiating the denominator:     F′(D)=ddD(D2+D−2)=2D+1F'(D) = \frac{d}{dD}(D^2 + D - 2) = 2 D + 1     F′(1)=2(1)+1=3F'(1) = 2(1) + 1 = 3

    • Evaluating ypy_p:     yp=xexF′(1)=xex3y_p = x \frac{e^x}{F'(1)} = \frac{x e^x}{3}

    • General solution:     y=C1ex+C2e−2x+xex3y = C_1 e^{x} + C_2 e^{-2x} + \frac{x e^x}{3}

  • Shortcut Method II: Trigonometric Functions Q(x)=sin⁡(ax+b)Q(x) = \sin(a x + b) or cos⁡(ax+b)\cos(a x + b)

    • Rule:     yp=1F(D2)sin⁡(ax+b)=1F(−a2)sin⁡(ax+b)y_p = \frac{1}{F(D^2)} \sin(a x + b) = \frac{1}{F(-a^2)} \sin(a x + b)     yp=1F(D2)cos⁡(ax+b)=1F(−a2)cos⁡(ax+b)y_p = \frac{1}{F(D^2)} \cos(a x + b) = \frac{1}{F(-a^2)} \cos(a x + b)     provided that F(−a2)≠0F(-a^2) \neq 0.

    • If F(D)F(D) includes odd powers of DD, group as F(D)=ϕ(D2)+Dψ(D2)F(D) = \phi(D^2) + D \psi(D^2). Replace D2D^2 with −a2-a^2, resulting in a linear expression in the denominator: CD+BC D + B. Rationalize by multiplying numerator and denominator by the conjugate CD−BC D - B to recreate D2D^2, then replace D2D^2 with −a2-a^2.

    • Case of Failure: If F(−a2)=0F(-a^2) = 0, multiply numerator by xx and differentiate the denominator with respect to DD.

  • Example 1 (Shortcut II): Solve (D2+D−2)y=sin⁡(x)(D^2 + D - 2) y = \sin(x)

    • Auxiliary equation:     D2+D−2=0  ⟹  D=1,−2D^2 + D - 2 = 0 \implies D = 1, -2     yc=C1ex+C2e−2xy_c = C_1 e^{x} + C_2 e^{-2x}

    • Particular Integral with a=1a = 1, replacing D2→−12=−1D^2 \rightarrow -1^2 = -1:     yp=1D2+D−2sin⁡(x)=1−1+D−2sin⁡(x)=1D−3sin⁡(x)y_p = \frac{1}{D^2 + D - 2} \sin(x) = \frac{1}{-1 + D - 2} \sin(x) = \frac{1}{D - 3} \sin(x)

    • Rationalizing with conjugate (D+3)(D + 3):     yp=D+3(D−3)(D+3)sin⁡(x)=D+3D2−9sin⁡(x)y_p = \frac{D + 3}{(D - 3)(D + 3)} \sin(x) = \frac{D + 3}{D^2 - 9} \sin(x)

    • Substituting D2→−1D^2 \rightarrow -1 in denominator:     yp=(D+3)sin⁡(x)−1−9=−110[D(sin⁡(x))+3sin⁡(x)]y_p = \frac{(D + 3) \sin(x)}{-1 - 9} = -\frac{1}{10} [D(\sin(x)) + 3 \sin(x)]     yp=−110[cos⁡(x)+3sin⁡(x)]y_p = -\frac{1}{10} [\cos(x) + 3 \sin(x)]

    • General solution:     y=C1ex+C2e−2x−110[cos⁡(x)+3sin⁡(x)]y = C_1 e^x + C_2 e^{-2x} - \frac{1}{10} [\cos(x) + 3 \sin(x)]

  • Example 2 (Shortcut II): Solve (D2+2D+1)y=cos⁡2(x)(D^2 + 2 D + 1) y = \cos^2(x)

    • Auxiliary equation:     D2+2D+1=0  ⟹  (D+1)2=0  ⟹  D=−1,−1D^2 + 2 D + 1 = 0 \implies (D + 1)^2 = 0 \implies D = -1, -1     yc=(C1+C2x)e−xy_c = (C_1 + C_2 x) e^{-x}

    • Rewriting the non-homogeneous term via trigonometric identity:     cos⁡2(x)=1+cos⁡(2x)2=12+12cos⁡(2x)\cos^2(x) = \frac{1 + \cos(2x)}{2} = \frac{1}{2} + \frac{1}{2} \cos(2x)

    • Particular Integral splits into two parts:     yp=yp1+yp2y_p = y_{p1} + y_{p2}

    • For yp1y_{p1} (Q1(x)=12e0⋅xQ_1(x) = \frac{1}{2} e^{0 \cdot x}):     yp1=1D2+2D+1(12)=102+2(0)+1(12)=12y_{p1} = \frac{1}{D^2 + 2 D + 1} \left(\frac{1}{2}\right) = \frac{1}{0^2 + 2(0) + 1} \left(\frac{1}{2}\right) = \frac{1}{2}

    • For yp2y_{p2} (Q2(x)=12cos⁡(2x)Q_2(x) = \frac{1}{2} \cos(2x), a=2a = 2, D2→−22=−4D^2 \rightarrow -2^2 = -4):     yp2=121D2+2D+1cos⁡(2x)=121−4+2D+1cos⁡(2x)=1212D−3cos⁡(2x)y_{p2} = \frac{1}{2} \frac{1}{D^2 + 2 D + 1} \cos(2x) = \frac{1}{2} \frac{1}{-4 + 2 D + 1} \cos(2x) = \frac{1}{2} \frac{1}{2 D - 3} \cos(2x)

    • Rationalizing denominator with (2D+3)(2 D + 3):     yp2=122D+34D2−9cos⁡(2x)y_{p2} = \frac{1}{2} \frac{2 D + 3}{4 D^2 - 9} \cos(2x)

    • Substituting D2→−4D^2 \rightarrow -4 in denominator:     4D2−9=4(−4)−9=−16−9=−254 D^2 - 9 = 4(-4) - 9 = -16 - 9 = -25     yp2=12(−25)[2D(cos⁡(2x))+3cos⁡(2x)]y_{p2} = \frac{1}{2(-25)} [2 D(\cos(2x)) + 3 \cos(2x)]     yp2=−150[−4sin⁡(2x)+3cos⁡(2x)]=225sin⁡(2x)−350cos⁡(2x)y_{p2} = -\frac{1}{50} [-4 \sin(2x) + 3 \cos(2x)] = \frac{2}{25} \sin(2x) - \frac{3}{50} \cos(2x)

    • Summing the components:     yp=225sin⁡(2x)−350cos⁡(2x)+12y_p = \frac{2}{25} \sin(2x) - \frac{3}{50} \cos(2x) + \frac{1}{2}

    • Complete general solution:     y=(C1+C2x)e−x+225sin⁡(2x)−350cos⁡(2x)+12y = (C_1 + C_2 x) e^{-x} + \frac{2}{25} \sin(2x) - \frac{3}{50} \cos(2x) + \frac{1}{2}

  • Shortcut Method III: Polynomial Functions Q(x)=xmQ(x) = x^m where m∈Z+m \in \mathbb{Z}^+

    • Rule:

    • Factor out the lowest degree term in DD from F(D)F(D) to express the operator as [1+ϕ(D)][1 + \phi(D)].

    • Invert the operator using binomial expansion up to degree mm:       yp=11+ϕ(D)xm=[1+ϕ(D)]−1xmy_p = \frac{1}{1 + \phi(D)} x^m = [1 + \phi(D)]^{-1} x^m       [1+ϕ(D)]−1=1−ϕ(D)+(ϕ(D))2−(ϕ(D))3+…[1 + \phi(D)]^{-1} = 1 - \phi(D) + (\phi(D))^2 - (\phi(D))^3 + \dots       [1−ϕ(D)]−1=1+ϕ(D)+(ϕ(D))2+(ϕ(D))3+…[1 - \phi(D)]^{-1} = 1 + \phi(D) + (\phi(D))^2 + (\phi(D))^3 + \dots

    • Terms with degree higher than mm annihilate xmx^m and are discarded.

  • Example (Shortcut III): Solve (D4+4D2)y=x2+1(D^4 + 4 D^2) y = x^2 + 1

    • Auxiliary equation:     D4+4D2=0  ⟹  D2(D2+4)=0D^4 + 4 D^2 = 0 \implies D^2(D^2 + 4) = 0     Roots: D=0,0,±2iD = 0, 0, \pm 2i

    • Complementary Function:     yc=(C1x+C2)+C3cos⁡(2x)+C4sin⁡(2x)y_c = (C_1 x + C_2) + C_3 \cos(2x) + C_4 \sin(2x)

    • Factoring the lowest power of DD for the Particular Integral:     yp=14D2(1+D24)(x2+1)=14D2(1+D24)−1(x2+1)y_p = \frac{1}{4 D^2 \left(1 + \frac{D^2}{4}\right)} (x^2 + 1) = \frac{1}{4 D^2} \left(1 + \frac{D^2}{4}\right)^{-1} (x^2 + 1)

    • Expanding binomially:     (1+D24)−1=1−D24+…\left(1 + \frac{D^2}{4}\right)^{-1} = 1 - \frac{D^2}{4} + \dots

    • Operating on the polynomial:     (1−D24)(x2+1)=(x2+1)−14D2(x2+1)=x2+1−14(2)=x2+12\left(1 - \frac{D^2}{4}\right) (x^2 + 1) = (x^2 + 1) - \frac{1}{4} D^2(x^2 + 1) = x^2 + 1 - \frac{1}{4}(2) = x^2 + \frac{1}{2}

    • Applying 1D2\frac{1}{D^2} (integrating twice consecutively):     1D(x2+12)=∫(x2+12) dx=x33+x2\frac{1}{D} \left(x^2 + \frac{1}{2}\right) = \int \left(x^2 + \frac{1}{2}\right)\,dx = \frac{x^3}{3} + \frac{x}{2}     1D2(x2+12)=∫(x33+x2) dx=x412+x24\frac{1}{D^2} \left(x^2 + \frac{1}{2}\right) = \int \left(\frac{x^3}{3} + \frac{x}{2}\right)\,dx = \frac{x^4}{12} + \frac{x^2}{4}

    • Multiplying by the remaining constant factor 14\frac{1}{4}:     yp=14(x412+x24)=x448+x216y_p = \frac{1}{4} \left(\frac{x^4}{12} + \frac{x^2}{4}\right) = \frac{x^4}{48} + \frac{x^2}{16}

    • Complete general solution:     y=C1x+C2+C3cos⁡(2x)+C4sin⁡(2x)+x448+x216y = C_1 x + C_2 + C_3 \cos(2x) + C_4 \sin(2x) + \frac{x^4}{48} + \frac{x^2}{16}

  • Shortcut Method IV: Product of Exponential and Any Function Q(x)=eaxg(x)Q(x) = e^{a x} g(x)

    • Exponential Shift Formula:     yp=1F(D)[eaxg(x)]=eax1F(D+a)g(x)y_p = \frac{1}{F(D)} [e^{a x} g(x)] = e^{a x} \frac{1}{F(D + a)} g(x)     The exponential term is shifted to the left of the operator by replacing DD with D+aD + a.

  • Example 1 (Shortcut IV): Solve (D2+2)y=x2e3x(D^2 + 2) y = x^2 e^{3x}

    • Auxiliary equation:     D2+2=0  ⟹  D=±2iD^2 + 2 = 0 \implies D = \pm \sqrt{2}i     yc=C1cos⁡(2x)+C2sin⁡(2x)y_c = C_1 \cos(\sqrt{2}x) + C_2 \sin(\sqrt{2}x)

    • Particular Integral using exponential shift (a=3a = 3):     yp=1D2+2[e3xx2]=e3x1(D+3)2+2x2=e3x1D2+6D+11x2y_p = \frac{1}{D^2 + 2} [e^{3x} x^2] = e^{3x} \frac{1}{(D + 3)^2 + 2} x^2 = e^{3x} \frac{1}{D^2 + 6 D + 11} x^2

    • Factor out 11 to prepare binomial expansion:     yp=e3x11[1+6D+D211]−1x2y_p = \frac{e^{3x}}{11} \left[1 + \frac{6 D + D^2}{11}\right]^{-1} x^2

    • Binomial series expansion:      [1+6D+D211]−1=1−6D+D211+(6D+D211)2−⋯=1−611D−111D2+36121D2\left[1 + \frac{6 D + D^2}{11}\right]^{-1} = 1 - \frac{6 D + D^2}{11} + \left(\frac{6 D + D^2}{11}\right)^2 - \dots = 1 - \frac{6}{11} D - \frac{1}{11} D^2 + \frac{36}{121} D^2

    • Applying derivatives to x2x^2:     D(x2)=2xD(x^2) = 2x     D2(x2)=2D^2(x^2) = 2     [1−611D+25121D2]x2=x2−1211x+50121\left[1 - \frac{6}{11} D + \frac{25}{121} D^2\right] x^2 = x^2 - \frac{12}{11} x + \frac{50}{121}

    • Multiplying by e3x11\frac{e^{3x}}{11}:     yp=e3x11[x2−1211x+50121]=e3x1331[121x2−132x+50]y_p = \frac{e^{3x}}{11} \left[x^2 - \frac{12}{11} x + \frac{50}{121}\right] = \frac{e^{3x}}{1331} [121 x^2 - 132 x + 50]

    • General solution:     y=C1cos⁡(2x)+C2sin⁡(2x)+e3x1331[121x2−132x+50]y = C_1 \cos(\sqrt{2}x) + C_2 \sin(\sqrt{2}x) + \frac{e^{3x}}{1331} [121 x^2 - 132 x + 50]

  • Example 2 (Shortcut IV): Solve (D3+1)y=e2xsin⁡(x)(D^3 + 1) y = e^{2x} \sin(x)

    • Auxiliary equation:     D3+1=0  ⟹  (D+1)(D2−D+1)=0D^3 + 1 = 0 \implies (D + 1)(D^2 - D + 1) = 0     Roots: D=−1,1±i32D = -1, \frac{1 \pm i \sqrt{3}}{2}

    • Complementary Function:     yc=C1e−x+ex/2[Acos⁡(32x)+Bsin⁡(32x)]y_c = C_1 e^{-x} + e^{x/2} \left[A \cos\left(\frac{\sqrt{3}}{2}x\right) + B \sin\left(\frac{\sqrt{3}}{2}x\right)\right]

    • Particular Integral using exponential shift (a=2a = 2):     yp=e2x1(D+2)3+1sin⁡(x)y_p = e^{2x} \frac{1}{(D + 2)^3 + 1} \sin(x)

    • Expanding the denominator operator:     (D+2)3+1=D3+6D2+12D+8+1=D3+6D2+12D+9(D + 2)^3 + 1 = D^3 + 6 D^2 + 12 D + 8 + 1 = D^3 + 6 D^2 + 12 D + 9

    • For sin⁡(x)\sin(x), a=1  ⟹  D2→−1a = 1 \implies D^2 \rightarrow -1, so D3=D(D2)→−DD^3 = D(D^2) \rightarrow -D:     F(D)→−D+6(−1)+12D+9=11D+3F(D) \rightarrow -D + 6(-1) + 12 D + 9 = 11 D + 3

    • Applying conjugate operator (11D−3)(11 D - 3):     yp=e2x11D−3(11D+3)(11D−3)sin⁡(x)=e2x11D−3121D2−9sin⁡(x)y_p = e^{2x} \frac{11 D - 3}{(11 D + 3)(11 D - 3)} \sin(x) = e^{2x} \frac{11 D - 3}{121 D^2 - 9} \sin(x)

    • Substituting D2→−1D^2 \rightarrow -1 in denominator:     121(−1)−9=−130121(-1) - 9 = -130     yp=e2x11D(sin⁡(x))−3sin⁡(x)−130=−e2x130[11cos⁡(x)−3sin⁡(x)]y_p = e^{2x} \frac{11 D(\sin(x)) - 3 \sin(x)}{-130} = -\frac{e^{2x}}{130} [11 \cos(x) - 3 \sin(x)]

    • General solution:     y=C1e−x+ex/2[Acos⁡(32x)+Bsin⁡(32x)]−e2x130[11cos⁡(x)−3sin⁡(x)]y = C_1 e^{-x} + e^{x/2} \left[A \cos\left(\frac{\sqrt{3}}{2}x\right) + B \sin\left(\frac{\sqrt{3}}{2}x\right)\right] - \frac{e^{2x}}{130} [11 \cos(x) - 3 \sin(x)]

  • Shortcut Method V: Product with Linear Variable Q(x)=x⋅g(x)Q(x) = x \cdot g(x)

    • Rule:     yp=1F(D)[x⋅g(x)]=x1F(D)g(x)+[ddD(1F(D))]g(x)y_p = \frac{1}{F(D)} [x \cdot g(x)] = x \frac{1}{F(D)} g(x) + \left[\frac{d}{dD}\left(\frac{1}{F(D)}\right)\right] g(x)     yp=x1F(D)g(x)−F′(D)[F(D)]2g(x)y_p = x \frac{1}{F(D)} g(x) - \frac{F'(D)}{[F(D)]^2} g(x)

  • Example 1 (Shortcut V): Solve (D2+9)y=xcos⁡(x)(D^2 + 9) y = x \cos(x)

    • Auxiliary equation:     D2+9=0  ⟹  D=±3iD^2 + 9 = 0 \implies D = \pm 3i     yc=Acos⁡(3x)+Bsin⁡(3x)y_c = A \cos(3x) + B \sin(3x)

    • Applying Shortcut V with F(D)=D2+9F(D) = D^2 + 9 and F′(D)=2DF'(D) = 2 D:     yp=x1D2+9cos⁡(x)−2D(D2+9)2cos⁡(x)y_p = x \frac{1}{D^2 + 9} \cos(x) - \frac{2 D}{(D^2 + 9)^2} \cos(x)

    • Replacing D2→−12=−1D^2 \rightarrow -1^2 = -1:     x1−1+9cos⁡(x)=xcos⁡(x)8x \frac{1}{-1 + 9} \cos(x) = \frac{x \cos(x)}{8}     2D(−1+9)2cos⁡(x)=2D(cos⁡(x))64=−2sin⁡(x)64=−sin⁡(x)32\frac{2 D}{(-1 + 9)^2} \cos(x) = \frac{2 D(\cos(x))}{64} = \frac{-2 \sin(x)}{64} = -\frac{\sin(x)}{32}

    • Combining terms:     yp=xcos⁡(x)8−(−sin⁡(x)32)=xcos⁡(x)8+sin⁡(x)32y_p = \frac{x \cos(x)}{8} - \left(-\frac{\sin(x)}{32}\right) = \frac{x \cos(x)}{8} + \frac{\sin(x)}{32}

    • General solution:     y=Acos⁡(3x)+Bsin⁡(3x)+xcos⁡(x)8+sin⁡(x)32y = A \cos(3x) + B \sin(3x) + \frac{x \cos(x)}{8} + \frac{\sin(x)}{32}

  • Example 2 (Mixed shortcuts): Solve (D2−1)y=xsin⁡(x)+(1+x2)ex(D^2 - 1) y = x \sin(x) + (1 + x^2) e^x

    • Auxiliary equation:     D2−1=0  ⟹  D=±1D^2 - 1 = 0 \implies D = \pm 1     yc=C1ex+C2e−xy_c = C_1 e^x + C_2 e^{-x}

    • First component yp1=1D2−1[xsin⁡(x)]y_{p1} = \frac{1}{D^2 - 1}[x \sin(x)]:     yp1=x1D2−1sin⁡(x)−2D(D2−1)2sin⁡(x)y_{p1} = x \frac{1}{D^2 - 1} \sin(x) - \frac{2 D}{(D^2 - 1)^2} \sin(x)     Replacing D2→−1D^2 \rightarrow -1:     yp1=xsin⁡(x)−1−1−2D(sin⁡(x))(−1−1)2=−xsin⁡(x)2−2cos⁡(x)4=−12[xsin⁡(x)+cos⁡(x)]y_{p1} = x \frac{\sin(x)}{-1 - 1} - \frac{2 D(\sin(x))}{(-1 - 1)^2} = -\frac{x \sin(x)}{2} - \frac{2 \cos(x)}{4} = -\frac{1}{2} [x \sin(x) + \cos(x)]

    • Second component yp2=1D2−1[ex(1+x2)]y_{p2} = \frac{1}{D^2 - 1}[e^x (1 + x^2)] via exponential shift:     yp2=ex1(D+1)2−1(x2+1)=ex1D2+2D(x2+1)y_{p2} = e^x \frac{1}{(D + 1)^2 - 1} (x^2 + 1) = e^x \frac{1}{D^2 + 2 D} (x^2 + 1)     yp2=ex12D(1+D2)(x2+1)=ex2D(1−D2+D24−… )(x2+1)y_{p2} = e^x \frac{1}{2 D \left(1 + \frac{D}{2}\right)} (x^2 + 1) = \frac{e^x}{2 D} \left(1 - \frac{D}{2} + \frac{D^2}{4} - \dots\right) (x^2 + 1)     Evaluating polynomial operations:     (1−D2+D24)(x2+1)=x2+1−12(2x)+14(2)=x2−x+32\left(1 - \frac{D}{2} + \frac{D^2}{4}\right) (x^2 + 1) = x^2 + 1 - \frac{1}{2}(2x) + \frac{1}{4}(2) = x^2 - x + \frac{3}{2}     Integrating with 1D\frac{1}{D}:     1D(x2−x+32)=x33−x22+3x2\frac{1}{D} \left(x^2 - x + \frac{3}{2}\right) = \frac{x^3}{3} - \frac{x^2}{2} + \frac{3x}{2}     Multiplying by ex2\frac{e^x}{2}:     yp2=ex(x36−x24+3x4)y_{p2} = e^x \left(\frac{x^3}{6} - \frac{x^2}{4} + \frac{3x}{4}\right)

    • Total general solution:     y=C1ex+C2e−x−12[xsin⁡(x)+cos⁡(x)]+ex(x36−x24+3x4)y = C_1 e^x + C_2 e^{-x} - \frac{1}{2} [x \sin(x) + \cos(x)] + e^x \left(\frac{x^3}{6} - \frac{x^2}{4} + \frac{3x}{4}\right)

Cauchy-Euler Linear Differential Equations

  • A Cauchy-Euler differential equation possesses the form:   k0xndnydxn+k1xn−1dn−1ydxn−1+⋯+kn−1xdydx+kny=Q(x)k_0 x^n \frac{d^n y}{dx^n} + k_1 x^{n-1} \frac{d^{n-1} y}{dx^{n-1}} + \dots + k_{n-1} x \frac{dy}{dx} + k_n y = Q(x)

  • Transformation to constant coefficients:

    • Introduce the substitution x=etx = e^t, which implies t=ln⁡(x)t = \ln(x) and dtdx=1x\frac{dt}{dx} = \frac{1}{x}.

    • First derivative substitution:     dydx=dydtdtdx=1xdydt  ⟹  xdydx=dydt=Dy\frac{dy}{dx} = \frac{dy}{dt} \frac{dt}{dx} = \frac{1}{x} \frac{dy}{dt} \implies x \frac{dy}{dx} = \frac{dy}{dt} = D y     where D=ddtD = \frac{d}{dt}.

    • Second derivative substitution:     d2ydx2=ddx(1xdydt)=−1x2dydt+1xd2ydt2dtdx=1x2(d2ydt2−dydt)\frac{d^2 y}{dx^2} = \frac{d}{dx} \left(\frac{1}{x} \frac{dy}{dt}\right) = -\frac{1}{x^2} \frac{dy}{dt} + \frac{1}{x} \frac{d^2 y}{dt^2} \frac{dt}{dx} = \frac{1}{x^2} \left(\frac{d^2 y}{dt^2} - \frac{dy}{dt}\right)     x2d2ydx2=D(D−1)yx^2 \frac{d^2 y}{dx^2} = D(D - 1) y

    • Higher-order derivative substitutions:     x3d3ydx3=D(D−1)(D−2)yx^3 \frac{d^3 y}{dx^3} = D(D - 1)(D - 2) y     xndnydxn=D(D−1)(D−2)…(D−(n−1))yx^n \frac{d^n y}{dx^n} = D(D - 1)(D - 2) \dots (D - (n - 1)) y

  • Example: Solve x3d3ydx3+3x2d2ydx2+xdydx+8y=13cos⁡(ln⁡(x))x^3 \frac{d^3 y}{dx^3} + 3 x^2 \frac{d^2 y}{dx^2} + x \frac{dy}{dx} + 8 y = 13 \cos(\ln(x))

    • Substituting x=etx = e^t, t=ln⁡(x)t = \ln(x), and the operator identities with D=ddtD = \frac{d}{dt}:     [D(D−1)(D−2)+3D(D−1)+D+8]y=13cos⁡(t)[D(D - 1)(D - 2) + 3 D(D - 1) + D + 8] y = 13 \cos(t)

    • Simplifying the operator polynomial:     D(D−1)(D−2)+3D(D−1)=D(D−1)(D−2+3)=D(D−1)(D+1)=D(D2−1)=D3−DD(D - 1)(D - 2) + 3 D(D - 1) = D(D - 1)(D - 2 + 3) = D(D - 1)(D + 1) = D(D^2 - 1) = D^3 - D     D3−D+D+8=D3+8D^3 - D + D + 8 = D^3 + 8

    • Equation becomes:     (D3+8)y=13cos⁡(t)(D^3 + 8) y = 13 \cos(t)

    • Auxiliary equation:     D3+8=0  ⟹  (D+2)(D2−2D+4)=0D^3 + 8 = 0 \implies (D + 2)(D^2 - 2 D + 4) = 0     Roots: D=−2D = -2, and D=2±4−162=1±i3D = \frac{2 \pm \sqrt{4 - 16}}{2} = 1 \pm i \sqrt{3}

    • Complementary Function in terms of tt:     yc=C1e−2t+et[Acos⁡(3t)+Bsin⁡(3t)]y_c = C_1 e^{-2t} + e^{t} [A \cos(\sqrt{3}t) + B \sin(\sqrt{3}t)]

    • Particular Integral with a=1a = 1, D2→−1D^2 \rightarrow -1:     yp=1D3+8[13cos⁡(t)]=1D(D2)+8[13cos⁡(t)]=138−Dcos⁡(t)y_p = \frac{1}{D^3 + 8} [13 \cos(t)] = \frac{1}{D(D^2) + 8} [13 \cos(t)] = \frac{13}{8 - D} \cos(t)

    • Rationalizing:     yp=138+D64−D2cos⁡(t)=1364−(−1)(8cos⁡(t)+D(cos⁡(t)))=1365[8cos⁡(t)−sin⁡(t)]y_p = 13 \frac{8 + D}{64 - D^2} \cos(t) = \frac{13}{64 - (-1)} (8 \cos(t) + D(\cos(t))) = \frac{13}{65} [8 \cos(t) - \sin(t)]     yp=85cos⁡(t)−15sin⁡(t)y_p = \frac{8}{5} \cos(t) - \frac{1}{5} \sin(t)

    • Back-substituting t=ln⁡(x)t = \ln(x) and et=xe^t = x:     y=C1x−2+x[Acos⁡(3ln⁡(x))+Bsin⁡(3ln⁡(x))]+85cos⁡(ln⁡(x))−15sin⁡(ln⁡(x))y = C_1 x^{-2} + x [A \cos(\sqrt{3}\ln(x)) + B \sin(\sqrt{3}\ln(x))] + \frac{8}{5} \cos(\ln(x)) - \frac{1}{5} \sin(\ln(x))

Legendre's Linear Differential Equations

  • Legendre's linear differential equation has the generalized form:   k0(ax+b)ndnydxn+k1(ax+b)n−1dn−1ydxn−1+⋯+kny=Q(x)k_0 (a x + b)^n \frac{d^n y}{dx^n} + k_1 (a x + b)^{n-1} \frac{d^{n-1} y}{dx^{n-1}} + \dots + k_n y = Q(x)

  • Transformation substitutions:

    • Substitute ax+b=et  ⟹  t=ln⁡(ax+b)a x + b = e^t \implies t = \ln(a x + b)

    • By the chain rule, dtdx=aax+b\frac{dt}{dx} = \frac{a}{a x + b}

    • First derivative:     (ax+b)dydx=aDy(a x + b) \frac{dy}{dx} = a D y     where D=ddtD = \frac{d}{dt}.

    • Higher derivatives:     (ax+b)2d2ydx2=a2D(D−1)y(a x + b)^2 \frac{d^2 y}{dx^2} = a^2 D(D - 1) y     (ax+b)ndnydxn=anD(D−1)(D−2)…(D−(n−1))y(a x + b)^n \frac{d^n y}{dx^n} = a^n D(D - 1)(D - 2) \dots (D - (n - 1)) y

  • Example: Solve (3x+2)2d2ydx2+3(3x+2)dydx−36y=3x2+4x+1(3x + 2)^2 \frac{d^2 y}{dx^2} + 3(3x + 2) \frac{dy}{dx} - 36 y = 3x^2 + 4x + 1

    • Let 3x+2=et  ⟹  t=ln⁡(3x+2)3x + 2 = e^t \implies t = \ln(3x + 2) and x=et−23x = \frac{e^t - 2}{3}.

    • Differential operators (a=3a = 3):     (3x+2)dydx=3Dy(3x + 2) \frac{dy}{dx} = 3 D y     (3x+2)2d2ydx2=9D(D−1)y(3x + 2)^2 \frac{d^2 y}{dx^2} = 9 D(D - 1) y

    • Transforming the non-homogeneous term:     3x2+4x+1=3(et−23)2+4(et−23)+1=e2t−4et+43+4et−83+1=e2t−133x^2 + 4x + 1 = 3 \left(\frac{e^t - 2}{3}\right)^2 + 4 \left(\frac{e^t - 2}{3}\right) + 1 = \frac{e^{2t} - 4 e^t + 4}{3} + \frac{4 e^t - 8}{3} + 1 = \frac{e^{2t} - 1}{3}

    • Transforming the operator equation:     [9D(D−1)+3(3D)−36]y=e2t−13[9 D(D - 1) + 3(3 D) - 36] y = \frac{e^{2t} - 1}{3}     (9D2−9D+9D−36)y=e2t−13(9 D^2 - 9 D + 9 D - 36) y = \frac{e^{2t} - 1}{3}     9(D2−4)y=e2t−13  ⟹  (D2−4)y=e2t−1279(D^2 - 4) y = \frac{e^{2t} - 1}{3} \implies (D^2 - 4) y = \frac{e^{2t} - 1}{27}

    • Auxiliary equation:     D2−4=0  ⟹  D=±2D^2 - 4 = 0 \implies D = \pm 2     yc=C1e2t+C2e−2t=C1(3x+2)2+C2(3x+2)−2y_c = C_1 e^{2t} + C_2 e^{-2t} = C_1 (3x + 2)^2 + C_2 (3x + 2)^{-2}

    • Particular Integral:     yp=1271D2−4[e2t−1]y_p = \frac{1}{27} \frac{1}{D^2 - 4} [e^{2t} - 1]

    • For e2te^{2t}, F(2)=22−4=0F(2) = 2^2 - 4 = 0 (Case of Failure):     1D2−4e2t=t12De2t=te2t2(2)=te2t4\frac{1}{D^2 - 4} e^{2t} = t \frac{1}{2 D} e^{2t} = t \frac{e^{2t}}{2(2)} = \frac{t e^{2t}}{4}

    • For 1=e0⋅t1 = e^{0 \cdot t}:     1D2−4e0⋅t=102−4(1)=−14\frac{1}{D^2 - 4} e^{0 \cdot t} = \frac{1}{0^2 - 4} (1) = -\frac{1}{4}

    • Summing the Particular Integral terms:     yp=127[te2t4−(−14)]=1108(te2t+1)y_p = \frac{1}{27} \left[\frac{t e^{2t}}{4} - \left(-\frac{1}{4}\right)\right] = \frac{1}{108} (t e^{2t} + 1)

    • Back-substituting t=ln⁡(3x+2)t = \ln(3x + 2) and e2t=(3x+2)2e^{2t} = (3x + 2)^2:     yp=1108[(3x+2)2ln⁡(3x+2)+1]y_p = \frac{1}{108} [(3x + 2)^2 \ln(3x + 2) + 1]

    • General solution:     y=C1(3x+2)2+C2(3x+2)−2+1108[(3x+2)2ln⁡(3x+2)+1]y = C_1 (3x + 2)^2 + C_2 (3x + 2)^{-2} + \frac{1}{108} [(3x + 2)^2 \ln(3x + 2) + 1]

Method of Variation of Parameters

  • Applicable to second-order non-homogeneous linear differential equations:   d2ydx2+P(x)dydx+Q(x)y=R(x)\frac{d^2 y}{dx^2} + P(x) \frac{dy}{dx} + Q(x) y = R(x)

  • Let the Complementary Function be:   yc=C1y1(x)+C2y2(x)y_c = C_1 y_1(x) + C_2 y_2(x)

  • The Particular Integral assumes variable parameters u(x)u(x) and v(x)v(x) replacing constants C1C_1 and C2C_2:   yp=u(x)y1(x)+v(x)y2(x)y_p = u(x) y_1(x) + v(x) y_2(x)

  • The Wronskian of the fundamental solutions is the determinant:   W(y1,y2)=∣y1y2y1′y2′∣=y1y2′−y2y1′W(y_1, y_2) = \begin{vmatrix} y_1 & y_2 \\ y_1' & y_2' \end{vmatrix} = y_1 y_2' - y_2 y_1'

  • Parameter integral formulas:   u(x)=−∫y2(x)R(x)W(y1,y2) dxu(x) = -\int \frac{y_2(x) R(x)}{W(y_1, y_2)}\,dx   v(x)=∫y1(x)R(x)W(y1,y2) dxv(x) = \int \frac{y_1(x) R(x)}{W(y_1, y_2)}\,dx

Exact Differential Equations

  • A differential expression of the form M(x,y) dx+N(x,y) dy=0M(x, y)\,dx + N(x, y)\,dy = 0 is exact if and only if:   ∂M∂y=∂N∂x\frac{\partial M}{\partial y} = \frac{\partial N}{\partial x}

  • The general solution of an exact differential equation is obtained by:   ∫y=constantM dx+∫(terms of N not containing x) dy=C\int_{y = \text{constant}} M\,dx + \int (\text{terms of } N \text{ not containing } x)\,dy = C

Integrating Factors for Non-Exact Equations

  • If M dx+N dy=0M\,dx + N\,dy = 0 is not exact, an Integrating Factor (I.F.I.F.) is determined based on the algebraic structure of MM and NN.

  • Type I: Homogeneous Differential Equations

    • If M(x,y) dx+N(x,y) dy=0M(x, y)\,dx + N(x, y)\,dy = 0 is homogeneous of the same degree and Mx+Ny≠0M x + N y \neq 0:     I.F.=1Mx+NyI.F. = \frac{1}{M x + N y}

  • Example 1 (Type I): Solve y(x+y) dx+x(y−x) dy=0y(x + y)\,dx + x(y - x)\,dy = 0

    • Identify components:     M=xy+y2  ⟹  ∂M∂y=x+2yM = x y + y^2 \implies \frac{\partial M}{\partial y} = x + 2y     N=xy−x2  ⟹  ∂N∂x=y−2xN = x y - x^2 \implies \frac{\partial N}{\partial x} = y - 2x     Since ∂M∂y≠∂N∂x\frac{\partial M}{\partial y} \neq \frac{\partial N}{\partial x}, the equation is non-exact.

    • Check homogeneity: both MM and NN are homogeneous of degree 2.

    • Calculate denominator for I.F.I.F.:     Mx+Ny=x(xy+y2)+y(xy−x2)=x2y+xy2+xy2−x2y=2xy2M x + N y = x(x y + y^2) + y(x y - x^2) = x^2 y + x y^2 + x y^2 - x^2 y = 2 x y^2     I.F.=12xy2I.F. = \frac{1}{2 x y^2}

    • Multiply original equation by I.F.I.F.:     xy+y22xy2 dx+xy−x22xy2 dy=0\frac{x y + y^2}{2 x y^2}\,dx + \frac{x y - x^2}{2 x y^2}\,dy = 0     (12y+12x) dx+(12y−x2y2) dy=0\left(\frac{1}{2y} + \frac{1}{2x}\right)\,dx + \left(\frac{1}{2y} - \frac{x}{2y^2}\right)\,dy = 0

    • Verify exactness:     ∂M′∂y=−12y2\frac{\partial M'}{\partial y} = -\frac{1}{2y^2}     ∂N′∂x=−12y2\frac{\partial N'}{\partial x} = -\frac{1}{2y^2}

    • Integrate to find solution:     ∫y=const(12y+12x) dx+∫12y dy=C\int_{y = \text{const}} \left(\frac{1}{2y} + \frac{1}{2x}\right)\,dx + \int \frac{1}{2y}\,dy = C     x2y+12ln⁡(x)+12ln⁡(y)=C\frac{x}{2y} + \frac{1}{2} \ln(x) + \frac{1}{2} \ln(y) = C     xy+ln⁡(xy)=C′\frac{x}{y} + \ln(x y) = C'

  • Example 2 (Type I): Solve x2y dx−(x3+y3) dy=0x^2 y\,dx - (x^3 + y^3)\,dy = 0

    • Identify components:     M=x2y  ⟹  ∂M∂y=x2M = x^2 y \implies \frac{\partial M}{\partial y} = x^2     N=−x3−y3  ⟹  ∂N∂x=−3x2N = -x^3 - y^3 \implies \frac{\partial N}{\partial x} = -3 x^2     Non-exact, but homogeneous of degree 3.

    • Calculate denominator for I.F.I.F.:     Mx+Ny=x(x2y)+y(−x3−y3)=x3y−x3y−y4=−y4M x + N y = x(x^2 y) + y(-x^3 - y^3) = x^3 y - x^3 y - y^4 = -y^4     I.F.=−1y4I.F. = -\frac{1}{y^4}

    • Multiply by I.F.I.F.:     −x2y3 dx+(x3y4+1y) dy=0-\frac{x^2}{y^3}\,dx + \left(\frac{x^3}{y^4} + \frac{1}{y}\right)\,dy = 0

    • Verify exactness:     ∂M′∂y=3x2y4\frac{\partial M'}{\partial y} = \frac{3 x^2}{y^4}     ∂N′∂x=3x2y4\frac{\partial N'}{\partial x} = \frac{3 x^2}{y^4}

    • Integrate:     ∫y=const(−x2y3) dx+∫1y dy=C\int_{y = \text{const}} \left(-\frac{x^2}{y^3}\right)\,dx + \int \frac{1}{y}\,dy = C     −x33y3+ln⁡(y)=C-\frac{x^3}{3 y^3} + \ln(y) = C

  • Type II: Equations of Form f1(xy)y dx+f2(xy)x dy=0f_1(x y) y\,dx + f_2(x y) x\,dy = 0

    • If Mx−Ny≠0M x - N y \neq 0:     I.F.=1Mx−NyI.F. = \frac{1}{M x - N y}

  • Type III: Integrating Factor as a Function of xx Alone

    • If the differential equation is non-exact and the quantity:     ∂M∂y−∂N∂xN=f(x)\frac{\frac{\partial M}{\partial y} - \frac{\partial N}{\partial x}}{N} = f(x)     is a function of xx alone, then:     I.F.=e∫f(x) dxI.F. = e^{\int f(x)\,dx}

  • Example (Type III): Solve (x4ex−2mxy2) dx+2mx2y dy=0(x^4 e^x - 2 m x y^2)\,dx + 2 m x^2 y\,dy = 0

    • Identify partial derivatives:     M=x4ex−2mxy2  ⟹  ∂M∂y=−4mxyM = x^4 e^x - 2 m x y^2 \implies \frac{\partial M}{\partial y} = -4 m x y     N=2mx2y  ⟹  ∂N∂x=4mxyN = 2 m x^2 y \implies \frac{\partial N}{\partial x} = 4 m x y

    • Check condition:     ∂M∂y−∂N∂xN=−4mxy−4mxy2mx2y=−8mxy2mx2y=−4x=f(x)\frac{\frac{\partial M}{\partial y} - \frac{\partial N}{\partial x}}{N} = \frac{-4 m x y - 4 m x y}{2 m x^2 y} = \frac{-8 m x y}{2 m x^2 y} = -\frac{4}{x} = f(x)

    • Calculate Integrating Factor:     I.F.=e∫−4x dx=e−4ln⁡(x)=x−4=1x4I.F. = e^{\int -\frac{4}{x}\,dx} = e^{-4 \ln(x)} = x^{-4} = \frac{1}{x^4}

    • Multiply by I.F.I.F.:     (ex−2my2x3) dx+2myx2 dy=0\left(e^x - \frac{2 m y^2}{x^3}\right)\,dx + \frac{2 m y}{x^2}\,dy = 0

    • Verify exactness:     ∂M′∂y=−4myx3\frac{\partial M'}{\partial y} = -\frac{4 m y}{x^3}     ∂N′∂x=−4myx3\frac{\partial N'}{\partial x} = -\frac{4 m y}{x^3}

    • General solution:     ∫y=const(ex−2my2x3) dx+∫0 dy=C\int_{y = \text{const}} \left(e^x - \frac{2 m y^2}{x^3}\right)\,dx + \int 0\,dy = C     ex−2my2(−12x2)=Ce^x - 2 m y^2 \left(-\frac{1}{2 x^2}\right) = C     ex+my2x2=Ce^x + \frac{m y^2}{x^2} = C

  • Type IV: Integrating Factor as a Function of yy Alone

    • If the differential equation is non-exact and the quantity:     ∂N∂x−∂M∂yM=f(y)\frac{\frac{\partial N}{\partial x} - \frac{\partial M}{\partial y}}{M} = f(y)     is a function of yy alone, then:     I.F.=e∫f(y) dyI.F. = e^{\int f(y)\,dy}

  • Example (Type IV): Solve y(2x2y+ex) dx−(ex+y3) dy=0y(2 x^2 y + e^x)\,dx - (e^x + y^3)\,dy = 0

    • Identify partial derivatives:     M=2x2y2+yex  ⟹  ∂M∂y=4x2y+exM = 2 x^2 y^2 + y e^x \implies \frac{\partial M}{\partial y} = 4 x^2 y + e^x     N=−ex−y3  ⟹  ∂N∂x=−exN = -e^x - y^3 \implies \frac{\partial N}{\partial x} = -e^x

    • Check condition:     ∂N∂x−∂M∂yM=−ex−(4x2y+ex)y(2x2y+ex)=−2(2x2y+ex)y(2x2y+ex)=−2y=f(y)\frac{\frac{\partial N}{\partial x} - \frac{\partial M}{\partial y}}{M} = \frac{-e^x - (4 x^2 y + e^x)}{y(2 x^2 y + e^x)} = \frac{-2(2 x^2 y + e^x)}{y(2 x^2 y + e^x)} = -\frac{2}{y} = f(y)

    • Calculate Integrating Factor:     I.F.=e∫−2y dy=e−2ln⁡(y)=y−2=1y2I.F. = e^{\int -\frac{2}{y}\,dy} = e^{-2 \ln(y)} = y^{-2} = \frac{1}{y^2}

    • Multiply by I.F.I.F.:     (2x2+exy) dx−(exy2+y) dy=0\left(2 x^2 + \frac{e^x}{y}\right)\,dx - \left(\frac{e^x}{y^2} + y\right)\,dy = 0

    • Verify exactness:     ∂M′∂y=−exy2\frac{\partial M'}{\partial y} = -\frac{e^x}{y^2}     ∂N′∂x=−exy2\frac{\partial N'}{\partial x} = -\frac{e^x}{y^2}

    • General solution:     ∫y=const(2x2+exy) dx+∫(−y) dy=C\int_{y = \text{const}} \left(2 x^2 + \frac{e^x}{y}\right)\,dx + \int (-y)\,dy = C     2x33+exy−y22=C\frac{2 x^3}{3} + \frac{e^x}{y} - \frac{y^2}{2} = C

  • Type V: Equations of Form xayb(my dx+nx dy)+xcyd(py dx+qx dy)=0x^a y^b (m y\,dx + n x\,dy) + x^c y^d (p y\,dx + q x\,dy) = 0

    • For equations possessing this algebraic structure, assume an Integrating Factor of the form:     I.F.=xhykI.F. = x^h y^k

    • Multiply the differential equation by xhykx^h y^k and impose the condition of exactness ∂M′∂y=∂N′∂x\frac{\partial M'}{\partial y} = \frac{\partial N'}{\partial x} to generate a system of two linear algebraic equations in unknowns hh and kk.

  • Example (Type V): Solve (y4−2x3y) dx+(x4−2xy3) dy=0(y^4 - 2 x^3 y)\,dx + (x^4 - 2 x y^3)\,dy = 0

    • Multiply equation by I.F.=xhykI.F. = x^h y^k:     (xhyk+4−2xh+3yk+1) dx+(xh+4yk−2xh+1yk+3) dy=0(x^h y^{k+4} - 2 x^{h+3} y^{k+1})\,dx + (x^{h+4} y^k - 2 x^{h+1} y^{k+3})\,dy = 0

    • Compute partial derivatives:     ∂M′∂y=(k+4)xhyk+3−2(k+1)xh+3yk\frac{\partial M'}{\partial y} = (k + 4) x^h y^{k+3} - 2(k + 1) x^{h+3} y^k     ∂N′∂x=(h+4)xh+3yk−2(h+1)xhyk+3\frac{\partial N'}{\partial x} = (h + 4) x^{h+3} y^k - 2(h + 1) x^h y^{k+3}

    • Equate coefficients of like terms for exactness:

    • For xhyk+3x^h y^{k+3}:       k+4=−2(h+1)  ⟹  k+4=−2h−2  ⟹  2h+k+6=0k + 4 = -2(h + 1) \implies k + 4 = -2h - 2 \implies 2h + k + 6 = 0

    • For xh+3ykx^{h+3} y^k:       −2(k+1)=h+4  ⟹  −2k−2=h+4  ⟹  h+2k+6=0-2(k + 1) = h + 4 \implies -2k - 2 = h + 4 \implies h + 2k + 6 = 0

    • Solving the system:

    • Multiplying the first equation by 2:       4h+2k+12=04h + 2k + 12 = 0

    • Subtracting the second equation:       (4h+2k+12)−(h+2k+6)=0  ⟹  3h+6=0  ⟹  h=−2(4h + 2k + 12) - (h + 2k + 6) = 0 \implies 3h + 6 = 0 \implies h = -2

    • Substituting h=−2h = -2 into the first equation:       2(−2)+k+6=0  ⟹  −4+k+6=0  ⟹  k=−22(-2) + k + 6 = 0 \implies -4 + k + 6 = 0 \implies k = -2

    • Thus, the Integrating Factor is:     I.F.=x−2y−2=1x2y2I.F. = x^{-2} y^{-2} = \frac{1}{x^2 y^2}

    • Multiply original equation by I.F.I.F.:     (y2x2−2xy) dx+(x2y2−2yx) dy=0\left(\frac{y^2}{x^2} - \frac{2x}{y}\right)\,dx + \left(\frac{x^2}{y^2} - \frac{2y}{x}\right)\,dy = 0

    • Integrating with y=constanty = \text{constant} in M′M' and taking terms free of xx in N′N':     ∫y=const(y2x2−2xy) dx+∫0 dy=C\int_{y = \text{const}} \left(\frac{y^2}{x^2} - \frac{2x}{y}\right)\,dx + \int 0\,dy = C     y2(−1x)−2y(x22)=Cy^2 \left(-\frac{1}{x}\right) - \frac{2}{y} \left(\frac{x^2}{2}\right) = C     −y2x−x2y=C-\frac{y^2}{x} - \frac{x^2}{y} = C     y2x+x2y=C′\frac{y^2}{x} + \frac{x^2}{y} = C'     x3+y3=C′xyx^3 + y^3 = C' x y