Differential Equations — The Equations That Know the Future
A Differential Equation Describes HOW Something Changes
A differential equation is an equation that involves a function and its derivatives. It describes a relationship between a quantity and its rate of change.
Differential equation: dy/dx = 2x → solve for y(x). A whole family of curves!
Why "knows the future"? If you know the rate of change of a population (dP/dt = kP), and you know the current population, you can predict the population at ANY future time! That's the power of DEs — they model how things evolve.
Examples of DEs in nature:
• Radioactive decay: dN/dt = −λN (rate of decay ∝ amount left)
• Newton's cooling: dT/dt = −k(T − T₀) (cooling rate ∝ temperature difference)
• Population growth: dP/dt = rP (growth rate ∝ current population)
Order and Degree — The DE's ID Card
Order = the highest derivative in the equation. Degree = the power of that highest derivative (after removing radicals and fractions).
General Solution vs Particular Solution
Particular solution: The constant(s) are determined by initial conditions (extra info like y(0) = 3). So C = 3, giving y = x² + 3.
Order determines constants: A first-order DE needs 1 initial condition. A second-order DE needs 2.
The Simpliest DE: dy/dx = f(x)·g(y) — Just Separate and Integrate
If you can rearrange the DE so that all x's are on one side and all y's on the other, you're done. Just separate and integrate both sides.
1. Rearrange to get all y terms with dy and all x terms with dx.
2. Integrate both sides.
3. Solve for y if possible.
Example: dy/dx = 2xy.
Separate: dy/y = 2x dx.
Integrate: ∫ dy/y = ∫ 2x dx → ln|y| = x² + C.
Solve: |y| = e^(x²+C) = e^C·e^(x²). Let A = ±e^C.
Worked Example: Variable Separable
Solve dy/dx = 1 + y² given y(0) = 1. Find y(π/4).
dy/(1 + y²) = dx
∫ dy/(1 + y²) = ∫ dx
tan⁻¹(y) = x + C
So tan⁻¹(y) = x + π/4.
y = tan(x + π/4).
At x = π/4: y = tan(π/4 + π/4) = tan(π/2) = undefined (infinite).
This means the solution blows up at x = π/4 — the function has a vertical asymptote there.
If Every Term Has the Same Total Degree, Substitute y = vx
A DE is homogeneous if dy/dx can be written as a function of y/x. The substitution y = vx (where v is a function of x) turns it into a variable-separable equation.
dy/dx = v + x·dv/dx (product rule).
The DE becomes: v + x·dv/dx = F(v).
Rearranged: x·dv/dx = F(v) − v.
Separated: dv/(F(v) − v) = dx/x.
Now it's variable-separable! Integrate, then substitute back v = y/x.
How to check if a DE is homogeneous: Replace x with tx and y with ty. If all terms get the same power of t, it's homogeneous. Example: (x² + y²)dx + xy·dy = 0. Each term has degree 2.
Worked Example: Homogeneous DE
Solve (x² − y²)dx + xy·dy = 0.
xy·dy = (y² − x²)dx
dy/dx = (y² − x²)/(xy) = y/x − x/y.
This is dy/dx = y/x − x/y = F(y/x) where F(v) = v − 1/v. ✅ Homogeneous.
v + x·dv/dx = v − 1/v
x·dv/dx = −1/v
v·dv = −dx/x
∫ v dv = −∫ dx/x
v²/2 = −ln|x| + C
v² = −2ln|x| + 2C = −ln(x²) + C₁
Form: dy/dx + P(x)·y = Q(x). The Answer Is Always y·IF = ∫Q·IF dx
A linear first-order DE has the form dy/dx + P(x)·y = Q(x). The integrating factor (IF) method is the standard solution technique.
Solution formula:
1. Write the DE as dy/dx + Py = Q (P and Q are functions of x only).
2. Compute IF = e^(∫P dx).
3. Multiply both sides by IF: IF·dy/dx + IF·P·y = IF·Q.
4. Notice the LHS = d/dx(y·IF).
5. Integrate: y·IF = ∫ Q·IF dx + C.
6. Solve for y.
Example: dy/dx + 3y = eˣ. P = 3, Q = eˣ.
IF = e^(∫3 dx) = e^(3x).
y·e^(3x) = ∫ eˣ·e^(3x) dx = ∫ e^(4x) dx = e^(4x)/4 + C.
y = e^(4x)/(4e^(3x)) + C/e^(3x) = eˣ/4 + C·e^(−3x).
Worked Example: Linear DE — Newton's Cooling
A cup of coffee at 90°C is placed in a room at 20°C. After 5 minutes, it's 60°C. Newton's law: dT/dt = −k(T − 20). Find when it reaches 40°C.
This is linear with P = k, Q = 20k.
IF = e^(∫k dt) = e^(kt).
T·e^(kt) = ∫ 20k·e^(kt) dt = 20e^(kt) + C.
T = 20 + C·e^(−kt).
At t = 0, T = 90: 90 = 20 + C → C = 70.
So T(t) = 20 + 70·e^(−kt).
40 = 70·e^(−5k)
e^(−5k) = 4/7 → −5k = ln(4/7) → k = −ln(4/7)/5 ≈ 0.1119.
Find t when T = 40: 40 = 20 + 70·e^(−kt)
20 = 70·e^(−kt) → e^(−kt) = 2/7
−kt = ln(2/7) → t = −ln(2/7)/k ≈ 11.2 minutes.
These Traps Trip Up Even Top Students
Right: ∫ dy/y = ∫ 2x dx → ln|y| = x² + C → y = ±e^C·e^(x²) = A·e^(x²) ✅
The constant of integration is ABSOLUTELY CRITICAL in DEs. Without it, you lose the entire family of solutions. The general solution MUST have constants equal to the order of the DE.
Right: The highest derivative is d²y/dx² (order 2). The power of the highest derivative is 3. So Order = 2, Degree = 3 ✅.
Order always = the number of dashes on y (or the highest derivative). Degree = the exponent on that highest derivative (after removing radicals and fractions).
Right: ∫ dy/y = ∫ dx → ln|y| = x + C → |y| = e^(x+C) → y = ±e^C·e^x = A·e^x ✅
The absolute value matters because y could be negative. The constant A = ±e^C absorbs both the sign and the magnitude.
5 Strategies That Crack Almost Any Problem
1. Can I separate? → dy/dx = f(x)g(y)? → Separate and integrate.
2. Is it dy/dx = F(y/x)? → Homogeneous. Substitute y = vx.
3. Is it dy/dx + P(x)·y = Q(x)? → Linear. Find IF = e^(∫P dx).
4. Is it dy/dx + P·y = Q·yⁿ? → Bernoulli. Let v = y^(1−n) to make it linear.
5. None of the above? → Try an exact DE or look for a substitution.
Pro tip: Most JEE DE problems are designed to be one of these types. Identify the type first, then apply the standard method.
• dx/dy form: Sometimes the equation is easier if you treat x as a function of y. dx/dy + P(y)·x = Q(y) → linear in x!
• Symmetric form: M(x,y)dx + N(x,y)dy = 0. Check if it's homogeneous by looking at the degrees of M and N.
Example: (x² + y²)dx + xy·dy = 0. This is in symmetric form. The degree of each term is 2 → homogeneous.
If you got y = A·e^(x²) from dy/dx = 2xy:
dy/dx = 2x·A·e^(x²) = 2xy. ✅ Works!
This catches differentiation errors, sign errors, and integration constant mistakes. Always do this check in exams if you have time.
It's simple: First find the general solution (with constant C). Then plug in the initial condition to find C.
Example: dy/dx = 2xy, y(0) = 5.
General: y = A·e^(x²).
Plug x = 0, y = 5: 5 = A·e⁰ = A. So y = 5·e^(x²).
That's it! The initial condition just pinpoints which curve from the family you want.
Multi-Step Problems That Combine Multiple Concepts
Example 1: Bernoulli's Equation
Solve dy/dx + y/x = y².
Here P = 1/x, Q = 1, n = 2.
Bernoulli's substitution: v = y^(1−n) = y^(1−2) = y^(−1) = 1/y.
Then dv/dx = −y^(−2)·dy/dx = −v²·dy/dx.
Note: dv/dx = −y^(−2)·dy/dx, so y^(−2)·dy/dx = −dv/dx.
And y^(−1) = v.
So: −dv/dx + (1/x)·v = 1 → dv/dx − (1/x)·v = −1.
This is linear in v: dv/dx + P'·v = Q' where P' = −1/x, Q' = −1.
IF = e^(∫−1/x dx) = e^(−ln|x|) = 1/x.
v·(1/x) = ∫ −1·(1/x) dx = −ln|x| + C.
v = x(−ln|x| + C) = −x·ln|x| + Cx.
Example 2: Orthogonal Trajectories
Find the orthogonal trajectories of the family of parabolas y = ax².
dy/dx = 2(y/x²)·x = 2y/x.
The slope of the tangent at any point on y = ax² is dy/dx = 2y/x.
This is variable separable: 2y·dy = −x·dx
∫ 2y dy = −∫ x dx
y² = −x²/2 + C
Example 3: Growth/Decay Application
The rate at which a substance decays is proportional to the amount present. If half of a 100g sample decays in 10 years, how much remains after 25 years?
Separate: dN/N = −k dt.
Integrate: ln|N| = −kt + C → N = N₀·e^(−kt).
At t = 0, N = 100: N₀ = 100.
So N(t) = 100·e^(−kt).
50 = 100·e^(−10k) → e^(−10k) = ½ → −10k = ln(½) = −ln(2) → k = ln(2)/10 ≈ 0.0693.
At t = 25: N = 100·e^(−25·ln(2)/10) = 100·e^(−2.5·ln(2)) = 100·(e^(ln(2)))⁻²·⁵
= 100·(2⁻²·⁵) = 100/2^(2.5) = 100/(2²·√2) = 100/(4√2) = 25/√2 ≈ 17.68 grams.
Practice Zone: Think, Don't Compute
These questions test if you truly understand differential equations.