GATE ME, CE, IN, CH, XE + 8 more · Numerical Methods
Numerical Solution of ODEs (Euler, Heun and Runge–Kutta Methods)
Single-step and multi-step numerical integration of initial value problems: Forward/Backward Euler, Modified Euler (Heun), RK-2 and RK-4 methods, truncation errors, and step-size stability.
1. Forward Euler, Backward Euler and Modified Euler (Heun's Method)
Given the initial value problem with and uniform step size :
Forward (Explicit) Euler: Uses only the slope at the start of the interval:
Simple ( evaluation per step) with local truncation error and global error (first-order accurate).
Backward (Implicit) Euler: Evaluates slope at the unknown endpoint :
This requires solving an equation at each step, yet stays unconditionally stable for decaying modes.
Modified Euler / Heun's Method (Predictor–Corrector RK-2): Predicts with , computes , and averages both endpoint slopes:
Because averaging trapezoidal slopes cancels the term, Heun's method achieves local error and global error .
Forward Euler follows only the initial tangent k₁ and drifts off curved solutions, while Heun's RK-2 averages initial and predicted endpoint slopes.
2. Runge–Kutta Second-Order (RK-2) and Classical Fourth-Order (RK-4)
Runge–Kutta methods achieve higher-order Taylor accuracy using extra slope evaluations inside instead of computing analytical partial derivatives of .
Midpoint RK-2: Evaluates , , and updates . Global order: .
Classical RK-4 (Simpson-weighted slopes):
When depends only on , and RK-4 reduces directly to Simpson's rule on , giving local truncation error and global error .
3. Truncation Error Orders and Step-Size Stability Analysis
Always distinguish local truncation error (LTE) (one step from exact ) from global accumulated error across steps (always one power of lower):
Backward Euler: . Since for every when , it is A-stable (unconditionally stable).
4. Multi-Step Predictor–Corrector Methods and Higher-Order Systems
Multi-step methods reuse previously computed points instead of internal midpoints, cutting evaluations to 1–2 per step after startup:
Adams–Bashforth (explicit predictor) integrates an interpolating polynomial through past slopes ; for 2-step AB-2: .
Adams–Moulton (implicit corrector) includes ; Milne's and Adams–Bashforth–Moulton PECE schemes pair an explicit predictor with an implicit corrector.
Higher-order ODEs: Reduce an -th order ODE like to a first-order system by setting :
[y1′y2′]=[y2g(x)−ay2−by1]
and apply Euler or RK-4 simultaneously to the vector at every stage.
Formulas to remember
Forward Euler methodLocal error , global error .
Backward Euler (implicit)Unconditionally stable for .
Heun / Modified Euler (RK-2)
Midpoint RK-2
Classical RK-4 updateGlobal error (4 slopes per step).
Forward Euler stability limit
2-step Adams–BashforthRequires RK-2/RK-4 for the first starting step.
Common mistakes
Confusing local truncation error with global truncation error: RK-4 has local error over a single step, but global error across a fixed interval .
Using instead of updated midpoint/predicted values when evaluating in RK-4 or Heun's method.
Assuming Backward Euler is higher order than Forward Euler because it is unconditionally stable, both Euler methods have global order .
Forgetting that for systems of coupled ODEs (), all values must be computed before any value is evaluated.
Ignoring stiff decay modes ( large): choosing in Forward Euler causes immediate numerical blow-up even on an exponentially decaying true solution.
Worked examples
Try each step yourself, then reveal the working.
Example 1: Two steps of Forward Euler on a first-order IVP
numerical
Given with , use Forward Euler with step size to approximate .
Step 1: Compute step 1 from x = 0 to x = 0.2
Try it on paper first.
Example 2: Single step of classical RK-4 with exact decimal verification
numerical
Use one step of classical fourth-order Runge–Kutta (RK-4) with to approximate for , .
Step 1: Evaluate the four intermediate slopes k1, k2, k3, k4
Try it on paper first.
Example 3: Modified Euler (Heun's method) single-step estimate
numerical
Approximate using Modified Euler (Heun's method) with for , .
Step 1: Predict y* at x = 0.2 with Euler slope
Try it on paper first.
Example 4: Maximum stable step size for Forward Euler vs Backward Euler
conceptual
Consider the stiff decay ODE with . For what range of positive step size does Forward Euler remain non-explosive, and how does Backward Euler behave for ?
No official PYQ in our currently live papers is tagged with this exact topic yet. The topic test below uses original GATE-style questions.
Topic test
8 questions: 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 Engineering Mathematics (ME, CE, IN, CH, XE + 8 more) syllabus; being checked by a reviewer. Updated 2026-12-01. Spotted a mistake? Use Report an issue on any question, or contact us.