📘 Lecture 5 — Comparison of Solutions: Sensitivity in Differential Equations
📖 Overview: This lecture explores how very small changes in initial conditions or differential equations can produce radically different solutions. Through detailed examples, it demonstrates the concept of sensitivity in differential equations and introduces homogeneous differential equations as the next major topic. Understanding this sensitivity is crucial for recognizing the limitations of mathematical modeling.
🗂️ Topics Covered
The lecture examines two comparison examples showing radical changes in solutions due to tiny alterations in initial conditions (Example 6) or in the differential equation itself (Example 7). It then transitions to a new section on Homogeneous Differential Equations, covering their definition, how to identify homogeneous functions, and the step-by-step method of solution using the substitution v = y/x. The lecture concludes with Exercise problems and an Example 2 demonstrating the solution process.
📝 Lecture Summary
Comparison: A radical change in the solutions
The lecture presents two examples showing how extremely small changes in initial conditions or the differential equation can lead to dramatically different solution behaviors.
Example 6: Comparison of Initial Value Problems
Consider the differential equation dy/dx = (y - 1)². Two initial value problems are solved:
(a) dy/dx = (y - 1)², y(0) = 1.01 Using separation of variables, the non-constant solution is found:
- ∫ dy/(y - 1)² = ∫ dx → -1/(y - 1) = x + c
- Applying y(0) = 1.01: -1/(0.01) = 0 + c → c = -100
- Solution: -1/(y - 1) = x - 100 → y = 1 + 1/(100 - x)
- This solution has a vertical asymptote at x = 100.
(b) dy/dx = (y - 1)², y(0) = 1
- Applying y(0) = 1: -1/(1 - 1) = -∞ = 0 + c → y - 1 = 0
- Solution: y = 1 (constant solution)
🔑 Definition — Sensitivity: A radical change in the solutions of the differential equation has occurred corresponding to a very small change in the initial condition (from 1.01 to 1).
Example 7: Comparison of Differential Equations
Solve the initial value problems with the same initial condition but a tiny change in the equation:
(a) dy/dx = (y - 1)² + 0.01, y(0) = 1 Separating variables:
- ∫ dy/[(y - 1)² + 0.01] = ∫ dx → ∫ d(y-1)/[(y-1)² + (0.01)²] = ∫ dx
- Using the formula ∫ du/(u² + a²) = (1/a)tan⁻¹(u/a):
- (1/0.01)tan⁻¹[(y-1)/0.01] = x + c
- Applying y(0) = 1: tan⁻¹(0) = 0.01(0 + c) → 0 = c
- Solution: y = 1 + 0.01 tan(0.01x)
(b) dy/dx = (y - 1)² - 0.01, y(0) = 1 Separating variables:
- ∫ dy/[(y-1)² - 0.01] = ∫ dx → ∫ d(y-1)/[(y-1)² - (0.01)²] = ∫ dx
- Using the formula ∫ du/(u² - a²) = (1/2a)ln|(u-a)/(u+a)|:
- (1/2×0.01)ln|(y-1-0.01)/(y-1+0.01)| = x + c
- (1/0.02)ln|(y-1-0.01)/(y-1+0.01)| = x + c
- Applying y(0) = 1: (1/0.02)ln(1) = 0 + c → c = 0
- Simplifying using the property a/b = c/d → (a+b)/(a-b) = (c+d)/(c-d):
- (y-1-0.01 + y-1+0.01)/(y-1-0.01 - (y-1+0.01)) = (e^(0.02x) + 1)/(e^(0.02x) - 1)
- 2(y-1)/(-2×0.01) = (e^(0.02x) + 1)/(e^(0.02x) - 1)
- -(y-1)/0.01 = (e^(0.02x) + 1)/(e^(0.02x) - 1)
- Solution: y = 1 - 0.01[(e^(0.02x) + 1)/(e^(0.02x) - 1)]
Comparison: The solutions are: (a) y = 1 + 0.01 tan(0.01x) (b) y = 1 - 0.01[(e^(0.02x) + 1)/(e^(0.02x) - 1)]
Again a radical change has occurred corresponding to a very small change in the differential equation (adding 0.01 vs subtracting 0.01).
💡 Why this matters: These examples demonstrate that differential equations can be extremely sensitive to small changes in either initial conditions or the equation itself. This sensitivity has profound implications for mathematical modeling — tiny measurement errors can lead to completely different predictions.
4 Homogeneous Differential Equations
🔑 Definition — Homogeneous Differential Equation: A differential equation of the form dy/dx = f(x,y) is said to be homogeneous if the function f(x,y) is homogeneous, meaning f(tx, ty) = tⁿf(x,y) for some real number n, for any number t.
Example: Determining homogeneity For f(x,y) = xy/(x² + y²):
- f(tx,ty) = (t²xy)/(t²(x² + y²)) = xy/(x² + y²) = f(x,y)
- Therefore f is homogeneous (n = 0)
For g(x,y) = ln(-3x²y/(x³ + 4xy²)):
- g(tx,ty) = ln(-3t³x²y/(t³(x³ + 4xy²))) = ln(-3x²y/(x³ + 4xy²)) = g(x,y)
- Therefore g is also homogeneous
Method of Solution
To solve a homogeneous differential equation dy/dx = f(x,y), use the substitution v = y/x.
If f(x,y) is homogeneous of degree zero (n=0), then:
- f(x,y) = f(1, v) = F(v)
- Since y = xv, differentiation gives: dy/dx = x(dv/dx) + v
- The differential equation becomes: x(dv/dx) + v = f(1, v)
- This is a separable equation — solve for v, then substitute back y = xv
Summary — Step-by-step method:
- Identify the equation as homogeneous by checking f(tx, ty) = tⁿf(x,y)
- Write out the substitution v = y/x
- Through differentiation, find the new equation satisfied by v
- Solve the new equation (which is always separable) to find v
- Go back to the old function y through y = vx
- If we have an IVP, use the initial condition to find the constant of integration
⚠️ Caution:
- Since we have to solve a separable equation, we must be careful about constant solutions
- If the substitution y = vx does not reduce the equation to separable form, then the equation is not homogeneous or something is wrong along the way
Example 2
Solve the differential equation: dy/dx = (-2x + 5y)/(2x + y)
Step 1: Check homogeneity — f(x,y) = (-2x + 5y)/(2x + y)
- f(tx,ty) = (-2tx + 5ty)/(2tx + ty) = t(-2x + 5y)/t(2x + y) = (-2x + 5y)/(2x + y) = f(x,y)
- Therefore f is homogeneous of degree zero
Step 2: Substitute v = y/x, so y = xv Step 3: dy/dx = x(dv/dx) + v The equation becomes: x(dv/dx) + v = (-2x + 5xv)/(2x + xv) = x(-2 + 5v)/x(2 + v) = (-2 + 5v)/(2 + v)
Step 4: x(dv/dx) = (-2 + 5v)/(2 + v) - v = (-2 + 5v)/(2 + v) - v(2+v)/(2+v) = (-2 + 5v - 2v - v²)/(2+v) = (-2 + 3v - v²)/(2+v)
- x(dv/dx) = (-v² + 3v - 2)/(2+v)
- Separate: (2+v)/[-(v² - 3v + 2)] dv = dx/x
- (2+v)/[-(v-1)(v-2)] dv = dx/x
- Using partial fractions and integrating gives the solution for v, then substitute back y = xv
⭐ Key Takeaways
The most critical concept from this lecture is the extreme sensitivity of differential equations — tiny changes in initial conditions (e.g., from y(0)=1 to y(0)=1.01) or in the equation itself (adding or subtracting 0.01) can produce fundamentally different solutions, such as switching from a constant solution to an unbounded one or changing the entire functional form. This sensitivity is demonstrated through detailed comparison examples where solutions range from constant functions to those with vertical asymptotes or exponential forms. The lecture also introduces homogeneous differential equations, defined by f(tx,ty)=tⁿf(x,y), which are solved using the substitution v=y/x to convert them into separable equations. The step-by-step method involves checking homogeneity, substituting, differentiating, solving the separable equation, and back-substituting — with caution about constant solutions and ensuring the substitution actually works.
🧠 Quick Revision Questions
- In Example 6, how does changing the initial condition from y(0)=1 to y(0)=1.01 radically alter the solution of dy/dx=(y-1)²?
- In Example 7, why do the solutions differ so dramatically when the differential equation changes from (y-1)²+0.01 to (y-1)²-0.01?
- What is the definition of a homogeneous function, and how do you check if f(x,y)=xy/(x²+y²) is homogeneous?
- What substitution is used to solve a homogeneous differential equation, and what form does the resulting equation take?
- What caution must be observed when using the substitution v=y/x to solve homogeneous equations?
📘 Lecture 6 — Equations Reducible to Homogeneous Form & Exact Differential Equations
📖 Overview: This lecture covers two important advanced topics in solving first-order differential equations. First, it explains how to reduce non-homogeneous equations with specific coefficient relationships to homogeneous form through appropriate substitutions. Second, it introduces exact differential equations, providing a systematic method for identifying and solving them using the condition of exactness and the potential function approach. These techniques significantly expand the range of solvable differential equations.
🗂️ Topics Covered
The lecture begins by completing a worked example of solving a homogeneous differential equation reducible from a non-homogeneous form. It then introduces two cases for reducing non-homogeneous equations: Case 1 where the coefficients of (x) and (y) in the numerator and denominator are proportional (solved via substitution (z = a_1 x + b_1 y)), and Case 2 where they are not proportional (solved via translation (x = X + h, y = Y + k) to make the equation homogeneous). Detailed examples demonstrate both cases. The lecture then transitions to exact differential equations, defining the exactness condition (\frac{\partial M}{\partial y} = \frac{\partial N}{\partial x}), and outlining a step-by-step method for finding the potential function (F(x, y)) and the general solution (F(x, y) = C). Several solved examples and applications to initial value problems are provided.
📝 Lecture Summary
4.2 Equations reducible to homogenous form
The lecture continues the discussion of equations that can be reduced to homogeneous form. The general non-homogeneous equation considered is: [ \frac{dy}{dx} = \frac{a_1 x + b_1 y + c_1}{a_2 x + b_2 y + c_2} ]
4.2.1 Case 1: (\frac{a_1}{a_2} = \frac{b_1}{b_2})
When the coefficients satisfy (\frac{a_1}{a_2} = \frac{b_1}{b_2}), we use the substitution (z = a_1 x + b_1 y). This reduces the equation to a separable equation in the variables (x) and (z). Solving the separable equation and then replacing (z) with (a_1 x + b_1 y) gives the solution of the original differential equation.
🔑 Definition — Separable equation: A differential equation that can be written in the form (g(y) dy = f(x) dx), allowing direct integration of both sides.
📌 Example 3: Solve (\frac{dy}{dx} = -\frac{2x + 3y - 1}{2x + 3y + 2})
Here, (a_1 = 1, a_2 = 1) and (b_1 = 1, b_2 = 1), so (\frac{a_1}{a_2} = \frac{b_1}{b_2}). We substitute (z = 2x + 3y).
Step 1: Differentiate: (\frac{dy}{dx} = \frac{1}{3}\left(\frac{dz}{dx} - 2\right))
Step 2: Substitute into the equation: [ \frac{1}{3}\left(\frac{dz}{dx} - 2\right) = -\frac{z - 1}{z + 2} ]
Step 3: Rearrange to separable form: [ \frac{dz}{dx} = \frac{-z + 7}{z + 2} ]
Step 4: Separate variables: [ \frac{z + 2}{-z + 7} dz = dx ]
Step 5: Integrate both sides: [ \int \frac{z + 2}{7 - z} dz = \int dx ]
Step 6: Using long division or partial fractions: [ \int \left(-1 + \frac{9}{7 - z}\right) dz = \int dx ]
Step 7: Integrating: [ -z - 9\ln|z - 7| = x + A ]
Step 8: Replace (z = 2x + 3y): [ -(2x + 3y) - 9\ln|2x + 3y - 7| = x + A ]
Step 9: Simplify: [ -9\ln|2x + 3y - 7| = 3x + 3y + A ]
Step 10: Exponentiate: [ (2x + 3y - 7)^{-9} = ce^{3(x+y)}, \text{ where } c = e^A ]
📌 Final implicit solution: ((2x + 3y - 7)^{-9} = ce^{3(x+y)})
4.2.2 Case 2: (\frac{a_1}{a_2} \neq \frac{b_1}{b_2})
When the coefficients are not proportional, we use the substitution: [ x = X + h, \quad y = Y + k ] where (h) and (k) are constants to be determined.
Step 1: Substitute into the equation: [ \frac{dY}{dX} = \frac{a_1 X + b_1 Y + (a_1 h + b_1 k + c_1)}{a_2 X + b_2 Y + (a_2 h + b_2 k + c_2)} ]
Step 2: Choose (h) and (k) such that: [ \begin{cases} a_1 h + b_1 k + c_1 = 0 \ a_2 h + b_2 k + c_2 = 0 \end{cases} ]
Step 3: This reduces the equation to: [ \frac{dY}{dX} = \frac{a_1 X + b_1 Y}{a_2 X + b_2 Y} ] which is a homogeneous differential equation in (X) and (Y).
Step 4: Solve the homogeneous equation using (Y = VX) substitution.
Step 5: Return to original variables (x) and (y) using (x = X + h, y = Y + k).
📌 Example 4: Solve (\frac{dy}{dx} = \frac{x + 2y - 4}{2x + y - 5})
Here, (a_1=1, b_1=2, a_2=2, b_2=1), and (\frac{1}{2} \neq \frac{2}{1}), so we use Case 2.
Step 1: Substitute (x = X + h, y = Y + k): [ \frac{dY}{dX} = \frac{(X + h) + 2(Y + k) - 4}{2(X + h) + (Y + k) - 5} = \frac{X + 2Y + (h + 2k - 4)}{2X + Y + (2h + k - 5)} ]
Step 2: Solve for (h, k): [ \begin{cases} h + 2k - 4 = 0 \ 2h + k - 5 = 0 \end{cases} ]
Solving: From first equation, (h = 4 - 2k). Substituting into second: (2(4 - 2k) + k - 5 = 0 \Rightarrow 8 - 4k + k - 5 = 0 \Rightarrow 3 - 3k = 0 \Rightarrow k = 1). Then (h = 4 - 2(1) = 2).
Step 3: The equation becomes: [ \frac{dY}{dX} = \frac{X + 2Y}{2X + Y} ]
Step 4: This is homogeneous. Substitute (Y = VX): [ \frac{dY}{dX} = V + X\frac{dV}{dX} = \frac{X + 2VX}{2X + VX} = \frac{1 + 2V}{2 + V} ]
Step 5: Rearrange: [ X\frac{dV}{dX} = \frac{1 + 2V}{2 + V} - V = \frac{1 + 2V - 2V - V^2}{2 + V} = \frac{1 - V^2}{2 + V} ]
Step 6: Separate variables: [ \frac{2 + V}{1 - V^2} dV = \frac{dX}{X} ]
Step 7: Decompose into partial fractions: [ \frac{2 + V}{(1-V)(1+V)} = \frac{3/2}{1-V} + \frac{1/2}{1+V} ]
Step 8: Integrate: [ \int \left(\frac{3/2}{1-V} + \frac{1/2}{1+V}\right) dV = \int \frac{dX}{X} ]
[ -\frac{3}{2}\ln|1-V| + \frac{1}{2}\ln|1+V| = \ln|X| + \ln|A| ]
Step 9: Combine logarithms: [ \ln\left(\frac{(1+V)^{1/2}}{(1-V)^{3/2}}\right) = \ln|AX| ]
[ \frac{(1+V)^{1/2}}{(1-V)^{3/2}} = AX ]
Step 10: Square both sides: [ \frac{1+V}{(1-V)^3} = A^2 X^2 ]
Let (C = A^{-2}): [ (1-V)^3/(1+V) = CX^{-2} ]
Step 11: Replace (V = Y/X): [ \frac{(1 - Y/X)^3}{1 + Y/X} = C X^{-2} ]
Step 12: Multiply numerator and denominator by (X^3): [ \frac{(X - Y)^3}{X^3} \cdot \frac{X}{X + Y} = C X^{-2} ]
[ \frac{(X - Y)^3}{X^2(X + Y)} = C X^{-2} ]
[ \frac{(X - Y)^3}{X + Y} = C ]
Step 13: Return to original variables: (X = x - 2, Y = y - 1): [ \frac{(x - 2 - y + 1)^3}{x - 2 + y - 1} = C ]
📌 Final implicit solution: (\frac{(x - y - 1)^3}{x + y - 3} = C)
💡 Why this matters: The translation method ((x = X + h, y = Y + k)) geometrically shifts the coordinate system so that the intersection point of the lines in the numerator and denominator moves to the origin, making the equation homogeneous. This is a powerful technique that transforms a seemingly complicated equation into one we already know how to solve.
5 Exact Differential Equations
A differential equation written in the form (M(x, y)dx + N(x, y)dy = 0) is called exact if there exists a function (F(x, y)) such that: [ \frac{\partial F}{\partial x} = M(x, y) \quad \text{and} \quad \frac{\partial F}{\partial y} = N(x, y) ]
🔑 Definition — Exact differential equation: A differential equation (Mdx + Ndy = 0) for which there exists a function (F(x, y)) whose total differential (dF = \frac{\partial F}{\partial x}dx + \frac{\partial F}{\partial y}dy) equals (Mdx + Ndy).
Condition for exactness: The equation (Mdx + Ndy = 0) is exact if and only if: [ \frac{\partial M}{\partial y} = \frac{\partial N}{\partial x} ]
5.1 Method of Solution
Step 1: Check that the equation is exact by verifying (\frac{\partial M}{\partial y} = \frac{\partial N}{\partial x}).
Step 2: Write down the system: [ \frac{\partial F}{\partial x} = M(x, y), \quad \frac{\partial F}{\partial y} = N(x, y) ]
Step 3: Integrate the first equation with respect to (x) (treating (y) as constant): [ F(x, y) = \int M(x, y) dx + \theta(y) ] where (\theta(y)) is an arbitrary function of (y) only.
Step 4: Differentiate the result with respect to (y) and equate to (N(x, y)): [ \frac{\partial F}{\partial y} = \frac{\partial}{\partial y}\left(\int M(x, y) dx\right) + \theta'(y) = N(x, y) ]
Step 5: Solve for (\theta'(y)): [ \theta'(y) = N(x, y) - \frac{\partial}{\partial y}\int M(x, y) dx ]
⚠️ Caution: The expression for (\theta'(y)) should be independent of (x). If (x) does not cancel out, something is wrong (either the equation is not exact or an integration error was made).
Step 6: Integrate (\theta'(y)) to find (\theta(y)).
Step 7: Write (F(x, y) = \int M(x, y) dx + \theta(y)).
Step 8: The general solution is given implicitly by: [ F(x, y) = C ]
Step 9: If given an initial value problem, plug in the initial condition to find the constant (C).
📌 Example 1: Solve ((3x^2 y + 2)dx + (x^3 + y)dy = 0)
Step 1: Identify (M = 3x^2 y + 2), (N = x^3 + y)
Check exactness: [ \frac{\partial M}{\partial y} = 3x^2, \quad \frac{\partial N}{\partial x} = 3x^2 ] Since (\frac{\partial M}{\partial y} = \frac{\partial N}{\partial x}), the equation is exact.
Step 2: We need (F) such that: [ \frac{\partial F}{\partial x} = 3x^2 y + 2, \quad \frac{\partial F}{\partial y} = x^3 + y ]
Step 3: Integrate (\frac{\partial F}{\partial x}) with respect to (x): [ F(x, y) = \int (3x^2 y + 2) dx = x^3 y + 2x + h(y) ] where (h(y)) is an arbitrary function of (y).
Step 4: Differentiate with respect to (y): [ \frac{\partial F}{\partial y} = x^3 + h'(y) ]
Step 5: Equate to (N = x^3 + y): [ x^3 + h'(y) = x^3 + y ] [ h'(y) = y ]
Step 6: Integrate: (h(y) = \frac{y^2}{2})
Step 7: The function is: [ F(x, y) = x^3 y + 2x + \frac{y^2}{2} ]
📌 Final solution: (x^3 y + 2x + \frac{y^2}{2} = C)
📌 Example 2 (Initial Value Problem): Solve ((2y \sin x \cos x + y^2 \sin x)dx + (\sin^2 x - 2y \cos x)dy = 0), (y(0) = 3)
Step 1: (M = 2y \sin x \cos x + y^2 \sin x), (N = \sin^2 x - 2y \cos x)
Check exactness: [ \frac{\partial M}{\partial y} = 2\sin x \cos x + 2y \sin x ] [ \frac{\partial N}{\partial x} = 2\sin x \cos x + 2y \sin x ] Since (\frac{\partial M}{\partial y} = \frac{\partial N}{\partial x}), the equation is exact.
Step 2: We need (F) such that: [ \frac{\partial F}{\partial x} = M, \quad \frac{\partial F}{\partial y} = N ]
Step 3: Integrate (\frac{\partial F}{\partial y} = N) with respect to (y): [ F(x, y) = \int (\sin^2 x - 2y \cos x) dy = y \sin^2 x - y^2 \cos x + h(x) ]
Step 4: Differentiate with respect to (x): [ \frac{\partial F}{\partial x} = y(2\sin x \cos x) - y^2(-\sin x) + h'(x) = 2y \sin x \cos x + y^2 \sin x + h'(x) ]
Step 5: Equate to (M = 2y \sin x \cos x + y^2 \sin x): [ 2y \sin x \cos x + y^2 \sin x + h'(x) = 2y \sin x \cos x + y^2 \sin x ] [ h'(x) = 0 \Rightarrow h(x) = C_1 ]
Step 6: The function is: [ F(x, y) = y \sin^2 x - y^2 \cos x ]
Step 7: General solution: (y \sin^2 x - y^2 \cos x = C)
Step 8: Apply initial condition (y(0) = 3): [ 3 \cdot \sin^2 0 - 3^2 \cdot \cos 0 = C \Rightarrow 0 - 9 = C \Rightarrow C = -9 ]
📌 Final solution: (y \sin^2 x - y^2 \cos x = -9) or equivalently (y^2 \cos x - y \sin^2 x = 9)
💡 Why this matters: When solving exact equations, you can choose to integrate either (\frac{\partial F}{\partial x} = M) (with respect to (x)) or (\frac{\partial F}{\partial y} = N) (with respect to (y)). Choose whichever integral is simpler. In Example 2, integrating (N) with respect to (y) was easier because it avoided the trigonometric integral.
📌 Example 3: Solve ((e^{2y} - y\cos xy)dx + (2xe^{2y} - x\cos xy + 2y)dy = 0)
Step 1: Identify (M = e^{2y} - y\cos xy), (N = 2xe^{2y} - x\cos xy + 2y)
Check exactness: [ \frac{\partial M}{\partial y} = 2e^{2y} - \cos xy + xy\sin xy ] [ \frac{\partial N}{\partial x} = 2e^{2y} - \cos xy + xy\sin xy ] Since they are equal, the equation is exact.
Step 2: We need (F) such that: [ \frac{\partial F}{\partial x} = e^{2y} - y\cos xy, \quad \frac{\partial F}{\partial y} = 2xe^{2y} - x\cos xy + 2y ]
Step 3: Let's integrate (\frac{\partial F}{\partial y}) with respect to (y): (Note: when integrating with respect to (y), treat (x) as constant)
[ F(x, y) = \int (2xe^{2y} - x\cos xy + 2y) dy ]
[ F(x, y) = 2x \cdot \frac{e^{2y}}{2} - x \cdot \frac{\sin xy}{x} + 2 \cdot \frac{y^2}{2} + h(x) ]
[ F(x, y) = xe^{2y} - \sin xy + y^2 + h(x) ]
Step 4: Differentiate with respect to (x): [ \frac{\partial F}{\partial x} = e^{2y} - y\cos xy + h'(x) ]
Step 5: Equate to (M = e^{2y} - y\cos xy): [ e^{2y} - y\cos xy + h'(x) = e^{2y} - y\cos xy ] [ h'(x) = 0 \Rightarrow h(x) = C_1 ]
📌 Final solution: (xe^{2y} - \sin xy + y^2 = C)
📌 Example 4: Solve (2xy dx + (x^2 - 1)dy = 0)
Step 1: (M = 2xy), (N = x^2 - 1)
Check exactness: [ \frac{\partial M}{\partial y} = 2x, \quad \frac{\partial N}{\partial x} = 2x ] Since they are equal, the equation is exact.
Step 2: We need (F) such that: [ \frac{\partial F}{\partial x} = 2xy, \quad \frac{\partial F}{\partial y} = x^2 - 1 ]
Step 3: Integrate (\frac{\partial F}{\partial x}) with respect to (x): [ F(x, y) = \int 2xy dx = x^2 y + g(y) ]
Step 4: Differentiate with respect to (y): [ \frac{\partial F}{\partial y} = x^2 + g'(y) ]
Step 5: Equate to (N = x^2 - 1): [ x^2 + g'(y) = x^2 - 1 ] [ g'(y) = -1 \Rightarrow g(y) = -y ]
📌 Final solution: (x^2 y - y = C) or (y(x^2 - 1) = C)
📌 Example 5 (Initial Value Problem): Solve ((\cos x \sin x - xy^2)dx + y(1 - x^2)dy = 0), (y(0) = 2)
Step 1: (M = \cos x \sin x - xy^2), (N = y(1 - x^2) = y - x^2 y)
Check exactness: [ \frac{\partial M}{\partial y} = -2xy, \quad \frac{\partial N}{\partial x} = -2xy ] Since they are equal, the equation is exact.
Step 2: We need (F) such that: [ \frac{\partial F}{\partial x} = \cos x \sin x - xy^2, \quad \frac{\partial F}{\partial y} = y - x^2 y ]
Step 3: Integrate (\frac{\partial F}{\partial y}) with respect to (y): [ F(x, y) = \int (y - x^2 y) dy = \frac{y^2}{2} - \frac{x^2 y^2}{2} + h(x) = \frac{y^2}{2}(1 - x^2) + h(x) ]
Step 4: Differentiate with respect to (x): [ \frac{\partial F}{\partial x} = \frac{y^2}{2}(-2x) + h'(x) = -xy^2 + h'(x) ]
Step 5: Equate to (M = \cos x \sin x - xy^2): [ -xy^2 + h'(x) = \cos x \sin x - xy^2 ] [ h'(x) = \cos x \sin x ]
Step 6: Integrate: [ h(x) = \int \cos x \sin x dx = \frac{1}{2}\int \sin 2x dx = -\frac{1}{4}\cos 2x + C_1 ] Alternatively: (\int \cos x \sin x dx = \frac{\sin^2 x}{2} + C_1)
Step 7: The function is: [ F(x, y) = \frac{y^2}{2}(1 - x^2) + \frac{\sin^2 x}{2} ]
Step 8: General solution: (\frac{y^2}{2}(1 - x^2) + \frac{\sin^2 x}{2} = C)
Multiply by 2: (y^2(1 - x^2) + \sin^2 x = C)
Step 9: Apply initial condition (y(0) = 2): [ 2^2(1 - 0) + \sin^2 0 = C \Rightarrow 4 = C ]
📌 Final solution: (y^2(1 - x^2) + \sin^2 x = 4)
⭐ Key Takeaways
-
Recognizing when to use each reduction: For non-homogeneous equations (\frac{dy}{dx} = \frac{a_1 x + b_1 y + c_1}{a_2 x + b_2 y + c_2}), check if (\frac{a_1}{a_2} = \frac{b_1}{b_2}) (Case 1: use (z = a_1 x + b_1 y)) or not (Case 2: use translation (x = X + h, y = Y + k)). This classification is critical for selecting the correct substitution.
-
Exactness condition is non-negotiable: Always verify (\frac{\partial M}{\partial y} = \frac{\partial N}{\partial x}) before attempting the solution. If the condition fails, the equation is not exact, and you must use other methods (integrating factors, which will be covered later).
-
The (\theta(y)) or (h(x)) function is the key: After integrating, the arbitrary function (\theta(y)) (if integrating with respect to (x)) or (h(x)) (if integrating with respect to (y)) is found by differentiating and equating to the other partial derivative. The resulting expression for (\theta'(y)) or (h'(x)) must be independent of the other variable.
-
Choose the simpler integration path: You can integrate either (\frac{\partial F}{\partial x} = M) with respect to (x) or (\frac{\partial F}{\partial y} = N) with respect to (y). Choose the one that gives the simpler integral to save time and reduce errors.
-
The solution is always implicit: Exact equations give solutions in
📘 Lecture 7 — Integrating Factor Technique
📖 Overview: This lecture addresses the situation when a differential equation is not exact, introducing the concept of an integrating factor (IF) to transform it into an exact equation. It explains the theory behind IFs and provides systematic methods for finding them in four special cases, making non-exact equations solvable.
🗂️ Topics Covered
The lecture begins with an exercise section reviewing exact equations, then introduces the concept of an integrating factor for non-exact equations. It presents a general partial differential equation for finding IFs and details four special cases: Case 1 (IF as a function of x only), Case 2 (IF as a function of y only), Case 3 (for homogeneous equations), and Case 4 (for equations of the form y f(xy) dx + x g(xy) dy = 0). A worked example demonstrates the application of Case 1, and a step-by-step summary is provided.
📝 Lecture Summary
5.2 Exercise
This section lists several differential equations for practice. The first problem involves verifying exactness and solving: (sin y – y sin x) dx + (cos x + x cos y) dy = 0. Another problem asks to solve an initial value problem: (eˣ + y) dx + (2 + x + yeʸ) dy = 0, y(0) = 1. There are also problems requiring finding the value of k so that a given differential equation is exact, such as (2xy³ – y sin xy + ky⁴) dx – (20x³ + x sin xy) dy = 0.
6 Integrating Factor Technique
If the equation M(x,y) dx + N(x,y) dy = 0 is not exact, meaning ∂M/∂y ≠ ∂N/∂x, we can sometimes find a function u(x,y), called an integrating factor (IF), such that the new equation u M dx + u N dy = 0 becomes exact. The IF must satisfy a partial differential equation: ∂/∂y (uM) = ∂/∂x (uN). This equation is generally very difficult to solve directly.
🔑 Definition — Integrating Factor (IF): A function u(x,y) that, when multiplied by a non-exact differential equation M dx + N dy = 0, transforms it into an exact equation.
💡 Why this matters: The IF technique extends the method for exact equations to a much larger class of differential equations, making them solvable.
Example
Show that 1/(x²+y²) is an integrating factor for (x² + y² – x) dx – y dy = 0 and solve.
- Step 1: Check exactness: M = x² + y² – x, N = –y. ∂M/∂y = 2y, ∂N/∂x = 0. Since ∂M/∂y ≠ ∂N/∂x, the equation is not exact.
- Step 2: Multiply by the IF u = 1/(x²+y²): M_new = 1 – x/(x²+y²), N_new = –y/(x²+y²). Now ∂M_new/∂y = 2xy/(x²+y²)² = ∂N_new/∂x, so the new equation is exact.
- Step 3: Solve. It is simpler to rewrite the original equation as: dx – (x dx + y dy)/(x²+y²) = 0 → dx – (1/2) d[ln(x²+y²)] = 0.
- Step 4: Integrate: x – (1/2) ln(x²+y²) = C.
📌 Example: The equation (x² + y² – x) dx – y dy = 0 is not exact because ∂M/∂y = 2y and ∂N/∂x = 0. Multiplying by 1/(x²+y²) yields [1 – x/(x²+y²)] dx – [y/(x²+y²)] dy = 0, which is exact because ∂M_new/∂y = 2xy/(x²+y²)² = ∂N_new/∂x. The solution is x – (1/2) ln(x²+y²) = C.
6.1 Case 1: IF is a function of x only, u(x)
This case applies if the expression [ (∂M/∂y – ∂N/∂x) / N ] is a function of x only. Then the integrating factor is given by: 📐 Formula: u(x) = exp( ∫ [(∂M/∂y – ∂N/∂x) / N] dx ) → The IF is the exponential of the integral of that x-only function with respect to x.
6.2 Case 2: IF is a function of y only, u(y)
This case applies if the expression [ (∂N/∂x – ∂M/∂y) / M ] is a function of y only. Then the integrating factor is given by: 📐 Formula: u(y) = exp( ∫ [(∂N/∂x – ∂M/∂y) / M] dy ) → The IF is the exponential of the integral of that y-only function with respect to y.
6.3 Case 3: IF for Homogeneous Equations
If the given differential equation is homogeneous, and xM + yN ≠ 0, then an integrating factor exists: 📐 Formula: u = 1 / (xM + yN)
6.4 Case 4: IF for Equations of the form y f(xy) dx + x g(xy) dy = 0
If the equation can be written as y f(xy) dx + x g(xy) dy = 0, and xM – yN ≠ 0, then an integrating factor exists: 📐 Formula: u = 1 / (xM – yN)
Summary: Step-by-step Procedure
- Step 1: Write the equation as M dx + N dy = 0 and identify M and N.
- Step 2: Check exactness (∂M/∂y = ∂N/∂x?). If exact, solve directly.
- Step 3: If not exact, evaluate (∂M/∂y – ∂N/∂x)/N. If this is a function of x only, find IF u(x) = exp(∫ that function dx).
- Step 4: Otherwise, evaluate (∂N/∂x – ∂M/∂y)/M. If this is a function of y only, find IF u(y) = exp(∫ that function dy).
- Step 5: If steps 3 and 4 fail, test if the equation is homogeneous and xM + yN ≠ 0. If yes, u = 1/(xM + yN).
- Step 6: Test if the equation is of the form y f(xy) dx + x g(xy) dy = 0 and xM – yN ≠ 0. If yes, u = 1/(xM – yN).
- Step 7: Multiply the old equation by the found IF u to get a new, exact equation. Check exactness if possible.
- Step 8: Solve the new exact equation using the method for exact equations.
Example 1: Solve the differential equation dy/dx = –(3xy + y²)/(x²+xy)
- Step 1: (3xy + y²) dx + (x² + xy) dy = 0. So M = 3xy + y², N = x² + xy.
- Step 2: ∂M/∂y = 3x + 2y, ∂N/∂x = 2x + y. Since ∂M/∂y ≠ ∂N/∂x, the equation is not exact.
- Step 3: Evaluate (∂M/∂y – ∂N/∂x)/N = (3x+2y – 2x – y)/(x²+xy) = (x+y)/(x(x+y)) = 1/x. This is a function of x only.
- Step 4: IF u(x) = exp( ∫ 1/x dx ) = e^{ln x} = x.
- Step 5: Multiply by x: (3x²y + xy²) dx + (x³ + x²y) dy = 0. This equation is exact.
- Step 6: Solve the exact equation. (The solution is not fully derived in the text but follows standard exact equation method.)
📌 Example: For the equation (3xy + y²) dx + (x² + xy) dy = 0, M=3xy+y², N=x²+xy. Not exact. (∂M/∂y – ∂N/∂x)/N = 1/x. IF u(x)=x. Multiplying gives the exact equation (3x²y+xy²)dx+(x³+x²y)dy=0.
⭐ Key Takeaways
The most critical concept is that when a differential equation is not exact, we can find an integrating factor (IF) u(x,y) to make it exact. The four cases provide systematic formulas: Case 1 for IF as a function of x only [u = exp(∫ ((∂M/∂y – ∂N/∂x)/N) dx)], Case 2 for IF as a function of y only [u = exp(∫ ((∂N/∂x – ∂M/∂y)/M) dy)], Case 3 for homogeneous equations [u = 1/(xM+yN)], and Case 4 for equations of the form y f(xy)dx + x g(xy)dy = 0 [u = 1/(xM-yN)]. The procedure is to test these cases in order, multiply the original equation by the found IF, and then solve the resulting exact equation. Memorizing the four IF formulas and the testing conditions is essential for exams.
🧠 Quick Revision Questions
- What is the condition for a differential equation M dx + N dy = 0 to be exact?
- What is the formula for the integrating factor u(x) in Case 1, and what condition must be satisfied to use it?
- What is the formula for the integrating factor u(y) in Case 2, and what condition must be satisfied to use it?
- When can the integrating factor u = 1/(xM + yN) be used?
- For the equation (3xy + y²) dx + (x² + xy) dy = 0, what is the integrating factor, and to which case does it belong?
📘 Lecture 8 — First Order Linear Equations & Special Integrating Factors
📖 Overview: This lecture extends the concept of exact differential equations by introducing methods to find integrating factors when equations are not exact. It then transitions to first-order linear differential equations, providing a systematic solution method using integrating factors and applying it to various examples, including initial value problems and equations with x as the dependent variable.
🗂️ Topics Covered
The lecture begins with a review of the exact equation solution process, then demonstrates how to find integrating factors when equations are not exact using formulas involving partial derivatives. Examples illustrate solving non-exact equations by finding the appropriate integrating factor, including cases where the integrating factor depends on x or y alone, or where the equation is homogeneous. The second half introduces the standard form of first-order linear differential equations, derives the integrating factor u(x), and presents the general solution formula. Multiple examples demonstrate solving linear equations with various functions p(x) and q(x), including trigonometric, rational, and initial value problems.
📝 Lecture Summary
Solving an Exact Equation
When an equation is exact, the function F(x, y) satisfies the system ∂F/∂x = M and ∂F/∂y = N. The process involves integrating the first equation to get F(x, y) = ∫M dx + θ(y), then differentiating with respect to y and using the second equation to find θ'(y). For example, with M = 3xy + y² and N = x² + xy: we integrate to get F(x, y) = (3/2)x²y + xy² + θ(y). Then ∂F/∂y = (3/2)x² + 2xy + θ'(y) = x² + xy, which gives θ'(y) = -(x²/2) - xy + (3/2)x² + 2xy = x² + xy, and since θ'(y) should have no x dependence, this verification step is crucial. The solution is F(x, y) = C, giving x²y + (3/2)x²y + 2xy² = C, or more specifically x²y + (x³/2) + (x²y²/2) = C.
🔑 Definition — Exact Equation: A differential equation M dx + N dy = 0 is exact if ∂M/∂y = ∂N/∂x.
Example 2 Solve (x² - 2x + 2y²)dx + 2xy dy = 0 Here M = x² - 2x + 2y², N = 2xy. ∂M/∂y = 4y, ∂N/∂x = 2y. Since ∂M/∂y ≠ ∂N/∂x, the equation is not exact. To find the integrating factor, compute (My - Nx)/N = (4y - 2y)/(2xy) = 2y/(2xy) = 1/x. Therefore, the I.F. is given by u = exp(∫(1/x)dx) = x. Multiplying the equation by x gives: (x³ - 2x² + 2xy²)dx + 2x²y dy = 0, which is exact. The solution is x⁴/4 - 2x³/3 + x²y² = C, or 3x⁴ - 8x³ + 12x²y² = C.
📐 Formula: Integrating Factor (I.F.) when (My - Nx)/N depends only on x: u(x) = exp(∫[(My - Nx)/N]dx)
Example 3 Solve dx + (x/y - sin y)dy = 0 M = 1, N = x/y - sin y. ∂M/∂y = 0, ∂N/∂x = 1/y. Since ∂M/∂y ≠ ∂N/∂x, not exact. Compute (Nx - My)/M = (1/y - 0)/1 = 1/y. Therefore, the I.F. is u(y) = exp(∫(1/y)dy) = y. Multiplying by y gives: y dx + (x - y sin y)dy = 0, or y dx + x dy - y sin y dy = 0, which is d(xy) - y sin y dy = 0. Integrating: xy + y cos y - sin y = C.
📐 Formula: Integrating Factor when (Nx - My)/M depends only on y: u(y) = exp(∫[(Nx - My)/M]dy)
Example 4 Solve (x²y - 2xy²)dx - (x³ - 3x²y)dy = 0 M = x²y - 2xy², N = -(x³ - 3x²y) = -x³ + 3x²y. Both M and N are homogeneous functions of degree 3. Compute xM + yN = x(x²y - 2xy²) + y(-x³ + 3x²y) = x³y - 2x²y² - x³y + 3x²y² = x²y² ≠ 0. Therefore, the I.F. is u = 1/(xM + yN) = 1/(x²y²). Multiplying the equation by u gives: ((1/y) - (2/x))dx + ((-x/y²) + (3/y))dy = 0. This new equation is exact. The solution is x/y - 2 ln|x| + 3 ln|y| = C.
📐 Formula: Integrating Factor for Homogeneous Equations: u = 1/(xM + yN), provided xM + yN ≠ 0.
💡 Why this matters: These special integrating factor formulas provide systematic methods to solve a wide range of non-exact equations without guessing, expanding the family of solvable differential equations.
Example 5 Solve y(xy + 2x²y²)dx + x(xy - x²y²)dy = 0 This equation is of the form y f(xy)dx + x g(xy)dy = 0. M = xy² + 2x²y³, N = x²y - x³y². Compute xM - yN = x(xy² + 2x²y³) - y(x²y - x³y²) = x²y² + 2x³y³ - x²y² + x³y³ = 3x³y³ ≠ 0. Therefore, the I.F. is u = 1/(xM - yN) = 1/(3x³y³). Multiplying by u gives: ((1/(3x²y)) + (2/(3x)))dx + ((1/(3xy²)) - (1/(3y)))dy = 0. The solution is 1/(3xy) + (2/3)ln|x| - (1/3)ln|y| = C, or -1/(xy) + 2 ln|x| - ln|y| = 3C.
📐 Formula: Integrating Factor for y f(xy) dx + x g(xy) dy = 0: u = 1/(xM - yN), provided xM - yN ≠ 0.
7 First Order Linear Equations
A first-order linear differential equation has the form a(x)dy/dx + b(x)y = c(x). It can be rewritten in standard form as dy/dx + p(x)y = q(x), where p(x) and q(x) are continuous functions.
🔑 Definition — First-Order Linear DE: A differential equation that can be written in the form dy/dx + p(x)y = q(x), where the dependent variable y and its derivative appear only linearly.
7.1 Method of Solution
The general solution of the first-order linear differential equation is given by: y = [∫u(x)q(x)dx + C] / u(x), where u(x) = exp(∫p(x)dx).
The function u(x) is called the integrating factor (I.F.).
Summary of Steps:
- Identify the equation as first-order linear and rewrite in the form dy/dx + p(x)y = q(x).
- Find the integrating factor: u(x) = e^(∫p(x)dx).
- Write down the general solution: y = (∫u(x)q(x)dx + C) / u(x).
- For an initial value problem (IVP), use the initial condition to find C.
- Plug in C to write the particular solution.
Example 1 Solve y' + tan(x)y = cos²(x), y(0) = 2 p(x) = tan(x), q(x) = cos²(x). ∫tan(x)dx = -ln|cos(x)| = ln|sec(x)|, so u(x) = e^(ln|sec(x)|) = sec(x). ∫u(x)q(x)dx = ∫sec(x)cos²(x)dx = ∫cos(x)dx = sin(x). General solution: y = (sin(x) + C)/sec(x) = (sin(x) + C)cos(x). Using y(0) = 2: 2 = (0 + C)(1) = C, so C = 2. Particular solution: y = (sin(x) + 2)cos(x).
📐 Formula: Integrating Factor for First-Order Linear DE: u(x) = e^(∫p(x)dx)
Example 2 Solve dy/dt - (2t/(1+t²))y = 2/(1+t²), y(0) = 0.4 p(t) = -2t/(1+t²), q(t) = 2/(1+t²). ∫p(t)dt = -ln|1+t²|, so u(t) = e^(-ln|1+t²|) = (1+t²)⁻¹. General solution: y = (1+t²)[∫(2/(1+t²)²)dt + C]. ∫(2/(1+t²)²)dt = tan⁻¹(t) + t/(1+t²) (evaluated using integration by parts). Therefore, y = (1+t²)[tan⁻¹(t) + t/(1+t²) + C] = (1+t²)tan⁻¹(t) + t + C(1+t²). Using y(0) = 0.4: 0.4 = (1)tan⁻¹(0) + 0 + C(1) = 0 + 0 + C, so C = 0.4. Particular solution: y = t + (1+t²)tan⁻¹(t) + 0.4(1+t²).
Example 3 Solve cos²(t)sin(t)y' = -cos³(t)y + 1, y(π/4) = 0 Rewrite in standard form: dy/dt + (cos(t)/sin(t))y = 1/(cos²(t)sin(t)). ∫(cos(t)/sin(t))dt = ln|sin(t)|, so u(t) = e^(ln|sin(t)|) = sin(t). ∫u(t)q(t)dt = ∫sin(t)(1/(cos²(t)sin(t)))dt = ∫(1/cos²(t))dt = tan(t). General solution: y = (tan(t) + C)/sin(t) = sec(t) + C csc(t). Using y(π/4) = 0: 0 = sec(π/4) + C csc(π/4) = √2 + C√2, so C = -1. Particular solution: y = sec(t) - csc(t).
Example 4 Solve (x + 2y³)dy/dx = y This is not linear in y. Rewrite as dx/dy = (x + 2y³)/y, or dx/dy - (1/y)x = 2y². This is linear in x, with p(y) = -1/y, q(y) = 2y². ∫p(y)dy = -ln|y|, so I.F. = e^(-ln|y|) = 1/y. d/dy(x/y) = 2y, so x/y = ∫2y dy = y² + C. Solution: x = y(y² + C) = y³ + Cy.
💡 Why this matters: When an equation is not linear in y, it may be linear in x. Interchanging the roles of dependent and independent variables can simplify the problem.
Example 5 Solve (x-1)³dy/dx + 4(x-1)²y = x + 1 Rewrite: dy/dx + (4/(x-1))y = (x+1)/(x-1)³. p(x) = 4/(x-1), so I.F. = exp(∫4/(x-1)dx) = exp(4ln|x-1|) = (x-1)⁴. Multiplying: (x-1)⁴dy/dx + 4(x-1)³y = x² - 1. d/dx[(x-1)⁴y] = x² - 1. Integrating: (x-1)⁴y = ∫(x² - 1)dx = x³/3 - x + C. Solution: y = (x³/3 - x + C)/(x-1)⁴.
7.2 Exercise
Practice problems include solving differential equations by finding an integrating factor and solving first-order linear equations using the integrating factor method.
⭐ Key Takeaways
For non-exact equations, the integrating factor can be found systematically using formulas involving the partial derivatives of M and N, specifically u = exp(∫[(My - Nx)/N]dx) when this expression depends only on x, or u = exp(∫[(Nx - My)/M]dy) when it depends only on y. For homogeneous equations of the form M dx + N dy = 0 where both M and N are homogeneous of the same degree, the integrating factor is u = 1/(xM + yN). For equations of the form y f(xy)dx + x g(xy)dy = 0, the integrating factor is u = 1/(xM - yN). First-order linear differential equations in the form dy/dx + p(x)y = q(x) have a standard solution method using the integrating factor u(x) = e^(∫p(x)dx), giving the general solution y = (∫u(x)q(x)dx + C)/u(x). Always verify whether an equation can be treated as linear in x instead of y to expand solution possibilities.
🧠 Quick Revision Questions
- What is the condition for a differential equation M dx + N dy = 0 to be exact? What is the solution procedure?
- Derive the integrating factor formula for a non-exact equation when (∂M/∂y - ∂N/∂x)/N is a function of x only.
- How do you find the integrating factor for a homogeneous differential equation M dx + N dy = 0?
- State the standard form of a first-order linear differential equation and write the general solution formula.
- Solve the initial value problem: dy/dx + (2x+1)/x * y = e^(-2x), y(1) = 0, showing all steps including finding the integrating factor.