Comprehensive Study Guide to Differential Equations First-Order Linear Differential Equations A first-order linear differential equation possesses the standard form: d y d x + P ( x ) y = Q ( x ) \frac{dy}{dx} + P(x) y = Q(x) d x d y + P ( x ) y = Q ( x ) where P ( x ) P(x) P ( x ) and Q ( x ) Q(x) Q ( x ) are continuous functions of x x x , or constants.
The Integrating Factor (I . F . I.F. I . F . ) is defined by the exponential integral: I . F . = e ∫ P ( x ) d x I.F. = e^{\int P(x)\,dx} I . F . = e ∫ P ( x ) d x
Derivation of the general solution formula:
Multiplying the standard differential equation by the integrating factor yields: e ∫ P ( x ) d x d y d x + P ( x ) e ∫ P ( x ) d x y = Q ( x ) e ∫ P ( x ) d x e^{\int P(x)\,dx} \frac{dy}{dx} + P(x) e^{\int P(x)\,dx} y = Q(x) e^{\int P(x)\,dx} e ∫ P ( x ) d x d x d y + P ( x ) e ∫ P ( x ) d x y = Q ( x ) e ∫ P ( x ) d x
Recognizing the left-hand side as the derivative of a product via the product rule: d d x ( y e ∫ P ( x ) d x ) = Q ( x ) e ∫ P ( x ) d x \frac{d}{dx} \left( y e^{\int P(x)\,dx} \right) = Q(x) e^{\int P(x)\,dx} d x d ( y e ∫ P ( x ) d x ) = Q ( x ) e ∫ P ( x ) d x
Integrating both sides with respect to x x x gives the complete general solution: y e ∫ P ( x ) d x = ∫ Q ( x ) e ∫ P ( x ) d x d x + C y e^{\int P(x)\,dx} = \int Q(x) e^{\int P(x)\,dx}\,dx + C y e ∫ P ( x ) d x = ∫ Q ( x ) e ∫ P ( x ) d x d x + C y ⋅ ( I . F . ) = ∫ Q ( x ) ⋅ ( I . F . ) d x + C y \cdot (I.F.) = \int Q(x) \cdot (I.F.)\,dx + C y ⋅ ( I . F . ) = ∫ Q ( x ) ⋅ ( I . F . ) d x + C
Example 1: Solve d y d x + 1 x y = x 2 \frac{dy}{dx} + \frac{1}{x} y = x^2 d x d y + x 1 y = x 2
Identify the coefficient functions: P ( x ) = 1 x P(x) = \frac{1}{x} P ( x ) = x 1 Q ( x ) = x 2 Q(x) = x^2 Q ( x ) = x 2
Calculate the Integrating Factor: I . F . = e ∫ 1 x d x = e ln ( x ) = x I.F. = e^{\int \frac{1}{x}\,dx} = e^{\ln(x)} = x I . F . = e ∫ x 1 d x = e l n ( x ) = x
Apply the general solution formula: y ⋅ x = ∫ x 2 ⋅ x d x + C y \cdot x = \int x^2 \cdot x\,dx + C y ⋅ x = ∫ x 2 ⋅ x d x + C y ⋅ x = ∫ x 3 d x + C y \cdot x = \int x^3\,dx + C y ⋅ x = ∫ x 3 d x + C y x = x 4 4 + C y x = \frac{x^4}{4} + C y x = 4 x 4 + C y = x 3 4 + C x − 1 y = \frac{x^3}{4} + C x^{-1} y = 4 x 3 + C x − 1
Example 2: Solve d y d x + y cot ( x ) = sin ( 2 x ) \frac{dy}{dx} + y \cot(x) = \sin(2x) d x d y + y cot ( x ) = sin ( 2 x )
Identify the coefficient functions: P ( x ) = cot ( x ) P(x) = \cot(x) P ( x ) = cot ( x ) Q ( x ) = sin ( 2 x ) Q(x) = \sin(2x) Q ( x ) = sin ( 2 x )
Calculate the Integrating Factor: I . F . = e ∫ cot ( x ) d x = e ln ( sin ( x ) ) = sin ( x ) I.F. = e^{\int \cot(x)\,dx} = e^{\ln(\sin(x))} = \sin(x) I . F . = e ∫ c o t ( x ) d x = e l n ( s i n ( x )) = sin ( x )
Apply the general solution formula: y sin ( x ) = ∫ sin ( 2 x ) sin ( x ) d x + C y \sin(x) = \int \sin(2x) \sin(x)\,dx + C y sin ( x ) = ∫ sin ( 2 x ) sin ( x ) d x + C
Expand using the double-angle identity sin ( 2 x ) = 2 sin ( x ) cos ( x ) \sin(2x) = 2 \sin(x) \cos(x) sin ( 2 x ) = 2 sin ( x ) cos ( x ) : y sin ( x ) = 2 ∫ sin 2 ( x ) cos ( x ) d x + C y \sin(x) = 2 \int \sin^2(x) \cos(x)\,dx + C y sin ( x ) = 2 ∫ sin 2 ( x ) cos ( x ) d x + C
Evaluate the integral using substitution with t = sin ( x ) t = \sin(x) t = sin ( x ) and d t = cos ( x ) d x dt = \cos(x)\,dx d t = cos ( x ) d x : 2 ∫ t 2 d t = 2 3 t 3 = 2 3 sin 3 ( x ) 2 \int t^2\,dt = \frac{2}{3} t^3 = \frac{2}{3} \sin^3(x) 2 ∫ t 2 d t = 3 2 t 3 = 3 2 sin 3 ( x )
The explicit solution is: y sin ( x ) = 2 3 sin 3 ( x ) + C y \sin(x) = \frac{2}{3} \sin^3(x) + C y sin ( x ) = 3 2 sin 3 ( x ) + C y = 2 3 sin 2 ( x ) + C ( sin ( x ) ) − 1 y = \frac{2}{3} \sin^2(x) + C (\sin(x))^{-1} y = 3 2 sin 2 ( x ) + C ( sin ( x ) ) − 1
Higher-Order Linear Differential Equations with Constant Coefficients The general linear differential equation of order n n n is expressed as: P n ( x ) d n y d x n + P n − 1 ( x ) d n − 1 y d x n − 1 + ⋯ + P 1 ( x ) d y d x + P 0 ( 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) P n ( x ) d x n d n y + P n − 1 ( x ) d x n − 1 d n − 1 y + ⋯ + P 1 ( x ) d x d y + P 0 ( x ) y = Q ( x )
When all coefficients are constant scalars a n , a n − 1 , … , a 0 a_n, a_{n-1}, \dots, a_0 a n , a n − 1 , … , a 0 , the equation becomes a Linear Differential Equation with Constant Coefficients (LDE with c.c.): a n d n y d x n + a n − 1 d n − 1 y d x n − 1 + ⋯ + a 1 d y d x + a 0 y = 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) a n d x n d n y + a n − 1 d x n − 1 d n − 1 y + ⋯ + a 1 d x d y + a 0 y = Q ( x )
Differential operator notation:
The differential operator is defined as D = d d x D = \frac{d}{dx} D = d x d , D 2 = d 2 d x 2 D^2 = \frac{d^2}{dx^2} D 2 = d x 2 d 2 , up to D n = d n d x n D^n = \frac{d^n}{dx^n} D n = d x n d n .
The differential operator polynomial is: F ( D ) = a n D n + a n − 1 D n − 1 + ⋯ + a 1 D + a 0 F(D) = a_n D^n + a_{n-1} D^{n-1} + \dots + a_1 D + a_0 F ( D ) = a n D n + a n − 1 D n − 1 + ⋯ + a 1 D + a 0
The differential equation is compactly written as: F ( D ) y = Q ( x ) 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 = y c + y p = C . F . + P . I . y = y_c + y_p = C.F. + P.I. y = y c + y p = C . F . + P . I . where C . F . C.F. C . F . denotes the Complementary Function (y c y_c y c ) and P . I . P.I. P . I . denotes the Particular Integral (y p y_p y p ).
Linearity verification: F ( D ) ( y c + y p ) = F ( D ) y c + F ( D ) y p = 0 + Q ( x ) = Q ( x ) F(D)(y_c + y_p) = F(D) y_c + F(D) y_p = 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 (y c y_c y c ) is the general solution of the associated homogeneous differential equation: F ( D ) y = 0 F(D) y = 0 F ( D ) y = 0
Auxiliary Equation (A.E.):
Setting F ( D ) = 0 F(D) = 0 F ( D ) = 0 yields the algebraic auxiliary equation.
Solving this equation produces n n n characteristic roots: r 1 , r 2 , … , r n r_1, r_2, \dots, r_n r 1 , r 2 , … , r n .
Case 1: Real and Distinct Roots
If roots r 1 , r 2 , … , r n r_1, r_2, \dots, r_n r 1 , r 2 , … , r n are all real and unequal: y c = C 1 e r 1 x + C 2 e r 2 x + ⋯ + C n e r n x y_c = C_1 e^{r_1 x} + C_2 e^{r_2 x} + \dots + C_n e^{r_n x} y c = C 1 e r 1 x + C 2 e r 2 x + ⋯ + C n e r n x
Case 2: Real and Repeated Roots
If a real root r r r is repeated k k k times (r 1 = r 2 = ⋯ = r k = r r_1 = r_2 = \dots = r_k = r r 1 = r 2 = ⋯ = r k = r ): y c = ( C 1 + C 2 x + C 3 x 2 + ⋯ + C k x k − 1 ) e r x y_c = (C_1 + C_2 x + C_3 x^2 + \dots + C_k x^{k-1}) e^{r x} y c = ( C 1 + C 2 x + C 3 x 2 + ⋯ + C k x k − 1 ) e r x
If remaining roots are distinct real numbers, they are appended in the standard form C k + 1 e r k + 1 x C_{k+1} e^{r_{k+1} x} C k + 1 e r k + 1 x .
Case 3: Complex and Distinct Roots
If a pair of roots is complex conjugate: r = a ± i b r = a \pm i b r = a ± ib
Derivation using Euler's formula: y c = C 1 e ( a + i b ) x + C 2 e ( a − i b ) x y_c = C_1 e^{(a + i b)x} + C_2 e^{(a - i b)x} y c = C 1 e ( a + ib ) x + C 2 e ( a − ib ) x y c = e a x [ C 1 ( cos ( b x ) + i sin ( b x ) ) + C 2 ( cos ( b x ) − i sin ( b x ) ) ] y_c = e^{a x} [C_1 (\cos(b x) + i \sin(b x)) + C_2 (\cos(b x) - i \sin(b x))] y c = e a x [ C 1 ( cos ( b x ) + i sin ( b x )) + C 2 ( cos ( b x ) − i sin ( b x ))] y c = e a x [ cos ( b x ) ( C 1 + C 2 ) + sin ( b x ) ( i C 1 − i C 2 ) ] y_c = e^{a x} [\cos(b x)(C_1 + C_2) + \sin(b x)(i C_1 - i C_2)] 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 = C 1 + C 2 A = C_1 + C_2 A = C 1 + C 2 and B = i ( C 1 − C 2 ) B = i(C_1 - C_2) B = i ( C 1 − C 2 ) , the Complementary Function is: y c = e a x [ A cos ( b x ) + B sin ( b x ) ] y_c = e^{a x} [A \cos(b x) + B \sin(b x)] y c = e a x [ A cos ( b x ) + B sin ( b x )]
Case 4: Complex and Repeated Roots
If complex conjugate roots a ± i b a \pm i b a ± ib occur with multiplicity 2: y c = e a x [ ( C 1 x + C 2 ) cos ( b x ) + ( C 3 x + C 4 ) sin ( b x ) ] y_c = e^{a x} [(C_1 x + C_2) \cos(b x) + (C_3 x + C_4) \sin(b x)] 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 , D A, B, C, D A , B , C , D : y c = e a x [ ( A x + B ) cos ( b x ) + ( C x + D ) sin ( b x ) ] y_c = e^{a x} [(A x + B) \cos(b x) + (C x + D) \sin(b x)] y c = e a x [( A x + B ) cos ( b x ) + ( C x + D ) sin ( b x )]
Example: Solve d 3 y d x 3 + 2 d 2 y d x 2 + d y d x = 0 \frac{d^3 y}{dx^3} + 2 \frac{d^2 y}{dx^2} + \frac{dy}{dx} = 0 d x 3 d 3 y + 2 d x 2 d 2 y + d x d y = 0
Operator form: ( D 3 + 2 D 2 + D ) y = 0 (D^3 + 2 D^2 + D) y = 0 ( D 3 + 2 D 2 + D ) y = 0
Auxiliary equation: D 3 + 2 D 2 + D = 0 D^3 + 2 D^2 + D = 0 D 3 + 2 D 2 + D = 0 D ( D 2 + 2 D + 1 ) = 0 D(D^2 + 2 D + 1) = 0 D ( D 2 + 2 D + 1 ) = 0 D ( D + 1 ) 2 = 0 D(D + 1)^2 = 0 D ( D + 1 ) 2 = 0
Roots are: D = 0 , − 1 , − 1 D = 0, -1, -1 D = 0 , − 1 , − 1
General solution: y = C 1 e 0 ⋅ x + ( C 2 x + C 3 ) e − 1 ⋅ x y = C_1 e^{0 \cdot x} + (C_2 x + C_3) e^{-1 \cdot x} y = C 1 e 0 ⋅ x + ( C 2 x + C 3 ) e − 1 ⋅ x y = C 1 + ( C 2 x + C 3 ) e − x y = C_1 + (C_2 x + C_3) e^{-x} y = C 1 + ( C 2 x + C 3 ) e − x
Particular Integral (P.I.) Evaluation Methods Definition of the Particular Integral: y p = 1 F ( D ) Q ( x ) y_p = \frac{1}{F(D)} Q(x) y p = F ( D ) 1 Q ( x )
General resolution via linear factors:
Any linear factor ( D − a ) (D - a) ( D − a ) operating on Q ( x ) Q(x) Q ( x ) evaluates to: 1 D − a Q ( x ) = e a x ∫ e − a x Q ( x ) d x \frac{1}{D - a} Q(x) = e^{a x} \int e^{-a x} Q(x)\,dx D − a 1 Q ( x ) = e a x ∫ e − a x Q ( x ) d x
For higher-order operators factored as F ( D ) = ( D − r 1 ) ( D − r 2 ) … ( D − r n ) F(D) = (D - r_1)(D - r_2) \dots (D - r_n) F ( D ) = ( D − r 1 ) ( D − r 2 ) … ( D − r n ) , the integral formula is applied sequentially: z 1 = 1 D − r n Q ( x ) = e r n x ∫ e − r n x Q ( x ) d x z_1 = \frac{1}{D - r_n} Q(x) = e^{r_n x} \int e^{-r_n x} Q(x)\,dx z 1 = D − r n 1 Q ( x ) = e r n x ∫ e − r n x Q ( x ) d x z 2 = 1 D − r n − 1 z 1 z_2 = \frac{1}{D - r_{n-1}} z_1 z 2 = D − r n − 1 1 z 1 continuing down to the final solution.
Shortcut Method I: Exponential Function Q ( x ) = e a x Q(x) = e^{a x} Q ( x ) = e a x
Case of Failure (F ( a ) = 0 F(a) = 0 F ( a ) = 0 ):
If F ′ ( a ) = 0 F'(a) = 0 F ′ ( a ) = 0 , repeat the procedure: y p = x 2 e a x F ′ ′ ( a ) y_p = x^2 \frac{e^{a x}}{F''(a)} y p = x 2 F ′′ ( a ) e a x provided that F ′ ′ ( a ) ≠ 0 F''(a) \neq 0 F ′′ ( a ) = 0 .
Example 1 (Shortcut I): Solve d 2 y d x 2 − 2 d y d x + 10 y = e 2 x \frac{d^2 y}{dx^2} - 2 \frac{dy}{dx} + 10 y = e^{2x} d x 2 d 2 y − 2 d x d y + 10 y = e 2 x
Differential operator form: ( D 2 − 2 D + 10 ) y = e 2 x (D^2 - 2 D + 10) y = e^{2x} ( D 2 − 2 D + 10 ) y = e 2 x
Auxiliary equation: D 2 − 2 D + 10 = 0 D^2 - 2 D + 10 = 0 D 2 − 2 D + 10 = 0 D = 2 ± ( − 2 ) 2 − 4 ( 1 ) ( 10 ) 2 = 2 ± − 36 2 = 1 ± 3 i D = \frac{2 \pm \sqrt{(-2)^2 - 4(1)(10)}}{2} = \frac{2 \pm \sqrt{-36}}{2} = 1 \pm 3i D = 2 2 ± ( − 2 ) 2 − 4 ( 1 ) ( 10 ) = 2 2 ± − 36 = 1 ± 3 i
Complementary Function: y c = e x [ A cos ( 3 x ) + B sin ( 3 x ) ] y_c = e^{x} [A \cos(3x) + B \sin(3x)] y c = e x [ A cos ( 3 x ) + B sin ( 3 x )]
Particular Integral with a = 2 a = 2 a = 2 : F ( 2 ) = 2 2 − 2 ( 2 ) + 10 = 4 − 4 + 10 = 10 ≠ 0 F(2) = 2^2 - 2(2) + 10 = 4 - 4 + 10 = 10 \neq 0 F ( 2 ) = 2 2 − 2 ( 2 ) + 10 = 4 − 4 + 10 = 10 = 0 y p = e 2 x 10 y_p = \frac{e^{2x}}{10} y p = 10 e 2 x
General solution: y = e x [ A cos ( 3 x ) + B sin ( 3 x ) ] + e 2 x 10 y = e^{x} [A \cos(3x) + B \sin(3x)] + \frac{e^{2x}}{10} y = e x [ A cos ( 3 x ) + B sin ( 3 x )] + 10 e 2 x
Example 2 (Shortcut I, Case of Failure): Solve d 2 y d x 2 + d y d x − 2 y = e x \frac{d^2 y}{dx^2} + \frac{dy}{dx} - 2 y = e^x d x 2 d 2 y + d x d y − 2 y = e x
Operator form: ( D 2 + D − 2 ) y = e x (D^2 + D - 2) y = e^x ( D 2 + D − 2 ) y = e x
Auxiliary equation: D 2 + D − 2 = 0 D^2 + D - 2 = 0 D 2 + D − 2 = 0 ( D + 2 ) ( D − 1 ) = 0 (D + 2)(D - 1) = 0 ( D + 2 ) ( D − 1 ) = 0 D = 1 , − 2 D = 1, -2 D = 1 , − 2
Complementary Function: y c = C 1 e x + C 2 e − 2 x y_c = C_1 e^{x} + C_2 e^{-2x} y c = C 1 e x + C 2 e − 2 x
Particular Integral evaluation with a = 1 a = 1 a = 1 : F ( 1 ) = 1 2 + 1 − 2 = 0 F(1) = 1^2 + 1 - 2 = 0 F ( 1 ) = 1 2 + 1 − 2 = 0
Differentiating the denominator: F ′ ( D ) = d d D ( D 2 + D − 2 ) = 2 D + 1 F'(D) = \frac{d}{dD}(D^2 + D - 2) = 2 D + 1 F ′ ( D ) = d D d ( D 2 + D − 2 ) = 2 D + 1 F ′ ( 1 ) = 2 ( 1 ) + 1 = 3 F'(1) = 2(1) + 1 = 3 F ′ ( 1 ) = 2 ( 1 ) + 1 = 3
Evaluating y p y_p y p : y p = x e x F ′ ( 1 ) = x e x 3 y_p = x \frac{e^x}{F'(1)} = \frac{x e^x}{3} y p = x F ′ ( 1 ) e x = 3 x e x
General solution: y = C 1 e x + C 2 e − 2 x + x e x 3 y = C_1 e^{x} + C_2 e^{-2x} + \frac{x e^x}{3} y = C 1 e x + C 2 e − 2 x + 3 x e x
Shortcut Method II: Trigonometric Functions Q ( x ) = sin ( a x + b ) Q(x) = \sin(a x + b) Q ( x ) = sin ( a x + b ) or cos ( a x + b ) \cos(a x + b) cos ( a x + b )
Rule: y p = 1 F ( D 2 ) sin ( a x + b ) = 1 F ( − a 2 ) sin ( a x + b ) y_p = \frac{1}{F(D^2)} \sin(a x + b) = \frac{1}{F(-a^2)} \sin(a x + b) y p = F ( D 2 ) 1 sin ( a x + b ) = F ( − a 2 ) 1 sin ( a x + b ) y p = 1 F ( D 2 ) cos ( a x + b ) = 1 F ( − a 2 ) cos ( a x + b ) y_p = \frac{1}{F(D^2)} \cos(a x + b) = \frac{1}{F(-a^2)} \cos(a x + b) y p = F ( D 2 ) 1 cos ( a x + b ) = F ( − a 2 ) 1 cos ( a x + b ) provided that F ( − a 2 ) ≠ 0 F(-a^2) \neq 0 F ( − a 2 ) = 0 .
If F ( D ) F(D) F ( D ) includes odd powers of D D D , group as F ( D ) = ϕ ( D 2 ) + D ψ ( D 2 ) F(D) = \phi(D^2) + D \psi(D^2) F ( D ) = ϕ ( D 2 ) + D ψ ( D 2 ) . Replace D 2 D^2 D 2 with − a 2 -a^2 − a 2 , resulting in a linear expression in the denominator: C D + B C D + B C D + B . Rationalize by multiplying numerator and denominator by the conjugate C D − B C D - B C D − B to recreate D 2 D^2 D 2 , then replace D 2 D^2 D 2 with − a 2 -a^2 − a 2 .
Case of Failure: If F ( − a 2 ) = 0 F(-a^2) = 0 F ( − a 2 ) = 0 , multiply numerator by x x x and differentiate the denominator with respect to D D D .
Example 1 (Shortcut II): Solve ( D 2 + D − 2 ) y = sin ( x ) (D^2 + D - 2) y = \sin(x) ( D 2 + D − 2 ) y = sin ( x )
Auxiliary equation: D 2 + D − 2 = 0 ⟹ D = 1 , − 2 D^2 + D - 2 = 0 \implies D = 1, -2 D 2 + D − 2 = 0 ⟹ D = 1 , − 2 y c = C 1 e x + C 2 e − 2 x y_c = C_1 e^{x} + C_2 e^{-2x} y c = C 1 e x + C 2 e − 2 x
Particular Integral with a = 1 a = 1 a = 1 , replacing D 2 → − 1 2 = − 1 D^2 \rightarrow -1^2 = -1 D 2 → − 1 2 = − 1 : y p = 1 D 2 + D − 2 sin ( x ) = 1 − 1 + D − 2 sin ( x ) = 1 D − 3 sin ( x ) y_p = \frac{1}{D^2 + D - 2} \sin(x) = \frac{1}{-1 + D - 2} \sin(x) = \frac{1}{D - 3} \sin(x) y p = D 2 + D − 2 1 sin ( x ) = − 1 + D − 2 1 sin ( x ) = D − 3 1 sin ( x )
Rationalizing with conjugate ( D + 3 ) (D + 3) ( D + 3 ) : y p = D + 3 ( D − 3 ) ( D + 3 ) sin ( x ) = D + 3 D 2 − 9 sin ( x ) y_p = \frac{D + 3}{(D - 3)(D + 3)} \sin(x) = \frac{D + 3}{D^2 - 9} \sin(x) y p = ( D − 3 ) ( D + 3 ) D + 3 sin ( x ) = D 2 − 9 D + 3 sin ( x )
Substituting D 2 → − 1 D^2 \rightarrow -1 D 2 → − 1 in denominator: y p = ( D + 3 ) sin ( x ) − 1 − 9 = − 1 10 [ D ( sin ( x ) ) + 3 sin ( x ) ] y_p = \frac{(D + 3) \sin(x)}{-1 - 9} = -\frac{1}{10} [D(\sin(x)) + 3 \sin(x)] y p = − 1 − 9 ( D + 3 ) s i n ( x ) = − 10 1 [ D ( sin ( x )) + 3 sin ( x )] y p = − 1 10 [ cos ( x ) + 3 sin ( x ) ] y_p = -\frac{1}{10} [\cos(x) + 3 \sin(x)] y p = − 10 1 [ cos ( x ) + 3 sin ( x )]
General solution: y = C 1 e x + C 2 e − 2 x − 1 10 [ cos ( x ) + 3 sin ( x ) ] y = C_1 e^x + C_2 e^{-2x} - \frac{1}{10} [\cos(x) + 3 \sin(x)] y = C 1 e x + C 2 e − 2 x − 10 1 [ cos ( x ) + 3 sin ( x )]
Example 2 (Shortcut II): Solve ( D 2 + 2 D + 1 ) y = cos 2 ( x ) (D^2 + 2 D + 1) y = \cos^2(x) ( D 2 + 2 D + 1 ) y = cos 2 ( x )
Auxiliary equation: D 2 + 2 D + 1 = 0 ⟹ ( D + 1 ) 2 = 0 ⟹ D = − 1 , − 1 D^2 + 2 D + 1 = 0 \implies (D + 1)^2 = 0 \implies D = -1, -1 D 2 + 2 D + 1 = 0 ⟹ ( D + 1 ) 2 = 0 ⟹ D = − 1 , − 1 y c = ( C 1 + C 2 x ) e − x y_c = (C_1 + C_2 x) e^{-x} y c = ( C 1 + C 2 x ) e − x
Rewriting the non-homogeneous term via trigonometric identity: cos 2 ( x ) = 1 + cos ( 2 x ) 2 = 1 2 + 1 2 cos ( 2 x ) \cos^2(x) = \frac{1 + \cos(2x)}{2} = \frac{1}{2} + \frac{1}{2} \cos(2x) cos 2 ( x ) = 2 1 + c o s ( 2 x ) = 2 1 + 2 1 cos ( 2 x )
Particular Integral splits into two parts: y p = y p 1 + y p 2 y_p = y_{p1} + y_{p2} y p = y p 1 + y p 2
For y p 1 y_{p1} y p 1 (Q 1 ( x ) = 1 2 e 0 ⋅ x Q_1(x) = \frac{1}{2} e^{0 \cdot x} Q 1 ( x ) = 2 1 e 0 ⋅ x ): y p 1 = 1 D 2 + 2 D + 1 ( 1 2 ) = 1 0 2 + 2 ( 0 ) + 1 ( 1 2 ) = 1 2 y_{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} y p 1 = D 2 + 2 D + 1 1 ( 2 1 ) = 0 2 + 2 ( 0 ) + 1 1 ( 2 1 ) = 2 1
For y p 2 y_{p2} y p 2 (Q 2 ( x ) = 1 2 cos ( 2 x ) Q_2(x) = \frac{1}{2} \cos(2x) Q 2 ( x ) = 2 1 cos ( 2 x ) , a = 2 a = 2 a = 2 , D 2 → − 2 2 = − 4 D^2 \rightarrow -2^2 = -4 D 2 → − 2 2 = − 4 ): y p 2 = 1 2 1 D 2 + 2 D + 1 cos ( 2 x ) = 1 2 1 − 4 + 2 D + 1 cos ( 2 x ) = 1 2 1 2 D − 3 cos ( 2 x ) 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) y p 2 = 2 1 D 2 + 2 D + 1 1 cos ( 2 x ) = 2 1 − 4 + 2 D + 1 1 cos ( 2 x ) = 2 1 2 D − 3 1 cos ( 2 x )
Rationalizing denominator with ( 2 D + 3 ) (2 D + 3) ( 2 D + 3 ) : y p 2 = 1 2 2 D + 3 4 D 2 − 9 cos ( 2 x ) y_{p2} = \frac{1}{2} \frac{2 D + 3}{4 D^2 - 9} \cos(2x) y p 2 = 2 1 4 D 2 − 9 2 D + 3 cos ( 2 x )
Substituting D 2 → − 4 D^2 \rightarrow -4 D 2 → − 4 in denominator: 4 D 2 − 9 = 4 ( − 4 ) − 9 = − 16 − 9 = − 25 4 D^2 - 9 = 4(-4) - 9 = -16 - 9 = -25 4 D 2 − 9 = 4 ( − 4 ) − 9 = − 16 − 9 = − 25 y p 2 = 1 2 ( − 25 ) [ 2 D ( cos ( 2 x ) ) + 3 cos ( 2 x ) ] y_{p2} = \frac{1}{2(-25)} [2 D(\cos(2x)) + 3 \cos(2x)] y p 2 = 2 ( − 25 ) 1 [ 2 D ( cos ( 2 x )) + 3 cos ( 2 x )] y p 2 = − 1 50 [ − 4 sin ( 2 x ) + 3 cos ( 2 x ) ] = 2 25 sin ( 2 x ) − 3 50 cos ( 2 x ) y_{p2} = -\frac{1}{50} [-4 \sin(2x) + 3 \cos(2x)] = \frac{2}{25} \sin(2x) - \frac{3}{50} \cos(2x) y p 2 = − 50 1 [ − 4 sin ( 2 x ) + 3 cos ( 2 x )] = 25 2 sin ( 2 x ) − 50 3 cos ( 2 x )
Summing the components: y p = 2 25 sin ( 2 x ) − 3 50 cos ( 2 x ) + 1 2 y_p = \frac{2}{25} \sin(2x) - \frac{3}{50} \cos(2x) + \frac{1}{2} y p = 25 2 sin ( 2 x ) − 50 3 cos ( 2 x ) + 2 1
Complete general solution: y = ( C 1 + C 2 x ) e − x + 2 25 sin ( 2 x ) − 3 50 cos ( 2 x ) + 1 2 y = (C_1 + C_2 x) e^{-x} + \frac{2}{25} \sin(2x) - \frac{3}{50} \cos(2x) + \frac{1}{2} y = ( C 1 + C 2 x ) e − x + 25 2 sin ( 2 x ) − 50 3 cos ( 2 x ) + 2 1
Shortcut Method III: Polynomial Functions Q ( x ) = x m Q(x) = x^m Q ( x ) = x m where m ∈ Z + m \in \mathbb{Z}^+ m ∈ Z +
Rule:
Factor out the lowest degree term in D D D from F ( D ) F(D) F ( D ) to express the operator as [ 1 + ϕ ( D ) ] [1 + \phi(D)] [ 1 + ϕ ( D )] .
Invert the operator using binomial expansion up to degree m m m : y p = 1 1 + ϕ ( D ) x m = [ 1 + ϕ ( D ) ] − 1 x m y_p = \frac{1}{1 + \phi(D)} x^m = [1 + \phi(D)]^{-1} x^m y p = 1 + ϕ ( D ) 1 x m = [ 1 + ϕ ( 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 − ϕ ( 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 + …
Terms with degree higher than m m m annihilate x m x^m x m and are discarded.
Example (Shortcut III): Solve ( D 4 + 4 D 2 ) y = x 2 + 1 (D^4 + 4 D^2) y = x^2 + 1 ( D 4 + 4 D 2 ) y = x 2 + 1
Auxiliary equation: D 4 + 4 D 2 = 0 ⟹ D 2 ( D 2 + 4 ) = 0 D^4 + 4 D^2 = 0 \implies D^2(D^2 + 4) = 0 D 4 + 4 D 2 = 0 ⟹ D 2 ( D 2 + 4 ) = 0 Roots: D = 0 , 0 , ± 2 i D = 0, 0, \pm 2i D = 0 , 0 , ± 2 i
Complementary Function: y c = ( C 1 x + C 2 ) + C 3 cos ( 2 x ) + C 4 sin ( 2 x ) y_c = (C_1 x + C_2) + C_3 \cos(2x) + C_4 \sin(2x) y c = ( C 1 x + C 2 ) + C 3 cos ( 2 x ) + C 4 sin ( 2 x )
Factoring the lowest power of D D D for the Particular Integral: y p = 1 4 D 2 ( 1 + D 2 4 ) ( x 2 + 1 ) = 1 4 D 2 ( 1 + D 2 4 ) − 1 ( x 2 + 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) y p = 4 D 2 ( 1 + 4 D 2 ) 1 ( x 2 + 1 ) = 4 D 2 1 ( 1 + 4 D 2 ) − 1 ( x 2 + 1 )
Expanding binomially: ( 1 + D 2 4 ) − 1 = 1 − D 2 4 + … \left(1 + \frac{D^2}{4}\right)^{-1} = 1 - \frac{D^2}{4} + \dots ( 1 + 4 D 2 ) − 1 = 1 − 4 D 2 + …
Operating on the polynomial: ( 1 − D 2 4 ) ( x 2 + 1 ) = ( x 2 + 1 ) − 1 4 D 2 ( x 2 + 1 ) = x 2 + 1 − 1 4 ( 2 ) = x 2 + 1 2 \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} ( 1 − 4 D 2 ) ( x 2 + 1 ) = ( x 2 + 1 ) − 4 1 D 2 ( x 2 + 1 ) = x 2 + 1 − 4 1 ( 2 ) = x 2 + 2 1
Applying 1 D 2 \frac{1}{D^2} D 2 1 (integrating twice consecutively): 1 D ( x 2 + 1 2 ) = ∫ ( x 2 + 1 2 ) d x = x 3 3 + x 2 \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} D 1 ( x 2 + 2 1 ) = ∫ ( x 2 + 2 1 ) d x = 3 x 3 + 2 x 1 D 2 ( x 2 + 1 2 ) = ∫ ( x 3 3 + x 2 ) d x = x 4 12 + x 2 4 \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} D 2 1 ( x 2 + 2 1 ) = ∫ ( 3 x 3 + 2 x ) d x = 12 x 4 + 4 x 2
Multiplying by the remaining constant factor 1 4 \frac{1}{4} 4 1 : y p = 1 4 ( x 4 12 + x 2 4 ) = x 4 48 + x 2 16 y_p = \frac{1}{4} \left(\frac{x^4}{12} + \frac{x^2}{4}\right) = \frac{x^4}{48} + \frac{x^2}{16} y p = 4 1 ( 12 x 4 + 4 x 2 ) = 48 x 4 + 16 x 2
Complete general solution: y = C 1 x + C 2 + C 3 cos ( 2 x ) + C 4 sin ( 2 x ) + x 4 48 + x 2 16 y = C_1 x + C_2 + C_3 \cos(2x) + C_4 \sin(2x) + \frac{x^4}{48} + \frac{x^2}{16} y = C 1 x + C 2 + C 3 cos ( 2 x ) + C 4 sin ( 2 x ) + 48 x 4 + 16 x 2
Shortcut Method IV: Product of Exponential and Any Function Q ( x ) = e a x g ( x ) Q(x) = e^{a x} g(x) Q ( x ) = e a x g ( x )
Example 1 (Shortcut IV): Solve ( D 2 + 2 ) y = x 2 e 3 x (D^2 + 2) y = x^2 e^{3x} ( D 2 + 2 ) y = x 2 e 3 x
Auxiliary equation: D 2 + 2 = 0 ⟹ D = ± 2 i D^2 + 2 = 0 \implies D = \pm \sqrt{2}i D 2 + 2 = 0 ⟹ D = ± 2 i y c = C 1 cos ( 2 x ) + C 2 sin ( 2 x ) y_c = C_1 \cos(\sqrt{2}x) + C_2 \sin(\sqrt{2}x) y c = C 1 cos ( 2 x ) + C 2 sin ( 2 x )
Particular Integral using exponential shift (a = 3 a = 3 a = 3 ): y p = 1 D 2 + 2 [ e 3 x x 2 ] = e 3 x 1 ( D + 3 ) 2 + 2 x 2 = e 3 x 1 D 2 + 6 D + 11 x 2 y_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 y p = D 2 + 2 1 [ e 3 x x 2 ] = e 3 x ( D + 3 ) 2 + 2 1 x 2 = e 3 x D 2 + 6 D + 11 1 x 2
Factor out 11 to prepare binomial expansion: y p = e 3 x 11 [ 1 + 6 D + D 2 11 ] − 1 x 2 y_p = \frac{e^{3x}}{11} \left[1 + \frac{6 D + D^2}{11}\right]^{-1} x^2 y p = 11 e 3 x [ 1 + 11 6 D + D 2 ] − 1 x 2
Binomial series expansion: [ 1 + 6 D + D 2 11 ] − 1 = 1 − 6 D + D 2 11 + ( 6 D + D 2 11 ) 2 − ⋯ = 1 − 6 11 D − 1 11 D 2 + 36 121 D 2 \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 [ 1 + 11 6 D + D 2 ] − 1 = 1 − 11 6 D + D 2 + ( 11 6 D + D 2 ) 2 − ⋯ = 1 − 11 6 D − 11 1 D 2 + 121 36 D 2
Applying derivatives to x 2 x^2 x 2 : D ( x 2 ) = 2 x D(x^2) = 2x D ( x 2 ) = 2 x D 2 ( x 2 ) = 2 D^2(x^2) = 2 D 2 ( x 2 ) = 2 [ 1 − 6 11 D + 25 121 D 2 ] x 2 = x 2 − 12 11 x + 50 121 \left[1 - \frac{6}{11} D + \frac{25}{121} D^2\right] x^2 = x^2 - \frac{12}{11} x + \frac{50}{121} [ 1 − 11 6 D + 121 25 D 2 ] x 2 = x 2 − 11 12 x + 121 50
Multiplying by e 3 x 11 \frac{e^{3x}}{11} 11 e 3 x : y p = e 3 x 11 [ x 2 − 12 11 x + 50 121 ] = e 3 x 1331 [ 121 x 2 − 132 x + 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] y p = 11 e 3 x [ x 2 − 11 12 x + 121 50 ] = 1331 e 3 x [ 121 x 2 − 132 x + 50 ]
General solution: y = C 1 cos ( 2 x ) + C 2 sin ( 2 x ) + e 3 x 1331 [ 121 x 2 − 132 x + 50 ] y = C_1 \cos(\sqrt{2}x) + C_2 \sin(\sqrt{2}x) + \frac{e^{3x}}{1331} [121 x^2 - 132 x + 50] y = C 1 cos ( 2 x ) + C 2 sin ( 2 x ) + 1331 e 3 x [ 121 x 2 − 132 x + 50 ]
Example 2 (Shortcut IV): Solve ( D 3 + 1 ) y = e 2 x sin ( x ) (D^3 + 1) y = e^{2x} \sin(x) ( D 3 + 1 ) y = e 2 x sin ( x )
Auxiliary equation: D 3 + 1 = 0 ⟹ ( D + 1 ) ( D 2 − D + 1 ) = 0 D^3 + 1 = 0 \implies (D + 1)(D^2 - D + 1) = 0 D 3 + 1 = 0 ⟹ ( D + 1 ) ( D 2 − D + 1 ) = 0 Roots: D = − 1 , 1 ± i 3 2 D = -1, \frac{1 \pm i \sqrt{3}}{2} D = − 1 , 2 1 ± i 3
Complementary Function: y c = C 1 e − x + e x / 2 [ A cos ( 3 2 x ) + B sin ( 3 2 x ) ] 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] y c = C 1 e − x + e x /2 [ A cos ( 2 3 x ) + B sin ( 2 3 x ) ]
Particular Integral using exponential shift (a = 2 a = 2 a = 2 ): y p = e 2 x 1 ( D + 2 ) 3 + 1 sin ( x ) y_p = e^{2x} \frac{1}{(D + 2)^3 + 1} \sin(x) y p = e 2 x ( D + 2 ) 3 + 1 1 sin ( x )
Expanding the denominator operator: ( D + 2 ) 3 + 1 = D 3 + 6 D 2 + 12 D + 8 + 1 = D 3 + 6 D 2 + 12 D + 9 (D + 2)^3 + 1 = D^3 + 6 D^2 + 12 D + 8 + 1 = D^3 + 6 D^2 + 12 D + 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) sin ( x ) , a = 1 ⟹ D 2 → − 1 a = 1 \implies D^2 \rightarrow -1 a = 1 ⟹ D 2 → − 1 , so D 3 = D ( D 2 ) → − D D^3 = D(D^2) \rightarrow -D D 3 = D ( D 2 ) → − D : F ( D ) → − D + 6 ( − 1 ) + 12 D + 9 = 11 D + 3 F(D) \rightarrow -D + 6(-1) + 12 D + 9 = 11 D + 3 F ( D ) → − D + 6 ( − 1 ) + 12 D + 9 = 11 D + 3
Applying conjugate operator ( 11 D − 3 ) (11 D - 3) ( 11 D − 3 ) : y p = e 2 x 11 D − 3 ( 11 D + 3 ) ( 11 D − 3 ) sin ( x ) = e 2 x 11 D − 3 121 D 2 − 9 sin ( 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) y p = e 2 x ( 11 D + 3 ) ( 11 D − 3 ) 11 D − 3 sin ( x ) = e 2 x 121 D 2 − 9 11 D − 3 sin ( x )
Substituting D 2 → − 1 D^2 \rightarrow -1 D 2 → − 1 in denominator: 121 ( − 1 ) − 9 = − 130 121(-1) - 9 = -130 121 ( − 1 ) − 9 = − 130 y p = e 2 x 11 D ( sin ( x ) ) − 3 sin ( x ) − 130 = − e 2 x 130 [ 11 cos ( x ) − 3 sin ( x ) ] y_p = e^{2x} \frac{11 D(\sin(x)) - 3 \sin(x)}{-130} = -\frac{e^{2x}}{130} [11 \cos(x) - 3 \sin(x)] y p = e 2 x − 130 11 D ( s i n ( x )) − 3 s i n ( x ) = − 130 e 2 x [ 11 cos ( x ) − 3 sin ( x )]
General solution: y = C 1 e − x + e x / 2 [ A cos ( 3 2 x ) + B sin ( 3 2 x ) ] − e 2 x 130 [ 11 cos ( x ) − 3 sin ( 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)] y = C 1 e − x + e x /2 [ A cos ( 2 3 x ) + B sin ( 2 3 x ) ] − 130 e 2 x [ 11 cos ( x ) − 3 sin ( x )]
Shortcut Method V: Product with Linear Variable Q ( x ) = x ⋅ g ( x ) Q(x) = x \cdot g(x) Q ( x ) = x ⋅ g ( x )
Example 1 (Shortcut V): Solve ( D 2 + 9 ) y = x cos ( x ) (D^2 + 9) y = x \cos(x) ( D 2 + 9 ) y = x cos ( x )
Auxiliary equation: D 2 + 9 = 0 ⟹ D = ± 3 i D^2 + 9 = 0 \implies D = \pm 3i D 2 + 9 = 0 ⟹ D = ± 3 i y c = A cos ( 3 x ) + B sin ( 3 x ) y_c = A \cos(3x) + B \sin(3x) y c = A cos ( 3 x ) + B sin ( 3 x )
Applying Shortcut V with F ( D ) = D 2 + 9 F(D) = D^2 + 9 F ( D ) = D 2 + 9 and F ′ ( D ) = 2 D F'(D) = 2 D F ′ ( D ) = 2 D : y p = x 1 D 2 + 9 cos ( x ) − 2 D ( D 2 + 9 ) 2 cos ( x ) y_p = x \frac{1}{D^2 + 9} \cos(x) - \frac{2 D}{(D^2 + 9)^2} \cos(x) y p = x D 2 + 9 1 cos ( x ) − ( D 2 + 9 ) 2 2 D cos ( x )
Replacing D 2 → − 1 2 = − 1 D^2 \rightarrow -1^2 = -1 D 2 → − 1 2 = − 1 : x 1 − 1 + 9 cos ( x ) = x cos ( x ) 8 x \frac{1}{-1 + 9} \cos(x) = \frac{x \cos(x)}{8} x − 1 + 9 1 cos ( x ) = 8 x c o s ( x ) 2 D ( − 1 + 9 ) 2 cos ( x ) = 2 D ( cos ( x ) ) 64 = − 2 sin ( 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} ( − 1 + 9 ) 2 2 D cos ( x ) = 64 2 D ( c o s ( x )) = 64 − 2 s i n ( x ) = − 32 s i n ( x )
Combining terms: y p = x cos ( x ) 8 − ( − sin ( x ) 32 ) = x cos ( x ) 8 + sin ( x ) 32 y_p = \frac{x \cos(x)}{8} - \left(-\frac{\sin(x)}{32}\right) = \frac{x \cos(x)}{8} + \frac{\sin(x)}{32} y p = 8 x c o s ( x ) − ( − 32 s i n ( x ) ) = 8 x c o s ( x ) + 32 s i n ( x )
General solution: y = A cos ( 3 x ) + B sin ( 3 x ) + x cos ( x ) 8 + sin ( x ) 32 y = A \cos(3x) + B \sin(3x) + \frac{x \cos(x)}{8} + \frac{\sin(x)}{32} y = A cos ( 3 x ) + B sin ( 3 x ) + 8 x c o s ( x ) + 32 s i n ( x )
Example 2 (Mixed shortcuts): Solve ( D 2 − 1 ) y = x sin ( x ) + ( 1 + x 2 ) e x (D^2 - 1) y = x \sin(x) + (1 + x^2) e^x ( D 2 − 1 ) y = x sin ( x ) + ( 1 + x 2 ) e x
Auxiliary equation: D 2 − 1 = 0 ⟹ D = ± 1 D^2 - 1 = 0 \implies D = \pm 1 D 2 − 1 = 0 ⟹ D = ± 1 y c = C 1 e x + C 2 e − x y_c = C_1 e^x + C_2 e^{-x} y c = C 1 e x + C 2 e − x
First component y p 1 = 1 D 2 − 1 [ x sin ( x ) ] y_{p1} = \frac{1}{D^2 - 1}[x \sin(x)] y p 1 = D 2 − 1 1 [ x sin ( x )] : y p 1 = x 1 D 2 − 1 sin ( x ) − 2 D ( D 2 − 1 ) 2 sin ( x ) y_{p1} = x \frac{1}{D^2 - 1} \sin(x) - \frac{2 D}{(D^2 - 1)^2} \sin(x) y p 1 = x D 2 − 1 1 sin ( x ) − ( D 2 − 1 ) 2 2 D sin ( x ) Replacing D 2 → − 1 D^2 \rightarrow -1 D 2 → − 1 : y p 1 = x sin ( x ) − 1 − 1 − 2 D ( sin ( x ) ) ( − 1 − 1 ) 2 = − x sin ( x ) 2 − 2 cos ( x ) 4 = − 1 2 [ x sin ( 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)] y p 1 = x − 1 − 1 s i n ( x ) − ( − 1 − 1 ) 2 2 D ( s i n ( x )) = − 2 x s i n ( x ) − 4 2 c o s ( x ) = − 2 1 [ x sin ( x ) + cos ( x )]
Second component y p 2 = 1 D 2 − 1 [ e x ( 1 + x 2 ) ] y_{p2} = \frac{1}{D^2 - 1}[e^x (1 + x^2)] y p 2 = D 2 − 1 1 [ e x ( 1 + x 2 )] via exponential shift: y p 2 = e x 1 ( D + 1 ) 2 − 1 ( x 2 + 1 ) = e x 1 D 2 + 2 D ( x 2 + 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) y p 2 = e x ( D + 1 ) 2 − 1 1 ( x 2 + 1 ) = e x D 2 + 2 D 1 ( x 2 + 1 ) y p 2 = e x 1 2 D ( 1 + D 2 ) ( x 2 + 1 ) = e x 2 D ( 1 − D 2 + D 2 4 − … ) ( x 2 + 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) y p 2 = e x 2 D ( 1 + 2 D ) 1 ( x 2 + 1 ) = 2 D e x ( 1 − 2 D + 4 D 2 − … ) ( x 2 + 1 ) Evaluating polynomial operations: ( 1 − D 2 + D 2 4 ) ( x 2 + 1 ) = x 2 + 1 − 1 2 ( 2 x ) + 1 4 ( 2 ) = x 2 − x + 3 2 \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} ( 1 − 2 D + 4 D 2 ) ( x 2 + 1 ) = x 2 + 1 − 2 1 ( 2 x ) + 4 1 ( 2 ) = x 2 − x + 2 3 Integrating with 1 D \frac{1}{D} D 1 : 1 D ( x 2 − x + 3 2 ) = x 3 3 − x 2 2 + 3 x 2 \frac{1}{D} \left(x^2 - x + \frac{3}{2}\right) = \frac{x^3}{3} - \frac{x^2}{2} + \frac{3x}{2} D 1 ( x 2 − x + 2 3 ) = 3 x 3 − 2 x 2 + 2 3 x Multiplying by e x 2 \frac{e^x}{2} 2 e x : y p 2 = e x ( x 3 6 − x 2 4 + 3 x 4 ) y_{p2} = e^x \left(\frac{x^3}{6} - \frac{x^2}{4} + \frac{3x}{4}\right) y p 2 = e x ( 6 x 3 − 4 x 2 + 4 3 x )
Total general solution: y = C 1 e x + C 2 e − x − 1 2 [ x sin ( x ) + cos ( x ) ] + e x ( x 3 6 − x 2 4 + 3 x 4 ) 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) y = C 1 e x + C 2 e − x − 2 1 [ x sin ( x ) + cos ( x )] + e x ( 6 x 3 − 4 x 2 + 4 3 x )
Cauchy-Euler Linear Differential Equations A Cauchy-Euler differential equation possesses the form: k 0 x n d n y d x n + k 1 x n − 1 d n − 1 y d x n − 1 + ⋯ + k n − 1 x d y d x + k n y = 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) k 0 x n d x n d n y + k 1 x n − 1 d x n − 1 d n − 1 y + ⋯ + k n − 1 x d x d y + k n y = Q ( x )
Transformation to constant coefficients:
Introduce the substitution x = e t x = e^t x = e t , which implies t = ln ( x ) t = \ln(x) t = ln ( x ) and d t d x = 1 x \frac{dt}{dx} = \frac{1}{x} d x d t = x 1 .
First derivative substitution: d y d x = d y d t d t d x = 1 x d y d t ⟹ x d y d x = d y d t = D y \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 d x d y = d t d y d x d t = x 1 d t d y ⟹ x d x d y = d t d y = D y where D = d d t D = \frac{d}{dt} D = d t d .
Second derivative substitution: d 2 y d x 2 = d d x ( 1 x d y d t ) = − 1 x 2 d y d t + 1 x d 2 y d t 2 d t d x = 1 x 2 ( d 2 y d t 2 − d y d t ) \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) d x 2 d 2 y = d x d ( x 1 d t d y ) = − x 2 1 d t d y + x 1 d t 2 d 2 y d x d t = x 2 1 ( d t 2 d 2 y − d t d y ) x 2 d 2 y d x 2 = D ( D − 1 ) y x^2 \frac{d^2 y}{dx^2} = D(D - 1) y x 2 d x 2 d 2 y = D ( D − 1 ) y
Higher-order derivative substitutions: x 3 d 3 y d x 3 = D ( D − 1 ) ( D − 2 ) y x^3 \frac{d^3 y}{dx^3} = D(D - 1)(D - 2) y x 3 d x 3 d 3 y = D ( D − 1 ) ( D − 2 ) y x n d n y d x n = D ( D − 1 ) ( D − 2 ) … ( D − ( n − 1 ) ) y x^n \frac{d^n y}{dx^n} = D(D - 1)(D - 2) \dots (D - (n - 1)) y x n d x n d n y = D ( D − 1 ) ( D − 2 ) … ( D − ( n − 1 )) y
Example: Solve x 3 d 3 y d x 3 + 3 x 2 d 2 y d x 2 + x d y d x + 8 y = 13 cos ( 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)) x 3 d x 3 d 3 y + 3 x 2 d x 2 d 2 y + x d x d y + 8 y = 13 cos ( ln ( x ))
Substituting x = e t x = e^t x = e t , t = ln ( x ) t = \ln(x) t = ln ( x ) , and the operator identities with D = d d t D = \frac{d}{dt} D = d t d : [ D ( D − 1 ) ( D − 2 ) + 3 D ( D − 1 ) + D + 8 ] y = 13 cos ( t ) [D(D - 1)(D - 2) + 3 D(D - 1) + D + 8] y = 13 \cos(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 ) + 3 D ( D − 1 ) = D ( D − 1 ) ( D − 2 + 3 ) = D ( D − 1 ) ( D + 1 ) = D ( D 2 − 1 ) = D 3 − D D(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 D ( 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 D 3 − D + D + 8 = D 3 + 8 D^3 - D + D + 8 = D^3 + 8 D 3 − D + D + 8 = D 3 + 8
Equation becomes: ( D 3 + 8 ) y = 13 cos ( t ) (D^3 + 8) y = 13 \cos(t) ( D 3 + 8 ) y = 13 cos ( t )
Auxiliary equation: D 3 + 8 = 0 ⟹ ( D + 2 ) ( D 2 − 2 D + 4 ) = 0 D^3 + 8 = 0 \implies (D + 2)(D^2 - 2 D + 4) = 0 D 3 + 8 = 0 ⟹ ( D + 2 ) ( D 2 − 2 D + 4 ) = 0 Roots: D = − 2 D = -2 D = − 2 , and D = 2 ± 4 − 16 2 = 1 ± i 3 D = \frac{2 \pm \sqrt{4 - 16}}{2} = 1 \pm i \sqrt{3} D = 2 2 ± 4 − 16 = 1 ± i 3
Complementary Function in terms of t t t : y c = C 1 e − 2 t + e t [ A cos ( 3 t ) + B sin ( 3 t ) ] y_c = C_1 e^{-2t} + e^{t} [A \cos(\sqrt{3}t) + B \sin(\sqrt{3}t)] y c = C 1 e − 2 t + e t [ A cos ( 3 t ) + B sin ( 3 t )]
Particular Integral with a = 1 a = 1 a = 1 , D 2 → − 1 D^2 \rightarrow -1 D 2 → − 1 : y p = 1 D 3 + 8 [ 13 cos ( t ) ] = 1 D ( D 2 ) + 8 [ 13 cos ( t ) ] = 13 8 − D cos ( 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) y p = D 3 + 8 1 [ 13 cos ( t )] = D ( D 2 ) + 8 1 [ 13 cos ( t )] = 8 − D 13 cos ( t )
Rationalizing: y p = 13 8 + D 64 − D 2 cos ( t ) = 13 64 − ( − 1 ) ( 8 cos ( t ) + D ( cos ( t ) ) ) = 13 65 [ 8 cos ( 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)] y p = 13 64 − D 2 8 + D cos ( t ) = 64 − ( − 1 ) 13 ( 8 cos ( t ) + D ( cos ( t ))) = 65 13 [ 8 cos ( t ) − sin ( t )] y p = 8 5 cos ( t ) − 1 5 sin ( t ) y_p = \frac{8}{5} \cos(t) - \frac{1}{5} \sin(t) y p = 5 8 cos ( t ) − 5 1 sin ( t )
Back-substituting t = ln ( x ) t = \ln(x) t = ln ( x ) and e t = x e^t = x e t = x : y = C 1 x − 2 + x [ A cos ( 3 ln ( x ) ) + B sin ( 3 ln ( x ) ) ] + 8 5 cos ( ln ( x ) ) − 1 5 sin ( 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)) y = C 1 x − 2 + x [ A cos ( 3 ln ( x )) + B sin ( 3 ln ( x ))] + 5 8 cos ( ln ( x )) − 5 1 sin ( ln ( x ))
Legendre's Linear Differential Equations Legendre's linear differential equation has the generalized form: k 0 ( a x + b ) n d n y d x n + k 1 ( a x + b ) n − 1 d n − 1 y d x n − 1 + ⋯ + k n y = 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) k 0 ( a x + b ) n d x n d n y + k 1 ( a x + b ) n − 1 d x n − 1 d n − 1 y + ⋯ + k n y = Q ( x )
Transformation substitutions:
Substitute a x + b = e t ⟹ t = ln ( a x + b ) a x + b = e^t \implies t = \ln(a x + b) a x + b = e t ⟹ t = ln ( a x + b )
By the chain rule, d t d x = a a x + b \frac{dt}{dx} = \frac{a}{a x + b} d x d t = a x + b a
First derivative: ( a x + b ) d y d x = a D y (a x + b) \frac{dy}{dx} = a D y ( a x + b ) d x d y = a D y where D = d d t D = \frac{d}{dt} D = d t d .
Higher derivatives: ( a x + b ) 2 d 2 y d x 2 = a 2 D ( D − 1 ) y (a x + b)^2 \frac{d^2 y}{dx^2} = a^2 D(D - 1) y ( a x + b ) 2 d x 2 d 2 y = a 2 D ( D − 1 ) y ( a x + b ) n d n y d x n = a n D ( 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 ( a x + b ) n d x n d n y = a n D ( D − 1 ) ( D − 2 ) … ( D − ( n − 1 )) y
Example: Solve ( 3 x + 2 ) 2 d 2 y d x 2 + 3 ( 3 x + 2 ) d y d x − 36 y = 3 x 2 + 4 x + 1 (3x + 2)^2 \frac{d^2 y}{dx^2} + 3(3x + 2) \frac{dy}{dx} - 36 y = 3x^2 + 4x + 1 ( 3 x + 2 ) 2 d x 2 d 2 y + 3 ( 3 x + 2 ) d x d y − 36 y = 3 x 2 + 4 x + 1
Let 3 x + 2 = e t ⟹ t = ln ( 3 x + 2 ) 3x + 2 = e^t \implies t = \ln(3x + 2) 3 x + 2 = e t ⟹ t = ln ( 3 x + 2 ) and x = e t − 2 3 x = \frac{e^t - 2}{3} x = 3 e t − 2 .
Differential operators (a = 3 a = 3 a = 3 ): ( 3 x + 2 ) d y d x = 3 D y (3x + 2) \frac{dy}{dx} = 3 D y ( 3 x + 2 ) d x d y = 3 D y ( 3 x + 2 ) 2 d 2 y d x 2 = 9 D ( D − 1 ) y (3x + 2)^2 \frac{d^2 y}{dx^2} = 9 D(D - 1) y ( 3 x + 2 ) 2 d x 2 d 2 y = 9 D ( D − 1 ) y
Transforming the non-homogeneous term: 3 x 2 + 4 x + 1 = 3 ( e t − 2 3 ) 2 + 4 ( e t − 2 3 ) + 1 = e 2 t − 4 e t + 4 3 + 4 e t − 8 3 + 1 = e 2 t − 1 3 3x^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} 3 x 2 + 4 x + 1 = 3 ( 3 e t − 2 ) 2 + 4 ( 3 e t − 2 ) + 1 = 3 e 2 t − 4 e t + 4 + 3 4 e t − 8 + 1 = 3 e 2 t − 1
Transforming the operator equation: [ 9 D ( D − 1 ) + 3 ( 3 D ) − 36 ] y = e 2 t − 1 3 [9 D(D - 1) + 3(3 D) - 36] y = \frac{e^{2t} - 1}{3} [ 9 D ( D − 1 ) + 3 ( 3 D ) − 36 ] y = 3 e 2 t − 1 ( 9 D 2 − 9 D + 9 D − 36 ) y = e 2 t − 1 3 (9 D^2 - 9 D + 9 D - 36) y = \frac{e^{2t} - 1}{3} ( 9 D 2 − 9 D + 9 D − 36 ) y = 3 e 2 t − 1 9 ( D 2 − 4 ) y = e 2 t − 1 3 ⟹ ( D 2 − 4 ) y = e 2 t − 1 27 9(D^2 - 4) y = \frac{e^{2t} - 1}{3} \implies (D^2 - 4) y = \frac{e^{2t} - 1}{27} 9 ( D 2 − 4 ) y = 3 e 2 t − 1 ⟹ ( D 2 − 4 ) y = 27 e 2 t − 1
Auxiliary equation: D 2 − 4 = 0 ⟹ D = ± 2 D^2 - 4 = 0 \implies D = \pm 2 D 2 − 4 = 0 ⟹ D = ± 2 y c = C 1 e 2 t + C 2 e − 2 t = C 1 ( 3 x + 2 ) 2 + C 2 ( 3 x + 2 ) − 2 y_c = C_1 e^{2t} + C_2 e^{-2t} = C_1 (3x + 2)^2 + C_2 (3x + 2)^{-2} y c = C 1 e 2 t + C 2 e − 2 t = C 1 ( 3 x + 2 ) 2 + C 2 ( 3 x + 2 ) − 2
Particular Integral: y p = 1 27 1 D 2 − 4 [ e 2 t − 1 ] y_p = \frac{1}{27} \frac{1}{D^2 - 4} [e^{2t} - 1] y p = 27 1 D 2 − 4 1 [ e 2 t − 1 ]
For e 2 t e^{2t} e 2 t , F ( 2 ) = 2 2 − 4 = 0 F(2) = 2^2 - 4 = 0 F ( 2 ) = 2 2 − 4 = 0 (Case of Failure): 1 D 2 − 4 e 2 t = t 1 2 D e 2 t = t e 2 t 2 ( 2 ) = t e 2 t 4 \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} D 2 − 4 1 e 2 t = t 2 D 1 e 2 t = t 2 ( 2 ) e 2 t = 4 t e 2 t
For 1 = e 0 ⋅ t 1 = e^{0 \cdot t} 1 = e 0 ⋅ t : 1 D 2 − 4 e 0 ⋅ t = 1 0 2 − 4 ( 1 ) = − 1 4 \frac{1}{D^2 - 4} e^{0 \cdot t} = \frac{1}{0^2 - 4} (1) = -\frac{1}{4} D 2 − 4 1 e 0 ⋅ t = 0 2 − 4 1 ( 1 ) = − 4 1
Summing the Particular Integral terms: y p = 1 27 [ t e 2 t 4 − ( − 1 4 ) ] = 1 108 ( t e 2 t + 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) y p = 27 1 [ 4 t e 2 t − ( − 4 1 ) ] = 108 1 ( t e 2 t + 1 )
Back-substituting t = ln ( 3 x + 2 ) t = \ln(3x + 2) t = ln ( 3 x + 2 ) and e 2 t = ( 3 x + 2 ) 2 e^{2t} = (3x + 2)^2 e 2 t = ( 3 x + 2 ) 2 : y p = 1 108 [ ( 3 x + 2 ) 2 ln ( 3 x + 2 ) + 1 ] y_p = \frac{1}{108} [(3x + 2)^2 \ln(3x + 2) + 1] y p = 108 1 [( 3 x + 2 ) 2 ln ( 3 x + 2 ) + 1 ]
General solution: y = C 1 ( 3 x + 2 ) 2 + C 2 ( 3 x + 2 ) − 2 + 1 108 [ ( 3 x + 2 ) 2 ln ( 3 x + 2 ) + 1 ] y = C_1 (3x + 2)^2 + C_2 (3x + 2)^{-2} + \frac{1}{108} [(3x + 2)^2 \ln(3x + 2) + 1] y = C 1 ( 3 x + 2 ) 2 + C 2 ( 3 x + 2 ) − 2 + 108 1 [( 3 x + 2 ) 2 ln ( 3 x + 2 ) + 1 ]
Method of Variation of Parameters Applicable to second-order non-homogeneous linear differential equations: d 2 y d x 2 + P ( x ) d y d x + Q ( x ) y = R ( x ) \frac{d^2 y}{dx^2} + P(x) \frac{dy}{dx} + Q(x) y = R(x) d x 2 d 2 y + P ( x ) d x d y + Q ( x ) y = R ( x )
Let the Complementary Function be: y c = C 1 y 1 ( x ) + C 2 y 2 ( x ) y_c = C_1 y_1(x) + C_2 y_2(x) y c = C 1 y 1 ( x ) + C 2 y 2 ( x )
The Particular Integral assumes variable parameters u ( x ) u(x) u ( x ) and v ( x ) v(x) v ( x ) replacing constants C 1 C_1 C 1 and C 2 C_2 C 2 : y p = u ( x ) y 1 ( x ) + v ( x ) y 2 ( x ) y_p = u(x) y_1(x) + v(x) y_2(x) y p = u ( x ) y 1 ( x ) + v ( x ) y 2 ( x )
The Wronskian of the fundamental solutions is the determinant: W ( y 1 , y 2 ) = ∣ y 1 y 2 y 1 ′ y 2 ′ ∣ = y 1 y 2 ′ − y 2 y 1 ′ 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' W ( y 1 , y 2 ) = y 1 y 1 ′ y 2 y 2 ′ = y 1 y 2 ′ − y 2 y 1 ′
Parameter integral formulas: u ( x ) = − ∫ y 2 ( x ) R ( x ) W ( y 1 , y 2 ) d x u(x) = -\int \frac{y_2(x) R(x)}{W(y_1, y_2)}\,dx u ( x ) = − ∫ W ( y 1 , y 2 ) y 2 ( x ) R ( x ) d x v ( x ) = ∫ y 1 ( x ) R ( x ) W ( y 1 , y 2 ) d x v(x) = \int \frac{y_1(x) R(x)}{W(y_1, y_2)}\,dx v ( x ) = ∫ W ( y 1 , y 2 ) y 1 ( x ) R ( x ) d x
Exact Differential Equations A differential expression of the form M ( x , y ) d x + N ( x , y ) d y = 0 M(x, y)\,dx + N(x, y)\,dy = 0 M ( x , y ) d x + N ( x , y ) d y = 0 is exact if and only if: ∂ M ∂ y = ∂ N ∂ x \frac{\partial M}{\partial y} = \frac{\partial N}{\partial x} ∂ y ∂ M = ∂ x ∂ N
The general solution of an exact differential equation is obtained by: ∫ y = constant M d x + ∫ ( terms of N not containing x ) d y = C \int_{y = \text{constant}} M\,dx + \int (\text{terms of } N \text{ not containing } x)\,dy = C ∫ y = constant M d x + ∫ ( terms of N not containing x ) d y = C
Integrating Factors for Non-Exact Equations If M d x + N d y = 0 M\,dx + N\,dy = 0 M d x + N d y = 0 is not exact, an Integrating Factor (I . F . I.F. I . F . ) is determined based on the algebraic structure of M M M and N N N .
Type I: Homogeneous Differential Equations
If M ( x , y ) d x + N ( x , y ) d y = 0 M(x, y)\,dx + N(x, y)\,dy = 0 M ( x , y ) d x + N ( x , y ) d y = 0 is homogeneous of the same degree and M x + N y ≠ 0 M x + N y \neq 0 M x + N y = 0 : I . F . = 1 M x + N y I.F. = \frac{1}{M x + N y} I . F . = M x + N y 1
Example 1 (Type I): Solve y ( x + y ) d x + x ( y − x ) d y = 0 y(x + y)\,dx + x(y - x)\,dy = 0 y ( x + y ) d x + x ( y − x ) d y = 0
Identify components: M = x y + y 2 ⟹ ∂ M ∂ y = x + 2 y M = x y + y^2 \implies \frac{\partial M}{\partial y} = x + 2y M = x y + y 2 ⟹ ∂ y ∂ M = x + 2 y N = x y − x 2 ⟹ ∂ N ∂ x = y − 2 x N = x y - x^2 \implies \frac{\partial N}{\partial x} = y - 2x N = x y − x 2 ⟹ ∂ x ∂ N = y − 2 x Since ∂ M ∂ y ≠ ∂ N ∂ x \frac{\partial M}{\partial y} \neq \frac{\partial N}{\partial x} ∂ y ∂ M = ∂ x ∂ N , the equation is non-exact.
Check homogeneity: both M M M and N N N are homogeneous of degree 2.
Calculate denominator for I . F . I.F. I . F . : M 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 M 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 M 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 . = 1 2 x y 2 I.F. = \frac{1}{2 x y^2} I . F . = 2 x y 2 1
Multiply original equation by I . F . I.F. I . F . : x y + y 2 2 x y 2 d x + x y − x 2 2 x y 2 d y = 0 \frac{x y + y^2}{2 x y^2}\,dx + \frac{x y - x^2}{2 x y^2}\,dy = 0 2 x y 2 x y + y 2 d x + 2 x y 2 x y − x 2 d y = 0 ( 1 2 y + 1 2 x ) d x + ( 1 2 y − x 2 y 2 ) d y = 0 \left(\frac{1}{2y} + \frac{1}{2x}\right)\,dx + \left(\frac{1}{2y} - \frac{x}{2y^2}\right)\,dy = 0 ( 2 y 1 + 2 x 1 ) d x + ( 2 y 1 − 2 y 2 x ) d y = 0
Verify exactness: ∂ M ′ ∂ y = − 1 2 y 2 \frac{\partial M'}{\partial y} = -\frac{1}{2y^2} ∂ y ∂ M ′ = − 2 y 2 1 ∂ N ′ ∂ x = − 1 2 y 2 \frac{\partial N'}{\partial x} = -\frac{1}{2y^2} ∂ x ∂ N ′ = − 2 y 2 1
Integrate to find solution: ∫ y = const ( 1 2 y + 1 2 x ) d x + ∫ 1 2 y d y = C \int_{y = \text{const}} \left(\frac{1}{2y} + \frac{1}{2x}\right)\,dx + \int \frac{1}{2y}\,dy = C ∫ y = const ( 2 y 1 + 2 x 1 ) d x + ∫ 2 y 1 d y = C x 2 y + 1 2 ln ( x ) + 1 2 ln ( y ) = C \frac{x}{2y} + \frac{1}{2} \ln(x) + \frac{1}{2} \ln(y) = C 2 y x + 2 1 ln ( x ) + 2 1 ln ( y ) = C x y + ln ( x y ) = C ′ \frac{x}{y} + \ln(x y) = C' y x + ln ( x y ) = C ′
Example 2 (Type I): Solve x 2 y d x − ( x 3 + y 3 ) d y = 0 x^2 y\,dx - (x^3 + y^3)\,dy = 0 x 2 y d x − ( x 3 + y 3 ) d y = 0
Identify components: M = x 2 y ⟹ ∂ M ∂ y = x 2 M = x^2 y \implies \frac{\partial M}{\partial y} = x^2 M = x 2 y ⟹ ∂ y ∂ M = x 2 N = − x 3 − y 3 ⟹ ∂ N ∂ x = − 3 x 2 N = -x^3 - y^3 \implies \frac{\partial N}{\partial x} = -3 x^2 N = − x 3 − y 3 ⟹ ∂ x ∂ N = − 3 x 2 Non-exact, but homogeneous of degree 3.
Calculate denominator for I . F . I.F. I . F . : M x + N y = x ( x 2 y ) + y ( − x 3 − y 3 ) = x 3 y − x 3 y − y 4 = − y 4 M x + N y = x(x^2 y) + y(-x^3 - y^3) = x^3 y - x^3 y - y^4 = -y^4 M x + N y = x ( x 2 y ) + y ( − x 3 − y 3 ) = x 3 y − x 3 y − y 4 = − y 4 I . F . = − 1 y 4 I.F. = -\frac{1}{y^4} I . F . = − y 4 1
Multiply by I . F . I.F. I . F . : − x 2 y 3 d x + ( x 3 y 4 + 1 y ) d y = 0 -\frac{x^2}{y^3}\,dx + \left(\frac{x^3}{y^4} + \frac{1}{y}\right)\,dy = 0 − y 3 x 2 d x + ( y 4 x 3 + y 1 ) d y = 0
Verify exactness: ∂ M ′ ∂ y = 3 x 2 y 4 \frac{\partial M'}{\partial y} = \frac{3 x^2}{y^4} ∂ y ∂ M ′ = y 4 3 x 2 ∂ N ′ ∂ x = 3 x 2 y 4 \frac{\partial N'}{\partial x} = \frac{3 x^2}{y^4} ∂ x ∂ N ′ = y 4 3 x 2
Integrate: ∫ y = const ( − x 2 y 3 ) d x + ∫ 1 y d y = C \int_{y = \text{const}} \left(-\frac{x^2}{y^3}\right)\,dx + \int \frac{1}{y}\,dy = C ∫ y = const ( − y 3 x 2 ) d x + ∫ y 1 d y = C − x 3 3 y 3 + ln ( y ) = C -\frac{x^3}{3 y^3} + \ln(y) = C − 3 y 3 x 3 + ln ( y ) = C
Type II: Equations of Form f 1 ( x y ) y d x + f 2 ( x y ) x d y = 0 f_1(x y) y\,dx + f_2(x y) x\,dy = 0 f 1 ( x y ) y d x + f 2 ( x y ) x d y = 0
Type III: Integrating Factor as a Function of x x x Alone
If the differential equation is non-exact and the quantity: ∂ M ∂ y − ∂ N ∂ x N = f ( x ) \frac{\frac{\partial M}{\partial y} - \frac{\partial N}{\partial x}}{N} = f(x) N ∂ y ∂ M − ∂ x ∂ N = f ( x ) is a function of x x x alone, then: I . F . = e ∫ f ( x ) d x I.F. = e^{\int f(x)\,dx} I . F . = e ∫ f ( x ) d x
Example (Type III): Solve ( x 4 e x − 2 m x y 2 ) d x + 2 m x 2 y d y = 0 (x^4 e^x - 2 m x y^2)\,dx + 2 m x^2 y\,dy = 0 ( x 4 e x − 2 m x y 2 ) d x + 2 m x 2 y d y = 0
Identify partial derivatives: M = x 4 e x − 2 m x y 2 ⟹ ∂ M ∂ y = − 4 m x y M = x^4 e^x - 2 m x y^2 \implies \frac{\partial M}{\partial y} = -4 m x y M = x 4 e x − 2 m x y 2 ⟹ ∂ y ∂ M = − 4 m x y N = 2 m x 2 y ⟹ ∂ N ∂ x = 4 m x y N = 2 m x^2 y \implies \frac{\partial N}{\partial x} = 4 m x y N = 2 m x 2 y ⟹ ∂ x ∂ N = 4 m x y
Check condition: ∂ M ∂ y − ∂ N ∂ x N = − 4 m x y − 4 m x y 2 m x 2 y = − 8 m x y 2 m x 2 y = − 4 x = 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) N ∂ y ∂ M − ∂ x ∂ N = 2 m x 2 y − 4 m x y − 4 m x y = 2 m x 2 y − 8 m x y = − x 4 = f ( x )
Calculate Integrating Factor: I . F . = e ∫ − 4 x d x = e − 4 ln ( x ) = x − 4 = 1 x 4 I.F. = e^{\int -\frac{4}{x}\,dx} = e^{-4 \ln(x)} = x^{-4} = \frac{1}{x^4} I . F . = e ∫ − x 4 d x = e − 4 l n ( x ) = x − 4 = x 4 1
Multiply by I . F . I.F. I . F . : ( e x − 2 m y 2 x 3 ) d x + 2 m y x 2 d y = 0 \left(e^x - \frac{2 m y^2}{x^3}\right)\,dx + \frac{2 m y}{x^2}\,dy = 0 ( e x − x 3 2 m y 2 ) d x + x 2 2 m y d y = 0
Verify exactness: ∂ M ′ ∂ y = − 4 m y x 3 \frac{\partial M'}{\partial y} = -\frac{4 m y}{x^3} ∂ y ∂ M ′ = − x 3 4 m y ∂ N ′ ∂ x = − 4 m y x 3 \frac{\partial N'}{\partial x} = -\frac{4 m y}{x^3} ∂ x ∂ N ′ = − x 3 4 m y
General solution: ∫ y = const ( e x − 2 m y 2 x 3 ) d x + ∫ 0 d y = C \int_{y = \text{const}} \left(e^x - \frac{2 m y^2}{x^3}\right)\,dx + \int 0\,dy = C ∫ y = const ( e x − x 3 2 m y 2 ) d x + ∫ 0 d y = C e x − 2 m y 2 ( − 1 2 x 2 ) = C e^x - 2 m y^2 \left(-\frac{1}{2 x^2}\right) = C e x − 2 m y 2 ( − 2 x 2 1 ) = C e x + m y 2 x 2 = C e^x + \frac{m y^2}{x^2} = C e x + x 2 m y 2 = C
Type IV: Integrating Factor as a Function of y y y Alone
If the differential equation is non-exact and the quantity: ∂ N ∂ x − ∂ M ∂ y M = f ( y ) \frac{\frac{\partial N}{\partial x} - \frac{\partial M}{\partial y}}{M} = f(y) M ∂ x ∂ N − ∂ y ∂ M = f ( y ) is a function of y y y alone, then: I . F . = e ∫ f ( y ) d y I.F. = e^{\int f(y)\,dy} I . F . = e ∫ f ( y ) d y
Example (Type IV): Solve y ( 2 x 2 y + e x ) d x − ( e x + y 3 ) d y = 0 y(2 x^2 y + e^x)\,dx - (e^x + y^3)\,dy = 0 y ( 2 x 2 y + e x ) d x − ( e x + y 3 ) d y = 0
Identify partial derivatives: M = 2 x 2 y 2 + y e x ⟹ ∂ M ∂ y = 4 x 2 y + e x M = 2 x^2 y^2 + y e^x \implies \frac{\partial M}{\partial y} = 4 x^2 y + e^x M = 2 x 2 y 2 + y e x ⟹ ∂ y ∂ M = 4 x 2 y + e x N = − e x − y 3 ⟹ ∂ N ∂ x = − e x N = -e^x - y^3 \implies \frac{\partial N}{\partial x} = -e^x N = − e x − y 3 ⟹ ∂ x ∂ N = − e x
Check condition: ∂ N ∂ x − ∂ M ∂ y M = − e x − ( 4 x 2 y + e x ) y ( 2 x 2 y + e x ) = − 2 ( 2 x 2 y + e x ) y ( 2 x 2 y + e x ) = − 2 y = 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) M ∂ x ∂ N − ∂ y ∂ M = y ( 2 x 2 y + e x ) − e x − ( 4 x 2 y + e x ) = y ( 2 x 2 y + e x ) − 2 ( 2 x 2 y + e x ) = − y 2 = f ( y )
Calculate Integrating Factor: I . F . = e ∫ − 2 y d y = e − 2 ln ( y ) = y − 2 = 1 y 2 I.F. = e^{\int -\frac{2}{y}\,dy} = e^{-2 \ln(y)} = y^{-2} = \frac{1}{y^2} I . F . = e ∫ − y 2 d y = e − 2 l n ( y ) = y − 2 = y 2 1
Multiply by I . F . I.F. I . F . : ( 2 x 2 + e x y ) d x − ( e x y 2 + y ) d y = 0 \left(2 x^2 + \frac{e^x}{y}\right)\,dx - \left(\frac{e^x}{y^2} + y\right)\,dy = 0 ( 2 x 2 + y e x ) d x − ( y 2 e x + y ) d y = 0
Verify exactness: ∂ M ′ ∂ y = − e x y 2 \frac{\partial M'}{\partial y} = -\frac{e^x}{y^2} ∂ y ∂ M ′ = − y 2 e x ∂ N ′ ∂ x = − e x y 2 \frac{\partial N'}{\partial x} = -\frac{e^x}{y^2} ∂ x ∂ N ′ = − y 2 e x
General solution: ∫ y = const ( 2 x 2 + e x y ) d x + ∫ ( − y ) d y = C \int_{y = \text{const}} \left(2 x^2 + \frac{e^x}{y}\right)\,dx + \int (-y)\,dy = C ∫ y = const ( 2 x 2 + y e x ) d x + ∫ ( − y ) d y = C 2 x 3 3 + e x y − y 2 2 = C \frac{2 x^3}{3} + \frac{e^x}{y} - \frac{y^2}{2} = C 3 2 x 3 + y e x − 2 y 2 = C
Type V: Equations of Form x a y b ( m y d x + n x d y ) + x c y d ( p y d x + q x d y ) = 0 x^a y^b (m y\,dx + n x\,dy) + x^c y^d (p y\,dx + q x\,dy) = 0 x a y b ( m y d x + n x d y ) + x c y d ( p y d x + q x d y ) = 0
For equations possessing this algebraic structure, assume an Integrating Factor of the form: I . F . = x h y k I.F. = x^h y^k I . F . = x h y k
Multiply the differential equation by x h y k x^h y^k x h y k and impose the condition of exactness ∂ M ′ ∂ y = ∂ N ′ ∂ x \frac{\partial M'}{\partial y} = \frac{\partial N'}{\partial x} ∂ y ∂ M ′ = ∂ x ∂ N ′ to generate a system of two linear algebraic equations in unknowns h h h and k k k .
Example (Type V): Solve ( y 4 − 2 x 3 y ) d x + ( x 4 − 2 x y 3 ) d y = 0 (y^4 - 2 x^3 y)\,dx + (x^4 - 2 x y^3)\,dy = 0 ( y 4 − 2 x 3 y ) d x + ( x 4 − 2 x y 3 ) d y = 0
Multiply equation by I . F . = x h y k I.F. = x^h y^k I . F . = x h y k : ( x h y k + 4 − 2 x h + 3 y k + 1 ) d x + ( x h + 4 y k − 2 x h + 1 y k + 3 ) d y = 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 ( x h y k + 4 − 2 x h + 3 y k + 1 ) d x + ( x h + 4 y k − 2 x h + 1 y k + 3 ) d y = 0
Compute partial derivatives: ∂ M ′ ∂ y = ( k + 4 ) x h y k + 3 − 2 ( k + 1 ) x h + 3 y k \frac{\partial M'}{\partial y} = (k + 4) x^h y^{k+3} - 2(k + 1) x^{h+3} y^k ∂ y ∂ M ′ = ( k + 4 ) x h y k + 3 − 2 ( k + 1 ) x h + 3 y k ∂ N ′ ∂ x = ( h + 4 ) x h + 3 y k − 2 ( h + 1 ) x h y k + 3 \frac{\partial N'}{\partial x} = (h + 4) x^{h+3} y^k - 2(h + 1) x^h y^{k+3} ∂ x ∂ N ′ = ( h + 4 ) x h + 3 y k − 2 ( h + 1 ) x h y k + 3
Equate coefficients of like terms for exactness:
For x h y k + 3 x^h y^{k+3} x h y k + 3 : k + 4 = − 2 ( h + 1 ) ⟹ k + 4 = − 2 h − 2 ⟹ 2 h + k + 6 = 0 k + 4 = -2(h + 1) \implies k + 4 = -2h - 2 \implies 2h + k + 6 = 0 k + 4 = − 2 ( h + 1 ) ⟹ k + 4 = − 2 h − 2 ⟹ 2 h + k + 6 = 0
For x h + 3 y k x^{h+3} y^k x h + 3 y k : − 2 ( k + 1 ) = h + 4 ⟹ − 2 k − 2 = h + 4 ⟹ h + 2 k + 6 = 0 -2(k + 1) = h + 4 \implies -2k - 2 = h + 4 \implies h + 2k + 6 = 0 − 2 ( k + 1 ) = h + 4 ⟹ − 2 k − 2 = h + 4 ⟹ h + 2 k + 6 = 0
Solving the system:
Multiplying the first equation by 2: 4 h + 2 k + 12 = 0 4h + 2k + 12 = 0 4 h + 2 k + 12 = 0
Subtracting the second equation: ( 4 h + 2 k + 12 ) − ( h + 2 k + 6 ) = 0 ⟹ 3 h + 6 = 0 ⟹ h = − 2 (4h + 2k + 12) - (h + 2k + 6) = 0 \implies 3h + 6 = 0 \implies h = -2 ( 4 h + 2 k + 12 ) − ( h + 2 k + 6 ) = 0 ⟹ 3 h + 6 = 0 ⟹ h = − 2
Substituting h = − 2 h = -2 h = − 2 into the first equation: 2 ( − 2 ) + k + 6 = 0 ⟹ − 4 + k + 6 = 0 ⟹ k = − 2 2(-2) + k + 6 = 0 \implies -4 + k + 6 = 0 \implies k = -2 2 ( − 2 ) + k + 6 = 0 ⟹ − 4 + k + 6 = 0 ⟹ k = − 2
Thus, the Integrating Factor is: I . F . = x − 2 y − 2 = 1 x 2 y 2 I.F. = x^{-2} y^{-2} = \frac{1}{x^2 y^2} I . F . = x − 2 y − 2 = x 2 y 2 1
Multiply original equation by I . F . I.F. I . F . : ( y 2 x 2 − 2 x y ) d x + ( x 2 y 2 − 2 y x ) d y = 0 \left(\frac{y^2}{x^2} - \frac{2x}{y}\right)\,dx + \left(\frac{x^2}{y^2} - \frac{2y}{x}\right)\,dy = 0 ( x 2 y 2 − y 2 x ) d x + ( y 2 x 2 − x 2 y ) d y = 0
Integrating with y = constant y = \text{constant} y = constant in M ′ M' M ′ and taking terms free of x x x in N ′ N' N ′ : ∫ y = const ( y 2 x 2 − 2 x y ) d x + ∫ 0 d y = C \int_{y = \text{const}} \left(\frac{y^2}{x^2} - \frac{2x}{y}\right)\,dx + \int 0\,dy = C ∫ y = const ( x 2 y 2 − y 2 x ) d x + ∫ 0 d y = C y 2 ( − 1 x ) − 2 y ( x 2 2 ) = C y^2 \left(-\frac{1}{x}\right) - \frac{2}{y} \left(\frac{x^2}{2}\right) = C y 2 ( − x 1 ) − y 2 ( 2 x 2 ) = C − y 2 x − x 2 y = C -\frac{y^2}{x} - \frac{x^2}{y} = C − x y 2 − y x 2 = C y 2 x + x 2 y = C ′ \frac{y^2}{x} + \frac{x^2}{y} = C' x y 2 + y x 2 = C ′ x 3 + y 3 = C ′ x y x^3 + y^3 = C' x y x 3 + y 3 = C ′ x y