How To Solve First Order Linear Differential Equation: Step-by-Step Guide

10 min read

How to Solve First Order Linear Differential Equations (Without Losing Your Mind)

Let’s get real for a second. If you’re staring at a differential equation right now, wondering how to make sense of it, you’re not alone. These equations pop up everywhere — in physics, engineering, economics, and even biology. And while they might seem intimidating at first, there’s a method that makes them manageable. It’s called the integrating factor method, and once you get the hang of it, solving first order linear differential equations becomes almost mechanical.

But here’s the thing — most explanations out there either oversimplify or drown you in symbols. So by the end, you’ll not only know how to solve these equations, but you’ll understand why the method works. So let’s walk through this together, step by step, like we’re figuring it out over coffee. And that’s worth more than memorizing steps.


What Is a First Order Linear Differential Equation?

At its core, a first order linear differential equation is an equation that involves a function and its first derivative. The "linear" part means that the function and its derivative are only raised to the first power and aren’t multiplied together. That might sound abstract, but it’s actually a relief — nonlinear equations are a whole different beast.

The standard form looks like this:

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

Here, y is the unknown function, and P(x) and Q(x) are known functions of x. The goal is to find y in terms of x.

Think of it like this: you’re trying to find a function whose rate of change (the derivative) plus some multiple of itself equals another known quantity. Sounds like a puzzle, right? And it is — but the integrating factor is the key piece that makes it solvable.


Why It Matters (And Why You Should Care)

These equations aren’t just math exercises. They model real-world phenomena. For example:

  • Population Growth: The rate of change of a population might depend on the current population size.
  • Newton’s Law of Cooling: The rate at which an object cools is proportional to the temperature difference between the object and its surroundings.
  • Mixing Problems: The concentration of a substance in a tank changes over time as more fluid flows in and out.

Understanding how to solve these equations lets you predict future states in systems. That’s powerful. And honestly, once you master the integrating factor method, you’ll start seeing these patterns everywhere The details matter here. And it works..


How It Works: The Integrating Factor Method

Solving a first order linear differential equation is a process. Let’s break it down into digestible steps.

Step 1: Get It Into Standard Form

Before you do anything else, make sure your equation is in the standard form:

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

If it’s not, rearrange it. Take this: if you have something like:

$ 2\frac{dy}{dx} + 3y = x $

Divide every term by 2 to get:

$ \frac{dy}{dx} + \frac{3}{2}y = \frac{x}{2} $

Now it’s in standard form with P(x) = 3/2 and Q(x) = x/2.

Step 2: Find the Integrating Factor

The integrating factor, μ(x), is defined as:

$ \mu(x) = e^{\int P(x) dx} $

This is where the magic happens. Multiplying both sides of the equation by μ(x) turns the left side into the derivative of a product. Let’s see how.

Take our example where P(x) = 3/2. Then:

$ \mu(x) = e^{\int \frac{3}{2} dx} = e^{\frac{3}{2}x} $

Multiply both sides of the standard form equation by μ(x):

$ e^{\frac{3}{2}x} \frac{dy}{dx} + e^{\frac{3}{2}x} \cdot \frac{3}{2} y = e^{\frac{3}{2}x} \cdot \frac{x}{2} $

The left side is now the derivative of e^(3/2 x) · y. That’s the whole

Step 3: Recognize the Product Rule

Recall the product rule for differentiation:

[ \frac{d}{dx}\bigl[u(x)v(x)\bigr]=u'(x)v(x)+u(x)v'(x). ]

If you compare this with the left‑hand side of the multiplied equation,

[ e^{\frac{3}{2}x}\frac{dy}{dx}+e^{\frac{3}{2}x}\cdot\frac{3}{2}y, ]

you’ll see that it is exactly the derivative of the product (e^{\frac{3}{2}x},y). Put another way,

[ \frac{d}{dx}\Bigl(e^{\frac{3}{2}x}y\Bigr)=e^{\frac{3}{2}x}\frac{x}{2}. ]

That’s the payoff: the original differential equation has been rewritten as a single derivative that we can integrate directly.

Step 4: Integrate Both Sides

Now integrate with respect to (x):

[ \int \frac{d}{dx}\Bigl(e^{\frac{3}{2}x}y\Bigr),dx =\int e^{\frac{3}{2}x}\frac{x}{2},dx. ]

The left side collapses to the original product:

[ e^{\frac{3}{2}x}y = \int \frac{x}{2}e^{\frac{3}{2}x},dx + C, ]

where (C) is the constant of integration. The remaining integral on the right can be handled with integration by parts (or, if you’re comfortable, a table of integrals). Let’s do it quickly:

Take
(u = x ;\Rightarrow; du = dx)
(dv = \frac12 e^{\frac{3}{2}x}dx ;\Rightarrow; v = \frac13 e^{\frac{3}{2}x}).

Then

[ \int \frac{x}{2}e^{\frac{3}{2}x}dx = uv - \int v,du = \frac{x}{3}e^{\frac{3}{2}x} - \int \frac{1}{3}e^{\frac{3}{2}x}dx = \frac{x}{3}e^{\frac{3}{2}x} - \frac{2}{9}e^{\frac{3}{2}x}+C_1. ]

Plug this back:

[ e^{\frac{3}{2}x}y = \frac{x}{3}e^{\frac{3}{2}x} - \frac{2}{9}e^{\frac{3}{2}x}+C. ]

Step 5: Solve for (y)

Finally, divide both sides by the integrating factor (e^{\frac{3}{2}x}):

[ y(x)=\frac{x}{3}-\frac{2}{9}+Ce^{-\frac{3}{2}x}. ]

And there you have it—a closed‑form solution to the original differential equation.


A Quick Checklist for the Integrating Factor Method

Action Why it matters
1 Put the equation in standard form (\displaystyle \frac{dy}{dx}+P(x)y = Q(x)) Guarantees the correct (P(x)) and (Q(x)). In practice,
3 Multiply the whole equation by (\mu(x)) Enables the product‑rule recognition. Think about it:
4 Rewrite the left side as (\frac{d}{dx}[\mu(x)y]) Collapses the equation to a single derivative.
2 Compute (\mu(x)=e^{\int P(x)dx}) This factor turns the left side into a perfect derivative.
5 Integrate both sides Removes the derivative and introduces the constant of integration.
6 Solve for (y) Isolates the unknown function.

If you follow these steps, you’ll rarely get stuck.


When the Method Fails (and What to Do Instead)

The integrating factor works only for linear first‑order ODEs. If you encounter an equation like

[ \frac{dy}{dx}=y^2 + x, ]

the left side cannot be expressed as (\frac{dy}{dx}+P(x)y). In such cases you need a different toolbox:

  • Separable equations – when you can write ( \frac{dy}{dx}=g(x)h(y) ).
  • Exact equations – when the differential expression is the total differential of some function.
  • Bernoulli equations – a slight twist on the linear form that becomes linear after a substitution.
  • Numerical methods – Euler’s method, Runge‑Kutta, etc., when an analytic solution is out of reach.

Knowing which category your problem belongs to is half the battle; the other half is practicing the appropriate technique.


A Real‑World Example: Newton’s Law of Cooling

Newton’s law of cooling states that the temperature (T(t)) of an object changes at a rate proportional to the difference between its temperature and the ambient temperature (T_{\text{room}}):

[ \frac{dT}{dt}= -k\bigl(T - T_{\text{room}}\bigr), ]

where (k>0) is a constant that depends on the object’s material and surroundings And it works..

Rewrite it:

[ \frac{dT}{dt}+kT = kT_{\text{room}}. ]

Now we are exactly in the standard linear form with (P(t)=k) and (Q(t)=kT_{\text{room}}).

Integrating factor: (\displaystyle \mu(t)=e^{\int k,dt}=e^{kt}) It's one of those things that adds up..

Multiply through:

[ e^{kt}\frac{dT}{dt}+ke^{kt}T = kT_{\text{room}}e^{kt} \quad\Longrightarrow\quad \frac{d}{dt}\bigl(e^{kt}T\bigr)=kT_{\text{room}}e^{kt}. ]

Integrate:

[ e^{kt}T = T_{\text{room}}e^{kt}+C ;\Longrightarrow; T(t)=T_{\text{room}}+Ce^{-kt}. ]

The constant (C) is fixed by the initial temperature (T(0)):

[ C = T(0)-T_{\text{room}}. ]

Thus the complete solution is

[ \boxed{T(t)=T_{\text{room}}+\bigl[T(0)-T_{\text{room}}\bigr]e^{-kt}}. ]

A compact formula that predicts how quickly a cup of coffee will cool down—or how fast a hot engine block will return to normal temperature. All thanks to the integrating factor.


Practice Problems (with Hints)

  1. Mixing Tank
    (\displaystyle \frac{dC}{dt}+ \frac{5}{100}C = \frac{2}{100})
    Hint: (P(t)=0.05). Compute (\mu(t)=e^{0.05t}) and follow the steps.

  2. Radioactive Decay with Production
    (\displaystyle \frac{dN}{dt}+ \lambda N = S) (where (\lambda, S) are constants).
    Hint: This is the same structure as the cooling problem; the solution will be (N(t)=\frac{S}{\lambda}+Ce^{-\lambda t}) Nothing fancy..

  3. Electrical Circuit (RC)
    (\displaystyle \frac{dV}{dt} + \frac{1}{RC}V = \frac{V_{\text{source}}}{RC}).
    Hint: Identify (P(t)=1/(RC)) and treat (V_{\text{source}}) as a constant.

Working through these will cement the method in your mind.


Conclusion

First‑order linear differential equations may look intimidating at first glance, but the integrating factor method reduces them to a straightforward, algorithmic process. By:

  1. Standardizing the equation,
  2. Computing the integrating factor,
  3. Multiplying to create a perfect derivative,
  4. Integrating and finally,
  5. Solving for the unknown function,

you can open up solutions to a host of practical problems—from cooling coffee to population dynamics and beyond And that's really what it comes down to. Still holds up..

Remember, the real power lies not just in memorizing the steps, but in recognizing when a problem fits the linear form. Once that pattern‑recognition clicks, you’ll find linear ODEs popping up everywhere in physics, engineering, biology, and economics. And with the integrating factor in your mathematical toolkit, you’ll be ready to tackle them head‑on.

Happy solving!

Building on the foundation established, you’ll soon discover that the integrating‑factor technique is not limited to constant coefficients. In real terms, when the coefficient (P(t)) varies with time, the same steps apply; you simply compute (\mu(t)=e^{\int P(t),dt}) and proceed unchanged. This opens the door to more realistic models—such as heat transfer in materials with time‑dependent conductivity, or population growth where the per‑capita growth rate itself changes with resource availability Easy to understand, harder to ignore. Worth knowing..

A natural next step is to explore how the method adapts to non‑linear first‑order equations that can be transformed into linear form, for instance Bernoulli equations. Practically speaking, by the substitution (y = v^{1-n}) (with (n\neq 0,1)), a Bernoulli equation reduces to a linear ODE in the new variable, allowing the integrating factor to be employed once again. Mastering this transformation broadens the class of problems you can solve without resorting to more specialized techniques.

It sounds simple, but the gap is usually here.

Finally, the integrating factor serves as a gateway to the broader theory of linear differential equations. Because of that, recognizing the linear form, computing the integrating factor, and converting the equation into an exact derivative are skills that recur throughout advanced mathematics, control theory, and computational modeling. As you continue your studies, you will encounter second‑order linear ODEs, systems of first‑order equations, and partial differential equations—all of which build upon the same logical scaffolding you have just mastered.

In short, the integrating‑factor method is a versatile, reliable tool that turns a seemingly daunting differential equation into an easily integrable expression. By internalizing its steps, you gain confidence to tackle a wide spectrum of real‑world phenomena, from cooling objects and mixing processes to electrical transients and population dynamics. With this competence in hand, you are well positioned to advance to more sophisticated topics and to apply differential equations confidently in any scientific or engineering context.

Fresh Stories

Recently Written

Same Kind of Thing

You're Not Done Yet

Thank you for reading about How To Solve First Order Linear Differential Equation: Step-by-Step Guide. 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