Linear Differential Equations and the Integrating Factor (Class 12)
Updated 15 October 2026 · Fact-checked
A linear equation has the form dy/dx + Py = Q, with P and Q functions of x. Multiply by the integrating factor IF = e^∫P dx; the left side becomes d/dx(y·IF), so y·IF = ∫Q·IF dx + C. For dx/dy + P₁x = Q₁, the roles of x and y swap.
Follow the steps down: find IF = e^∫P dx, multiply, and the left side becomes d/dx(y·IF); if x² or y³ blocks you, swap x and y.
Illustration drawn for QuestionBuddy.
Understand Linear Differential Equations
Standard form. A first-order differential equation is linear in y if it can be written as
,
where and are functions of alone (or constants). The unknown and its derivative appear only to the first power and are not multiplied together. Examples: ; (divide by first: , ).
The integrating factor. Multiply the whole equation by . Because , the left side becomes the derivative of a product:
.
Integrating both sides gives the general solution
.
Useful simplifications: , , , , . No constant is needed when finding the IF.
Linear in x. Some equations are not linear in but become linear when is treated as the unknown: , with functions of . Then and . A typical sign: or appears with , as in , or the equation is .
The integration step. often needs substitution or integration by parts (for example or , where by parts is applied twice and the original integral reappears).
Applications. Linear equations model a quantity that changes by a proportional amount plus a steady input: a tank receiving salt while mixing, a savings account with continuous interest and regular deposits, a current building up in a circuit. They all have the form and solutions that settle towards .
Both forms ( and ) are in the 2026-27 syllabus (NCERT Section 9.4.3) and are asked every year, often as 1-mark integrating-factor MCQs and 3- or 5-mark solutions.
Linear Differential Equations: formulas to remember
- Linear in y
- Make the coefficient of equal to 1 first.
- Integrating factor
- No constant in this integral.
- General solution
- Divide by IF to get y if needed.
- Linear in x
- are functions of y.
- Useful IF values
- Simplify the IF before using it.
- Constant coefficients
- k and R constants; the solution settles to .
How to solve Linear Differential Equations questions
The standard layout for a linear equation (3 or 5 marks).
- 1Rewrite in standard form (or ); divide through by the coefficient of the derivative.
- 2Identify and clearly, with signs.
- 3Find and simplify it.
- 4Write and evaluate the integral (by substitution or parts if needed).
- 5Simplify, and use any given condition to find C for the particular solution.
Linear Differential Equations in real life
Each concept, met in an everyday situation. Read the situation, try the problem, then check the solution. The one-line hook is what to remember.
Linear equation with a steady input
Suppose a student's savings account earns interest continuously at 5% a year, and she also deposits money continuously at Rs 12,000 a year, starting from a zero balance. The balance satisfies .
Solve for and find the balance after 10 years.
Try it first, then show the solutionSolution
- Standard form: , so and .
- , so .
- : .
- Rs 1,55,700.
Answer: ; about Rs 1,55,700 after 10 years.
Memory hook: Growth plus a steady input: a linear equation with an integrating factor.
Approach to a steady value
Imagine the current (in amperes) in a simple circuit just after switching on satisfies , with at seconds.
Find , the current after 1 second, and the value it approaches.
Try it first, then show the solutionSolution
- : , so .
- : .
- A.
- As grows, , so A.
Answer: ; about 4.32 A at 1 s; it approaches 5 A.
Memory hook: settles at .
Tricks to remember Linear Differential Equations
Short memory aids. Say each one aloud once, then use it on a question the same day.
One in front, P and Q visible
Make the derivative's coefficient 1, then read P (with y) and Q (alone).
Use it when: Avoiding a wrong integrating factor.
e to the integral of P
IF ; then 'y times IF equals integral of Q times IF, plus C'.
Use it when: The solution formula.
e and log cancel
: always simplify the IF to a plain function.
Use it when: IFs like , , .
Swap roles when y is the troublemaker
If y appears in powers or functions next to x, try : it may be linear in x.
Use it when: Equations like .
Linear Differential Equations: solved examples
Ordered from board level to HOTS. Try each one before you open the solution.
Example 1: Constant coefficients · 3 marks · Short answerBoard level
Find the general solution of .
Try it first, then show the solutionSolution
- , ; . (1 mark)
- . (1 mark)
- . (1 mark)
Answer:
Example 2: Dividing by x first · 3 marks · Short answerBoard level
Solve , .
Try it first, then show the solutionSolution
- Standard form: ; . (1 mark)
- . (1 mark)
- . (1 mark)
Answer:
Example 3: A trigonometric IF and a particular solution · 3 marks · Short answerHarder board level
Solve , given when .
Try it first, then show the solutionSolution
- ; . (1 mark)
- , so . (1 mark)
- At : ; . (1 mark)
Answer:
Example 4: Linear in x · 5 marks · Long answerHarder board level
Solve , given when .
Try it first, then show the solutionSolution
- Rewrite: , i.e. : linear in x with , . (1½ marks)
- (for ). (1 mark)
- . (1 mark)
- . With , : , so . (1 mark)
- Particular solution: . (½ mark)
Answer:
Example 5: Integration by parts twice inside · 5 marks · Long answerHOTS / competency
Find the particular solution of , given .
Try it first, then show the solutionSolution
- ; . (1 mark)
- Let . By parts: . (1½ marks)
- So and . (1 mark)
- ; . (1 mark)
- . (½ mark)
Answer:
Example 6: Case study: salt in a mixing tank · 4 marks · Case-basedHOTS / competency
Suppose a 100-litre tank holds brine with 10 kg of dissolved salt. Brine containing 0.2 kg of salt per litre flows in at 5 L/min, and the well-mixed solution flows out at 5 L/min. If kg is the salt after minutes, then .
(i) Explain the two terms on the right. (1 mark)
(ii) Solve for . (2 marks)
(iii) Find the salt after 20 minutes and the long-run amount. (1 mark)
Try it first, then show the solutionSolution
- (i) Inflow: kg/min. Outflow: concentration kg/L times 5 L/min kg/min. (1 mark)
- (ii) ; ; , so . (1 mark)
- : . (1 mark)
- (iii) kg; in the long run kg (the incoming concentration times 100 L). (1 mark)
Answer: (ii) (iii) about 16.3 kg; approaches 20 kg.
Where students lose marks in Linear Differential Equations
The slips examiners see most often, and what to write instead.
Mistake: Not dividing by the coefficient of dy/dx
P must be read from the form with coefficient 1.
Wrong working
: , .
Right working
: , .
Do this: Always rewrite in standard form first.
Usually costs: The whole solution.
Mistake: Wrong sign of P
has .
Wrong working
.
Right working
.
Do this: Copy P with its sign.
Usually costs: 2 to 3 marks.
Mistake: Forgetting C or putting it in the wrong place
The constant belongs with the integral before dividing by IF.
Wrong working
.
Right working
.
Do this: Add C on the right of and then divide everything.
Usually costs: 1 mark.
Mistake: Forcing a linear-in-x equation into y-form
Some equations are linear only in x.
Wrong working
treated as .
Right working
, linear in x.
Do this: If y appears in powers alongside x, try .
Usually costs: Most of the marks.
Exam tips
- Linear equations were asked in the 2023, 2024, 2025 and 2026 board papers, with 1-mark IF MCQs and 3- or 5-mark solutions; write P, Q and IF on separate lines.
- Simplify the IF using before multiplying.
- Show the integral clearly; it is usually where the method marks are.
- For particular solutions, find C from the general solution, then write the final answer in a single line.
- Remember the second form ; it is explicitly in the syllabus.
Practice questions on Linear Differential Equations
Write each answer on paper first. Open the hint only if you are stuck, and the answer only when you have finished.
Q1 · 1 mark · MCQBoard level
The integrating factor of () is:
(a)
(b)
(c)
(d)Hint
.
Answer
(b) .
Q2 · 2 marks · Very short answerBoard level
Find the integrating factor of .
Hint
.
Answer
.
Q3 · 2 marks · Very short answerBoard level
Solve .
Hint
.
Answer
, so .
Q4 · 3 marks · Short answerHarder board level
Solve , .
Hint
Standard form .
Answer
: , so .
Q5 · 1 mark · Assertion-reasonHarder board level
Assertion (A): The integrating factor of () is .
Reason (R): The integrating factor of is .
(a) Both A and R are true and R is the correct explanation of A.
(b) Both A and R are true but R is not the correct explanation of A.
(c) A is true but R is false.
(d) A is false but R is true.Hint
Compute .
Answer
(a). , exactly by the rule in R.
Q6 · 5 marks · Long answerHarder board level
Find the particular solution of , given .
Hint
, and .
Answer
, so . : .
Q7 · 3 marks · Short answerHOTS / competency
Solve , given when .
Hint
Write .
Answer
: . So ; with : , giving .
Test your recall
Answer in your head or on paper first, then open the card. Pulling an answer out of memory makes it stick far better than re-reading.
1.Standard form of a linear equation in y?Show answer
, P and Q functions of x.
2.Integrating factor?Show answer
.
3.General solution?Show answer
.
4.IF of ?Show answer
.
5.IF of ?Show answer
.
6.Form of a linear equation in x?Show answer
, functions of y.
Linear Differential Equations: frequently asked questions
How do I recognise a linear differential equation?
After rearranging, it should read dy/dx + Py = Q where P and Q involve only x (or constants). The unknown y and dy/dx appear only to the first power and are not multiplied together or inside other functions.
Why does the integrating factor work?
Multiplying by e^∫P dx makes the left side exactly the derivative of y times the integrating factor, by the product rule. Then a single integration solves the equation.
Do I add a constant when finding the integrating factor?
No. Any one integrating factor works, so take the constant as zero. The arbitrary constant C appears only when you integrate Q times IF.
Which NCERT section covers linear equations?
Section 9.4.3 (Linear Differential Equations) of Chapter 9 in NCERT Mathematics Part II for Class 12.
When should I use dx/dy instead of dy/dx?
When the equation becomes linear in x but not in y, for example when y appears in powers or functions next to x, as in y dx − (x + 2y³) dy = 0.