Module 2 · 9 min read · Free chapter
Differential equations: first order, higher order and PDEs
A differential equation links a quantity to its rates of change, so it describes how systems evolve. First-order equations model cooling, charging and decay. Second-order linear equations with constant coefficients model springs, circuits and vibrations, and their roots decide whether the motion is overdamped, critically damped or oscillating.
Start from zero: rules for change
A hot cup of tea cools fast at first and then more slowly. The rate at which it cools depends on how much hotter it is than the room. That sentence is already a differential equation: . It relates an unknown function, temperature , to its own rate of change.
Nature usually tells us rules about change rather than the answer directly. Newton's second law says force equals mass times acceleration, which is a second derivative of position. A capacitor's current is , and a beam's bending moment is . Solving the differential equation turns such a rule into the actual motion, voltage or deflection.
Words to know. The order is the highest derivative that appears. The degree is the power of that highest derivative, once the equation is cleared of roots and fractions in the derivatives. An equation is linear when and its derivatives appear only to the first power and are never multiplied together.
An initial value problem gives conditions at one point, such as position and speed at . A boundary value problem gives conditions at two ends, such as the deflection at both supports of a beam.
Why it matters. GATE ME, EE, EC and CE all test this topic. It also underlies vibrations, circuits, control systems, heat transfer and beam deflection.
First-order equations
Most first-order equations in exams fall into four types, and the first job is to recognise the type.
1. Variables separable. If the equation can be written , integrate both sides. For the tea, gives , an exponential approach to room temperature.
2. Linear first-order. The form is . Multiply by the integrating factor , and the left side becomes the derivative of . So
Worked example. For , , so . Then , which gives , or .
3. Exact equations. is exact when . Then a function exists with , and the solution is . Find by integrating in and adding any terms in that depend on alone.
4. Bernoulli's equation. The form looks non-linear. Putting turns it into a linear equation in , which method 2 then solves.
Why it matters. An RC circuit charging, a tank draining and a body cooling are all first-order systems. Their solutions share one shape, a final value approached as , where is the time constant.
Second-order linear equations with constant coefficients
Hang a mass on a spring, add a damper, and pull it down. Newton's law gives . Equations of this shape, , describe vibrations, RLC circuits and many control systems.
The trick is to try , because exponentials keep their shape when differentiated. Substituting gives the auxiliary (characteristic) equation . Its two roots decide the form of the solution.
- Distinct real roots give .
- A repeated root gives ; the extra supplies a second independent solution.
- Complex roots give , an oscillation whose size grows or shrinks as .
Worked example. For , gives . So , an oscillation at frequency 3 that dies away.
The spring-mass reading. With no damper the roots are purely imaginary and the mass oscillates for ever. Light damping gives complex roots with a negative real part, so the oscillation dies out. Critical damping gives a repeated root and the quickest return with no overshoot. Heavy damping gives two negative real roots, and the mass creeps back slowly.
Forced response: particular integrals, variation of parameters and Euler-Cauchy
Now push the spring-mass with a force, so . The general solution is the complementary function (CF), which solves the equation with , plus a particular integral (PI), which is any one solution of the full equation. The CF holds the constants, and the PI is the steady response to the forcing.
Guessing the PI (undetermined coefficients).
- For , try ; if is a root of the auxiliary equation, try , and for a double root .
- For or , try , multiplying by if is a root.
- For a polynomial of degree , try a general polynomial of degree .
Worked example. For , the roots are 1 and 2, and 3 is not a root. Trying gives , so . The solution is .
Variation of parameters works for any , even ones like or where guessing fails. With CF solutions and and Wronskian , the PI for is
Euler-Cauchy equations look like , where the power of matches the order of each derivative. Trying gives . So gives , or , and .
Why it matters. When the forcing frequency matches the natural frequency, the PI needs the extra , and the response grows with time. This is resonance, the reason machine foundations and bridges are checked for it.
Partial differential equations: heat, waves and steady fields
When the unknown depends on more than one variable, such as position and time, the equation involves partial derivatives. Three PDEs cover most engineering problems.
- The heat (diffusion) equation describes how temperature spreads along a rod. It also describes consolidation of clay and diffusion of a dye.
- The wave equation describes a vibrating string, sound, and voltage waves on a long line. Its general solution is two shapes travelling at speed .
- Laplace's equation describes steady states with no time change. Examples are temperature in a plate, seepage under a dam and electric potential in a charge-free space.
Classifying a PDE. For , look at . If it is negative the equation is elliptic (Laplace), if zero parabolic (heat), and if positive hyperbolic (wave). The names come from the conic sections, ellipse, parabola and hyperbola, which use the same test.
Separation of variables. Assume . In the heat equation this gives , so . A function of alone can equal a function of alone only if both equal a constant, . This leaves two ODEs: and .
Worked example. A rod of length has both ends kept at 0 °C. The solution has terms like . Higher modes die out faster, so after a while only the shape remains.
Descriptive lens: how ESE and state papers ask this
Descriptive papers ask you to solve an equation fully with given conditions, to model a physical system and then solve it, or to solve a PDE by separation of variables.
Our practice questions (not previous-year questions).
- Solve with and .
- A body at 80 °C cools to 60 °C in 10 minutes in a room at 20 °C. Find its temperature after 30 minutes.
- Solve the wave equation for a string of length L fixed at both ends, released from rest in the shape .
Answer plan for question 2.
- First, write , so that .
- Next, use at to get .
- Then at , .
- Finally, , and the answer shows the gap from room temperature falling by the same factor every 10 minutes.
Quick revision
- Order is the highest derivative; degree is its power after clearing roots and fractions.
- Separable equations are integrated directly, and linear ones use with .
- An exact equation needs , and Bernoulli becomes linear with .
- For , distinct roots give two exponentials, a repeated root gives , and gives .
- The general solution is CF plus PI, and the PI trial is multiplied by when it repeats a root.
- Variation of parameters uses the Wronskian .
- Euler-Cauchy uses .
- Heat is parabolic, wave is hyperbolic and Laplace is elliptic, decided by .
- Separation of variables sets and gives two ODEs.