Skip to content
GATEiit

GATE EC · Engineering Mathematics

Linear differential equations

First-order equations (linear with an integrating factor, Bernoulli, separable, exact) and higher-order linear equations with constant coefficients: auxiliary equation, root cases, Wronskian and initial-value problems.

Before you start

  • Integration techniques

    Every first-order method ends in an integral: substitution, by parts and partial fractions.

  • Roots of polynomials and complex numbers

    Higher-order solutions come from the roots of the auxiliary equation, often complex a±jb.

  • Partial derivatives →

    The test for an exact equation compares ∂M/∂y with ∂N/∂x.

This topic comes before: Complementary function and particular integral, Definition and properties, Equations, Euler-Cauchy equation, Generation and recombination of carriers, Methods of solution using variation of parameters, Nonhomogeneous equations, Partial differential equations, RL, RC and RLC circuits, State variable model and solution of state equation of LTI systems, Transfer function

Concept notes

1. Order, degree and linearity

The order of a differential equation is the order of its highest derivative. The degree is the power of that highest derivative after the equation is made free of radicals and fractions in the derivatives. Degree is defined only when the equation is a polynomial in the derivatives.

An nth-order equation is linear if it can be written as

an(x) y(n)+an−1(x) y(n−1)+⋯+a1(x) y′+a0(x) y=f(x)

that is, y and its derivatives appear only to the first power, are not multiplied together, and are not inside functions like sin⁡y or ey. The coefficients may depend on x. If f(x)=0 it is homogeneous.

Equation Order Degree Linear?
y′′+x2y=sin⁡x 2 1 Yes
(y′′)3+(y′)4+y=0 2 3 No
y y′=x 1 1 No (y y′ product)
y′′+sin⁡y=0 2 1 No (sin⁡y)
1+(y′)2=y′′ 2 2 (square first) No

Superposition: if y1 and y2 solve a linear homogeneous equation, so does c1y1+c2y2. This is why the general solution of an nth-order linear equation has exactly n arbitrary constants.

2. First-order linear equations and Bernoulli

Put the equation in standard form (coefficient of y′ equal to 1):

dydx+P(x) y=Q(x)

Multiply by the integrating factor IF=e∫P dx. The left side becomes ddx(y⋅IF), so

y⋅IF=∫Q⋅IF dx+C

Steps: divide by the coefficient of y′, read P, find IF (no constant needed), integrate, then apply the initial condition.

Useful IFs: P=k gives ekx; P=1/x gives x; P=−1/x gives 1/x; P=tan⁡x gives sec⁡x.

If the equation is linear in x instead (form dxdy+P(y) x=Q(y)), use IF=e∫P dy in the same way.

Bernoulli equation: y′+P(x) y=Q(x) yn with n≠0,1 is non-linear, but the substitution v=y1−n turns it into the linear equation

v′+(1−n)P v=(1−n)Q

For example y′+y=y2 (n=2, v=1/y) becomes v′−v=−1.

3. Other first-order types: separable, homogeneous, exact

GATE also asks first-order non-linear equations. Identify the type first.

Type Form Method
Variable separable y′=g(x) h(y) ∫dy/h(y)=∫g(x) dx+C
Homogeneous y′=F(y/x) Put y=vx, so y′=v+x v′, then separate
Exact M dx+N dy=0 with ∂M∂y=∂N∂x Find ϕ with ϕx=M, ϕy=N; solution ϕ(x,y)=C
Linear y′+Py=Q Integrating factor

Solving an exact equation: integrate M with respect to x (treating y as constant), then add the terms of N that do not contain x, integrated with respect to y. Set the sum equal to C.

If M dx+N dy=0 is not exact, an integrating factor may make it exact: if My−NxN is a function of x alone, IF=e∫My−NxNdx.

Orthogonal trajectories and growth/decay problems (dN/dt=kN⇒N=N0ekt) are separable equations in disguise.

4. Higher-order linear equations with constant coefficients

For any(n)+⋯+a1y′+a0y=0 with constant ai, try y=emx. This gives the auxiliary (characteristic) equation anmn+⋯+a1m+a0=0. Its roots decide the complementary function (CF):

Roots Contribution to the solution
Real, distinct m1,m2 c1em1x+c2em2x
Real, repeated m (twice) (c1+c2x) emx
Repeated k times (c1+c2x+⋯+ckxk−1) emx
Complex a±jb eax(c1cos⁡bx+c2sin⁡bx)
Repeated complex pair eax[(c1+c2x)cos⁡bx+(c3+c4x)sin⁡bx]

A root m=0 gives a constant term. Negative real parts mean the solution decays; a positive real part means it grows; purely imaginary roots (±jb) give sustained oscillation.

For y′′+2ζωny′+ωn2y=0 (the RLC and second-order control equation) the roots are real and distinct for ζ>1, repeated for ζ=1, and complex for ζ<1.

For a non-homogeneous equation the general solution is y=yCF+yPI. For a right side eax, yPI=eaxf(a) when f(a)≠0, where f(m) is the auxiliary polynomial. Particular integrals in general are covered in their own topic.

1xy(x)real, distinct roots −1, −3repeated root −2, −2complex roots −0.5 ± j3
Solutions of three second-order equations with $y(0) = 1$, $y'(0) = 0$: the root type decides the shape.

5. Linear independence, Wronskian and initial values

Solutions y1,…,yn of an nth-order linear equation form a fundamental set when they are linearly independent. Test with the Wronskian:

If W≠0 at some point of the interval, the solutions are independent. For solutions of the same linear equation, W is either zero everywhere or never zero. Example: W(ex,e3x)=3e4x−e4x=2e4x≠0.

Initial-value problems: an nth-order equation needs n conditions, usually y(x0),y′(x0),…,y(n−1)(x0). Always find the complete general solution (CF plus PI) before applying them; applying conditions to the CF alone gives wrong constants.

Working order for any GATE question:

  1. Check order, linearity and whether coefficients are constant.
  2. First order: decide linear / Bernoulli / separable / homogeneous / exact.
  3. Higher order with constant coefficients: auxiliary equation, roots, CF, then PI.
  4. Apply initial conditions and evaluate what is asked (often y at a point, or a limit as x→∞).

Existence and uniqueness: for y′+P(x)y=Q(x) with P,Q continuous on an interval containing x0, the IVP has exactly one solution there.

Formulas to remember

Integrating factorFor y′+P(x)y=Q(x)
IF=e∫P dx,y⋅IF=∫Q⋅IF dx+C
Bernoulli substitutionFor y′+Py=Qyn, n≠0,1
v=y1−n:v′+(1−n)Pv=(1−n)Q
Exactness testFor M dx+N dy=0
∂M∂y=∂N∂x
Complex roots
m=a±jb  ⇒  y=eax(c1cos⁡bx+c2sin⁡bx)
Repeated root
m1=m2=m  ⇒  y=(c1+c2x)emx
Wronskian
W=y1y2′−y2y1′
Particular integral for an exponentialf(m) is the auxiliary polynomial
yPI=eaxf(a),f(a)≠0

Common mistakes

  • Reading P(x) before dividing the equation by the coefficient of dy/dx; the integrating factor needs the standard form.
  • Writing c1 e^(mx) + c2 e^(mx) for a repeated root; the second solution is x e^(mx).
  • For complex roots a ± jb, putting b in the exponential; the exponential carries the real part a and the sine and cosine carry b.
  • Quoting a degree for an equation that is not a polynomial in its derivatives (for example one containing sin(y')); the degree is then undefined.
  • Applying initial conditions to the complementary function alone in a non-homogeneous problem; add the particular integral first.
  • Calling y y' = x or y'' + sin y = 0 linear because the order is low; linearity is about how y and its derivatives appear.

Worked examples

Try each step yourself, then reveal the working.

Example 1: First-order linear equation with an initial value

numerical

Solve x dydx+y=x3 with y(1)=1, and find y(2).

  1. Step 1: Put it in standard form and read $P$ and $Q$.

    Try it on paper first.

Example 2: Complex roots with initial conditions

numerical

Solve y′′+4y′+13y=0 with y(0)=1, y′(0)=0.

  1. Step 1: Write and solve the auxiliary equation.

    Try it on paper first.

Example 3: Recognising and solving an exact equation

numerical

Solve (2xy+3) dx+(x2+4y) dy=0.

  1. Step 1: Test for exactness.

    Try it on paper first.

Example 4: Repeated root

numerical

Solve y′′−6y′+9y=0 with y(0)=2, y′(0)=5, and find y(1).

  1. Step 1: Find the roots.

    Try it on paper first.

Previous year questions

2 official GATE EC questions on this topic, newest first.

Topic test

10 questions: up to 2 official PYQs and original practice questions, with GATE marking (MCQ wrong answers lose marks). Score 60% or more to pass. A new set is drawn each time.

Mark as mastered

Loading your progress…

My revision notes

Notes written by the GATEiit team against the official GATE EC syllabus; being checked by a reviewer. Updated 2026-11-28. Spotted a mistake? Use Report an issue on any question, or contact us.