Solving First Order Linear Differential Equations

9 min read

Solving First Order Linear Differential Equations: A Complete Guide

Introduction

Solving first order linear differential equations is one of the foundational skills in calculus and differential equations, serving as a gateway to more advanced mathematical modeling in science, engineering, and economics. A first order linear differential equation is an equation that involves the first derivative of an unknown function and can be written in the standard form dy/dx + P(x)y = Q(x), where P(x) and Q(x) are continuous functions of the independent variable x. The term "linear" means that the dependent variable y and its derivative dy/dx appear only to the first power and are not multiplied together. This article provides a thorough, step-by-step exploration of how to solve these equations, why the methods work, where they are applied in the real world, and the common pitfalls students and practitioners encounter. Whether you are a beginner encountering differential equations for the first time or a professional refreshing your mathematical toolkit, this guide will equip you with a deep and practical understanding of the subject.

Detailed Explanation

What Is a First Order Linear Differential Equation?

A differential equation is any equation that relates an unknown function to one or more of its derivatives. When the highest derivative present in the equation is the first derivative, the equation is called a first order differential equation. When, in addition, the unknown function y and its derivative dy/dx appear linearly (meaning no exponents, no products of y with itself, and no transcendental functions of y), the equation is classified as linear.

Easier said than done, but still worth knowing.

dy/dx + P(x)y = Q(x)

Here, P(x) is the coefficient function multiplying y, and Q(x) is the nonhomogeneous term (or forcing function). In practice, the goal of solving such an equation is to find an explicit or implicit formula for y as a function of x that satisfies the equation for all values of x in a given interval. If Q(x) = 0, the equation is called homogeneous; otherwise, it is nonhomogeneous. The solution will always contain an arbitrary constant C, reflecting the fact that a first order differential equation has a one-parameter family of solutions, and an initial condition is needed to pin down a unique particular solution.

Why Do These Equations Matter?

First order linear differential equations arise naturally whenever a quantity changes at a rate that depends linearly on the quantity itself and on an external influence. Now, this includes Newton's law of cooling, RC circuit analysis in electrical engineering, population growth with harvesting, chemical reaction kinetics, drug concentration modeling in pharmacokinetics, and continuous compounding with deposits or withdrawals in finance. On the flip side, in each of these contexts, the independent variable (time, position, etc. ) and the dependent variable (temperature, charge, population, concentration, balance) are linked through a linear relationship involving the first derivative. Mastering the solution techniques for these equations therefore opens the door to modeling and predicting behavior across a remarkably wide range of disciplines.

Step-by-Step Concept Breakdown

Step 1: Write the Equation in Standard Form

Before applying any solution method, you must ensure the equation is in the standard form dy/dx + P(x)y = Q(x). This means the coefficient of dy/dx must be exactly 1. If the equation is given in a different form, such as 2dy/dx + 3xy = sin(x), you must divide every term by the coefficient of dy/dx (in this case, divide by 2) to obtain dy/dx + (3x/2)y = sin(x)/2. This step is critical because the subsequent method depends on correctly identifying P(x) and Q(x).

Step 2: Find the Integrating Factor

The integrating factor, denoted by μ(x), is the key tool that transforms the left-hand side of the equation into an exact derivative. The integrating factor is defined as:

μ(x) = e^(∫P(x)dx)

You compute the indefinite integral of P(x), then exponentiate the result. A constant of integration is not needed at this stage because any constant would simply cancel out in the final solution. The integrating factor is chosen specifically so that when you multiply the entire differential equation by μ(x), the left-hand side becomes the derivative of the product μ(x)y, by the reverse product rule: d/dx[μ(x)y] = μ(x)dy/dx + μ(x)P(x)y Took long enough..

Not obvious, but once you see it — you'll see it everywhere.

Step 3: Multiply the Entire Equation by the Integrating Factor

Once you have μ(x), multiply both sides of the standard form equation by it:

μ(x)dy/dx + μ(x)P(x)y = μ(x)Q(x)

By construction, the left-hand side is now exactly d/dx[μ(x)y]. This is the entire magic of the method — it reduces the differential equation to a form that can be integrated directly.

Step 4: Integrate Both Sides

Now integrate both sides with respect to x:

∫d/dx[μ(x)y]dx = ∫μ(x)Q(x)dx

The left side simplifies to μ(x)y, and the right side gives some function of x plus the constant of integration C:

μ(x)y = ∫μ(x)Q(x)dx + C

Step 5: Solve for y

Finally, divide both sides by μ(x) to isolate y:

y = (1/μ(x))[∫μ(x)Q(x)dx + C]

This expression is the general solution of the first order linear differential equation. If an initial condition such as y(x₀) = y₀ is provided, you substitute those values to determine the specific value of C, yielding the particular solution.

Real Examples

Example 1: A Simple Homogeneous Equation

Consider the equation dy/dx + 2y = 0. The integrating factor is μ(x) = e^(∫2dx) = e^(2x). Multiplying through gives e^(2x)dy/dx + 2e^(2x)y = 0, which is d/dx[e^(2x)y] = 0. Here, P(x) = 2 and Q(x) = 0. Integrating both sides yields e^(2x)y = C, so the general solution is y = Ce^(-2x). This represents exponential decay, a model that appears in radioactive decay, cooling processes, and capacitor discharge.

Example 2: A Nonhomogeneous Equation with a Physical Application

Suppose a tank contains water with a salt concentration that changes over time according to dy/dt + (1/10)y = 3, where y is the amount of salt in grams at time t in minutes. Here, P(t) = 1/10 and Q(t) = 3. The integrating factor is **μ(t) = e^(∫(1/10)dt) = e^(t

This changes depending on context. Keep that in mind.

/10)**. Multiplying the entire equation by e^(t/10) gives:

e^(t/10)dy/dt + (1/10)e^(t/10)y = 3e^(t/10)

The left-hand side is d/dt[e^(t/10)y]. Integrating both sides:

e^(t/10)y = ∫3e^(t/10)dt = 3 · 10 · e^(t/10) + C = 30e^(t/10) + C

Dividing by e^(t/10):

y = 30 + Ce^(-t/10)

If the tank initially contains no salt, then y(0) = 0, which gives 0 = 30 + C, so C = -30. The particular solution is y(t) = 30(1 - e^(-t/10)). As time increases, the exponential term vanishes and the salt amount approaches a steady-state value of 30 grams. This behavior is characteristic of first-order linear systems approaching equilibrium — the transient part Ce^(-t/10) decays over time, leaving only the steady-state response driven by the constant input rate Took long enough..

Example 3: An Equation Requiring Algebraic Rearrangement

Not every differential equation is presented in standard form. Consider xdy/dx - 2y = x³. Before applying the method, you must divide through by x to obtain the standard form:

dy/dx - (2/x)y = x²

Now P(x) = -2/x and Q(x) = x². The integrating factor is:

μ(x) = e^(∫-2/x dx) = e^(-2ln|x|) = e^(ln|x|⁻²) = 1/x²

Multiplying through by 1/x²:

(1/x²)dy/dx - (2/x³)y = 1

The left-hand side is d/dx[y/x²]. Integrating both sides:

y/x² = ∫1dx = x + C

So the general solution is y = x³ + Cx². This example illustrates the critical importance of first rewriting the equation in standard form before computing the integrating factor — skipping this step would lead to an incorrect P(x) and, consequently, a wrong integrating factor.


Why the Method Works: A Deeper Look

The integrating factor method is not arbitrary — it is derived from the product rule of differentiation. So the integrating factor is the unique (up to a multiplicative constant, which is irrelevant) function that "completes" the product rule structure, turning a sum of two terms into a single recognizable derivative. This is itself a separable differential equation, and solving it yields exactly μ(x) = e^(∫P(x)dx). Recall that d/dx[μ(x)y] = μ(x)dy/dx + μ(x)y', where y' denotes the derivative of y with respect to x. For the left-hand side of a standard-form linear equation to match this expanded product rule, we need μ'(x) = μ(x)P(x). This elegant construction is what makes the method both systematic and reliable.

Limitations and Extensions

The integrating factor method applies specifically to first-order linear differential equations. It does not work for nonlinear equations, such as Bernoulli equations or Riccati equations, without first transforming them into linear form through an appropriate substitution. Additionally, the method assumes that P(x) and Q(x) are continuous on the interval of interest; discontinuities in these functions can create intervals where the solution behaves differently or does not exist.

For higher-order linear differential equations, analogous techniques exist — such as the method of undetermined coefficients and variation of parameters — but they require more sophisticated tools. The integrating factor, however, remains one of the most fundamental and widely applicable techniques in differential equations, serving as a gateway to understanding more advanced methods in both ordinary and partial differential equations.

Conclusion

The integrating factor method provides a clean, mechanical procedure for solving any first-order linear differential equation: write the equation in standard form, compute μ(x) = e^(∫P(x)dx), multiply through, recognize the left-hand side as an exact derivative, integrate both sides, and solve for y. Its power lies in its generality — whether the equation is homogeneous or nonhomogeneous, whether the coefficients are constants or functions of x, the method proceeds identically. In applied fields such as physics, engineering, biology, and economics, many natural processes are modeled by first-order linear equations, making this technique an indispensable tool in the mathematician's and scientist's toolkit.

Fresh from the Desk

Dropped Recently

Related Territory

Parallel Reading

Thank you for reading about Solving First Order Linear Differential Equations. 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