BE Computer Engineering (Pokhara University) Numerical Methods (PU, MTH 252) Question Paper 2079 Nepal
This is the official BE Computer Engineering (Pokhara University) Numerical Methods (PU, MTH 252) question paper for 2079, as set in the regular annual examination. It carries 100 full marks and a time allowance of 180 minutes, across 12 questions. On Kekkei you can attempt this Numerical Methods (PU, MTH 252) 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 (Pokhara University) Numerical Methods (PU, MTH 252) exam or solving previous years' question papers, this 2079 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 the equation , and state its order of convergence. Mention two situations in which the method fails. [6]
(b) Find a real root of the equation correct to four decimal places using the Newton-Raphson method, taking . Compare the number of iterations required with the Bisection method to achieve the same accuracy in the interval . [6]
(a) Newton-Raphson iterative formula
Let be an approximation to a root of . Expanding in a Taylor series about and retaining the linear term:
Since the improved estimate is , the Newton-Raphson formula is:
Order of convergence. If is a simple root, the error satisfies , so the method is quadratically convergent (order 2).
Two situations in which it fails:
- When (or is very small) at an iterate — the tangent is horizontal and .
- When the initial guess is poor or near a turning point/inflection — iterates may oscillate or diverge (it also converges only linearly at a multiple root).
(b) Root of
Here , . With :
| 0 | 2.000000 |
| 1 | 2.100000 |
| 2 | 2.094568 |
| 3 | 2.094551 |
| 4 | 2.094551 |
So the root, correct to four decimals, is , reached in 3 iterations.
Comparison with Bisection on . Bisection needs such that , i.e. . Hence Bisection requires about 14 iterations.
Conclusion: Newton-Raphson reaches the same accuracy in ~3 iterations versus ~14 for Bisection, reflecting its quadratic versus linear convergence.
(a) Construct Newton's divided difference table for the following data and hence estimate the value of .
| 0 | 1 | 2 | 4 | 5 | |
|---|---|---|---|---|---|
| 2 | 3 | 12 | 147 | 326 |
[7]
(b) Explain why Newton's divided difference formula is preferred over Lagrange's interpolation formula when a new data point is added to an existing set. Illustrate your answer briefly. [5]
(a) Newton's divided difference table
Data: , .
| 1st DD | 2nd DD | 3rd DD | 4th DD | ||
|---|---|---|---|---|---|
| 0 | 2 | ||||
| 1 | |||||
| 1 | 3 | 4 | |||
| 9 | 3.875 | ||||
| 2 | 12 | 19.5 | 0.10833 | ||
| 67.5 | 4.41667 | ||||
| 4 | 147 | 41.5 | |||
| 179 | |||||
| 5 | 326 |
Sample computations: , , , etc.
Newton's divided-difference polynomial:
Estimate : with ,
(b) Why divided differences are preferred when a point is added
When a new data point is appended, Newton's divided-difference formula only requires one extra term to be computed and added — all previously computed differences and coefficients remain valid:
In contrast, Lagrange's formula must be rebuilt entirely, because every basis polynomial contains the factor and every denominator changes, forcing a full recomputation.
Illustration: Given points at we have a quadratic; adding in Newton's form just adds the term , whereas Lagrange requires recomputing all four basis polynomials from scratch. Hence Newton's form is more economical and incremental.
(a) Derive the composite Simpson's rule for numerical integration and write down the expression for its error term. [6]
(b) Evaluate by taking 6 sub-intervals using (i) the Trapezoidal rule and (ii) Simpson's rule. Compare both results with the exact value and comment on the accuracy. [6]
(a) Composite Simpson's 1/3 rule
Divide into an even number of equal sub-intervals of width , with nodes . Over each pair of strips , approximating by a parabola gives
Summing over all pairs:
Error term. The composite error is
so the rule is and is exact for polynomials up to degree 3.
(b) Evaluate , ,
Nodes and values of :
| 0 | 1 | 2 | 3 | 4 | 5 | 6 | |
|---|---|---|---|---|---|---|---|
| 1.0 | 0.5 | 0.2 | 0.1 | 0.05882 | 0.03846 | 0.02703 |
(i) Trapezoidal rule
(ii) Simpson's 1/3 rule
Exact value: .
| Method | Value | Error |
|---|---|---|
| Trapezoidal | 1.41080 | +0.00515 |
| Simpson 1/3 | 1.36617 | −0.03948 |
| Exact | 1.40565 | — |
Comment: Although Simpson's rule is normally more accurate, here the integrand varies very rapidly near where the coarse grid samples it poorly, so with only 6 strips the Trapezoidal result happens to lie closer to the exact value. Refining the mesh (larger /smaller ) makes Simpson's result converge far faster than the Trapezoidal result.
(a) Describe the fourth-order Runge-Kutta method for solving a first-order ordinary differential equation with the initial condition , clearly writing all four slope expressions. [6]
(b) Using the fourth-order Runge-Kutta method, compute for the initial value problem , taking a step size . [6]
(a) Fourth-order Runge-Kutta method
For , , with step size , the RK4 method advances using four slope estimates:
The weighted average gives the increment:
It is a single-step, self-starting method of local error and global accuracy .
(b) Solve , , , find
Step 1 ():
So .
Step 2 ():
(Exact: , — agreement to 4 decimals.)
Section B: Short Answer Questions
Attempt all / any as specified.
Solve the following system of linear equations using Gauss elimination with partial pivoting, and explain why partial pivoting is necessary:
Gauss elimination with partial pivoting
System (augmented matrix):
Column 1 pivot: largest is 3 (row 2) → swap R1↔R2:
Eliminate: , :
Column 2 pivot: → swap R2↔R3:
Eliminate: :
Back substitution:
Why partial pivoting is necessary: It places the entry of largest magnitude on the diagonal before elimination, which (i) avoids division by a zero or very small pivot, and (ii) keeps the multipliers in magnitude, suppressing the growth of round-off error and improving numerical stability.
State the condition for convergence of the Gauss-Seidel iterative method. Apply the method to solve the following system, performing three iterations starting from :
Gauss-Seidel method
Convergence condition: The iteration converges (for any starting vector) if the coefficient matrix is diagonally dominant, i.e. for every row with strict inequality for at least one row. Here:
- Row 1: ✓
- Row 2: ✓
- Row 3: ✓
So the system is diagonally dominant and Gauss-Seidel converges.
Iteration formulas:
Starting from , using the most recent values:
| Iter | |||
|---|---|---|---|
| 1 | 0.85000 | −1.02750 | 1.01088 |
| 2 | 1.00246 | −0.99983 | 0.99978 |
| 3 | 0.99997 | −1.00001 | 1.00000 |
The values are converging to the exact solution
Fit a straight line of the form to the following data using the method of least squares, and estimate when .
| 1 | 2 | 3 | 4 | 5 | |
|---|---|---|---|---|---|
| 14 | 27 | 40 | 55 | 68 |
Least-squares straight-line fit
The normal equations are
With :
| 1 | 14 | 14 | 1 |
| 2 | 27 | 54 | 4 |
| 3 | 40 | 120 | 9 |
| 4 | 55 | 220 | 16 |
| 5 | 68 | 340 | 25 |
| Σ=15 | Σ=204 | Σ=748 | Σ=55 |
Normal equations:
Solving:
Best-fit line:
Estimate at :
The following table gives the value of a function . Using Newton's forward difference formula, find the first and second derivatives and at .
| 1.0 | 1.1 | 1.2 | 1.3 | 1.4 | |
|---|---|---|---|---|---|
| 7.989 | 8.403 | 8.781 | 9.129 | 9.451 |
Derivatives by Newton's forward-difference formula
With and , build the forward-difference table:
| 1.0 | 7.989 | 0.414 | −0.036 | 0.006 | −0.002 |
| 1.1 | 8.403 | 0.378 | −0.030 | 0.004 | |
| 1.2 | 8.781 | 0.348 | −0.026 | ||
| 1.3 | 9.129 | 0.322 | |||
| 1.4 | 9.451 |
At the leading point (), the formulas are
First derivative at :
Second derivative at :
(a) Distinguish between round-off error and truncation error with a suitable example of each. [3]
(b) The number is rounded to . Compute the absolute error, the relative error, and the percentage error. [3]
(a) Round-off vs truncation error
Round-off error arises from representing numbers with a finite number of digits (limited machine/decimal precision); the exact value is replaced by its nearest representable approximation. Example: storing as introduces a round-off error of about .
Truncation error arises from terminating an infinite mathematical process (a series, limit, or iteration) after finitely many terms — independent of machine precision. Example: approximating drops the remaining terms; the omitted tail is the truncation error.
(b) Errors in rounding
True value , approximation .
Absolute error:
Relative error:
Percentage error:
(a) Write down the iterative formula of the Secant method and explain how it differs from the Newton-Raphson method. [3]
(b) Perform two iterations of the Secant method to find a root of taking initial approximations and . [3]
(a) Secant method formula and comparison
Iterative formula:
Difference from Newton-Raphson: Newton-Raphson uses the exact derivative and needs one starting point; the Secant method replaces by the slope of the secant through the two previous points , so it needs two initial approximations and does not require . Its order of convergence is (superlinear), lower than Newton's 2, but each step is cheaper since no derivative is evaluated.
(b) Two iterations for
, .
Iteration 1:
.
Iteration 2:
.
After two iterations (continuing converges to the true root ).
Using Newton's forward difference interpolation formula, estimate the population in the year 1925 from the following census data, and state the assumption on which the formula is based.
| Year | 1911 | 1921 | 1931 | 1941 | 1951 |
|---|---|---|---|---|---|
| Population (in thousands) | 12 | 15 | 20 | 27 | 39 |
Population in 1925 by Newton's forward-difference interpolation
Years are equally spaced (), so use the forward formula with . Difference table (population in thousands):
| Year | |||||
|---|---|---|---|---|---|
| 1911 | 12 | 3 | 2 | 0 | 3 |
| 1921 | 15 | 5 | 2 | 3 | |
| 1931 | 20 | 7 | 5 | ||
| 1941 | 27 | 12 | |||
| 1951 | 39 |
Let .
Newton's forward formula:
Substituting , :
Assumption: The formula assumes the tabulated data can be represented by a single polynomial through all the points and that the arguments are equally spaced; it is best applied near the beginning of the table (small ), which is why the forward formula is appropriate for 1925.
Using the Modified Euler (Heun's) method, compute and for the initial value problem with step size , iterating the corrector until two successive values agree to three decimal places.
Modified Euler (Heun's) method
For , , . Predictor (Euler) then corrector iterated:
Step 1:
. Predictor: .
- Corrector 1: .
- Corrector 2: .
- Corrector 3: .
Converged: .
Step 2:
. Predictor: .
- Corrector 1: .
- Corrector 2: .
- Corrector 3: .
Converged: .
(Exact solution gives , — close agreement.)
Frequently asked questions
- Where can I find the BE Computer Engineering (Pokhara University) Numerical Methods (PU, MTH 252) question paper 2079?
- The full BE Computer Engineering (Pokhara University) Numerical Methods (PU, MTH 252) 2079 (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 (PU, MTH 252) 2079 paper come with solutions?
- Yes. Every question on this Numerical Methods (PU, MTH 252) 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 (Pokhara University) Numerical Methods (PU, MTH 252) 2079 paper?
- The BE Computer Engineering (Pokhara University) Numerical Methods (PU, MTH 252) 2079 paper carries 100 full marks and is meant to be completed in 180 minutes, across 12 questions.
- Is practising this Numerical Methods (PU, MTH 252) past paper free?
- Yes — reading and attempting this Numerical Methods (PU, MTH 252) past paper on Kekkei is completely free.