Subject: Class 12 Mathematics Chapter: Linear Differential Equations Topic: 10.7 Linear Differential Equations – Solve first order linear equations
A linear differential equation is one in which the dependent variable and all of its derivatives occur only to the first power and never appear multiplied together. In Class 12 Mathematics we concentrate on the first order linear equation, which can always be written in the standard form dy/dx + P(x) y = Q(x), where P and Q are functions of x alone. This chapter develops the integrating factor method, a beautiful technique that turns a non-separable equation into a perfect derivative so that it can be integrated directly.
The idea behind the method is elegant. We multiply the entire equation by a specially chosen function, called the integrating factor, so that the left hand side becomes the derivative of a product of that factor with y. Once the product rule is recognised, the equation reduces to a simple integration on both sides. The integrating factor for the standard form is e to the power of the integral of P(x), a result that follows from the requirement that the multiplied equation should collapse into a single derivative.
Linear equations appear throughout physics, chemistry and economics, from radioactive decay and Newton's law of cooling to charging capacitors and continuous compound interest. The ability to recognise the standard form and compute the integrating factor is a guaranteed five-mark question in most examinations. This chapter explains the standard form, the derivation of the integrating factor, the full solving procedure and several worked examples.
Standard Form: A first order linear differential equation is written as dy/dx + P(x) y = Q(x). The coefficient of dy/dx must be one before we apply the method; if it is not, we divide the whole equation by that coefficient. The functions P and Q must be functions of x alone, never of y.
Derivation of the Integrating Factor: We seek a function I(x) such that I(x) (dy/dx + P y) equals d/dx [I(x) y]. Expanding the product rule, d/dx [I y] = I dy/dx + I' y. Comparing with I dy/dx + I P y, we require I' = I P, that is, dI/I = P dx. Integrating gives ln|I| = ∫P dx, so I = e^(∫P dx). This function is called the integrating factor, usually abbreviated IF.
The Complete Solution Formula: Multiplying the standard equation by the integrating factor gives d/dx [y e^(∫P dx)] = Q e^(∫P dx). Integrating both sides yields y e^(∫P dx) = ∫ Q e^(∫P dx) dx + C. Hence the general solution is y = e^(-∫P dx) [∫ Q e^(∫P dx) dx + C]. In examinations it is often safer to carry out the steps explicitly rather than quote the formula blindly.
Example 1 (Solved): Solve dy/dx + 2y = e⁻ˣ.
Solution: Here P = 2 and Q = e⁻ˣ. The integrating factor is IF = e^(∫2 dx) = e²ˣ. Multiplying through, e²ˣ dy/dx + 2 e²ˣ y = eˣ, so d/dx [y e²ˣ] = eˣ. Integrating, y e²ˣ = eˣ + C. Hence y = e⁻ˣ + C e⁻²ˣ.
Example 2 (Solved): Solve dy/dx + y cot x = 2x + x² cot x.
Solution: Here P = cot x and Q = 2x + x² cot x. The integrating factor is IF = e^(∫cot x dx) = e^(ln sin x) = sin x. Multiplying through, sin x dy/dx + y cos x = (2x + x² cot x) sin x = 2x sin x + x² cos x. The left side is d/dx [y sin x]. Integrating, y sin x = ∫2x sin x dx + ∫x² cos x dx. The second integral is the derivative form giving x² sin x minus the first; combining, y sin x = x² sin x + C. Hence y = x² + C cosec x.
Step 1 – Normalise: Write the equation in the form dy/dx + P(x) y = Q(x) by dividing by the coefficient of dy/dx if necessary. Identify P and Q correctly.
Step 2 – Compute IF: Calculate ∫P dx and form IF = e^(∫P dx). Simplify the exponential using properties of logarithms wherever the integral is a logarithm.
Step 3 – Multiply and Recognise: Multiply the whole equation by IF and verify that the left hand side is the derivative of IF times y. This check avoids sign errors that commonly spoil the solution.
Step 4 – Integrate: Integrate both sides with respect to x. The right hand side is ∫Q (IF) dx, and the left side becomes IF times y.
Step 5 – Solve and Apply Condition: Divide by IF to write y explicitly. If an initial condition is given, substitute it to evaluate the constant C and write the particular solution.
Example 3 (Solved): Solve x dy/dx + 2y = x² with y(1) = 0.
Solution: Dividing by x, dy/dx + (2/x) y = x. Hence P = 2/x and Q = x. The integrating factor is IF = e^(∫(2/x) dx) = e^(2 ln x) = x². Multiplying, x² dy/dx + 2x y = x³, so d/dx [x² y] = x³. Integrating, x² y = x⁴/4 + C. Using y(1) = 0 gives 0 = 1/4 + C, so C = -1/4. Hence x² y = x⁴/4 - 1/4 and y = x²/4 - 1/(4x²).
Why P Must Be a Function of x Alone: If P depends on y, the product rule argument breaks down and the left side cannot be written as a perfect derivative. Such equations require different methods and are outside the linear framework of this chapter.
Equations with dy/dx Missing: When the equation is already of the form dy/dx = f(x), it is linear with P = 0 and Q = f(x). The integrating factor is 1 and the solution is simply y = ∫f(x) dx + C, which matches the variable separable result.
Linear in x Instead of y: Some equations are linear in x and dx/dy, written in the standard form dx/dy + P₁(y) x = Q₁(y). The same integrating factor method applies with the roles of x and y interchanged, using IF = e^(∫P₁ dy). This variant appears when the equation can be expressed more easily as a function of y.
Equations Reducible to Linear Form: An equation of the type dy/dx + P(x) y = Q(x) yⁿ, where n is not 0 or 1, is called Bernoulli's equation. Dividing by yⁿ and substituting z = y^(1-n) converts it into a linear equation in z. This reduction is the classical extension of the method and is solved by the same integrating factor technique.
Example 4 (Solved): Solve dy/dx + y = y².
Solution: This is Bernoulli's equation with P = 1, Q = 1 and n = 2. Dividing by y², y⁻² dy/dx + y⁻¹ = 1. Put z = y^(1-2) = y⁻¹, so dz/dx = -y⁻² dy/dx. Then -dz/dx + z = 1, or dz/dx - z = -1. This is linear in z with P = -1 and Q = -1. The integrating factor is IF = e^(∫-1 dx) = e⁻ˣ. Multiplying, d/dx [z e⁻ˣ] = -e⁻ˣ. Integrating, z e⁻ˣ = e⁻ˣ + C, so z = 1 + C eˣ. Hence 1/y = 1 + C eˣ, giving y = 1/(1 + C eˣ).
Applications of the Method: The integrating factor technique solves many real problems such as the population growth equation with a harvesting term, the mixing of salt solutions in a tank, and the current growth in an RL circuit. In all of these the model equation is first order linear and the same five steps deliver the solution.
| Quantity | Meaning | Formula |
|---|---|---|
| Standard form | Normalised linear equation | dy/dx + P(x) y = Q(x) |
| Integrating factor | Multiplier that makes LHS a derivative | IF = e^(∫P dx) |
| Solution | General solution of the equation | y = e^(-∫P dx)[∫Q IF dx + C] |
| Particular solution | Constant fixed by condition | Substitute y(x₀) = y₀ |
| Equation | P | IF | Q |
|---|---|---|---|
| dy/dx + 2y = e⁻ˣ | 2 | e²ˣ | e⁻ˣ |
| dy/dx + (2/x)y = x | 2/x | x² | x |
| dy/dx + y cot x = sin x | cot x | sin x | sin x |
| dy/dx = x² | 0 | 1 | x² |
flowchart TD
A[Linear Differential Equations] --> B[Standard form dy/dx + P y = Q]
A --> C[Condition linear in y]
B --> D[Compute IF = e^ integral P dx]
D --> E[Multiply equation by IF]
E --> F[Recognise product derivative]
F --> G[Integrate both sides]
G --> H[Solve for y]
H --> I[Particular solution by condition]
A --> J[Bernoulli reduction z = y^1-n]
A --> K[Linear in x with dx/dy form]
Linear differential equations of the first order are recognised by the standard form dy/dx + P(x) y = Q(x), in which the dependent variable appears only to the first power and never as a product with its derivative. The integrating factor e^(∫P dx) transforms the left side into the derivative of a product, reducing the equation to a single integration. Bernoulli's equation extends the method to certain non-linear forms by the substitution z = y^(1-n), while equations linear in x are handled by the same technique with the variables interchanged. Mastery of the integrating factor method is essential, because it solves a wide class of practical problems and appears regularly as a full-mark question in board examinations.