Engineering Mathematics‹›⌂ 0:00 studied

Module 2 · 9 min read · Free chapter

Differential equations: first order, higher order and PDEs

In short

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.

What are you preparing for? We show the practice and previous year questions of your exam.

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: dTdt=−k(T−Tr)\dfrac{dT}{dt} = -k(T - T_r). It relates an unknown function, temperature T(t)T(t), 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 CdVdtC\dfrac{dV}{dt}, and a beam's bending moment is EId2ydx2EI\dfrac{d^2y}{dx^2}. 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 yy 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 t=0t = 0. 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 f(y) dy=g(x) dxf(y)\,dy = g(x)\,dx, integrate both sides. For the tea, dTT−Tr=−k dt\dfrac{dT}{T - T_r} = -k\,dt gives T=Tr+(T0−Tr)e−ktT = T_r + (T_0 - T_r)e^{-kt}, an exponential approach to room temperature.

2. Linear first-order. The form is dydx+P(x) y=Q(x)\dfrac{dy}{dx} + P(x)\,y = Q(x). Multiply by the integrating factor IF=e∫P dx\mathit{IF} = e^{\int P\,dx}, and the left side becomes the derivative of y×IFy \times \mathit{IF}. So

y×IF=∫Q×IF dx+Cy \times \mathit{IF} = \int Q \times \mathit{IF}\,dx + C

Worked example. For dydx+yx=x2\dfrac{dy}{dx} + \dfrac{y}{x} = x^2, P=1xP = \dfrac{1}{x}, so IF=eln⁡x=x\mathit{IF} = e^{\ln x} = x. Then d(xy)dx=x3\dfrac{d(xy)}{dx} = x^3, which gives xy=x44+Cxy = \dfrac{x^4}{4} + C, or y=x34+Cxy = \dfrac{x^3}{4} + \dfrac{C}{x}.

3. Exact equations. M dx+N dy=0M\,dx + N\,dy = 0 is exact when ∂M∂y=∂N∂x\dfrac{\partial M}{\partial y} = \dfrac{\partial N}{\partial x}. Then a function φ(x,y)\varphi(x, y) exists with dφ=M dx+N dyd\varphi = M\,dx + N\,dy, and the solution is φ=C\varphi = C. Find φ\varphi by integrating MM in xx and adding any terms in NN that depend on yy alone.

4. Bernoulli's equation. The form dydx+Py=Qyn\dfrac{dy}{dx} + Py = Qy^n looks non-linear. Putting v=y1−nv = y^{1-n} turns it into a linear equation in vv, 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 e−t/τe^{-t/\tau}, where τ\tau 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 my′′+cy′+ky=0my'' + cy' + ky = 0. Equations of this shape, ay′′+by′+cy=0ay'' + by' + cy = 0, describe vibrations, RLC circuits and many control systems.

The trick is to try y=emxy = e^{mx}, because exponentials keep their shape when differentiated. Substituting gives the auxiliary (characteristic) equation am2+bm+c=0am^2 + bm + c = 0. Its two roots decide the form of the solution.

  • Distinct real roots m1≠m2m_1 \ne m_2 give y=C1em1x+C2em2xy = C_1e^{m_1x} + C_2e^{m_2x}.
  • A repeated root mm gives y=(C1+C2x)emxy = (C_1 + C_2x)e^{mx}; the extra xx supplies a second independent solution.
  • Complex roots α±iβ\alpha \pm i\beta give y=eαx(C1cos⁡βx+C2sin⁡βx)y = e^{\alpha x}(C_1\cos\beta x + C_2\sin\beta x), an oscillation whose size grows or shrinks as eαxe^{\alpha x}.

Worked example. For y′′+4y′+13y=0y'' + 4y' + 13y = 0, m2+4m+13=0m^2 + 4m + 13 = 0 gives m=−2±3im = -2 \pm 3i. So y=e−2x(C1cos⁡3x+C2sin⁡3x)y = e^{-2x}(C_1\cos 3x + C_2\sin 3x), 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 ay′′+by′+cy=f(x)ay'' + by' + cy = f(x). The general solution is the complementary function (CF), which solves the equation with f=0f = 0, 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 f=eaxf = e^{ax}, try AeaxAe^{ax}; if aa is a root of the auxiliary equation, try AxeaxAxe^{ax}, and for a double root Ax2eaxAx^2e^{ax}.
  • For f=sin⁡ωxf = \sin\omega x or cos⁡ωx\cos\omega x, try Acos⁡ωx+Bsin⁡ωxA\cos\omega x + B\sin\omega x, multiplying by xx if iωi\omega is a root.
  • For a polynomial of degree nn, try a general polynomial of degree nn.

Worked example. For y′′−3y′+2y=e3xy'' - 3y' + 2y = e^{3x}, the roots are 1 and 2, and 3 is not a root. Trying Ae3xAe^{3x} gives 9A−9A+2A=19A - 9A + 2A = 1, so A=12A = \dfrac{1}{2}. The solution is y=C1ex+C2e2x+e3x2y = C_1e^x + C_2e^{2x} + \dfrac{e^{3x}}{2}.

Variation of parameters works for any ff, even ones like sec⁡x\sec x or ln⁡x\ln x where guessing fails. With CF solutions y1y_1 and y2y_2 and Wronskian W=y1y2′−y2y1′W = y_1y_2' - y_2y_1', the PI for y′′+py′+qy=fy'' + py' + qy = f is

yp=−y1∫y2fW dx+y2∫y1fW dxy_p = -y_1\int \frac{y_2 f}{W}\,dx + y_2\int \frac{y_1 f}{W}\,dx

Euler-Cauchy equations look like x2y′′+axy′+by=0x^2y'' + axy' + by = 0, where the power of xx matches the order of each derivative. Trying y=xmy = x^m gives m(m−1)+am+b=0m(m-1) + am + b = 0. So x2y′′−2xy′+2y=0x^2y'' - 2xy' + 2y = 0 gives m2−3m+2=0m^2 - 3m + 2 = 0, m=1m = 1 or 22, and y=C1x+C2x2y = C_1x + C_2x^2.

Why it matters. When the forcing frequency matches the natural frequency, the PI needs the extra xx, 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 ∂u∂t=c2∂2u∂x2\dfrac{\partial u}{\partial t} = c^2\dfrac{\partial^2 u}{\partial x^2} describes how temperature spreads along a rod. It also describes consolidation of clay and diffusion of a dye.
  • The wave equation ∂2u∂t2=c2∂2u∂x2\dfrac{\partial^2 u}{\partial t^2} = c^2\dfrac{\partial^2 u}{\partial x^2} describes a vibrating string, sound, and voltage waves on a long line. Its general solution f(x−ct)+g(x+ct)f(x - ct) + g(x + ct) is two shapes travelling at speed cc.
  • Laplace's equation ∂2u∂x2+∂2u∂y2=0\dfrac{\partial^2 u}{\partial x^2} + \dfrac{\partial^2 u}{\partial y^2} = 0 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 Auxx+Buxy+Cuyy+(lower terms)=0Au_{xx} + Bu_{xy} + Cu_{yy} + (\text{lower terms}) = 0, look at B2−4ACB^2 - 4AC. 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 u(x,t)=X(x) T(t)u(x, t) = X(x)\,T(t). In the heat equation this gives XT′=c2X′′TXT' = c^2X''T, so T′c2T=X′′X\dfrac{T'}{c^2T} = \dfrac{X''}{X}. A function of tt alone can equal a function of xx alone only if both equal a constant, −λ2-\lambda^2. This leaves two ODEs: T′=−c2λ2TT' = -c^2\lambda^2T and X′′+λ2X=0X'' + \lambda^2X = 0.

Worked example. A rod of length LL has both ends kept at 0 °C. The solution has terms like sin⁡(nπxL)e−c2n2π2t/L2\sin\left(\dfrac{n\pi x}{L}\right)e^{-c^2n^2\pi^2t/L^2}. Higher modes die out faster, so after a while only the n=1n = 1 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).

  1. Solve y′′+2y′+y=xe−xy'' + 2y' + y = xe^{-x} with y(0)=0y(0) = 0 and y′(0)=1y'(0) = 1.
  2. A body at 80 °C cools to 60 °C in 10 minutes in a room at 20 °C. Find its temperature after 30 minutes.
  3. Solve the wave equation for a string of length L fixed at both ends, released from rest in the shape f(x)f(x).

Answer plan for question 2.

  • First, write dTdt=−k(T−20)\dfrac{dT}{dt} = -k(T - 20), so that T−20=60e−ktT - 20 = 60e^{-kt}.
  • Next, use T=60T = 60 at t=10t = 10 to get e−10k=4060=23e^{-10k} = \dfrac{40}{60} = \dfrac{2}{3}.
  • Then at t=30t = 30, T−20=60×(23)3=60×827≈17.8T - 20 = 60 \times \left(\dfrac{2}{3}\right)^3 = 60 \times \dfrac{8}{27} \approx 17.8.
  • Finally, T≈37.8 ∘CT \approx 37.8\ ^\circ\text{C}, 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 IF=e∫P dx\mathit{IF} = e^{\int P\,dx} with y×IF=∫Q×IF dx+Cy \times \mathit{IF} = \int Q \times \mathit{IF}\,dx + C.
  • An exact equation needs ∂M∂y=∂N∂x\dfrac{\partial M}{\partial y} = \dfrac{\partial N}{\partial x}, and Bernoulli becomes linear with v=y1−nv = y^{1-n}.
  • For am2+bm+c=0am^2 + bm + c = 0, distinct roots give two exponentials, a repeated root gives (C1+C2x)emx(C_1 + C_2x)e^{mx}, and α±iβ\alpha \pm i\beta gives eαx(C1cos⁡βx+C2sin⁡βx)e^{\alpha x}(C_1\cos\beta x + C_2\sin\beta x).
  • The general solution is CF plus PI, and the PI trial is multiplied by xx when it repeats a root.
  • Variation of parameters uses the Wronskian W=y1y2′−y2y1′W = y_1y_2' - y_2y_1'.
  • Euler-Cauchy x2y′′+axy′+by=0x^2y'' + axy' + by = 0 uses y=xmy = x^m.
  • Heat is parabolic, wave is hyperbolic and Laplace is elliptic, decided by B2−4ACB^2 - 4AC.
  • Separation of variables sets u=X(x)T(t)u = X(x)T(t) and gives two ODEs.

Check yourself

Exam-style questions on this chapter. Pick an answer to see the explanation. 0 of 13 answered

  1. The order and degree of (d2ydx2)3+(dydx)4+y=0\left(\dfrac{d^2y}{dx^2}\right)^3 + \left(\dfrac{dy}{dx}\right)^4 + y = 0 are:

  2. Which equation is linear?

  3. The integrating factor of dydx+yx=x2\dfrac{dy}{dx} + \dfrac{y}{x} = x^2 is:

  4. The solution of dydx=2xy\dfrac{dy}{dx} = 2xy with y(0)=1y(0) = 1 is:

  5. (2xy+3) dx+(x2+4y) dy=0(2xy + 3)\,dx + (x^2 + 4y)\,dy = 0 is exact because:

  6. The general solution of y′′−5y′+6y=0y'' - 5y' + 6y = 0 is:

  7. The general solution of y′′+4y′+4y=0y'' + 4y' + 4y = 0 is:

  8. The solution of y′′+9y=0y'' + 9y = 0 represents:

  9. A trial particular integral for y′′−3y′+2y=exy'' - 3y' + 2y = e^x is:

  10. The Wronskian of y1=cos⁡xy_1 = \cos x and y2=sin⁡xy_2 = \sin x is:

  11. The solution of x2y′′−2xy′+2y=0x^2y'' - 2xy' + 2y = 0 is:

  12. The one-dimensional heat equation is:

  13. The PDE uxx+4uxy+4uyy=0u_{xx} + 4u_{xy} + 4u_{yy} = 0 is:

Previous year questions

Previous year questions for UPSC CSE will appear here once each one is checked word for word against the official question paper.

Learn with AI

A tutor that asks instead of telling, a partner that argues the other side, and this chapter told through your own district.

Tell the tutor what you are stuck on. It will guide you with questions and give the answer after a few tries.

🙋 Raise a doubt or feedback

Stuck somewhere, or spotted a mistake? Write to the ExamHike team. We usually reply within a day, and you will see the reply on My progress.

Log in to ask a doubt or send feedback →

Frequently asked questions

What is the integrating factor for y′ + Py = Q?

e raised to the integral of P dx.

When is a second-order system critically damped?

When the auxiliary equation has equal real roots.

What type of PDE is the heat equation?

Parabolic.

What type is Laplace's equation?

Elliptic.

More in this module: Equations, probability and numerical methods

Official sources

Facts in this chapter were checked against these official sources.

  1. GATE 2026 syllabus ME, Section 1 Engineering Mathematics
  2. GATE 2026 syllabus EE, Section 1 Engineering Mathematics
  3. NPTEL Differential Equations for Engineers (IIT Madras, 111106100)