First-Order Linear Equations
students, in engineering and science, many real situations change over time in a way that depends on both the current value of a quantity and an outside influence. 🌍 Examples include cooling of a hot object, charging a capacitor, current in an electrical circuit, or the concentration of a chemical in a tank. A first-order linear equation is one of the most useful tools for modeling these processes.
What a first-order linear equation is
A first-order linear differential equation is an equation involving a function $y(x)$ and its first derivative $\frac{dy}{dx}$, written in the form
$$\frac{dy}{dx} + P(x)y = Q(x)$$
where $P(x)$ and $Q(x)$ are known functions of the independent variable $x$.
This is called:
- First-order because the highest derivative is $\frac{dy}{dx}$.
- Linear because $y$ and $\frac{dy}{dx}$ appear only to the first power, and they are not multiplied together.
That means equations like $\frac{dy}{dx} + 3y = 6$ or $x\frac{dy}{dx} + 2y = x^2$ are linear after rewriting them in standard form. But equations such as $\frac{dy}{dx} + y^2 = x$ or $y\frac{dy}{dx} = x$ are not linear, because $y^2$ and the product $y\frac{dy}{dx}$ break the linear pattern.
Understanding this form matters because once an equation fits it, there is a reliable method to solve it. That method is called the integrating factor method. 🧠
Why linearity matters in engineering mathematics
Linear differential equations are important because they describe systems where effects add together in a predictable way. In engineering, this happens often.
For example:
- In an electrical $RC$ circuit, the capacitor voltage may satisfy a first-order linear equation.
- In heat transfer, Newton’s law of cooling leads to a first-order linear equation.
- In mixing problems, the amount of salt or chemical in a tank often follows a first-order linear model.
A big advantage of linear equations is that their behavior is easier to analyze and predict. If the input changes, the solution changes in a structured way. This makes first-order linear equations a foundation topic in Differential Equations and Engineering Mathematics.
To see the idea, imagine a hot metal rod cooling in a room. The rate of temperature change is not constant. It depends on how much hotter the rod is than the room. That relationship can be modeled with an equation like
$$\frac{dT}{dt} + kT = kT_{\text{room}}$$
where $T(t)$ is the temperature of the object, $k$ is a positive constant, and $T_{\text{room}}$ is the room temperature. This is a first-order linear equation because $T$ appears linearly.
How to solve a first-order linear equation
The standard form is
$$\frac{dy}{dx} + P(x)y = Q(x)$$
The main solution strategy uses an integrating factor. This is a function $\mu(x)$ chosen so that the left side becomes the derivative of a product.
The integrating factor is
$$\mu(x) = e^{\int P(x)\,dx}$$
Multiply the entire differential equation by $\mu(x)$:
$$\mu(x)\frac{dy}{dx} + \mu(x)P(x)y = \mu(x)Q(x)$$
Because of the way $\mu(x)$ is chosen, the left side becomes
$$\frac{d}{dx}\big(\mu(x)y\big) = \mu(x)Q(x)$$
Now integrate both sides:
$$\mu(x)y = \int \mu(x)Q(x)\,dx + C$$
and solve for $y$:
$$y = \frac{1}{\mu(x)}\left(\int \mu(x)Q(x)\,dx + C\right)$$
This gives the general solution.
The key idea is that the integrating factor turns a difficult-looking equation into one that can be integrated directly. That is one of the most powerful techniques in first-order Differential Equations. ✨
Worked example 1: constant coefficients
Solve
$$\frac{dy}{dx} + 2y = 4$$
Here, $P(x)=2$ and $Q(x)=4$.
Step 1: Find the integrating factor.
$$\mu(x)=e^{\int 2\,dx}=e^{2x}$$
Step 2: Multiply the equation by $e^{2x}$.
$$e^{2x}\frac{dy}{dx}+2e^{2x}y=4e^{2x}$$
Step 3: Recognize the left side as a product derivative.
$$\frac{d}{dx}\big(e^{2x}y\big)=4e^{2x}$$
Step 4: Integrate.
$$e^{2x}y=\int 4e^{2x}\,dx + C$$
$$e^{2x}y=2e^{2x}+C$$
Step 5: Solve for $y$.
$$y=2+Ce^{-2x}$$
This solution shows two parts:
- $2$, a particular solution that fits the forcing term $Q(x)$
- $Ce^{-2x}$, the homogeneous part, which decays as $x$ increases
If an initial condition such as $y(0)=5$ is given, then $C$ can be found by substitution.
Worked example 2: variable coefficient
Now solve
$$\frac{dy}{dx}+\frac{1}{x}y=x$$
This equation is linear for $x\neq 0$.
Here, $P(x)=\frac{1}{x}$ and $Q(x)=x$.
Step 1: Find the integrating factor.
$$\mu(x)=e^{\int \frac{1}{x}\,dx}=e^{\ln|x|}=|x|$$
For a chosen interval where $x>0$, we can use $\mu(x)=x$.
Step 2: Multiply through by $x$.
$$x\frac{dy}{dx}+y=x^2$$
Step 3: Rewrite the left side.
$$\frac{d}{dx}(xy)=x^2$$
Step 4: Integrate.
$$xy=\int x^2\,dx + C$$
$$xy=\frac{x^3}{3}+C$$
Step 5: Solve for $y$.
$$y=\frac{x^2}{3}+\frac{C}{x}$$
This example shows why the standard form is useful. Once the equation is written as $\frac{dy}{dx}+P(x)y=Q(x)$, the method is systematic.
Interpreting solutions in real situations
In applications, the terms in a first-order linear equation usually have physical meaning.
Take the general model
$$\frac{dy}{dx}+P(x)y=Q(x)$$
- $y$ might represent temperature, voltage, concentration, or displacement.
- $\frac{dy}{dx}$ represents the rate of change.
- $P(x)y$ represents a proportional effect such as loss, damping, or leakage.
- $Q(x)$ represents an external input, source, or forcing term.
For example, in a mixing tank, salt may leave the tank at a rate proportional to the current amount of salt. That gives the $P(x)y$ part. Fresh salt entering the tank gives the $Q(x)$ part. The equation balances what is going out and what is coming in.
This balance viewpoint is important in engineering. First-order linear equations are not just abstract symbols. They describe conservation and change in a compact mathematical form. ⚙️
Connection to the broader topic of Differential Equations
First-order linear equations sit inside the larger family of Differential Equations. A differential equation is any equation involving a derivative of an unknown function. In this topic, the focus is on equations with the first derivative only.
Within first-order differential equations, there are several common types:
- Separable equations, where variables can be separated into different sides
- First-order linear equations, where the equation fits $\frac{dy}{dx}+P(x)y=Q(x)$
- Other forms such as exact equations or homogeneous equations, depending on the syllabus
Some equations can be both separable and linear, but many are not. Recognizing the form quickly helps you choose the right method.
For instance, the equation
$$\frac{dy}{dx}=xy$$
is separable, and also linear if rewritten as
$$\frac{dy}{dx}-xy=0$$
But the equation
$$\frac{dy}{dx}=y^2+x$$
is neither separable in a simple way nor linear.
So one major skill in Engineering Mathematics is pattern recognition: identify whether a differential equation is linear, and if so, apply the integrating factor method efficiently.
Common mistakes to avoid
When working with first-order linear equations, students, watch for these errors:
- Forgetting to rewrite the equation in standard form $\frac{dy}{dx}+P(x)y=Q(x)$.
- Using the wrong integrating factor, especially missing the integral sign in $\mu(x)=e^{\int P(x)\,dx}$.
- Forgetting the constant of integration $C$ after integrating.
- Treating $|x|$ incorrectly when computing $e^{\ln|x|}$.
- Assuming every first-order equation is linear. It is not.
A good habit is to check the structure before solving. If the equation is not linear, the integrating factor method will not work in this form.
Conclusion
First-order linear equations are a core tool in Differential Equations and Engineering Mathematics. They have the standard form $\frac{dy}{dx}+P(x)y=Q(x)$ and are solved using the integrating factor $\mu(x)=e^{\int P(x)\,dx}$. This method transforms the equation into a product derivative, making it possible to integrate and find the solution.
These equations are important because they model many real-world systems where a quantity changes due to both its current state and an external influence. By mastering the structure, method, and interpretation of first-order linear equations, students, you build a strong foundation for later topics in modeling, analysis, and applied mathematics.
Study Notes
- A first-order linear differential equation has the form $\frac{dy}{dx}+P(x)y=Q(x)$.
- It is called first-order because the highest derivative is $\frac{dy}{dx}$.
- It is called linear because $y$ and $\frac{dy}{dx}$ appear only to the first power and are not multiplied together.
- The integrating factor is $\mu(x)=e^{\int P(x)\,dx}$.
- Multiplying the equation by $\mu(x)$ makes the left side become $\frac{d}{dx}(\mu(x)y)$.
- After integrating, the general solution is $y=\frac{1}{\mu(x)}\left(\int \mu(x)Q(x)\,dx + C\right)$.
- First-order linear equations model many engineering systems, including cooling, circuits, and mixing.
- Always rewrite the equation in standard form before solving.
- Not every first-order differential equation is linear.
- Recognizing the form quickly is the first step to choosing the correct method.
