EZ Tuitions Logo
EZ Tuitions
Back to Blog

Linear Differential Equations: Integrating Factor, Class 12

5 min read• 12/4/2026• By Ananya Sharma, Academic Content Lead, EZ Tuitions• Exam Prep

Class 12 linear differential equations: solve with the integrating factor, three worked problems with particular solutions and a check by substitution.

Black graphing calculator and a pen resting on a spiral notebook, in low warm light
Key facts about this article
TopicExam Prep
FocusMathematics
Read time5 min
Words895
Published4 Dec 2026
Best forStudents & parents (exam prep)

A first order linear equation looks harder than it is. There is one fixed recipe: put it in standard form, multiply by a factor that makes the left side a single derivative, and integrate. Most lost marks come from skipping the standard form, not from the calculus.

This guide follows NCERT Class 12 Mathematics, Chapter 9, section 9.4.3, and solves three original problems. Each answer ends with a check, by substituting the solution back into the equation.

The method in four steps

Write the equation as dy/dx + Py = Q, where P and Q are functions of x only, or constants. Find the integrating factor, I.F. = e raised to the integral of P dx. Multiply both sides by it. The left side is now the derivative of y times I.F., so y × I.F. = the integral of Q × I.F. dx, plus C.

Leave out the constant when you integrate P, since any constant there only multiplies both sides by the same number. Keep the constant C at the final integration. NCERT also covers the mirror form, dx/dy + P₁x = Q₁, where y is the independent variable. Problem 3 uses it. If your equation is separable, see the variable separable check instead.

Problem 1: a constant coefficient

Problem 1. Solve dy/dx + 2y = 6eˣ, given that y = 3 when x = 0.

Here P = 2 and Q = 6eˣ. The integrating factor is e²ˣ. Multiplying gives d(y e²ˣ)/dx = 6e³ˣ. Integrating, y e²ˣ = 2e³ˣ + C, so y = 2eˣ + C e⁻²ˣ. The condition gives 3 = 2 + C, so C = 1 and y = 2eˣ + e⁻²ˣ.

Check: dy/dx = 2eˣ − 2e⁻²ˣ, and adding 2y = 4eˣ + 2e⁻²ˣ gives 6eˣ, as required. At x = 1 the solution is 5.572.

Problem 2: divide by x first

Problem 2. Solve x dy/dx + 3y = x² for x > 0, given that y = 2 when x = 1.

This is not yet in standard form, because dy/dx has a coefficient x. Divide by x: dy/dx + (3/x) y = x. Now P = 3/x, the integral of P is 3 ln x, and the integrating factor is e to the power 3 ln x, which is x³. Then d(y x³)/dx = x⁴, so y x³ = x⁵/5 + C.

So y = x²/5 + C/x³. At x = 1, 2 = 1/5 + C, so C = 9/5 and y = x²/5 + 9/(5x³). Check: x dy/dx = 2x²/5 − 27/(5x³) and 3y = 3x²/5 + 27/(5x³). The sum is x². At x = 2, y = 1.025.

Problem 3: when x depends on y

Problem 3. Solve y dx − (x + 2y²) dy = 0 for y > 0, given that x = 3 when y = 1.

Try to write dy/dx and you get a mess. Divide by y dy instead: dx/dy − x/y = 2y. Now P₁ = −1/y, the integral is −ln y, and the integrating factor is 1/y. Then d(x/y)/dy = 2, so x/y = 2y + C and x = 2y² + Cy.

At y = 1, 3 = 2 + C, so C = 1 and x = 2y² + y. Check: dx/dy = 4y + 1, and x/y + 2y = 2y + 1 + 2y = 4y + 1. At y = 2, x = 10.

Where marks are lost

The first slip is reading P off an equation that is not in standard form, as in Problem 2, where P would wrongly be 3. The second is forgetting that e to the power of a log simplifies, so 3 ln x gives x³ and not something with an exponential left in it. The third is applying the condition before adding C.

For the integration itself, the integration by parts guide helps when Q times the integrating factor needs it. The chapter overview is on the Chapter 9 page.

Frequently asked questions

How do I know an equation is linear?

The unknown and its derivative appear only to the first power and are not multiplied together. If you can write it as dy/dx + Py = Q with P and Q depending on x alone, it is linear in y.

Why is there no constant in the integrating factor?

A constant would multiply both sides of the equation by the same number, which cancels. Only the constant from the final integration changes the answer, so that is the one you keep.

When should I treat x as the dependent variable?

When the equation is easy to write as dx/dy + P₁x = Q₁, with P₁ and Q₁ depending on y alone. Terms like x + 2y² beside dy are the usual sign.

Do I need the integrating factor if the equation is separable?

No. A separable equation can be solved by separating the variables. The integrating factor is for equations where the y term cannot be moved to one side by division alone.

Method and photo sources

Method checked against NCERT Class 12 Mathematics, Chapter 9, section 9.4.3. The equations, conditions and answers in the three problems are our own, each checked by substituting back and by a numerical derivative.

Photo: calculator and notebook on a study desk on Pexels, under the Pexels licence, cropped to 16:9 and compressed.

Explore related tuition services: maths tuition · online tuition