Study Notes on Linear and Bernoulli Equations and Second-Order ODEs

First-Order Linear Ordinary Differential Equations (ODEs)

  • Definition of a First-Order Linear ODE: A first-order linear ordinary differential equation is defined by its standard mathematical form:

    • dydx+P(x)y=Q(x)\frac{dy}{dx} + P(x) y = Q(x)

    • In this context, P(x)P(x) and Q(x)Q(x) are given continuous functions of the independent variable xx.

  • Integrating Factor Method (Theorem 4.1): This method identifies a specific function, known as the integrating factor (IF), denoted as μ(x)\mu(x), which simplifies the ODE into a solvable perfect derivative.

    • The formula for the integrating factor is: μ(x)=eP(x)dx\mu(x) = e^{\int P(x) \,dx}.

    • When the standard form equation is multiplied by μ(x)\mu(x), the left-hand side becomes: ddx[μ(x)y]=μ(x)Q(x)\frac{d}{dx} [\mu(x) y] = \mu(x) Q(x).

    • By integrating both sides with respect to xx, the general solution is obtained: yeP(x)dx=Q(x)eP(x)dxdx+Cy \cdot e^{\int P(x) \,dx} = \int Q(x) e^{\int P(x) \,dx} \,dx + C.

  • Step-by-Step Procedure for Solving First-Order Linear ODEs:

    1. Standardize: Write the given ODE in the standard form: dydx+P(x)y=Q(x)\frac{dy}{dx} + P(x)y = Q(x).

    2. Calculate Integrated Exponent: Compute the integrating factor: μ=eP(x)dx\mu = e^{\int P(x) \,dx}.

    3. Distribute: Multiply the entire equation by the calculated μ\mu.

    4. Identify Derivative: Recognize that the left side of the equation is now equal to d(μy)dx\frac{d(\mu y)}{dx}.

    5. Integrate: Integrate both sides of the equation: μy=μQ(x)dx+C\mu y = \int \mu Q(x) \,dx + C.

    6. Isolate Variable: Divide by μ\mu to solve for the dependent variable yy.

  • Example 4.1: Solve xdydx+y=x3x \frac{dy}{dx} + y = x^3

    • Divide through by xx to standardize: dydx+(1x)y=x2\frac{dy}{dx} + (\frac{1}{x})y = x^2.

    • Identify components: P(x)=1xP(x) = \frac{1}{x} and Q(x)=x2Q(x) = x^2.

    • Calculate IF: μ=e(1x)dx=eln(x)=x\mu = e^{\int (\frac{1}{x}) \,dx} = e^{\ln(x)} = x.

    • Multiply through by xx: d(xy)dx=x3\frac{d(xy)}{dx} = x^3.

    • Integrate both sides: xy=x44+Cxy = \frac{x^4}{4} + C.

    • Final Solution: y=x34+Cxy = \frac{x^3}{4} + \frac{C}{x}.

  • Example 4.2: Solve dydx2y=4\frac{dy}{dx} - 2y = 4

    • Identify components: P(x)=2P(x) = -2 and Q(x)=4Q(x) = 4.

    • Calculate IF: μ=e(2)dx=e2x\mu = e^{\int (-2) \,dx} = e^{-2x}.

    • Multiply through: d(ye2x)dx=4e2x\frac{d(y e^{-2x})}{dx} = 4 e^{-2x}.

    • Integrate: ye2x=2e2x+Cy e^{-2x} = -2 e^{-2x} + C.

    • General Solution: y=2+Ce2xy = -2 + C e^{2x}.

  • Example 4.3: Solve x2dydx3y=xx^2 \frac{dy}{dx} - 3y = \sqrt{x}

    • Standardize by dividing by x2x^2: dydx(3x2)y=x3/2\frac{dy}{dx} - (\frac{3}{x^2})y = x^{-3/2}.

    • Identify components: P(x)=3x2P(x) = -\frac{3}{x^2}.

    • Calculate IF: μ=e3x2dx=e3/x\mu = e^{\int -3x^{-2} \,dx} = e^{3/x}.

    • Multiply through: d(ye3/x)dx=x3/2e3/x\frac{d(y e^{3/x})}{dx} = x^{-3/2} e^{3/x}.

    • The solution is then obtained by integrating the right-hand side using appropriate methods such as substitution or integration by parts.

Bernoulli Differential Equations

  • Definition of a Bernoulli Equation: A Bernoulli equation is a non-linear first-order ODE expressed as:

    • dydx+P(x)y=Q(x)yn\frac{dy}{dx} + P(x) y = Q(x) y^n

    • The variable nn is a real number.

    • If n=0n = 0, the equation is linear.

    • If n=1n = 1, the equation is separable.

    • For all other values where n0,1n \neq 0, 1, the equation is non-linear but can be linearized via substitution.

  • Reduction to Linear Form (Theorem 4.2):

    • Divide the entire equation by yny^n: yndydx+P(x)y1n=Q(x)y^{-n} \frac{dy}{dx} + P(x) y^{1-n} = Q(x).

    • Introduce a new variable: Let z=y1nz = y^{1-n}.

    • Determine the derivative of the substitution: dzdx=(1n)yndydx\frac{dz}{dx} = (1-n) y^{-n} \frac{dy}{dx}.

    • Substitute these into the equation to transform it into a linear ODE: dzdx+(1n)P(x)z=(1n)Q(x)\frac{dz}{dx} + (1-n) P(x) z = (1-n) Q(x).

    • Solve for zz, then recover yy using the relation z=y1nz = y^{1-n}.

  • Step-by-Step Procedure for Bernoulli Equations:

    1. Identify the values of P(x)P(x), Q(x)Q(x), and the exponent nn from the initial ODE.

    2. Divide the equation by yny^n to reach the form: yndydx+P(x)y1n=Q(x)y^{-n} \frac{dy}{dx} + P(x) y^{1-n} = Q(x).

    3. Apply the substitution z=y1nz = y^{1-n} and compute dzdx=(1n)yndydx\frac{dz}{dx} = (1-n) y^{-n} \frac{dy}{dx}.

    4. Multiply the equation by (1 – n)\text{(1 – n)} to establish the linear form: dzdx+(1n)P(x)z=(1n)Q(x)\frac{dz}{dx} + (1-n) P(x) z = (1-n) Q(x).

    5. Solve this linear ODE utilizing the Integrating Factor method.

    6. Back-substitute to find the final solution for yy.

  • Example 4.4: Solve dydx+yx=y3x\frac{dy}{dx} + \frac{y}{x} = \frac{y^3}{x}

    • Identify parameters: n=3n = 3, P(x)=1xP(x) = \frac{1}{x}, and Q(x)=1xQ(x) = \frac{1}{x}.

    • Divide by y3y^3: y3dydx+(1x)y2=1xy^{-3} \frac{dy}{dx} + (\frac{1}{x}) y^{-2} = \frac{1}{x}.

    • Substitute z=y2z = y^{-2}, meaning dzdx=2y3dydx\frac{dz}{dx} = -2 y^{-3} \frac{dy}{dx}.

    • Multiply by 2-2 to linearize: dzdx(2x)z=2x\frac{dz}{dx} - (\frac{2}{x})z = -\frac{2}{x}.

    • Solve linearized ODE (P=2xP = -\frac{2}{x}, Q=2xQ = -\frac{2}{x}):

      • μ=e2xdx=x2\mu = e^{\int -\frac{2}{x} \,dx} = x^{-2}.

      • d(x2z)dx=2x3\frac{d(x^{-2} z)}{dx} = -\frac{2}{x^3}.

      • x2z=1x2+Cx^{-2} z = \frac{1}{x^2} + C.

      • z=1+Cx2z = 1 + Cx^2.

    • Recover yy: Since z=y2z = y^{-2}, then y2=1+Cx2y^{-2} = 1 + Cx^2, leading to y=11+Cx2y = \frac{1}{\sqrt{1 + Cx^2}}.

  • Example 4.5: Solve dydx2xy=2xy3\frac{dy}{dx} - 2xy = 2xy^3

    • Identify parameters: n=3n = 3, P(x)=2xP(x) = -2x, Q(x)=2xQ(x) = 2x.

    • Let z=y2z = y^{-2}, hence dzdx=2y3dydx\frac{dz}{dx} = -2y^{-3}\frac{dy}{dx}.

    • Multiply by 2y3-2y^{-3}: dzdx+4xz=4x\frac{dz}{dx} + 4xz = -4x.

    • Calculate IF: μ=e4xdx=e2x2\mu = e^{\int 4x \,dx} = e^{2x^2}.

    • Set up derivative: d(ze2x2)dx=4xe2x2\frac{d(z e^{2x^2})}{dx} = -4x e^{2x^2}.

    • Integrate: ze2x2=4xe2x2dx=e2x2+Cz e^{2x^2} = -4 \int x e^{2x^2} \,dx = -e^{2x^2} + C.

    • Solve for zz: z=1+Ce2x2z = -1 + C e^{-2x^2}.

    • Final Solution: y2=1+Ce2x2y^{-2} = -1 + C e^{-2x^2} or 1=y2(Ce2x21)1 = y^2 (C e^{-2x^2} - 1).

Tutor-Marked Assignment — Section 2, Unit 2

  • Part 1: Solve the following linear ODEs:

    • (i) xdydx+y=x3x \frac{dy}{dx} + y = x^3

    • (ii) xdydx5y=x2x \frac{dy}{dx} - 5y = x^2

    • (iii) x2dydx3y=xx^2 \frac{dy}{dx} - 3y = \sqrt{x}

    • (iv) dydx+ycot(x)=cos(x)\frac{dy}{dx} + y \cot(x) = \cos(x)

    • (v) (1 - x^2) \frac{dy}{dx} - xy = 1

  • Part 2: Solve the following Bernoulli equations:

    • (i) x2yx3dydx=4y4cos(x)x^2 y - x^3 \frac{dy}{dx} = 4y^4 \cos(x)

    • (ii) 2y3dydx=y4e3x2y - 3 \frac{dy}{dx} = y^4 e^{3x}

    • (iii) y2xdydx=x(x+1)y3y - 2x \frac{dy}{dx} = x(x+1)y^3

    • (iv) dydx+y=xy3\frac{dy}{dx} + y = xy^3

    • (v) dydxy=x\frac{dy}{dx} - y = x

    • (vi) xdydx+2y=1x3x \frac{dy}{dx} + 2y = \frac{1}{x^3}

    • (vii) dydx2xy=6y3x2\frac{dy}{dx} - 2xy = 6y^3 x^2

Solution of Second-Order Ordinary Differential Equations

  • Context and Application: Second-order ODEs are fundamental in modeling physical systems including mechanics (e.g., spring-mass systems) and electrical circuits. This study focuses specifically on second-order linear ODEs with constant coefficients.

  • General Form of Second-Order Linear ODEs (Definition 5.1):

    • A general second-order linear ODE is written as: a(x)y+b(x)y+c(x)y=f(x)a(x) y'' + b(x) y' + c(x) y = f(x).

    • The terms a(x)a(x), b(x)b(x), c(x)c(x), and f(x)f(x), are known functions of xx.

    • Homogeneous vs. Non-Homogeneous:

      • If f(x)0f(x) \equiv 0, the equation is classified as homogeneous.

      • If f(x)0f(x) \neq 0, the equation is non-homogeneous.

    • Constant Coefficients: If the functions a,b,ca, b, c are constants rather than functions of xx, the equation is simplified to: ay+by+cy=f(x)a y'' + b y' + c y = f(x).

    • The homogeneous part of this constant coefficient equation is: ay+by+cy=0a y'' + b y' + c y = 0.

  • The Auxiliary (Characteristic) Equation:

    • To solve the constant-coefficient homogeneous equation, a trial solution of the form y=emxy = e^{mx} is used.

    • Differentiating yields y=memxy' = m e^{mx} and y=m2emxy'' = m^2 e^{mx}.

    • Substituting these into the equation results in: a(m2emx)+b(memx)+c(emx)=0a(m^2 e^{mx}) + b(m e^{mx}) + c(e^{mx}) = 0.

    • Since emxe^{mx} is never zero, we divide by it to obtain the Auxiliary Equation: am2+bm+c=0a m^2 + b m + c = 0.

    • The roots of this quadratic equation (m1m_1 and m2m_2) define the form of the Complementary Function (C.F.), denoted as ycy_c.

Cases of the Auxiliary Equation

  • Case I: Two Distinct Real Roots (m1m2m_1 \neq m_2, both real):

    • If the auxiliary equation provides two unique real roots, the solution is the sum of two exponential terms.

    • General Solution: yc=c1em1x+c2em2xy_c = c_1 e^{m_1 x} + c_2 e^{m_2 x}, where c1c_1 and c2c_2 are arbitrary constants.

    • Example 5.1: Solve y+5y+6y=0y'' + 5y' + 6y = 0

      • Auxiliary equation: m2+5m+6=0m^2 + 5m + 6 = 0.

      • Factoring: (m+2)(m+3)=0    m1=2,m2=3(m + 2)(m + 3) = 0 \implies m_1 = -2, m_2 = -3.

      • Solution: y=c1e2x+c2e3xy = c_1 e^{-2x} + c_2 e^{-3x}.

    • Example 5.2: Solve y3y4y=0y'' - 3y' - 4y = 0

      • Auxiliary equation: m23m4=0m^2 - 3m - 4 = 0.

      • Factoring: (m4)(m+1)=0    m1=4,m2=1(m - 4)(m + 1) = 0 \implies m_1 = 4, m_2 = -1.

      • Solution: y=c1e4x+c2exy = c_1 e^{4x} + c_2 e^{-x}.

  • Case II: Repeated (Equal) Real Roots (m1=m2=mm_1 = m_2 = m):

    • If there is a repeated real root of multiplicity 2, an additional factor of xx is introduced to ensure the solutions remain linearly independent.

    • General Solution: yc=(c1+c2x)emxy_c = (c_1 + c_2 x) e^{mx}.

    • Example 5.3: Solve y6y+9y=0y'' - 6y' + 9y = 0

      • Auxiliary equation: m26m+9=0m^2 - 6m + 9 = 0.

      • Factoring: (m3)2=0    m=3(m - 3)^2 = 0 \implies m = 3.

      • Solution: y=(c1+c2x)e3xy = (c_1 + c_2 x) e^{3x}.

    • Example 5.4: Solve y+4y+4y=0y'' + 4y' + 4y = 0

      • Auxiliary equation: m2+4m+4=0m^2 + 4m + 4 = 0.

      • Factoring: (m+2)2=0    m=2(m + 2)^2 = 0 \implies m = -2.

      • Solution: y=(c1+c2x)e2xy = (c_1 + c_2 x) e^{-2x}.

  • Case III: Complex Conjugate Roots (m=α±iβm = \alpha \pm i\beta):

    • If the roots are complex conjugate pairs, where α\alpha is the real part and β\beta is the imaginary part (β0\beta \neq 0), the solution utilizes Euler's formula: eiβx=cos(βx)+isin(βx)e^{i\beta x} = \cos(\beta x) + i \sin(\beta x).

    • General Solution: yc=eαx(c1cos(βx)+c2sin(βx))y_c = e^{\alpha x} (c_1 \cos(\beta x) + c_2 \sin(\beta x)).

    • Special Case - Purely Imaginary Roots: If α=0\alpha = 0, the solution is simply: yc=c1cos(βx)+c2sin(βx)y_c = c_1 \cos(\beta x) + c_2 \sin(\beta x).

    • Example 5.5: Solve y+4y+13y=0y'' + 4y' + 13y = 0

      • Auxiliary equation: m2+4m+13=0m^2 + 4m + 13 = 0.

      • Quadratic formula: m=4±16522=4±362=2±3im = \frac{-4 \pm \sqrt{16-52}}{2} = \frac{-4 \pm \sqrt{-36}}{2} = -2 \pm 3i.

      • Identity: α=2,β=3\alpha = -2, \beta = 3.

      • General solution: y=e2x(c1cos(3x)+c2sin(3x))y = e^{-2x} (c_1 \cos(3x) + c_2 \sin(3x)).

    • Example 5.6: Solve y+4y=0y'' + 4y = 0

      • Auxiliary equation: m2+4=0    m=±2im^2 + 4 = 0 \implies m = \pm 2i.

      • Identity: α=0,β=2\alpha = 0, \beta = 2.

      • General solution: y=c1cos(2x)+c2sin(2x)y = c_1 \cos(2x) + c_2 \sin(2x).