Homogeneous and Linear Differential Equations: JEE Main
Reviewed Last updated 2026-11-20. Syllabus topic: Homogeneous and linear differential equations.
In short. Homogeneous: substitute y = v x and separate v and x. Linear: write dy/dx + P y = Q, multiply by the integrating factor IF = e^(integral of P dx), and integrate d(y IF)/dx = Q IF. Some equations are linear in x with y as the independent variable.
- Homogeneous test: F(t x, t y) = F(x, y) for the equation dy/dx = F(x, y); then y = v x reduces it to a separable equation in v and x.
- Linear first-order form dy/dx + P y = Q: divide by the coefficient of dy/dx before reading P.
- Integrating factor IF = e^(integral of P dx); the solution is y IF = integral of Q IF dx + C.
- If the equation is awkward in dy/dx, rewrite it as dx/dy + P(y) x = Q(y) and use IF = e^(integral of P dy).
- Fix the constant from the given point only at the end, and check the answer by differentiating back.
Syllabus line: DIFFRENTIAL EQUATIONS : Ordinary differential equations, their order and degree, the solution of differential equation by the method of separation of variables, solution of a homogeneous and linear differential equation of the type + = (). (NTA JEE (Main) 2026 syllabus, Mathematics, Unit 9 (https://jeemain.nta.nic.in/document/syllabus-2026/))
Before you start
Prerequisites
- Order, degree and separation of variables: Both methods end in a separable equation or an exact derivative. Read this first if separating and fixing the constant is not automatic.
- Indefinite integrals and methods: Integrating factors need integrals such as 1/x, 1/(x ln x) and x eˣ. Read this first if those are slow.
Related topics
- Differential Equations (lesson planned)
- Order, degree and separation of variables
- Indefinite integrals and methods
- Definite integrals and properties
The concept step by step
Recognising a homogeneous equation
A function F(x, y) is homogeneous of degree n if F(t x, t y) = tⁿ F(x, y). The equation M dx + N dy = 0 is homogeneous when M and N are homogeneous of the same degree, equivalently when dy/dx = F(x, y) with F of degree zero, which means F depends only on y/x. For example (x² + y²)/(x y) is of degree zero, while x² + y has terms of different degree and is not homogeneous.
The substitution y = v x
Put y = v x, so that dy/dx = v + x dv/dx. The equation dy/dx = F(y/x) becomes v + x dv/dx = F(v), hence x dv/dx = F(v) - v. The variables v and x now separate: dv/(F(v) - v) = dx/x. Integrate both sides, then replace v by y/x. The constant is fixed from the given point, remembering that v = y/x at that point.
The linear form and the integrating factor
A first-order linear equation has y and dy/dx only to the first power and not multiplied together. Write it as dy/dx + P y = Q, with P and Q functions of x only. Multiply by the integrating factor IF = e^(integral of P dx). The left side then becomes d(y IF)/dx, so d(y IF)/dx = Q IF and y IF = integral of Q IF dx + C. Drop any constant in the integral of P, because the factor only matters up to a constant multiple.
Standard form first, then P
The most common error is reading P from an equation that is not in standard form. For x dy/dx + 2 y = x³, divide by x to get dy/dx + (2/x) y = x², so P = 2/x and IF = e^(2 ln x) = x². Reading P = 2 would give e^(2x), which is wrong. Useful integrating factors: P = 1/x gives x; P = 2/x gives x²; P = 1/(x ln x) gives ln x; P = tan x gives sec x.
When the equation is linear in x
Some equations are not linear in y but are linear in x when y is the independent variable. For y dx + (2 x - y⁴) dy = 0, write dx/dy + (2/y) x = y³. This has the form dx/dy + P(y) x = Q(y), with IF = e^(integral of P dy) = y². The test is: if the equation has x or dx appearing to the first power only, try dx/dy first. Then x IF = integral of Q IF dy + C.
Applications and checks
Mixing and charging problems give dS/dt = inflow - (rate out) S/V, which is linear with a constant right side. Geometry problems turn a statement about the tangent into an equation: the y-intercept of the tangent at (x, y) is y - x dy/dx. After solving, test the initial point, differentiate back, and check the limit behaviour: a mixing problem must tend to the inflow concentration times the volume.
Worked examples
Each solution shows the marks every step would earn. The sanity check tests units and size of the answer.
Example 1 (easy)
Find the integrating factor of dy/dx + (3/x) y = x for x > 0 and evaluate it at x = 2.
| Step | Marks |
|---|---|
| P = 3/x, so the integral of P dx = 3 ln x. | 1 |
| IF = e^(3 ln x) = x³. | 1 |
| At x = 2: IF = 8. | 1 |
| Total: 3 marks | 3 |
Answer: 8
Fast method: P = n/x gives IF = xⁿ, so IF = x³ = 8 at x = 2.
Sanity check: IF is dimensionless when x is; the factor grows with x as the integral of P is positive. At x = 1 the factor is 1, as the constant is chosen to be zero.
Example 2 (easy)
Solve dy/dx + 2 y = 6 with y(0) = 0 and find y(1).
| Step | Marks |
|---|---|
| IF = e^(2x), so d(y e^(2x))/dx = 6 e^(2x). | 1 |
| Integrate: y e^(2x) = 3 e^(2x) + C. At (0, 0): C = -3. | 1 |
| y = 3 (1 - e^(-2x)). | 1 |
| y(1) = 3 (1 - 0.1353) = 2.594. | 1 |
| Total: 4 marks | 4 |
Answer: about 2.594
Fast method: Steady value 6/2 = 3, approached as 3 (1 - e^(-2x)); y(1) = 3 (1 - e^(-2)) = 2.594.
Sanity check: y(0) = 0 as required and y tends to 3, where 2 y = 6, so the long-run value is right; 2.594 is below 3.
Example 3 (medium)
Solve dy/dx = (x² + y²)/(2 x y) with y(1) = 0.5 and find y(2).
| Step | Marks |
|---|---|
| The right side is homogeneous of degree 0. Put y = v x: v + x dv/dx = (1 + v²)/(2 v). | 1 |
| So x dv/dx = (1 - v²)/(2 v), and 2 v dv/(1 - v²) = dx/x. | 1 |
| Integrate: -ln|1 - v²| = ln x + C, so 1 - v² = c/x, that is x² - y² = c x. | 2 |
| At (1, 0.5): c = 0.75. At x = 2: y² = 4 - 1.5 = 2.5, so y = 1.581. | 1 |
| Total: 5 marks | 5 |
Answer: about 1.581
Fast method: Use the result x² - y² = c x directly: c = 1 - 0.25 = 0.75, then y² = 4 - 1.5 = 2.5.
Sanity check: At x = 1 the formula gives y² = 1 - 0.75 = 0.25, so y = 0.5 as required. Slope is positive, so y rises from 0.5 to 1.58; this matches a numerical integration.
Example 4 (medium)
Solve x dy/dx + 2 y = x³ with y(1) = 1 and find y(2).
| Step | Marks |
|---|---|
| Divide by x to reach standard form: dy/dx + (2/x) y = x². Here P = 2/x, not 2. | 1 |
| IF = x², so d(x² y)/dx = x⁴. | 1 |
| Integrate: x² y = x⁵/5 + C. At (1, 1): C = 4/5. | 1 |
| At x = 2: 4 y = 32/5 + 4/5 = 36/5, so y = 1.8. | 1 |
| Total: 4 marks | 4 |
Answer: 1.8
Fast method: IF x² means x² y = x⁵/5 + 4/5; at x = 2, 4 y = 7.2, so y = 1.8.
Sanity check: The initial value 1 is recovered at x = 1 and the solution grows as x³/5 for large x, which dominates the decaying homogeneous term 0.8/x². 1.8 at x = 2 is plausible.
Example 5 (hard, multi-step)
Solve (1 + y²) dx = (arctan y - x) dy with x = 0 at y = 0 and find x at y = 1.
| Step | Marks |
|---|---|
| The equation is linear in x: dx/dy + x/(1 + y²) = arctan y/(1 + y²). | 2 |
| IF = e^(arctan y). Put w = arctan y: d(x e^w) = w e^w dw, so x e^w = (w - 1) e^w + C. | 2 |
| At (0, 0): 0 = -1 + C, so C = 1. Then x = w - 1 + e^(-w). | 1 |
| At y = 1: w = pi/4 = 0.7854, x = 0.7854 - 1 + 0.4559 = 0.2413. | 1 |
| Total: 6 marks | 6 |
Answer: about 0.241
Fast method: Treat x as the unknown and y as the variable; with w = arctan y the equation becomes x = w - 1 + e^(-w).
Sanity check: At y = 0, w = 0 and x = 0 - 1 + 1 = 0, as required. x is small and positive at y = 1, matching a numerical integration of dx/dy.
Example 6 (medium)
A tank of 200 L holds 10 kg of salt dissolved in water. Brine of concentration 0.2 kg/L enters at 5 L/min and the well-mixed solution leaves at 5 L/min. Find the salt in the tank after 40 minutes, in kg.
| Step | Marks |
|---|---|
| dS/dt = 0.2 x 5 - (5/200) S = 1 - S/40. | 1 |
| The steady value is 40 kg and S - 40 = (10 - 40) e^(-t/40). | 2 |
| S = 40 - 30 e^(-t/40). | 1 |
| At t = 40: S = 40 - 30/e = 28.96 kg. | 1 |
| Total: 5 marks | 5 |
Answer: about 28.96 kg
Fast method: S = 40 - 30 e^(-t/40): at t = 40 minutes, S = 40 - 30 x 0.3679 = 28.96 kg.
Sanity check: Units: kg/min on both sides of the equation. S rises from 10 kg towards 40 kg (concentration 0.2 kg/L x 200 L), and 28.96 kg lies between them.
Example 7 (hard, multi-step)
Solve dy/dx = y/x + tan(y/x) with y(1) = pi/6 and find y at x = sqrt 2.
| Step | Marks |
|---|---|
| The right side depends only on y/x, so it is homogeneous. Put y = v x: x dv/dx = tan v. | 2 |
| Separate: cot v dv = dx/x, so ln sin v = ln x + ln c, that is sin v = c x. | 1 |
| At x = 1, v = pi/6, so c = 1/2. | 1 |
| At x = sqrt 2: sin v = 0.7071, so v = pi/4 and y = sqrt 2 x pi/4 = 1.1107. | 1 |
| Total: 5 marks | 5 |
Answer: about 1.1107
Fast method: sin(y/x) = x/2. At x = sqrt 2, sin v = 1/sqrt 2, v = pi/4, and y = x v = 1.4142 x 0.7854 = 1.1107.
Sanity check: v = y/x must stay in (0, pi/2) for tan v to be positive, and pi/4 is inside it. At x = 1 the formula gives v = pi/6, as given.
Formulas and units
| Result | Formula | Valid when | Units or note | Worked example |
|---|---|---|---|---|
| Homogeneous test | F(t x, t y) = F(x, y) for dy/dx = F(x, y) | first-order equation dy/dx = F(x, y), t > 0 | dimensionless | Example 3 |
| Substitution | y = v x; dy/dx = v + x dv/dx | homogeneous equation: F depends only on y/x | v dimensionless | Example 3 |
| Separated form | dv/(F(v) - v) = dx/x | homogeneous equation with F(v) not equal to v | dimensionless | Example 3 |
| Linear form | dy/dx + P y = Q (P, Q functions of x) | first-order linear; P and Q continuous in x | n/a (as in the equation) | Example 1 |
| Integrating factor | IF = e^(integral of P dx) | linear equation in standard form (coefficient of y' is 1) | dimensionless | Example 1 |
| Linear solution | y IF = integral of Q IF dx + C | linear equation in standard form; C is the constant | units of y (IF is dimensionless) | Example 2 |
| Linear in x | dx/dy + P(y) x = Q(y); IF = e^(integral of P dy) | equation linear in x with y as variable | n/a (as in the equation) | Example 5 |
| Standard integrating factors | P = n/x -> xⁿ; P = 1/(x ln x) -> ln x; P = tan x -> sec x | x > 0 for xⁿ; x > 1 for ln x; cos x > 0 for sec x | dimensionless | Example 1 |
| Mixing, constant volume | S = c V + (S0 - c V) e^(-q t/V) | constant volume V; inflow = outflow = q; well mixed; inflow concentration c | kg (q in L/min, V in L, t in min) | Example 6 |
Common mistakes and speed
- Reading P from x dy/dx + 2 y = x³ as 2, without dividing by x. Why it tempts: The 2 is visible next to y, and e^(2x) is a clean-looking factor; the standard form needs the coefficient of dy/dx to be 1.
- Writing dy/dx = v dx/dx or dy/dx = v when y = v x. Why it tempts: Treating v as a constant is quick; v changes with x, so dy/dx = v + x dv/dx.
- Using the substitution y = v x on an equation that is not homogeneous. Why it tempts: The substitution looks the same for any F, but the variables separate only when F depends on y/x alone; check F(t x, t y) first.
- Forgetting the constant of integration before using the initial point, or applying it to y instead of to y times the integrating factor. Why it tempts: y IF = integral of Q IF + C has the constant next to the factor; solving for y first and then fixing C is safe, fixing C wrongly gives the neighbouring option.
- Solving y dx + (2 x - y⁴) dy = 0 as linear in y. Why it tempts: We are used to dy/dx, but this equation is not linear in y; it is linear in x with y as the variable.
- Swapping the sign in the tangent intercept: using y + x dy/dx in place of y - x dy/dx. Why it tempts: Both look like natural combinations; the tangent y - y0 = (dy/dx)(x - x0) meets x = 0 at y - x dy/dx.
Time per question and fast method
Target: about 130 seconds per question.
Decide in ten seconds: depends on y/x only means substitute y = v x; first power of y and dy/dx means linear. Divide by the coefficient of dy/dx, write IF from P directly (P = n/x gives xⁿ), and fix the constant last. If x appears linearly, switch to dx/dy.
Recall quiz
Pick an option for each question. Your answers stay on this page and are not sent anywhere.
Score: 0 of 6 correct. Pick an option for each question.
Practice
- For x dy/dx + 2y = x³ with x > 0, the integrating factor (the exponential of the integral of P dx, taking the… Verified (T1)
- The solution of dy/dx + y/x = x² for x > 0 with y(1) = 1 takes the value at x = 2 equal to Verified (T1)
- Let y = y(x) satisfy x ln x dy/dx + y = 2 ln x for x > 1, with y = 3 at x = e. Then y(e²) is ___. Verified (T3)
- The solution of dy/dx = (x² + y²)/(x y) with y(1) = 1 and y > 0 takes the value at x = e equal to Verified (T1)
- The curve with y dx + (2x - y⁴) dy = 0 passes through (1, 1). Its abscissa x at y = 2 is Verified (T1)
- A curve passes through (1, 2). At every point P(x, y) of the curve with x > 0, the tangent cuts off on the… Verified (T1)
- Let y = y(x) satisfy x dy/dx = y + sqrt(x² + y²) for x > 0 with y(1) = 0. Then y(5) is ___. Verified (T3)
Previous-year questions
Previous-year questions are not imported yet. Previous-year questions are not imported yet; see the official papers on the NTA site. Official NTA papers page.
Going deeper and revision
Homogeneous equations: test, method and edge cases
Test by replacing x with t x and y with t y: if t cancels from dy/dx = F(x, y), the equation is homogeneous of degree zero. Method: y = v x, then x dv/dx = F(v) - v and dv/(F(v) - v) = dx/x. If F(v) - v = 0 for some v, then y = v x is a straight-line solution through the origin, which division can lose. Integrals met: v dv, dv/sqrt(1 + v²) = ln(v + sqrt(1 + v²)), cot v dv = ln sin v. The point (1, 0) or (1, 1) usually fixes the constant. A homogeneous equation can also be written in terms of x = v y when dx/dy is simpler. Replace v by y/x at the end.
Linear equations: integrating factor and general solution
For dy/dx + P y = Q, IF = e^(integral of P dx) and the general solution is y IF = integral of Q IF dx + C, with one arbitrary constant. If Q = 0 the equation is separable and y = C e^(-integral of P dx). If P is a constant a, IF = e^(a x). When the integral of Q IF needs integration by parts (for example x eˣ), do it before fixing C. Linearity means that the sum of a particular solution and the solution of the equation with Q = 0 is the general solution. Units: if x is time and P has units 1/time, IF is dimensionless.
Linear in x, and choosing the right form
If the equation contains terms such as y² or sin y multiplied with dy/dx, it is not linear in y. Rewrite it as M dx + N dy = 0 and test whether it can be written as dx/dy = a(y) + b(y) x, that is whether x appears only to the first power with coefficients in y. Then IF = e^(integral of P dy). Typical JEE items: y dx + (x - y³) dy = 0 gives IF = y; (1 + y²) dx = (arctan y - x) dy gives IF = e^(arctan y). The answer for x as a function of y is then converted to the point asked, usually the value of x at a given y.
Applications: mixing, geometry and growth with input
Mixing with constant volume V, inflow concentration c at flow rate q, and uniform outflow: dS/dt = c q - (q/V) S, solution S = c V + (S0 - c V) e^(-q t/V), tending to c V. Geometry: the tangent at P(x, y) meets the y-axis at y - x dy/dx and the x-axis at x - y/(dy/dx); equate to the given statement to form the equation, and the subtangent and subnormal are handled the same way. Growth with input is dN/dt = a - b N, linear with constant coefficients. Always write the equation in words first: rate of change = input - output.
What examiners test
Typical items: decide if an equation is homogeneous and find the degree; solve dy/dx = F(y/x) with a given point and evaluate the solution at another point; apply the integrating factor with P not constant, including the trap of not dividing by the coefficient of dy/dx; spot that an equation is linear in x; mixing or geometry applications; and the number of arbitrary constants. Time target: about 120 to 150 seconds. Speed comes from recognising the form in ten seconds, writing the integrating factor directly, and fixing the constant last.
Memory hook
Suppose a water tank in a housing society holds 200 litres of water with some salt in it, and a pipe pours in salty water at a steady rate while the same amount flows out of the mixed tank.
- The salt in the tank rises when the pipe adds more than the outflow takes away, and the outflow takes away more when the tank is already salty.
- So the rate of change is a steady input minus a term proportional to the amount present: dS/dt + (rate/volume) S = input, which is a linear equation with constant P.
- The solution is a steady final value plus a leftover from the start that dies out exponentially: S = S_final + (S0 - S_final) e^(-t/time constant).
A linear equation dy/dx + P y = Q balances an input Q against a loss P y, and the integrating factor turns the left side into one derivative.
Linear: divide first, find the factor e^(integral of P), integrate Q times the factor.
Revision card
Try to answer each without looking above.
- How do you test whether dy/dx = F(x, y) is homogeneous, and what substitution follows?
- Write dy/dx in terms of v when y = v x.
- State the standard linear form and the integrating factor.
- Why must you divide by the coefficient of dy/dx before reading P?
- When should you rewrite an equation as dx/dy + P(y) x = Q(y)?
- Write the tangent y-intercept in terms of y and dy/dx.
Sources and review
Reviewed Reviewed on 2026-11-20: every number recomputed by code and independently reviewed; textbook section references pending.
- Method: Every number in worked examples, recall checks and notes recomputed by code; claims recomputed independently by a separate verifier run using other numerical methods; textbook section references not yet attached; wording defects found were fixed afterwards and re-linted (code checks re-run) but not re-reviewed by a second run; syllabus scope compared with the NTA JEE Main 2026 syllabus text (by the verifier; see the report)
- Reviewer: independent verifier agent run (not the author)
- Date: 2026-11-20
- Defects found: 5; fixed: 5
- Report: content/reviews/learn4-dif-2026-11-20.md
Textbook references
- NCERT Mathematics Part 2, Class 12 (reprint 2026-27), Chapter 9: Differential Equations, Summary Summary (read 2026-11-22)
Sources used
- NTA JEE (Main) 2026 syllabus, Mathematics, Unit 9 (https://jeemain.nta.nic.in/document/syllabus-2026/), read for scope. The extracted syllabus text lost the symbols of the linear form; it is read here as dy/dx + P y = Q with P and Q functions of x.
- Standard results of first-order ordinary differential equations (separation of variables, homogeneous equations, linear equations with an integrating factor); no textbook section reference attached yet (to be sourced at verification). Content written fresh for this site.
How labels work: see how answers and lessons are verified. Found a mistake? Use Report an error on any question page.