Browse papers
A

Section A: Long Answer Questions

Attempt any TWO questions.

3 questions·10 marks each
1long10 marks

Explain the fourth-order Runge-Kutta method for solving ordinary differential equations. Solve dy/dx = x + y, y(0) = 1 to find y(0.2) taking h = 0.1.

Fourth-Order Runge-Kutta (RK4) Method

The RK4 method solves the initial value problem dydx=f(x,y), y(x0)=y0\dfrac{dy}{dx}=f(x,y),\ y(x_0)=y_0 by advancing the solution one step of size hh using a weighted average of four slope estimates. It matches the Taylor series up to h4h^4, giving local truncation error O(h5)O(h^5) without needing derivatives of ff.

The working formulas are:

k1=hf(xn,yn)k_1 = h\,f(x_n,\,y_n) k2=hf ⁣(xn+h2,yn+k12)k_2 = h\,f\!\left(x_n+\tfrac{h}{2},\,y_n+\tfrac{k_1}{2}\right) k3=hf ⁣(xn+h2,yn+k22)k_3 = h\,f\!\left(x_n+\tfrac{h}{2},\,y_n+\tfrac{k_2}{2}\right) k4=hf ⁣(xn+h,yn+k3)k_4 = h\,f\!\left(x_n+h,\,y_n+k_3\right) yn+1=yn+16(k1+2k2+2k3+k4)y_{n+1}=y_n+\tfrac{1}{6}\left(k_1+2k_2+2k_3+k_4\right)

Solving dydx=x+y, y(0)=1\dfrac{dy}{dx}=x+y,\ y(0)=1, find y(0.2)y(0.2) with h=0.1h=0.1

Here f(x,y)=x+yf(x,y)=x+y.

Step 1: from x0=0, y0=1x_0=0,\ y_0=1 to y1=y(0.1)y_1=y(0.1)

  • k1=0.1(0+1)=0.1k_1 = 0.1(0+1)=0.1
  • k2=0.1(0.05+1.05)=0.1(1.1)=0.11k_2 = 0.1\,(0.05 + 1.05)=0.1(1.1)=0.11
  • k3=0.1(0.05+(1+0.055))=0.1(0.05+1.055)=0.1(1.105)=0.1105k_3 = 0.1\,(0.05 + (1+0.055))=0.1(0.05+1.055)=0.1(1.105)=0.1105
  • k4=0.1(0.1+(1+0.1105))=0.1(1.2105)=0.12105k_4 = 0.1\,(0.1 + (1+0.1105))=0.1(1.2105)=0.12105
y1=1+16(0.1+2(0.11)+2(0.1105)+0.12105)y_1 = 1 + \tfrac{1}{6}(0.1 + 2(0.11) + 2(0.1105) + 0.12105) =1+16(0.66305)=1+0.110508=1.110342= 1 + \tfrac{1}{6}(0.66305) = 1 + 0.110508 = 1.110342

Step 2: from x1=0.1, y1=1.110342x_1=0.1,\ y_1=1.110342 to y2=y(0.2)y_2=y(0.2)

  • k1=0.1(0.1+1.110342)=0.1(1.210342)=0.121034k_1 = 0.1(0.1 + 1.110342)=0.1(1.210342)=0.121034
  • k2=0.1(0.15+(1.110342+0.060517))=0.1(0.15+1.170859)=0.1(1.320859)=0.132086k_2 = 0.1\,(0.15 + (1.110342+0.060517))=0.1(0.15+1.170859)=0.1(1.320859)=0.132086
  • k3=0.1(0.15+(1.110342+0.066043))=0.1(0.15+1.176385)=0.1(1.326385)=0.132639k_3 = 0.1\,(0.15 + (1.110342+0.066043))=0.1(0.15+1.176385)=0.1(1.326385)=0.132639
  • k4=0.1(0.2+(1.110342+0.132639))=0.1(0.2+1.242981)=0.1(1.442981)=0.144298k_4 = 0.1\,(0.2 + (1.110342+0.132639))=0.1(0.2+1.242981)=0.1(1.442981)=0.144298
y2=1.110342+16(0.121034+2(0.132086)+2(0.132639)+0.144298)y_2 = 1.110342 + \tfrac{1}{6}(0.121034 + 2(0.132086) + 2(0.132639) + 0.144298) =1.110342+16(0.794782)=1.110342+0.132464=1.242805= 1.110342 + \tfrac{1}{6}(0.794782) = 1.110342 + 0.132464 = 1.242805

Result

y(0.2)1.2428\boxed{y(0.2) \approx 1.2428}

This agrees closely with the exact solution y=2exx1y=2e^x-x-1, which gives y(0.2)=2e0.21.2=1.242806y(0.2)=2e^{0.2}-1.2=1.242806.

oderunge-kutta
2long10 marks

Derive the Newton-Raphson method for solving a non-linear equation and discuss its convergence. Find a root of x^3 - 2x - 5 = 0 correct to four decimal places.

Derivation of the Newton-Raphson Method

Let f(x)=0f(x)=0 have a root near an initial guess xnx_n. Expanding ff by Taylor series about xnx_n and retaining only the linear term:

f(x)f(xn)+(xxn)f(xn)f(x) \approx f(x_n) + (x-x_n)f'(x_n)

Setting f(x)=0f(x)=0 for the next, improved estimate x=xn+1x=x_{n+1}:

0=f(xn)+(xn+1xn)f(xn)0 = f(x_n) + (x_{n+1}-x_n)f'(x_n)

Solving for xn+1x_{n+1} gives the Newton-Raphson iteration:

xn+1=xnf(xn)f(xn),f(xn)0\boxed{x_{n+1} = x_n - \frac{f(x_n)}{f'(x_n)}},\quad f'(x_n)\neq 0

Geometrically, xn+1x_{n+1} is the x-intercept of the tangent to y=f(x)y=f(x) at xnx_n.

Convergence

The method has quadratic convergence near a simple root: if α\alpha is the root and en=xnαe_n=x_n-\alpha, then

en+1f(α)2f(α)en2e_{n+1} \approx \frac{f''(\alpha)}{2f'(\alpha)}\,e_n^{2}

so the number of correct digits roughly doubles each iteration. Conditions: f(x)0f'(x)\neq 0 near the root and a sufficiently close initial guess. Drawbacks: it may diverge or oscillate if ff' is near zero or the start is poor, convergence drops to linear at multiple roots, and it requires the derivative f(x)f'(x).

Root of x32x5=0x^3 - 2x - 5 = 0

Here f(x)=x32x5f(x)=x^3-2x-5, f(x)=3x22f'(x)=3x^2-2. Since f(2)=1<0f(2)=-1<0 and f(3)=16>0f(3)=16>0, the root lies in (2,3)(2,3); take x0=2x_0=2.

nnxnx_nf(xn)f(x_n)f(xn)f'(x_n)xn+1x_{n+1}
02.000000-1.00000010.0000002.100000
12.1000000.06100011.2300002.094568
22.0945680.00018611.1616542.094551
32.094551~02.094551

Since consecutive values agree to four decimals:

x2.0946\boxed{x \approx 2.0946}
nonlinearnewton
3long10 marks

What is curve fitting? Explain the least squares method to fit a straight line y = a + bx to a given set of data points.

Curve Fitting

Curve fitting is the process of constructing a smooth curve (a mathematical function) that best represents the trend of a given set of discrete data points (xi,yi)(x_i,y_i). Unlike interpolation, the fitted curve need not pass through every point; it captures the overall relationship and is used for smoothing data, prediction, and approximating an underlying law. The most widely used technique is the method of least squares.

Least Squares Method for a Straight Line y=a+bxy = a + bx

Given nn data points (xi,yi)(x_i,y_i), we seek constants aa and bb so the line y=a+bxy=a+bx fits best. The error (residual) at each point is ei=yi(a+bxi)e_i=y_i-(a+bx_i). The least squares principle minimizes the sum of squared residuals:

S(a,b)=i=1n(yiabxi)2S(a,b)=\sum_{i=1}^{n}\bigl(y_i-a-bx_i\bigr)^2

For a minimum, set the partial derivatives to zero:

Sa=2(yiabxi)=0\frac{\partial S}{\partial a}= -2\sum (y_i-a-bx_i)=0 Sb=2xi(yiabxi)=0\frac{\partial S}{\partial b}= -2\sum x_i(y_i-a-bx_i)=0

These give the normal equations:

yi=na+bxi\sum y_i = n\,a + b\sum x_i xiyi=axi+bxi2\sum x_i y_i = a\sum x_i + b\sum x_i^2

Solving the two simultaneous equations gives:

b=nxiyixiyinxi2(xi)2,a=yibxin=yˉbxˉb=\frac{n\sum x_i y_i-\sum x_i\sum y_i}{n\sum x_i^2-(\sum x_i)^2},\qquad a=\frac{\sum y_i - b\sum x_i}{n}=\bar{y}-b\bar{x}

Procedure

  1. Tabulate xi, yi, xi2, xiyix_i,\ y_i,\ x_i^2,\ x_i y_i and compute the column sums.
  2. Substitute xi, yi, xi2, xiyi\sum x_i,\ \sum y_i,\ \sum x_i^2,\ \sum x_i y_i into the formulas for aa and bb.
  3. Write the fitted line y=a+bxy=a+bx.

The resulting line is the best-fit line in the least squares sense, minimizing the total squared vertical distance between the data points and the line.

regression
B

Section B: Short Answer Questions

Attempt any EIGHT questions.

9 questions·5 marks each
4short5 marks

Explain numerical differentiation using forward and backward difference formulae.

Numerical Differentiation

Numerical differentiation estimates the derivative of a function known only at tabulated points x0,x1,x_0,x_1,\dots with equal spacing hh, using finite differences derived from Newton's interpolation formulas. Let yi=f(xi)y_i=f(x_i).

Forward Difference Formula

Used near the beginning of the table. With p=xx0hp=\dfrac{x-x_0}{h} and Newton's forward formula, differentiating gives, at x=x0x=x_0:

dydxx0=1h(Δy012Δ2y0+13Δ3y0)\left.\frac{dy}{dx}\right|_{x_0}=\frac{1}{h}\left(\Delta y_0-\frac{1}{2}\Delta^2 y_0+\frac{1}{3}\Delta^3 y_0-\cdots\right) d2ydx2x0=1h2(Δ2y0Δ3y0+1112Δ4y0)\left.\frac{d^2y}{dx^2}\right|_{x_0}=\frac{1}{h^2}\left(\Delta^2 y_0-\Delta^3 y_0+\frac{11}{12}\Delta^4 y_0-\cdots\right)

where Δy0=y1y0\Delta y_0=y_1-y_0 is the forward difference. The simple two-point form is f(x0)y1y0hf'(x_0)\approx\dfrac{y_1-y_0}{h} with error O(h)O(h).

Backward Difference Formula

Used near the end of the table. With Newton's backward formula and yn=ynyn1\nabla y_n=y_n-y_{n-1}, at x=xnx=x_n:

dydxxn=1h(yn+122yn+133yn+)\left.\frac{dy}{dx}\right|_{x_n}=\frac{1}{h}\left(\nabla y_n+\frac{1}{2}\nabla^2 y_n+\frac{1}{3}\nabla^3 y_n+\cdots\right) d2ydx2xn=1h2(2yn+3yn+11124yn+)\left.\frac{d^2y}{dx^2}\right|_{x_n}=\frac{1}{h^2}\left(\nabla^2 y_n+\nabla^3 y_n+\frac{11}{12}\nabla^4 y_n+\cdots\right)

The simple two-point form is f(xn)ynyn1hf'(x_n)\approx\dfrac{y_n-y_{n-1}}{h}.

Summary: forward differences use tabulated values ahead of the point and suit the start of the table; backward differences use values behind the point and suit the end. Both are first-order accurate in their two-point forms; including higher difference terms improves accuracy.

differentiation
5short5 marks

Explain Euler's method to solve an ordinary differential equation with an example.

Euler's Method

Euler's method is the simplest single-step numerical technique for solving the initial value problem

dydx=f(x,y),y(x0)=y0.\frac{dy}{dx}=f(x,y),\qquad y(x_0)=y_0.

It approximates the solution curve by short straight-line segments using the slope at the current point. Over a step of size hh:

yn+1=yn+hf(xn,yn),xn+1=xn+h.y_{n+1}=y_n+h\,f(x_n,y_n),\qquad x_{n+1}=x_n+h.

Geometrically, from (xn,yn)(x_n,y_n) we move along the tangent line of slope f(xn,yn)f(x_n,y_n) to reach the next point. It is a first-order method with local truncation error O(h2)O(h^2) and global error O(h)O(h), so accuracy improves as hh decreases.

Example

Solve dydx=x+y, y(0)=1\dfrac{dy}{dx}=x+y,\ y(0)=1; find y(0.2)y(0.2) with h=0.1h=0.1. Here f(x,y)=x+yf(x,y)=x+y.

Step 1 (x0=0, y0=1x_0=0,\ y_0=1):

y1=y0+hf(x0,y0)=1+0.1(0+1)=1.1at x=0.1y_1=y_0+h\,f(x_0,y_0)=1+0.1(0+1)=1.1\quad\text{at }x=0.1

Step 2 (x1=0.1, y1=1.1x_1=0.1,\ y_1=1.1):

y2=y1+hf(x1,y1)=1.1+0.1(0.1+1.1)=1.1+0.12=1.22at x=0.2y_2=y_1+h\,f(x_1,y_1)=1.1+0.1(0.1+1.1)=1.1+0.12=1.22\quad\text{at }x=0.2 y(0.2)1.22\boxed{y(0.2)\approx 1.22}

(The exact value is 1.24281.2428; the gap reflects Euler's first-order error, which shrinks for smaller hh.)

odeeuler
6short5 marks

Differentiate between the Gauss elimination and Gauss-Jordan methods.

Gauss Elimination vs Gauss-Jordan Method

Both are direct methods for solving a system of linear equations AX=BAX=B by row operations on the augmented matrix [AB][A\,|\,B], but they differ in how far the reduction is carried.

FeatureGauss EliminationGauss-Jordan Method
GoalReduce AA to upper triangular formReduce AA to diagonal / identity form
EliminationEliminates below the pivot onlyEliminates both above and below the pivot
Final stepSolution found by back substitutionSolution read directly (no back substitution)
Arithmetic operationsAbout n33\dfrac{n^3}{3} (fewer)About n32\dfrac{n^3}{2} (more)
EfficiencyMore efficient for solving AX=BAX=BLess efficient; needs more computation
Matrix inversionNot directConvenient — augment with II to get A1A^{-1}

Summary: Gauss elimination converts the system to an upper-triangular set and then solves it by back substitution, whereas Gauss-Jordan continues the reduction until the coefficient matrix becomes the identity, giving the solution directly without back substitution. Gauss elimination needs fewer operations and is preferred for solving systems, while Gauss-Jordan is convenient for computing matrix inverses.

linear-systemsgauss-jordan
7short5 marks

Explain Newton's divided difference interpolation formula.

Newton's Divided Difference Interpolation

This formula constructs an interpolating polynomial through data points (x0,y0),(x1,y1),,(xn,yn)(x_0,y_0),(x_1,y_1),\dots,(x_n,y_n) with unequally spaced xx-values (it also works for equal spacing).

Divided Differences

The divided differences are defined recursively:

f[xi]=yif[x_i]=y_i f[xi,xi+1]=f[xi+1]f[xi]xi+1xif[x_i,x_{i+1}]=\frac{f[x_{i+1}]-f[x_i]}{x_{i+1}-x_i} f[xi,xi+1,xi+2]=f[xi+1,xi+2]f[xi,xi+1]xi+2xif[x_i,x_{i+1},x_{i+2}]=\frac{f[x_{i+1},x_{i+2}]-f[x_i,x_{i+1}]}{x_{i+2}-x_i}

and in general

f[xi,,xi+k]=f[xi+1,,xi+k]f[xi,,xi+k1]xi+kxi.f[x_i,\dots,x_{i+k}]=\frac{f[x_{i+1},\dots,x_{i+k}]-f[x_i,\dots,x_{i+k-1}]}{x_{i+k}-x_i}.

Interpolation Formula

f(x)P(x)=  f[x0]+(xx0)f[x0,x1]+(xx0)(xx1)f[x0,x1,x2]++(xx0)(xx1)(xxn1)f[x0,x1,,xn]\begin{aligned} f(x)\approx P(x)=\;&f[x_0]+(x-x_0)f[x_0,x_1]\\ &+(x-x_0)(x-x_1)f[x_0,x_1,x_2]\\ &+\cdots\\ &+(x-x_0)(x-x_1)\cdots(x-x_{n-1})\,f[x_0,x_1,\dots,x_n] \end{aligned}

Procedure

  1. Build a divided-difference table, computing successive columns from the data.
  2. Use the top diagonal entries f[x0],f[x0,x1],f[x_0],f[x_0,x_1],\dots as the coefficients.
  3. Substitute the required xx and evaluate P(x)P(x).

Advantages: it handles unequal spacing, is symmetric in the data, and new points can be added easily by appending one more term without recomputing earlier coefficients.

interpolationdivided-difference
8short5 marks

Explain the power method for finding the largest eigenvalue of a matrix.

Power Method

The power method is an iterative technique to find the dominant (largest in magnitude) eigenvalue and its corresponding eigenvector of a square matrix AA, assuming λ1>λ2λn|\lambda_1|>|\lambda_2|\ge\cdots\ge|\lambda_n|.

Principle

Any starting vector x(0)x^{(0)} can be written as a combination of eigenvectors x(0)=c1v1+c2v2++cnvnx^{(0)}=c_1 v_1+c_2 v_2+\cdots+c_n v_n. Repeatedly multiplying by AA gives

Akx(0)=λ1k(c1v1+c2(λ2λ1)kv2+).A^k x^{(0)}=\lambda_1^k\left(c_1 v_1+c_2\Bigl(\tfrac{\lambda_2}{\lambda_1}\Bigr)^k v_2+\cdots\right).

Since λi/λ1<1|\lambda_i/\lambda_1|<1 for i>1i>1, all terms except the first vanish as kk\to\infty, so Akx(0)A^k x^{(0)} aligns with the dominant eigenvector v1v_1.

Algorithm

  1. Choose an initial non-zero vector x(0)x^{(0)} (e.g. [1,1,,1]T[1,1,\dots,1]^T).
  2. Compute y(k+1)=Ax(k)y^{(k+1)}=A\,x^{(k)}.
  3. Let λ(k+1)=\lambda^{(k+1)}= the largest-magnitude component of y(k+1)y^{(k+1)}.
  4. Normalize: x(k+1)=y(k+1)λ(k+1)x^{(k+1)}=\dfrac{y^{(k+1)}}{\lambda^{(k+1)}}.
  5. Repeat until λ(k+1)\lambda^{(k+1)} and x(k+1)x^{(k+1)} converge to the desired accuracy.

At convergence, λ(k+1)\lambda^{(k+1)} is the largest eigenvalue and x(k+1)x^{(k+1)} is the corresponding eigenvector.

Notes: convergence is linear and is faster when λ2/λ1|\lambda_2/\lambda_1| is small; it fails if λ1=λ2|\lambda_1|=|\lambda_2|. The smallest eigenvalue can be found by applying the method to A1A^{-1} (inverse power method).

eigenvalue
9short5 marks

Fit a second-degree parabola y = a + bx + cx^2 to a set of data using the least squares principle.

Fitting a Second-Degree Parabola y=a+bx+cx2y=a+bx+cx^2 by Least Squares

Given nn data points (xi,yi)(x_i,y_i), we determine a,b,ca,b,c so that the parabola best fits the data. The residual at each point is ei=yi(a+bxi+cxi2)e_i=y_i-(a+bx_i+cx_i^2). The least squares principle minimizes

S(a,b,c)=i=1n(yiabxicxi2)2.S(a,b,c)=\sum_{i=1}^{n}\bigl(y_i-a-bx_i-cx_i^2\bigr)^2.

Normal Equations

Setting Sa=Sb=Sc=0\dfrac{\partial S}{\partial a}=\dfrac{\partial S}{\partial b}=\dfrac{\partial S}{\partial c}=0 gives three simultaneous equations:

y=na+bx+cx2\sum y = n a + b\sum x + c\sum x^2 xy=ax+bx2+cx3\sum xy = a\sum x + b\sum x^2 + c\sum x^3 x2y=ax2+bx3+cx4\sum x^2 y = a\sum x^2 + b\sum x^3 + c\sum x^4

Procedure

  1. Form a table of x, y, x2, x3, x4, xy, x2yx,\ y,\ x^2,\ x^3,\ x^4,\ xy,\ x^2y and compute their column sums.
  2. Substitute the sums x,x2,x3,x4,y,xy,x2y\sum x,\sum x^2,\sum x^3,\sum x^4,\sum y,\sum xy,\sum x^2y into the three normal equations.
  3. Solve the 3×33\times3 system (e.g. by Gauss elimination) for a,b,ca,b,c.
  4. Write the fitted parabola y=a+bx+cx2y=a+bx+cx^2.

This curve minimizes the total squared vertical deviation of the data from the parabola and is the best-fit quadratic in the least squares sense.

regression
10short5 marks

Define absolute, relative and percentage errors. Explain the sources of errors in numerical computation.

Absolute, Relative and Percentage Errors

Let xtx_t be the true value and xax_a the approximate (computed) value.

  • Absolute error: the magnitude of the difference between true and approximate values.
Ea=xtxaE_a=|x_t-x_a|
  • Relative error: the absolute error per unit of the true value (dimensionless).
Er=xtxaxtE_r=\frac{|x_t-x_a|}{|x_t|}
  • Percentage error: the relative error expressed as a percentage.
Ep=xtxaxt×100%E_p=\frac{|x_t-x_a|}{|x_t|}\times100\%

Sources of Errors in Numerical Computation

  1. Inherent (input/data) errors — errors already present in the input data due to measurement limitations or because the data are themselves approximate.
  2. Round-off errors — caused by representing numbers with a finite number of digits; figures beyond the machine precision are dropped or rounded (e.g. storing π\pi or 1/31/3).
  3. Truncation errors — caused by approximating an infinite process by a finite one, e.g. cutting off a Taylor/infinite series after a few terms or replacing a derivative by a finite difference.
  4. Modelling errors — arise when the mathematical model only approximates the real physical problem.
  5. Blunders / human errors — mistakes in formulation, coding, or transcription.

The total error in a result is the combined effect of these, mainly round-off and truncation errors, which often work against each other when choosing step sizes.

errors
11short5 marks

Explain the secant method for finding the root of an equation and compare it with the Newton-Raphson method.

Secant Method

The secant method finds a root of f(x)=0f(x)=0 using two approximations xn1x_{n-1} and xnx_n, replacing the curve by the secant line through (xn1,f(xn1))(x_{n-1},f(x_{n-1})) and (xn,f(xn))(x_n,f(x_n)). The next estimate is where this line crosses the x-axis:

xn+1=xnf(xn)xnxn1f(xn)f(xn1)x_{n+1}=x_n-f(x_n)\,\frac{x_n-x_{n-1}}{f(x_n)-f(x_{n-1})}

It can be seen as the Newton-Raphson method with the derivative f(xn)f'(x_n) replaced by the difference quotient f(xn)f(xn1)xnxn1\dfrac{f(x_n)-f(x_{n-1})}{x_n-x_{n-1}}. Two starting values are needed, but they need not bracket the root.

Algorithm

  1. Take two initial guesses x0,x1x_0,x_1.
  2. Compute xn+1x_{n+1} from the formula above.
  3. Repeat until xn+1xn|x_{n+1}-x_n| (or f(xn+1)|f(x_{n+1})|) is within tolerance.

Comparison with Newton-Raphson

AspectSecant MethodNewton-Raphson
DerivativeNot required; uses two function valuesRequires f(x)f'(x)
Starting pointsNeeds two (x0,x1x_0,x_1)Needs one (x0x_0)
Order of convergence1.618\approx 1.618 (superlinear)22 (quadratic)
Function evaluations / step1 new ff value1 ff and 1 ff' value
When derivative is hardPreferredInconvenient

The secant method converges more slowly than Newton-Raphson per iteration but avoids computing the derivative, often making it cheaper overall when f(x)f'(x) is costly or unavailable. Both may diverge with poor initial guesses.

nonlinearsecant
12short5 marks

Describe the false position (regula falsi) method with its geometric interpretation.

False Position (Regula Falsi) Method

The false position method is a bracketing method to find a root of f(x)=0f(x)=0. It starts with two points aa and bb such that f(a)f(a) and f(b)f(b) have opposite signs, i.e. f(a)f(b)<0f(a)\cdot f(b)<0, guaranteeing (by the Intermediate Value Theorem) a root in (a,b)(a,b).

Instead of taking the midpoint (as in bisection), it joins the points (a,f(a))(a,f(a)) and (b,f(b))(b,f(b)) by a straight chord and takes the point x1x_1 where this chord cuts the x-axis as the next approximation:

x1=af(a)baf(b)f(a)  =  af(b)bf(a)f(b)f(a)x_1 = a - f(a)\,\frac{b-a}{f(b)-f(a)} \;=\; \frac{a\,f(b)-b\,f(a)}{f(b)-f(a)}

Algorithm

  1. Choose a,ba,b with f(a)f(b)<0f(a)f(b)<0.
  2. Compute x1x_1 using the formula above.
  3. If f(a)f(x1)<0f(a)\cdot f(x_1)<0, the root lies in (a,x1)(a,x_1), so set b=x1b=x_1; otherwise set a=x1a=x_1.
  4. Repeat until f(x1)|f(x_1)| (or the interval) is within the required tolerance.

Geometric Interpretation

Geometrically, the curve y=f(x)y=f(x) between x=ax=a and x=bx=b is approximated by the secant (chord) line joining (a,f(a))(a,f(a)) and (b,f(b))(b,f(b)). The x-intercept of this chord is taken as the estimate of the root. Because the chord usually crosses the axis closer to the true root than the midpoint does, false position generally converges faster than bisection, though one endpoint may stay fixed (stagnation), giving only linear convergence.

nonlinearfalse-position

Frequently asked questions

Where can I find the BSc CSIT (TU) Numerical Method (BSc CSIT, CSC207) question paper 2081?
The full BSc CSIT (TU) Numerical Method (BSc CSIT, CSC207) 2081 (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 Method (BSc CSIT, CSC207) 2081 paper come with solutions?
Yes. Every question on this Numerical Method (BSc CSIT, CSC207) past paper includes a step-by-step solution, plus instant AI feedback when you attempt it on Kekkei.
How many marks is the BSc CSIT (TU) Numerical Method (BSc CSIT, CSC207) 2081 paper?
The BSc CSIT (TU) Numerical Method (BSc CSIT, CSC207) 2081 paper carries 60 full marks and is meant to be completed in 180 minutes, across 12 questions.
Is practising this Numerical Method (BSc CSIT, CSC207) past paper free?
Yes — reading and attempting this Numerical Method (BSc CSIT, CSC207) past paper on Kekkei is completely free.