BE Computer Engineering (IOE, TU) Numerical Methods (IOE, SH 553) Question Paper 2078 Nepal
This is the official BE Computer Engineering (IOE, TU) Numerical Methods (IOE, SH 553) question paper for 2078, as set in the regular annual examination. It carries 80 full marks and a time allowance of 180 minutes, across 12 questions. On Kekkei you can attempt this Numerical Methods (IOE, SH 553) past paper online with a timer, get instant AI feedback and step-by-step solutions, and track the topics where you lose marks — completely free. Whether you are revising for your BE Computer Engineering (IOE, TU) Numerical Methods (IOE, SH 553) exam or solving previous years' question papers, this 2078 paper is a great way to practise under real exam conditions.
Section A: Long Answer Questions
Attempt all / any as specified.
(a) Derive the iterative formula for the Newton-Raphson method for finding a real root of a nonlinear equation , and give a clear geometrical interpretation of the method. State two situations in which the method fails to converge. [7]
(b) A real root of the equation lies between 0 and 1. Using the Newton-Raphson method, compute the root correct to four decimal places. [5]
(a) Newton-Raphson method
Derivation. Let be an approximation to the root of . Expand in a Taylor series about and retain only the linear term:
Solving for gives the Newton-Raphson iterative formula:
Geometrical interpretation. At the point draw the tangent to the curve . The tangent has slope ; the point where this tangent crosses the -axis is taken as the next approximation . Thus each iteration replaces the curve locally by its tangent line and uses the tangent's -intercept as the improved estimate. Repeating this drives the iterate towards the actual root, and the convergence is quadratic near a simple root.
Two situations of failure:
- is zero or very small (a horizontal/near-horizontal tangent): the tangent is nearly parallel to the -axis, so shoots far away and the iteration diverges or overflows.
- Poor initial guess / unsuitable function shape (e.g. a point near a local maximum or minimum, or oscillation between two values): the successive iterates may cycle or move away from the root instead of converging.
(b) Root of in
Here and . Take .
| 0 | 0.500000 | 0.176471 | |
| 1 | 0.176471 | 0.201568 | |
| 2 | 0.201568 | 0.201640 | |
| 3 | 0.201640 | 0.201640 |
Since and agree to four decimals,
(a) Explain the construction of a natural cubic spline that interpolates a set of data points. Clearly state the continuity conditions imposed at the interior knots and the boundary conditions for the natural spline. [6]
(b) Using Newton's divided difference interpolation, estimate the value of from the following data:
| 0 | 1 | 2 | 4 | 5 | |
|---|---|---|---|---|---|
| 1 | 3 | 9 | 33 | 51 |
(a) Natural cubic spline
Given points with , a cubic spline is a piecewise cubic: on each sub-interval it is a separate cubic (), giving unknown coefficients.
Continuity conditions at the interior knots :
- Interpolation: and — the spline passes through every data point and is continuous.
- First-derivative continuity: — the slopes match at each interior knot.
- Second-derivative continuity: — the curvatures match, giving a smooth () curve.
These conditions give equations. Writing , the second-derivative continuity reduces to the tridiagonal system
Boundary conditions (natural spline): the curvature is set to zero at the two ends,
These two extra conditions complete the system, which is solved (tridiagonal) for the and hence the cubic coefficients.
(b) Newton's divided difference, estimate
Data: , .
Divided-difference table (leading coefficients):
| order | values |
|---|---|
| 1st | |
| 2nd | |
| 3rd | |
| 4th |
Leading coefficients: .
At :
Thus . (Indeed fits the data exactly.)
(a) Describe the Gauss elimination method with partial pivoting for solving a system of linear equations. Explain why partial pivoting is necessary and how it improves numerical stability. [6]
(b) Solve the following system of equations using the Gauss-Seidel iterative method, performing three iterations and starting with the initial guess :
[6]
(a) Gauss elimination with partial pivoting
For the method reduces the augmented matrix to upper-triangular form by elementary row operations, then back-substitutes.
Procedure (for column ):
- Pivot search: among the entries in the current column, find the one of largest absolute value.
- Row interchange: swap that row with row , so the largest element becomes the pivot .
- Elimination: for each row , compute the multiplier and replace row by , making all entries below the pivot zero.
- After triangularisation, solve by back substitution , .
Why partial pivoting is necessary / improves stability. Without pivoting the pivot may be zero (division by zero) or very small. A small pivot makes the multipliers very large, so rounding errors already present in the entries are amplified during elimination, badly corrupting the answer. By always choosing the largest-magnitude available pivot, all multipliers satisfy , which keeps the growth of round-off error bounded and greatly improves numerical stability.
(b) Gauss-Seidel, three iterations
The system is diagonally dominant. Rearranged iteration equations:
Start , using newest values immediately:
| Iteration | |||
|---|---|---|---|
| 1 | 0.85000 | 1.01087 | |
| 2 | 1.00246 | 0.99978 | |
| 3 | 0.99997 | 1.00000 |
After three iterations,
(a) Derive the standard five-point finite difference formula for the Laplace equation over a rectangular region. [5]
(b) A square plate is divided into a mesh as shown, with the boundary values of specified. Set up the system of linear equations for the interior nodal values using the five-point formula, and solve for the interior values by the Gauss-Seidel (Liebmann) iteration, taking the boundary on all four edges as on the top edge and on the remaining three edges. [7]
(a) Five-point formula for the Laplace equation
Discretise the region with a uniform mesh of spacing in both and . Denote . Using central second differences:
Substituting into and multiplying by :
so the standard five-point (Laplacian) formula is
Each interior value equals the average of its four neighbours (left, right, top, bottom).
(b) Square plate, four interior nodes
Label the interior nodes on a interior grid: top row (left), (right); bottom row (left), (right). Boundary: top edge , the other three edges .
Applying the five-point average to each node:
Gauss-Seidel (Liebmann) iteration, starting from and using newest values:
| Iter | ||||
|---|---|---|---|---|
| 1 | 25.000 | 31.250 | 6.250 | 9.375 |
| 2 | 34.375 | 35.938 | 10.938 | 11.719 |
| 3 | 36.719 | 37.110 | 12.110 | 12.305 |
| … | ||||
| converged | 37.500 | 37.500 | 12.500 | 12.500 |
By symmetry and . The converged interior values are
Section B: Short Answer Questions
Attempt all / any as specified.
Find a real root of the equation correct to three decimal places using the Bisection method, taking the initial interval as . Tabulate your iterations clearly.
Bisection method for on
Check signs: , , so a root lies in . Each step takes the midpoint and keeps the half-interval where the sign change occurs.
| sign | |||||
|---|---|---|---|---|---|
| 1 | 0.000000 | 1.000000 | 0.500000 | ||
| 2 | 0.500000 | 1.000000 | 0.750000 | ||
| 3 | 0.750000 | 1.000000 | 0.875000 | ||
| 4 | 0.750000 | 0.875000 | 0.812500 | ||
| 5 | 0.812500 | 0.875000 | 0.843750 | ||
| 6 | 0.843750 | 0.875000 | 0.859375 | ||
| 7 | 0.843750 | 0.859375 | 0.851562 | ||
| 8 | 0.851562 | 0.859375 | 0.855469 | ||
| 9 | 0.851562 | 0.855469 | 0.853516 | ||
| 10 | 0.851562 | 0.853516 | 0.852539 | ||
| 11 | 0.852539 | 0.853516 | 0.853027 | ||
| 12 | 0.852539 | 0.853027 | 0.852783 | ||
| 13 | 0.852539 | 0.852783 | 0.852661 | ||
| 14 | 0.852539 | 0.852661 | 0.852600 |
The iterates have settled to three decimal places:
Evaluate the integral using Simpson's 1/3 rule with , and compare your result with the exact value. Briefly explain how the accuracy could be improved using Romberg integration.
Simpson's 1/3 rule for ,
Nodes ( intervals) and ordinates :
| 0.00 | 0.25 | 0.50 | 0.75 | 1.00 | |
|---|---|---|---|---|---|
| 1.000000 | 0.941176 | 0.800000 | 0.640000 | 0.500000 |
Simpson's 1/3 rule:
Comparison with exact value. The exact value is . The error is only , showing Simpson's rule is very accurate here.
Improving accuracy with Romberg integration. Romberg integration starts from the composite trapezoidal rule for successively halved step sizes and then applies Richardson extrapolation
to systematically cancel the leading error terms. The first extrapolation column already reproduces Simpson's rule, and each further column removes higher-order error, so accuracy improves rapidly (effectively raising the order of the method) without computing many extra function values.
Fit a straight line to the following data using the method of least squares:
| 1 | 2 | 3 | 4 | 5 | |
|---|---|---|---|---|---|
| 2.1 | 3.9 | 6.1 | 7.8 | 10.2 |
Hence estimate the value of when .
Least-squares straight line
With points, form the required sums:
| 1 | 2.1 | 1 | 2.1 |
| 2 | 3.9 | 4 | 7.8 |
| 3 | 6.1 | 9 | 18.3 |
| 4 | 7.8 | 16 | 31.2 |
| 5 | 10.2 | 25 | 51.0 |
Normal equations:
Solve:
Fitted line:
Estimate at :
Derive the central difference formulae for the first and second derivatives of a function from Taylor's series expansion, and state their orders of accuracy. Using the data below, compute and :
| 1.8 | 2.0 | 2.2 | |
|---|---|---|---|
| 6.050 | 7.389 | 9.025 |
Central difference formulae from Taylor's series
Expand about with step :
First derivative: subtract the second from the first; the even terms cancel:
Second derivative: add the two expansions; the odd terms cancel:
Both central-difference formulae are second-order accurate, i.e. the truncation error is .
Numerical evaluation at ,
Data: .
(Consistent with , for which .)
Using the fourth-order Runge-Kutta method, solve the initial value problem , with , and find taking a step size .
Fourth-order Runge-Kutta for , ,
The RK4 update is
Step 1:
Step 2:
(Exact gives , confirming the result.)
Using Lagrange's interpolation formula, find the value of from the following data:
| 0 | 1 | 3 | 4 | |
|---|---|---|---|---|
| -12 | 0 | 12 | 24 |
Lagrange interpolation for
Data: with .
Lagrange formula:
Evaluate each basis term at :
Therefore
(; the data in fact lie on the line .)
Explain the shooting method for solving a two-point boundary value problem of a second-order ordinary differential equation. How does it convert a boundary value problem into an initial value problem?
Shooting method for a two-point BVP
Consider a second-order BVP
The difficulty is that only one condition () is known at the starting end; the slope there is unknown.
Converting BVP to IVP. Introduce the unknown initial slope as a parameter , i.e. assume
Now the problem becomes an initial value problem with both and known, which can be integrated forward from to using any IVP solver (RK4, Euler, etc.). The computed end value depends on the guessed slope, call it .
Hitting the target (the "shooting"). We need . We:
- Choose two trial slopes , integrate the IVP, and obtain .
- Since is a root-finding problem in , improve the guess using linear interpolation (secant method):
- Repeat until matches the prescribed to the desired tolerance.
Thus the method "shoots" trajectories from with different initial slopes and adjusts the slope (like aiming a gun) until the trajectory lands on the required boundary value at — converting a boundary value problem into a sequence of initial value problems combined with a root-finding step.
Explain the LU (Doolittle) decomposition method for solving a system of linear equations . State its main advantage over Gauss elimination when the system must be solved for several different right-hand-side vectors .
LU (Doolittle) decomposition
The idea is to factor the coefficient matrix as a product of a lower- and an upper-triangular matrix:
where in the Doolittle form is unit lower-triangular (1's on the diagonal) and is upper-triangular:
The entries are found by equating element by element (row of , then column of , alternately).
Solving . Write and set . Then:
- Forward substitution solve for .
- Back substitution solve for .
Main advantage over Gauss elimination (multiple right-hand sides). The expensive part — factoring into — depends only on and is done once ( operations). For each new right-hand-side vector , only the two cheap triangular solves (forward + back substitution, operations each) are repeated. In contrast, plain Gauss elimination would redo the full elimination for every new . Hence LU decomposition is far more efficient when must be solved for several different (and it also gives and readily).
Frequently asked questions
- Where can I find the BE Computer Engineering (IOE, TU) Numerical Methods (IOE, SH 553) question paper 2078?
- The full BE Computer Engineering (IOE, TU) Numerical Methods (IOE, SH 553) 2078 (regular) question paper is available free on Kekkei. You can read every question online and attempt the paper under timed exam conditions.
- Does the Numerical Methods (IOE, SH 553) 2078 paper come with solutions?
- Yes. Every question on this Numerical Methods (IOE, SH 553) past paper includes a step-by-step solution, plus instant AI feedback when you attempt it on Kekkei.
- How many marks is the BE Computer Engineering (IOE, TU) Numerical Methods (IOE, SH 553) 2078 paper?
- The BE Computer Engineering (IOE, TU) Numerical Methods (IOE, SH 553) 2078 paper carries 80 full marks and is meant to be completed in 180 minutes, across 12 questions.
- Is practising this Numerical Methods (IOE, SH 553) past paper free?
- Yes — reading and attempting this Numerical Methods (IOE, SH 553) past paper on Kekkei is completely free.