How To Solve First Order Linear Differential Equation

4 min read

Solving first-order linear differential equations (DEs) is a fundamental skill in mathematics, physics, and engineering. Also, mastering their solution provides powerful tools for understanding dynamic systems. But these equations model a vast array of real-world phenomena, from the motion of objects under resistance to the growth of populations in controlled environments. This guide will walk you through the systematic approach to solving these equations, explain the underlying principles, and address common questions.

Understanding First-Order Linear Differential Equations

A first-order linear differential equation takes the standard form:

y' + P(x) y = Q(x)

Here, y' represents the derivative of y with respect to x, P(x) and Q(x) are known functions of x (often constants). The key is that y appears only to the first power (linear) and its derivative is present (first-order). Examples include:

  • y' + 2y = 3x (P(x)=2, Q(x)=3x)
  • dy/dx + 3y/x = sin(x) (P(x)=3/x, Q(x)=sin(x))

The goal is to find the function y(x) that satisfies this equation.

The Solution Process: Step-by-Step

Solving this specific form requires a clever technique involving an integrating factor (IF). The integrating factor is a function, μ(x), chosen to make the left side of the equation the derivative of a product. The steps are:

  1. Identify P(x) and Q(x): Write the equation in the standard form y' + P(x)y = Q(x). This is crucial.
  2. Calculate the Integrating Factor (IF): Compute the integrating factor as μ(x) = e^∫P(x) dx. This exponent is the integral of P(x) with respect to x.
  3. Multiply Both Sides by the IF: Multiply every term in the equation (both y' + P(x)y and Q(x)) by μ(x). The left side should now simplify to the derivative of the product (μ(x)y).
  4. Integrate Both Sides: Integrate both sides of the resulting equation. The left side becomes ∫(μ(x)y)' dx = μ(x)y + C.
  5. Solve for y(x): Isolate y(x) by dividing both sides by μ(x). Remember to include the constant of integration, C.

Example: Solving y' + 2y = 3x

  1. Identify P and Q: P(x) = 2, Q(x) = 3x.
  2. Calculate IF: μ(x) = e^∫2 dx = e^(2x).
  3. Multiply by IF: Multiply the entire equation by e^(2x):
    • e^(2x) * y' + e^(2x) * 2y = e^(2x) * 3x
    • Which simplifies to: (e^(2x) y)' = 3x e^(2x)
  4. Integrate Both Sides: Integrate both sides with respect to x:
    • ∫(e^(2x) y)' dx = ∫3x e^(2x) dx
    • e^(2x) y = ∫3x e^(2x) dx + C
  5. Solve for y(x): Use integration by parts to find ∫x e^(2x) dx (since 3x e^(2x) = 3 * x * e^(2x)):
    • Let u = x, dv = e^(2x) dx → du = dx, v = (1/2)e^(2x)
    • ∫x e^(2x) dx = x*(1/2)e^(2x) - ∫(1/2)e^(2x) dx = (1/2)x e^(2x) - (1/4)e^(2x) + K (where K is a constant)
    • Because of this, e^(2x) y = 3[(1/2)x e^(2x) - (1/4)e^(2x)] + C = (3/2)x e^(2x) - (3/4)e^(2x) + C
    • Divide both sides by e^(2x): y(x) = (3/2)x - 3/4 + C e^(-2x)

The general solution is y(x) = (3/2)x - 3/4 + C e^(-2x).

The Scientific Explanation: Why the Integrating Factor Works

The integrating factor method exploits a specific property of differentiation. Plus, consider the product rule: (u v)' = u' v + u v'. If you have an expression like u' v + u v', it's the derivative of (u v). The integrating factor μ(x) is designed so that when multiplied by the left side of the equation (y' + P(x)y), it transforms it into (μ(x) y)'.

Specifically, if we set μ'(x) = μ(x) P(x), then the derivative of (μ(x) y) is μ'(x) y + μ(x) y' = μ(x) P(x) y + μ(x) y' = μ(x) (y' + P(x)y). Multiplying the original DE by μ(x) makes the left side exactly this derivative. Integrating both sides then allows us to find μ(x) y, and solving for y gives the solution.

Frequently Asked Questions (FAQ)

  1. What's the difference between a linear and nonlinear DE?
    • A linear DE has the dependent variable (y) and its derivative(s) appearing only to the first power and not multiplied together. Nonlinear DEs involve higher powers, products, or nonlinear functions of y or its derivatives. The solving techniques differ significantly.
  2. What if P(x) is zero?
    • If P(x) = 0, the equation simplifies to y' = Q(x). This is a first-order DE where the derivative is directly equal to a function of x. The solution is simply y(x) = ∫Q(x) dx + C.
  3. What if the integral for the integrating factor is difficult?
    • While ∫P(x) dx is often straightforward, complex P(x) might make it challenging. Sometimes, the equation can be rewritten or simplified. Numerical methods can also be used if an analytical solution is impractical.
  4. How do I handle initial conditions?
    • Once you have the general solution
New In

Just Made It Online

Others Went Here Next

A Few More for You

Thank you for reading about How To Solve First Order Linear Differential Equation. We hope the information has been useful. Feel free to contact us if you have any questions. See you next time — don't forget to bookmark!
⌂ Back to Home