ExamSaathi learning library · School · CBSE Class 12 Mathematics 2026-27; teacher review pending · Mathematics
Differential equations for Class 12: order, degree and first-order methods
A differential equation links an unknown function with its derivatives. Find the order and degree, tell general from particular solutions, and solve first-order equations by separating the variables, by putting y = v t in homogeneous equations and by an integrating factor in linear ones.
Status: original pilot lesson. Teacher review is pending. It is not a complete course or official exam material.
You will learn to
- Find the order and the degree of a differential equation, and recognise when the degree is not defined.
- Verify that a function solves a differential equation, and tell a general solution with arbitrary constants from a particular solution.
- Solve differential equations in variables separable form, using an initial condition to fix the constant.
- Solve homogeneous differential equations of first order and first degree with the substitution y = v t.
- Solve linear differential equations of the form dy/dt + P y = Q with an integrating factor.
Before you start
Recap in one line: this lesson uses the integration methods of the Class 12 lesson on integrals (standard integrals, substitution, partial fractions and integration by parts) and the derivatives from the lesson on continuity and differentiability. Here t is the independent variable and y the dependent variable, because the letter x is kept for multiplication; dy/dt (or y') is the first derivative and d^2y/dt^2 (or y'') the second. A differential equation is an equation that contains at least one derivative of an unknown function, such as dy/dt = 3t^2, t (dy/dt) - y = t^3 or d^2y/dt^2 + 9y = 0. Every equation in this lesson has a single independent variable, so it is an ordinary differential equation. Such equations describe quantities whose rate of change is known: a deposit earning interest, a cooling cup of chai or a growing colony of bacteria. As before, log means the natural logarithm, to base e. Solving an equation means finding the functions y that make it true, and every answer can be checked by putting it back into the equation.
Order, degree and solutions
The order of a differential equation is the order of the highest derivative in it: dy/dt = 2t + y has order 1, and d^2y/dt^2 + (dy/dt)^3 = 0 has order 2. The degree is defined only when the equation is a polynomial in its derivatives; it is then the highest power of the highest-order derivative. So (d^2y/dt^2)^2 + 4(dy/dt)^5 = t has order 2 and degree 2, not 5. Functions of y or t alone do not matter: (dy/dt)^2 + sin y = 0 is a polynomial in dy/dt, with degree 2. But dy/dt + e^(dy/dt) = 0 is not a polynomial in dy/dt, so its degree is not defined. When they are defined, the order and the degree are positive whole numbers. A solution is a function y = f(t) that turns the equation into a true statement for every t in an interval. A general solution contains arbitrary constants; for the equations met here, as many as the order. A particular solution has no arbitrary constant left, because a condition such as y(0) = 5 fixes it. Example: y = C e^(3t) satisfies dy/dt = 3y, since its derivative 3C e^(3t) equals 3y. It is the general solution, and the condition y(0) = 5 gives the particular solution y = 5e^(3t).
Separating the variables
A first-order, first-degree equation can be written dy/dt = F(t, y). When F splits into a factor in t times a factor in y, F(t, y) = g(t) h(y), collect each variable on its own side: dy/h(y) = g(t) dt, wherever h(y) is not 0. Then integrate both sides and add a single constant. Example: dy/dt = 2t y gives dy/y = 2t dt, so log|y| = t^2 + C. Taking exponentials, |y| = e^C e^(t^2), which can be written y = A e^(t^2) for a constant A; A = 0 gives y = 0, a solution that was hidden when we divided by y. With the condition y(0) = 3, A = 3 and the particular solution is y = 3e^(t^2). Growth and decay are the most common use. If a quantity P changes at a rate proportional to itself, dP/dt = r P with a constant r, then dP/P = r dt, log P = r t + C and P = P0 e^(rt), where P0 is the value at t = 0. A positive r means growth, such as a deposit with interest added continuously; a negative r means decay, such as a medicine leaving the blood. When a logarithm or a division appears, note the interval of t on which the answer holds.
Homogeneous equations: put y = v t
A function F(t, y) is homogeneous of degree n if F(k t, k y) = k^n F(t, y) for every nonzero constant k. For example, t^2 + 3ty is homogeneous of degree 2 and (t + y)/(t - y) of degree 0, while t + y^2 is not homogeneous. The equation dy/dt = F(t, y) is called homogeneous when F is homogeneous of degree zero; then F depends only on the ratio y/t, so F(t, y) = g(y/t) for t not 0. Put y = v t, where v is a new function of t. By the product rule dy/dt = v + t dv/dt, and the equation becomes v + t dv/dt = g(v), that is, t dv/dt = g(v) - v. Before dividing, look for constants c with g(c) = c: each gives a solution y = c t wherever the equation is defined. For instance, dy/dt = y/t has g(v) = v, so every line y = C t through the origin solves it. Where g(v) - v is not 0, the equation separates: dv/(g(v) - v) = dt/t. Integrate, then replace v by y/t. Example: dy/dt = 1 + y/t for t > 0 gives v + t dv/dt = 1 + v, so dv = dt/t, v = log t + C and y = t log t + C t. If the equation is easier to write as dt/dy = G(t, y) with G homogeneous of degree zero, put t = u y instead and work the same way with y as the independent variable. A quick test: replace t by k t and y by k y; if every k cancels, the equation is homogeneous.
Linear equations and the integrating factor
A first-order equation is linear in y when it can be written dy/dt + P y = Q, where P and Q are functions of t alone or constants. Then y and dy/dt appear only to the first power and are never multiplied together. The method: multiply both sides by the integrating factor IF = e^(integral of P dt). Since the derivative of IF is P x IF, the left side becomes IF x dy/dt + P x IF x y, which is exactly the derivative of y x IF by the product rule. So d/dt (y x IF) = Q x IF, and y x IF = integral of (Q x IF) dt + C. Any antiderivative of P will do in the exponent, so no constant is added there; the single constant C comes in the last integration. Example: dy/dt + 2y = 4 has P = 2 and IF = e^(2t), so y e^(2t) = 2e^(2t) + C and y = 2 + C e^(-2t). Some equations are linear in t instead, when t is treated as a function of y: dt/dy + P1 t = Q1, with P1 and Q1 functions of y alone or constants. Then IF = e^(integral of P1 dy) and t x IF = integral of (Q1 x IF) dy + C. Always bring the equation to standard form first: the coefficient of dy/dt (or of dt/dy) must be 1 before you read off P.
Common mistakes
1. Taking the highest power anywhere in the equation as the degree; the degree is the power of the highest-order derivative, and it exists only when the equation is a polynomial in its derivatives. 2. Adding a separate constant on each side after separating; one constant on one side is enough. 3. Dividing by h(y) and losing a solution such as y = 0. 4. Going from log|y| = t^2 + C to y = t^2 + C, instead of y = A e^(t^2). 5. In a homogeneous equation, writing dy/dt = v and forgetting the t dv/dt term. 6. Reading P before the coefficient of dy/dt is made 1, or using e^P instead of e^(integral of P dt) as the integrating factor. 7. Forgetting to change v back to y/t, or stopping at the general solution when a condition asks for the particular one.
A short routine
1. Read the order from the highest derivative; if the equation is a polynomial in its derivatives, read the degree as that derivative's power. 2. For a first-order, first-degree equation, write it as dy/dt = F(t, y). 3. If F is a product g(t) h(y), separate the variables and integrate. 4. If F(k t, k y) = F(t, y), put y = v t, note any constant solutions v = c with g(c) = c, separate v and t where g(v) - v is not 0, integrate, then put v = y/t. 5. If it has the form dy/dt + P y = Q, find IF = e^(integral of P dt) and use y x IF = integral of (Q x IF) dt + C; if it is linear in t, use the dt/dy form. 6. Use the given condition to find the constant. 7. Check by differentiating your answer and putting it back into the equation.
Worked examples
In a made-up savings scheme, Rs. 20,000 grows with interest added continuously at 5% a year, so the amount A (in rupees) after t years obeys dA/dt = 0.05 A with A(0) = 20,000. Find the amount after 8 years, to the nearest paisa.
- 1. Separate the variables (A is positive): dA/A = 0.05 dt.
- 2. Integrate both sides: log A = 0.05 t + C.
- 3. Take exponentials: A = e^C e^(0.05 t); at t = 0 this is e^C, so e^C = 20,000 and A = 20,000 e^(0.05 t).
- 4. Put t = 8: A = 20,000 e^(0.4), and e^(0.4) is about 1.4918247.
- 5. A is about 20,000 x 1.4918247 = 29,836.49.
Answer: A = 20,000 e^(0.05 t), so after 8 years the amount is about Rs. 29,836.49.
Solve dy/dt = (t^2 + y^2)/(t y) for t > 0 and y > 0, given y(1) = 2, and find y when t = e.
- 1. Test: replacing t by k t and y by k y gives (k^2 t^2 + k^2 y^2)/(k^2 t y), the same fraction, so the equation is homogeneous; dividing top and bottom by t^2 gives (1 + v^2)/v with v = y/t.
- 2. Put y = v t, so dy/dt = v + t dv/dt, and the equation becomes v + t dv/dt = (1 + v^2)/v = 1/v + v.
- 3. The v terms cancel: t dv/dt = 1/v, so v dv = dt/t.
- 4. Integrate: v^2/2 = log t + C.
- 5. Put v = y/t: y^2 = 2t^2 (log t + C). The condition y(1) = 2 gives 4 = 2(0 + C), so C = 2.
- 6. Taking the positive root (y > 0): y = t sqrt(2 log t + 4), valid while 2 log t + 4 > 0, that is for t > e^(-2).
- 7. At t = e, log e = 1, so y = e sqrt(6), which is about 2.71828 x 2.44949 = 6.6584.
Answer: y = t sqrt(2 log t + 4); at t = e, y = e sqrt(6), about 6.6584.
Solve t (dy/dt) + 2y = t^2 for t > 0, given y(1) = 1, and find y(2).
- 1. Divide by t to reach standard form: dy/dt + (2/t) y = t, so P = 2/t and Q = t.
- 2. Integrating factor: IF = e^(integral of 2/t dt) = e^(2 log t) = t^2, since t > 0.
- 3. Multiply through by t^2: t^2 (dy/dt) + 2t y = t^3, and the left side is the derivative of t^2 y.
- 4. Integrate: t^2 y = t^4/4 + C.
- 5. The condition y(1) = 1 gives 1 = 1/4 + C, so C = 3/4 and y = t^2/4 + 3/(4t^2).
- 6. At t = 2: y = 4/4 + 3/16 = 1 + 0.1875 = 1.1875. Check: dy/dt = t/2 - 3/(2t^3), and t (dy/dt) + 2y = t^2/2 - 3/(2t^2) + t^2/2 + 3/(2t^2) = t^2.
Answer: y = t^2/4 + 3/(4t^2), so y(2) = 19/16 = 1.1875.
Practice checks
- What are the order and degree of the differential equation (d^2y/dt^2)^3 + 5(dy/dt)^4 - 7y = 0?
- For which differential equation is the degree not defined?
- Solve dy/dt = 3t^2 y with y(0) = 4. What is y when t = 1?
- Which of these differential equations is homogeneous?
- Solve dy/dt + y = 2 with y(0) = 5. What is y when t = log 3?
Sources checked
- CBSE Mathematics (041), Classes XI-XII (2026-27) — Class XII Unit III Calculus, Chapter 5 Differential Equations
- NCERT Mathematics Part II, Class XII, Chapter 9 Differential Equations — Basic concepts, order and degree, general and particular solutions, variables separable, homogeneous differential equations and linear differential equations
- OpenStax Calculus Volume 2, 4.1 Basics of Differential Equations — Order of a differential equation, verifying solutions, general and particular solutions and initial-value problems
- OpenStax Calculus Volume 2, 4.3 Separable Equations — Separation of variables and its applications
- OpenStax Calculus Volume 2, 4.5 First-order Linear Equations — Standard form, the integrating factor and solving first-order linear equations