Module 1: Mathematical methods · Lesson 1.7 · about 45 min
First and second order differential equations
Separable, linear and exact first-order equations, constant-coefficient second-order equations with damping and forcing, resonance and Euler-Cauchy equations: the methods, the physics behind them and the traps JAM sets.
Module 1 · about 45 minutes. By the end you will be able to recognise which kind of equation you are facing, solve the four first-order types and every constant-coefficient second-order equation JAM can set, read off damping and resonance at a glance, and avoid the classic slips with repeated roots and particular solutions.
1. What kind of equation is it?
A differential equation links a function with its derivatives. Three labels decide the method:
- Order: the highest derivative present. is second order.
- Degree: the power of that highest derivative (once there are no fractional powers). has order 2 and degree 3; the power 4 on a lower derivative does not count.
- Linear or not: linear means and its derivatives appear only to the first power, never multiplied together or inside functions like . The coefficients may depend on freely: is linear.
Linearity matters because of superposition: for a linear equation with zero right-hand side, any combination of solutions is again a solution. That is why every second-order linear equation has a general solution with exactly two constants.
2. First-order equations: four types
| Type | Looks like | Method |
|---|---|---|
| Separable | ||
| Linear | multiply by ; then | |
| Exact | with | find with , ; answer |
| Almost exact | but depends on only | integrating factor |
Why the integrating factor works. If , then by the product rule . So multiplying the equation by turns its left side into one exact derivative.
Worked example. Solve for with , and find .
- , so .
- . Integrate: .
- gives , so .
- .
The usual slip is step 2: forgetting to multiply the right side by as well.
Physics you should see instantly. Decay gives with half-life . An RC circuit charges as . Newton’s cooling : it is the excess over room temperature that decays exponentially, so it halves in equal times.
A warning about non-linear equations: with gives , which blows up at even though the equation looks harmless. Linear equations never do that where their coefficients are smooth.
3. Second order with constant coefficients
This is the heart of the topic, because it is the equation of every oscillator:
Try . Every derivative brings down a factor , and cancels, leaving the auxiliary (characteristic) equation:
Its two roots decide everything:
| Roots | General solution | Behaviour |
|---|---|---|
| real, different | growth or decay, no oscillation | |
| real, equal | the borderline case | |
| complex | oscillation at , growing or decaying at rate |
The complex case is where Euler’s formula (lesson 1.9) earns its place: , and the real and imaginary parts are both real solutions.
- m (a root)
- the growth rate of one basic solution e^(mx)
- Real part of m
- how fast the motion grows (positive) or dies away (negative)
- Imaginary part of m
- the angular frequency of the oscillation
- Double root
- the second solution is x e^(mx), not a second copy of e^(mx)
- Physical meaning
- For a mass on a spring with friction, the roots tell you at once whether it rings, creeps back, or returns as fast as possible without overshooting.
4. The damped oscillator
Write the oscillator equation in the standard physics form, with damping rate and natural frequency :
Move the sliders to see the three regimes:
- Underdamped, : with . Damping lowers the frequency.
- Critically damped, : . Car shock absorbers and meter needles are designed to sit near here.
- Overdamped, : two negative real roots; the slower one, , controls the long creep.
Worked example. For : gives . So the motion oscillates at 3 rad/s (not ) and its amplitude falls as , halving every s.
Note the factor 2 in : in the decay rate is 0.1, not 0.2. Critical damping in needs , and in an LCR circuit .
5. Forcing: particular solutions and resonance
With a right-hand side, the solution is
where is the general solution with the right side set to zero (two constants) and is any one solution of the full equation. For exam right-hand sides, guess of the same shape (undetermined coefficients):
| Right side | Try |
|---|---|
| polynomial of degree | polynomial of degree |
| or |
The one rule that catches everyone: if your guess already solves the homogeneous equation, it gives zero on the left and cannot work. Multiply it by (and by again if needed).
Worked example. $y'' + 4y = \sin 2x$. The homogeneous solutions are $\cos2x$and$\sin2x$, so $A\sin2x$fails. Try$y_p = Bx\cos2x$: then $y_p” + 4y_p = -4B\sin2x$, so $B = -\tfrac14$and$y_p = -\tfrac14x\cos2x$`. The amplitude grows without limit: this is resonance, driving an undamped oscillator at its own frequency.
With damping, the steady response to stays finite:
It peaks at , slightly below both and the free damped frequency . Three different frequencies, three favourite exam options. Play with a driven oscillator in fibub’s forced oscillations tool, and check any equation numerically with the ODE solver.
When the right side is something like or , guessing fails; then use variation of parameters (, with the Wronskian). For it gives .
“A repeated root just means I write the same solution twice.” No. is really one constant times one function, and it cannot fit two initial conditions. For a double root the second solution is . The same idea returns with forcing: when the right side matches a homogeneous solution, multiply the trial by ; when it matches a double root, by (for the answer is ).
6. Euler-Cauchy equations
When the coefficients are powers of matching the order of the derivative,
an exponential no longer fits, but a power does: try to get . Distinct roots give ; a double root gives (the logarithm plays the role that played before).
Worked example. : , so and . These equations appear in physics whenever a problem has no preferred length scale, such as Laplace’s equation in spherical coordinates.
One step further. A system of linear equations like , is solved the same way, with the exponents now the eigenvalues of the matrix (lesson 1.8): here 4 and 2.
- Identify the type first: order, degree, linear or not; then separable, linear (integrating factor ) or exact ().
- For solve : distinct real roots give exponentials, a double root gives , complex roots give .
- Damped oscillator : under, critical () or overdamped; the damped frequency is .
- General solution = homogeneous + one particular. If the trial solves the homogeneous equation, multiply it by .
- Undamped driving at grows like ; with damping the amplitude peaks at .
- Euler-Cauchy : try ; a double root brings .
Practise: exam questions on this lesson
They start easy and climb to top-rank level. Check each answer, then read the full solution. More on the differential equations practice page.
Before this: lesson 1.6, the integral theorems. Next: lesson 1.8, matrices and eigenvalues, which solves systems of these equations in one go. Oscillators return in the mechanics and waves modules. For GATE and CSIR NET, the GATE Physics course continues with series solutions (Legendre, Bessel, Hermite) and partial differential equations, and CSIR NET adds numerical methods for ODEs.
Check yourself
Sources
- M. L. Boas, Mathematical Methods in the Physical Sciences, 3rd ed. (2006), chapter 8
- E. Kreyszig, Advanced Engineering Mathematics, 10th ed. (2011), chapters 1 to 3
- G. F. Simmons, Differential Equations with Applications and Historical Notes, 3rd ed. (2016)
- IIT JAM Physics syllabus (Mathematical Methods section), published by the organising IIT each year
Your ticks stay in this browser. Save them as a file on the course home.
Updated 2026-11-22. Not affiliated with IIT or the JAM organising institute. Exam pattern as published for recent years: always check the official JAM website before the exam. All questions are original.