Complete Numerical Methods Course

Numerical Methods Course - ICTTechTitans

Welcome to the Numerical Methods Course

This site provides a comprehensive guide to Numerical Methods, including detailed notes, formulas, exercises, quizzes, and model/practice sets for exam preparation. Use the navigation bar to explore different sections, and click the "Page Marker" button to quickly jump to specific units and their topics.

Complete Numerical Methods Course

Published on April 19, 2025

Unit 1: Solution of Nonlinear Equations

Bisection Method

A method that repeatedly bisects an interval and selects a subinterval where a root exists.

Newton-Raphson Method

Uses the derivative to iteratively approximate roots of a function.

Secant Method

A derivative-free method that uses two initial guesses to approximate roots.

Regula Falsi Method

A method that combines ideas from Bisection and Secant methods to find roots.

Fixed-Point Iteration Method

Rewrites the equation into a fixed-point form and iterates to find the root.

Formulas

Bisection Method: \( c = \frac{a + b}{2} \)IMP

Error in Bisection Method: After \( n \) iterations, the error is at most \( \frac{b - a}{2^n} \).

Newton-Raphson Method: \( x_{n+1} = x_n - \frac{f(x_n)}{f'(x_n)} \)IMP

Secant Method: \( x_{n+1} = x_n - f(x_n) \frac{x_n - x_{n-1}}{f(x_n) - f(x_{n-1})} \)IMP

Regula Falsi Method: \( c = \frac{a f(b) - b f(a)}{f(b) - f(a)} \)IMP

Fixed-Point Iteration: \( x_{n+1} = g(x_n) \)

Convergence Condition for Fixed-Point: \( |g'(x)| < 1 \) near the root.

Exercises (Unit 1)

  1. Find the root of \( x^3 - x - 2 = 0 \) using the Bisection Method in the interval \([1, 2]\) with precision 0.01. [Unit 1, 2078, 10 Marks]
  2. Solve \( x^2 - 4x - 10 = 0 \) using the Bisection Method in \([5, 6]\). [Unit 1, 2077, 10 Marks]
  3. Use the Newton-Raphson Method to find a root of \( x^3 - 5x + 1 = 0 \) starting with \( x_0 = 2 \). [Unit 1, 2076, 10 Marks]
  4. Solve \( e^x - 3x = 0 \) using the Newton-Raphson Method with \( x_0 = 1 \). [Unit 1, 2075, 10 Marks]
  5. Find a root of \( x^2 - 3 = 0 \) using the Secant Method with initial guesses \( x_0 = 1 \), \( x_1 = 2 \). [Unit 1, 2074, 10 Marks]
  6. Use the Secant Method to solve \( \sin(x) - x/2 = 0 \) with \( x_0 = 1 \), \( x_1 = 2 \). [Unit 1, 2073, 10 Marks]
  7. Apply the Regula Falsi Method to find a root of \( x^3 - 2x - 5 = 0 \) in \([2, 3]\). [Unit 1, 2072, 10 Marks]
  8. Solve \( \cos(x) - x e^x = 0 \) in \([0, 1]\) using the Regula Falsi Method. [Unit 1, 2071, 10 Marks]
  9. Use Fixed-Point Iteration to solve \( x^3 - x - 1 = 0 \), rewrite as \( x = (x + 1)^{1/3} \), start with \( x_0 = 1 \). [Unit 1, 2070, 10 Marks]
  10. Solve \( e^x - 3x = 0 \) using Fixed-Point Iteration, rewrite as \( x = \frac{e^x}{3} \), start with \( x_0 = 0 \). [Unit 1, 2069, 10 Marks]
  11. Compare the convergence rates of Bisection and Newton-Raphson methods for \( x^2 - 2 = 0 \). [Unit 1, Model Set 1, 10 Marks]
  12. Find the root of \( \ln(x) + x - 3 = 0 \) using the Newton-Raphson Method with \( x_0 = 2 \). [Unit 1, IMP Que, 10 Marks]
  13. Solve \( x^4 - x - 1 = 0 \) in \([1, 2]\) using the Regula Falsi Method. [Unit 1, Model Set 2, 10 Marks]
  14. Use the Secant Method to find a root of \( x^3 - 4x + 1 = 0 \) with \( x_0 = 0 \), \( x_1 = 1 \). [Unit 1, IMP Que, 10 Marks]
  15. Explain the Fixed-Point Iteration Method and apply it to \( x^2 - x - 1 = 0 \), rewrite as \( x = x^2 - 1 \), start with \( x_0 = 1 \). [Unit 1, Model Set 3, 10 Marks]

Quiz (Unit 1)

1. What is the first step in the Bisection Method?

2. What is the order of convergence of the Newton-Raphson Method near the root?

3. The Secant Method requires how many initial guesses?

4. What is a key advantage of the Regula Falsi Method over the Secant Method?

5. For Fixed-Point Iteration to converge, what condition must hold near the root?

6. Which method is most likely to fail if the derivative at the root is zero?

7. The Bisection Method guarantees convergence because of which theorem?

8. Which method does not require the function to be differentiable?

9. In the Regula Falsi Method, the new approximation is found using:

10. The convergence of the Secant Method is typically:

Score: 0 / 10

Reference Videos

Bisection Method (Nepali):

Newton-Raphson Method (Nepali):

Secant Method (English, as Nepali video not found):

Regula Falsi Method (Nepali):

Fixed-Point Iteration (English, as Nepali video not found):


Unit 2: Interpolation and Approximation

Lagrange Interpolation

Constructs a polynomial that passes through given data points.

Newton’s Forward Interpolation

Uses forward differences to interpolate for equally spaced data points.

Newton’s Backward Interpolation

Uses backward differences to interpolate, ideal for data points near the end of the table.

Divided Difference Interpolation

Constructs a polynomial using divided differences, suitable for unevenly spaced points.

Cubic Spline Interpolation

Uses piecewise cubic polynomials for smooth interpolation.

Formulas

Lagrange Basis Polynomial: \( l_i(x) = \prod_{j \neq i} \frac{x - x_j}{x_i - x_j} \)IMP

Lagrange Polynomial: \( P(x) = \sum_{i=0}^n y_i l_i(x) \)IMP

Newton’s Forward Interpolation: \( P(x) = y_0 + \sum_{k=1}^n \left( \binom{u}{k} \Delta^k y_0 \right) \), where \( u = \frac{x - x_0}{h} \)IMP

Forward Difference: \( \Delta y_i = y_{i+1} - y_i \), \( \Delta^k y_i = \Delta^{k-1} y_{i+1} - \Delta^{k-1} y_i \)

Newton’s Backward Interpolation: \( P(x) = y_n + \sum_{k=1}^n \left( \binom{v}{k} \nabla^k y_n \right) \), where \( v = \frac{x - x_n}{h} \)IMP

Backward Difference: \( \nabla y_i = y_i - y_{i-1} \), \( \nabla^k y_i = \nabla^{k-1} y_i - \nabla^{k-1} y_{i-1} \)

Divided Difference: \( f[x_i, x_j] = \frac{f(x_j) - f(x_i)}{x_j - x_i} \), \( f[x_0, ..., x_k] = \frac{f[x_1, ..., x_k] - f[x_0, ..., x_{k-1}]}{x_k - x_0} \)IMP

Newton’s Divided Difference Polynomial: \( P(x) = f[x_0] + \sum_{k=1}^n f[x_0, ..., x_k] \prod_{j=0}^{k-1} (x - x_j) \)

Cubic Spline: \( S_i(x) = a_i + b_i(x - x_i) + c_i(x - x_i)^2 + d_i(x - x_i)^3 \)

Exercises (Unit 2)

  1. Find \( \sqrt{3.5} \) using second-order Lagrange interpolation with points (3, 1.732), (4, 2), (5, 2.236). [Unit 2, 2076, 10 Marks]
  2. Use Lagrange interpolation to estimate \( f(2.5) \) given points (1, 1), (2, 4), (3, 9), (4, 16). [Unit 2, 2075, 10 Marks]
  3. Using Newton’s Forward Interpolation, estimate \( f(0.2) \) from the data: (0, 1), (1, 2), (2, 5), (3, 10). [Unit 2, 2074, 10 Marks]
  4. Given the data (1, 2), (2, 5), (3, 10), (4, 17), use Newton’s Forward Interpolation to find \( f(1.5) \). [Unit 2, 2073, 10 Marks]
  5. Use Newton’s Backward Interpolation to find \( f(3.5) \) from the data: (1, 2), (2, 5), (3, 10), (4, 17). [Unit 2, 2072, 10 Marks]
  6. Estimate \( f(2.5) \) using Newton’s Backward Interpolation with data: (0, 1), (1, 2), (2, 5), (3, 10). [Unit 2, 2071, 10 Marks]
  7. Using Divided Difference Interpolation, find \( f(3) \) for the data: (1, 1), (2, 4), (4, 16). [Unit 2, 2070, 10 Marks]
  8. Apply Divided Difference Interpolation to estimate \( f(2) \) for the data: (0, 0), (1, 1), (3, 9), (4, 16). [Unit 2, 2069, 10 Marks]
  9. Construct a cubic spline for the points (0, 0), (1, 1), (2, 4) with natural boundary conditions, and find \( S(1.5) \). [Unit 2, 2068, 10 Marks]
  10. Use Lagrange interpolation to find the population in 1974 given: 1961 (100), 1971 (120), 1981 (145). [Unit 2, Model Set 1, 10 Marks]
  11. Apply Newton’s Forward Interpolation to estimate the population in 1955 given: 1950 (50), 1960 (70), 1970 (100), 1980 (140). [Unit 2, Model Set 2, 10 Marks]
  12. Using Newton’s Backward Interpolation, estimate the population in 1975 from: 1950 (50), 1960 (70), 1970 (100), 1980 (140). [Unit 2, Model Set 3, 10 Marks]
  13. Estimate \( f(1.5) \) using Divided Difference Interpolation for the data: (0, 1), (1, 2), (2, 5), (4, 17). [Unit 2, IMP Que, 10 Marks]
  14. Construct a cubic spline for the points (1, 1), (2, 4), (3, 9) with natural boundary conditions, and find \( S(2.5) \). [Unit 2, IMP Que, 10 Marks]
  15. Compare Lagrange and Newton’s Divided Difference methods for the data: (1, 1), (2, 4), (3, 9). [Unit 2, Model Set 4, 10 Marks]

Quiz (Unit 2)

1. What does Lagrange interpolation produce?

2. Newton’s Forward Interpolation is best suited for:

3. What is a key advantage of Newton’s Backward Interpolation?

4. Divided Difference Interpolation is particularly useful for:

5. Cubic Spline Interpolation ensures continuity of:

6. A disadvantage of Lagrange Interpolation is:

7. Newton’s Forward Interpolation uses:

8. What is a key feature of Cubic Spline Interpolation?

9. Divided Difference Interpolation constructs the polynomial using:

10. Newton’s Backward Interpolation is most efficient for:

Score: 0 / 10

Reference Videos

Lagrange Interpolation (Nepali):

Newton’s Forward Interpolation (Nepali):

Newton’s Backward Interpolation (Nepali):

Divided Difference Interpolation (English, as Nepali video not found):

Cubic Spline Interpolation (English, as Nepali video not found):


Unit 3: Differentiation & Integration

Numerical Differentiation

Approximates derivatives using finite differences for discrete data points.

Trapezoidal Rule

Approximates definite integrals by dividing the area into trapezoids.

Simpson’s 1/3 Rule

Approximates integrals using quadratic polynomials over pairs of subintervals.

Simpson’s 3/8 Rule

Approximates integrals using cubic polynomials over triples of subintervals.

Gaussian Quadrature

Approximates integrals using weighted sums at specific points.

Formulas

Forward Difference Derivative: \( f'(x_i) \approx \frac{f(x_{i+1}) - f(x_i)}{h} \)IMP

Backward Difference Derivative: \( f'(x_i) \approx \frac{f(x_i) - f(x_{i-1})}{h} \)

Central Difference Derivative: \( f'(x_i) \approx \frac{f(x_{i+1}) - f(x_{i-1})}{2h} \)IMP

Second Derivative (Central): \( f''(x_i) \approx \frac{f(x_{i+1}) - 2f(x_i) + f(x_{i-1})}{h^2} \)

Trapezoidal Rule: \( \int_a^b f(x) \, dx \approx \frac{h}{2} \left( f(x_0) + 2 \sum_{i=1}^{n-1} f(x_i) + f(x_n) \right) \)IMP

Trapezoidal Rule Error: \( -\frac{(b-a)h^2}{12} f''(\xi) \), for some \( \xi \in [a, b] \).

Simpson’s 1/3 Rule: \( \int_a^b f(x) \, dx \approx \frac{h}{3} \left( f(x_0) + 4 \sum_{i=1, \text{odd}}^{n-1} f(x_i) + 2 \sum_{i=2, \text{even}}^{n-2} f(x_i) + f(x_n) \right) \)IMP

Simpson’s 1/3 Rule Error: \( -\frac{(b-a)h^4}{180} f^{(4)}(\xi) \).

Simpson’s 3/8 Rule: \( \int_a^b f(x) \, dx \approx \frac{3h}{8} \left( f(x_0) + 3 \sum_{i=1, i \mod 3 \neq 0}^{n-1} f(x_i) + 2 \sum_{i=3, i \mod 3 = 0}^{n-3} f(x_i) + f(x_n) \right) \)IMP

Gaussian Quadrature (General): \( \int_{-1}^1 f(x) \, dx \approx \sum_{i=1}^n w_i f(x_i) \)

Gauss-Legendre 2-Point: Nodes: \( \pm \frac{1}{\sqrt{3}} \), Weights: 1.

Exercises (Unit 3)

  1. Compute the derivative of \( f(x) = x^3 \) at \( x = 2 \) using the forward difference method with \( h = 0.1 \). [Unit 3, 2078, 10 Marks]
  2. Use the central difference method to find \( f'(1) \) for \( f(x) = e^x \) with \( h = 0.1 \). [Unit 3, 2077, 10 Marks]
  3. Find the second derivative of \( f(x) = x^2 + 2x \) at \( x = 1 \) using central difference with \( h = 0.2 \). [Unit 3, 2076, 10 Marks]
  4. Approximate \( \int_0^1 e^x \, dx \) using the Trapezoidal Rule with \( n = 4 \). [Unit 3, 2075, 10 Marks]
  5. Use the Trapezoidal Rule to approximate \( \int_1^2 \frac{1}{x} \, dx \) with \( n = 2 \). [Unit 3, 2074, 10 Marks]
  6. Apply Simpson’s 1/3 Rule to approximate \( \int_0^2 x^2 \, dx \) with \( n = 4 \). [Unit 3, 2073, 10 Marks]
  7. Use Simpson’s 1/3 Rule to approximate \( \int_0^1 \sin(x) \, dx \) with \( n = 2 \). [Unit 3, 2072, 10 Marks]
  8. Approximate \( \int_0^3 x^3 \, dx \) using Simpson’s 3/8 Rule with \( n = 3 \). [Unit 3, 2071, 10 Marks]
  9. Use Simpson’s 3/8 Rule to approximate \( \int_1^4 \frac{1}{x} \, dx \) with \( n = 3 \). [Unit 3, 2070, 10 Marks]
  10. Use 2-point Gaussian Quadrature to approximate \( \int_{-1}^1 x^4 \, dx \). [Unit 3, 2069, 10 Marks]
  11. Approximate \( \int_0^2 e^x \, dx \) using 2-point Gaussian Quadrature. [Unit 3, Model Set 1, 10 Marks]
  12. Compare the accuracy of Trapezoidal Rule and Simpson’s 1/3 Rule for \( \int_0^1 x^3 \, dx \) with \( n = 2 \). [Unit 3, Model Set 2, 10 Marks]
  13. Use Simpson’s 1/3 Rule to approximate \( \int_0^1 \frac{1}{1+x} \, dx \) with \( n = 4 \). [Unit 3, IMP Que, 10 Marks]
  14. Approximate \( \int_1^2 x^2 \ln(x) \, dx \) using Simpson’s 3/8 Rule with \( n = 3 \). [Unit 3, IMP Que, 10 Marks]
  15. Compute the derivative of \( f(x) = \sin(x) \) at \( x = \frac{\pi}{4} \) using central difference with \( h = 0.01 \). [Unit 3, Model Set 3, 10 Marks]

Quiz (Unit 3)

1. Which method is most accurate for numerical differentiation?

2. The Trapezoidal Rule approximates the integral using:

3. Simpson’s 1/3 Rule requires the number of subintervals to be:

4. Simpson’s 3/8 Rule fits what type of polynomial over each set of subintervals?

5. Gaussian Quadrature is most accurate for:

6. The error term of the Trapezoidal Rule is proportional to:

7. Central difference is more accurate than forward difference because:

8. Simpson’s 1/3 Rule has an error term proportional to:

9. In Gaussian Quadrature, the nodes are:

10. A disadvantage of numerical differentiation is:

Score: 0 / 10

Reference Videos

Numerical Differentiation (Nepali):

Trapezoidal Rule (Nepali):

Simpson’s 1/3 Rule (Nepali):

Simpson’s 3/8 Rule (English, as Nepali video not found):

Gaussian Quadrature (English, as Nepali video not found):


Unit 4: Linear Equations

Gauss Elimination Method

Solves systems of linear equations by transforming the augmented matrix into row-echelon form.

Gauss-Jordan Method

Extends Gauss Elimination to reduce the matrix to reduced row-echelon form.

Jacobi Iteration Method

An iterative method for solving diagonally dominant systems.

Gauss-Seidel Method

An improved iterative method using the latest updates in each iteration.

LU Decomposition

Decomposes a matrix into lower and upper triangular matrices for efficient solving.

Formulas

Gauss Elimination (Row Operation): \( R_i \leftarrow R_i - \frac{a_{ij}}{a_{jj}} R_j \)IMP

Gauss-Jordan (Reduced Form): Left side becomes \( I \), right side gives solution.

Jacobi Iteration: \( x_i^{(k+1)} = \frac{b_i - \sum_{j \neq i} a_{ij} x_j^{(k)}}{a_{ii}} \)IMP

Gauss-Seidel Iteration: \( x_i^{(k+1)} = \frac{b_i - \sum_{j < i} a_{ij} x_j^{(k+1)} - \sum_{j > i} a_{ij} x_j^{(k)}}{a_{ii}} \)IMP

LU Decomposition: \( A = LU \), solve \( Ly = b \), then \( Ux = y \).

Exercises (Unit 4)

  1. Solve using Gauss Elimination: \( 2x + y + z = 5 \), \( x + 3y - z = 2 \), \( 3x - y + 2z = 6 \). [Unit 4, 2078, 10 Marks]
  2. Use Gauss Elimination to solve: \( x + 2y = 4 \), \( 3x - y = 1 \). [Unit 4, 2077, 10 Marks]
  3. Solve using Gauss-Jordan: \( 3x + 2y = 7 \), \( x - y = 1 \). [Unit 4, 2076, 10 Marks]
  4. Find the inverse of \( \begin{bmatrix} 1 & 2 \\ 3 & 4 \end{bmatrix} \) using Gauss-Jordan. [Unit 4, 2075, 10 Marks]
  5. Solve using Jacobi Iteration (3 iterations): \( 5x - y + z = 10 \), \( 2x + 4y - z = 5 \), \( x - y + 3z = 6 \). [Unit 4, 2074, 10 Marks]
  6. Solve the same system using Gauss-Seidel (3 iterations). [Unit 4, 2073, 10 Marks]
  7. Solve using Gauss Elimination: \( x + y + z = 3 \), \( 2x - y + z = 2 \), \( x - 2y - z = -1 \). [Unit 4, 2072, 10 Marks]
  8. Use Gauss-Jordan to solve: \( 2x + 3y = 8 \), \( x + 2y = 5 \). [Unit 4, 2071, 10 Marks]
  9. Solve using LU Decomposition: \( 2x + y = 3 \), \( x + 3y = 5 \). [Unit 4, 2070, 10 Marks]
  10. Solve using Jacobi Iteration (2 iterations): \( 10x + y + z = 12 \), \( x + 10y - z = 10 \), \( x - y + 10z = 8 \). [Unit 4, 2069, 10 Marks]
  11. Solve the same system using Gauss-Seidel (2 iterations). [Unit 4, Model Set 1, 10 Marks]
  12. Find the inverse of \( \begin{bmatrix} 2 & 1 \\ 1 & 3 \end{bmatrix} \) using LU Decomposition. [Unit 4, Model Set 2, 10 Marks]
  13. Solve using Gauss Elimination: \( x + 2y - z = 3 \), \( 2x + y + z = 5 \), \( x - y + 2z = 2 \). [Unit 4, IMP Que, 10 Marks]
  14. Compare Jacobi and Gauss-Seidel methods for the system: \( 4x + y = 5 \), \( x + 3y = 4 \) (2 iterations). [Unit 4, IMP Que, 10 Marks]
  15. Solve using Gauss-Jordan: \( x + y + z = 6 \), \( 2x - y + z = 3 \), \( x + 2y - z = 1 \). [Unit 4, Model Set 3, 10 Marks]

Quiz (Unit 3)

1. Which method is most accurate for numerical differentiation?

2. The Trapezoidal Rule approximates the integral using:

3. Simpson’s 1/3 Rule requires the number of subintervals to be:

4. Simpson’s 3/8 Rule fits what type of polynomial over each set of subintervals?

5. Gaussian Quadrature is most accurate for:

6. The error term of the Trapezoidal Rule is proportional to:

7. Central difference is more accurate than forward difference because:

8. Simpson’s 1/3 Rule has an error term proportional to:

9. In Gaussian Quadrature, the nodes are:

10. A disadvantage of numerical differentiation is:

Score: 0 / 10

Reference Videos

Gauss Elimination (Nepali):

Gauss-Jordan Method (Nepali):

Jacobi Iteration (Nepali):

Gauss-Seidel Method (English, as Nepali video not found):

LU Decomposition (English, as Nepali video not found):


Unit 5: ODEs

Euler’s Method

Approximates solutions to first-order ODEs using a simple iterative approach.

Modified Euler’s Method

Improves Euler’s Method by averaging slopes at the start and end of the interval.

Runge-Kutta Method (2nd Order)

Improves accuracy by using two slope evaluations per step.

Runge-Kutta Method (4th Order)

A widely used method with four slope evaluations for high accuracy.

Numerical Solution of Second-Order ODEs

Converts second-order ODEs into a system of first-order ODEs for numerical solution.

Formulas

Euler’s Method: \( y_{n+1} = y_n + h f(x_n, y_n) \)IMP

Euler’s Method Error: \( O(h) \).

Modified Euler’s Method: \( y_{n+1} = y_n + \frac{h}{2} \left( f(x_n, y_n) + f(x_{n+1}, y_n + h f(x_n, y_n)) \right) \)IMP

Runge-Kutta 2nd Order: \( y_{n+1} = y_n + \frac{1}{2}(k_1 + k_2) \), where \( k_1 = h f(x_n, y_n) \), \( k_2 = h f(x_n + h, y_n + k_1) \).

Runge-Kutta 4th Order: \( y_{n+1} = y_n + \frac{1}{6}(k_1 + 2k_2 + 2k_3 + k_4) \), where \( k_1 = h f(x_n, y_n) \), \( k_2 = h f(x_n + \frac{h}{2}, y_n + \frac{k_1}{2}) \), \( k_3 = h f(x_n + \frac{h}{2}, y_n + \frac{k_2}{2}) \), \( k_4 = h f(x_n + h, y_n + k_3) \)IMP

Second-Order ODE System: \( \frac{dy}{dx} = z \), \( \frac{dz}{dx} = f(x, y, z) \).

Exercises (Unit 5)

  1. Use Euler’s Method to solve \( \frac{dy}{dx} = x + y \), \( y(0) = 1 \), at \( x = 0.2 \), with \( h = 0.1 \). [Unit 5, 2078, 10 Marks]
  2. Apply Euler’s Method to \( \frac{dy}{dx} = -2xy \), \( y(0) = 1 \), at \( x = 0.1 \), \( h = 0.1 \). [Unit 5, 2077, 10 Marks]
  3. Solve \( \frac{dy}{dx} = x^2 + y \), \( y(0) = 0 \), at \( x = 0.1 \), \( h = 0.1 \), using Modified Euler’s Method. [Unit 5, 2076, 10 Marks]
  4. Use Modified Euler’s Method for \( \frac{dy}{dx} = y - x \), \( y(0) = 2 \), at \( x = 0.1 \), \( h = 0.1 \). [Unit 5, 2075, 10 Marks]
  5. Apply RK2 to solve \( \frac{dy}{dx} = x + y \), \( y(0) = 1 \), at \( x = 0.1 \), \( h = 0.1 \). [Unit 5, 2074, 10 Marks]
  6. Solve \( \frac{dy}{dx} = -y \), \( y(0) = 1 \), at \( x = 0.1 \), \( h = 0.1 \), using RK2. [Unit 5, 2073, 10 Marks]
  7. Use RK4 to solve \( \frac{dy}{dx} = x + y \), \( y(0) = 1 \), at \( x = 0.2 \), \( h = 0.2 \). [Unit 5, 2072, 10 Marks]
  8. Apply RK4 to \( \frac{dy}{dx} = x^2 - y \), \( y(0) = 1 \), at \( x = 0.1 \), \( h = 0.1 \). [Unit 5, 2071, 10 Marks]
  9. Solve \( \frac{d^2y}{dx^2} = -y \), \( y(0) = 0 \), \( y'(0) = 1 \), at \( x = 0.2 \), \( h = 0.2 \), using RK4. [Unit 5, 2070, 10 Marks]
  10. Use Euler’s Method for \( \frac{dy}{dx} = \sin(x) + y \), \( y(0) = 0 \), at \( x = 0.1 \), \( h = 0.1 \). [Unit 5, 2069, 10 Marks]
  11. Solve \( \frac{dy}{dx} = e^x - y \), \( y(0) = 1 \), at \( x = 0.1 \), \( h = 0.1 \), using Modified Euler’s Method. [Unit 5, Model Set 1, 10 Marks]
  12. Apply RK2 to \( \frac{dy}{dx} = \cos(x) - y \), \( y(0) = 0 \), at \( x = 0.1 \), \( h = 0.1 \). [Unit 5, Model Set 2, 10 Marks]
  13. Use RK4 to solve \( \frac{dy}{dx} = y - x^2 \), \( y(0) = 1 \), at \( x = 0.1 \), \( h = 0.1 \). [Unit 5, IMP Que, 10 Marks]
  14. Solve \( \frac{d^2y}{dx^2} + y = 0 \), \( y(0) = 1 \), \( y'(0) = 0 \), at \( x = 0.1 \), \( h = 0.1 \), using RK4. [Unit 5, IMP Que, 10 Marks]
  15. Compare Euler’s and Modified Euler’s Methods for \( \frac{dy}{dx} = x + y \), \( y(0) = 1 \), at \( x = 0.1 \), \( h = 0.1 \). [Unit 5, Model Set 3, 10 Marks]

Quiz (Unit 5)

Score: 0

1. Euler’s Method has an error of order:

2. Modified Euler’s Method improves accuracy by:

3. The error in RK4 is of order:

4. RK4 uses how many slope evaluations per step?

5. To solve a second-order ODE numerically, you:

6. A disadvantage of Euler’s Method is:

7. Modified Euler’s Method has an error of order:

8. RK2 is more accurate than:

9. Solving a second-order ODE requires:

10. RK4 is widely used because of its:

Reference Videos

Euler’s Method (Nepali):

Modified Euler’s Method (Nepali):

Runge-Kutta Methods (Nepali):

Second-Order ODEs (English, as Nepali video not found):


Unit 6: PDEs

Classification of PDEs

Understands the types of PDEs: elliptic, parabolic, and hyperbolic, based on their characteristics.

Finite Difference Method for Laplace’s Equation

Solves elliptic PDEs like Laplace’s equation using a grid-based approximation.

Finite Difference Method for Heat Equation

Solves parabolic PDEs like the heat equation using explicit or implicit schemes.

Finite Difference Method for Wave Equation

Solves hyperbolic PDEs like the wave equation using a central difference scheme.

Boundary and Initial Conditions

Defines the constraints needed to solve PDEs numerically.

Formulas

PDE Classification Discriminant: \( \Delta = b^2 - 4ac \)IMP

Laplace’s Equation (Finite Difference): \( u_{i,j} = \frac{u_{i+1,j} + u_{i-1,j} + u_{i,j+1} + u_{i,j-1}}{4} \)IMP

Heat Equation (Explicit): \( u_{i,j+1} = u_{i,j} + r (u_{i+1,j} - 2u_{i,j} + u_{i-1,j}) \), \( r = \alpha \frac{k}{h^2} \)IMP

Wave Equation (Finite Difference): \( u_{i,j+1} = 2(1 - r^2)u_{i,j} + r^2 (u_{i+1,j} + u_{i-1,j}) - u_{i,j-1} \), \( r = c \frac{k}{h} \)

Boundary Condition (Dirichlet): \( u = \text{constant on boundary} \).

Exercises (Unit 6)

  1. Classify the PDE: \( \frac{\partial^2 u}{\partial x^2} - \frac{\partial^2 u}{\partial y^2} = 0 \). [Unit 6, 2078, 10 Marks]
  2. Classify: \( 2 \frac{\partial^2 u}{\partial x^2} + \frac{\partial^2 u}{\partial x \partial y} + \frac{\partial^2 u}{\partial y^2} = 0 \). [Unit 6, 2077, 10 Marks]
  3. Solve \( \nabla^2 u = 0 \) on a 1x1 square, \( u(x,0) = 0 \), \( u(x,1) = 1 \), \( u(0,y) = 0 \), \( u(1,y) = 0 \), \( h = 0.5 \), using Finite Difference. [Unit 6, 2076, 10 Marks]
  4. Solve \( \nabla^2 u = 0 \), \( u(x,0) = x \), \( u(x,1) = 1-x \), \( u(0,y) = 0 \), \( u(1,y) = 0 \), \( h = 0.5 \). [Unit 6, 2075, 10 Marks]
  5. Solve \( \frac{\partial u}{\partial t} = \frac{\partial^2 u}{\partial x^2} \), \( u(x,0) = x(1-x) \), \( u(0,t) = u(1,t) = 0 \), \( h = 0.25 \), \( k = 0.01 \), at \( t = 0.01 \). [Unit 6, 2074, 10 Marks]
  6. Solve \( \frac{\partial u}{\partial t} = 2 \frac{\partial^2 u}{\partial x^2} \), \( u(x,0) = \sin(\pi x) \), \( u(0,t) = u(1,t) = 0 \), \( h = 0.25 \), \( k = 0.01 \). [Unit 6, 2073, 10 Marks]
  7. Solve \( \frac{\partial^2 u}{\partial t^2} = \frac{\partial^2 u}{\partial x^2} \), \( u(x,0) = \sin(\pi x) \), \( \frac{\partial u}{\partial t}(x,0) = 0 \), \( u(0,t) = u(1,t) = 0 \), \( h = 0.25 \), \( k = 0.25 \), at \( t = 0.25 \). [Unit 6, 2072, 10 Marks]
  8. Solve \( \frac{\partial^2 u}{\partial t^2} = 4 \frac{\partial^2 u}{\partial x^2} \), \( u(x,0) = x(1-x) \), \( \frac{\partial u}{\partial t}(x,0) = 0 \), \( u(0,t) = u(1,t) = 0 \), \( h = 0.25 \), \( k = 0.125 \). [Unit 6, 2071, 10 Marks]
  9. Apply Dirichlet boundary conditions to solve \( \nabla^2 u = 0 \), \( u(x,0) = 0 \), \( u(x,1) = 1 \), \( u(0,y) = y \), \( u(1,y) = 1-y \), \( h = 0.5 \). [Unit 6, 2070, 10 Marks]
  10. Use Neumann conditions: \( \frac{\partial u}{\partial x}(0,t) = 0 \), \( \frac{\partial u}{\partial x}(1,t) = 0 \), for \( \frac{\partial u}{\partial t} = \frac{\partial^2 u}{\partial x^2} \), \( u(x,0) = x \), \( h = 0.25 \), \( k = 0.01 \). [Unit 6, 2069, 10 Marks]
  11. Solve \( \frac{\partial u}{\partial t} = \frac{\partial^2 u}{\partial x^2} \), \( u(x,0) = x^2 \), \( u(0,t) = 0 \), \( u(1,t) = 1 \), \( h = 0.25 \), \( k = 0.01 \). [Unit 6, Model Set 1, 10 Marks]
  12. Solve \( \frac{\partial^2 u}{\partial t^2} = \frac{\partial^2 u}{\partial x^2} \), \( u(x,0) = x \), \( \frac{\partial u}{\partial t}(x,0) = \sin(\pi x) \), \( u(0,t) = u(1,t) = 0 \), \( h = 0.25 \), \( k = 0.25 \). [Unit 6, Model Set 2, 10 Marks]
  13. Classify and solve \( \frac{\partial^2 u}{\partial x^2} + 3 \frac{\partial^2 u}{\partial x \partial y} + \frac{\partial^2 u}{\partial y^2} = 0 \). [Unit 6, IMP Que, 10 Marks]
  14. Compare explicit and implicit methods for the heat equation with an example. [Unit 6, IMP Que, 10 Marks]
  15. Solve \( \nabla^2 u = 0 \), \( u(x,0) = \sin(\pi x) \), \( u(x,1) = 0 \), \( u(0,y) = 0 \), \( u(1,y) = 0 \), \( h = 0.5 \). [Unit 6, Model Set 3, 10 Marks]

Quiz (Unit 6)

Score: 0

1. A PDE with \( \Delta < 0 \) is classified as:

2. Laplace’s equation is an example of a PDE that is:

3. The stability condition for the explicit heat equation method is:

4. The wave equation is classified as:

5. Dirichlet boundary conditions specify:

6. A disadvantage of the explicit method for the heat equation is:

7. The finite difference approximation for \( \frac{\partial^2 u}{\partial x^2} \) is:

8. The wave equation requires how many initial conditions?

9. Neumann boundary conditions specify:

10. The heat equation models:

Reference Videos

Classification of PDEs (Nepali):

Laplace’s Equation (Nepali):

Heat Equation (Nepali):

Wave Equation (English, as Nepali video not found):


Model Set Questions (60 Marks)

Group A: Answer any 2 (2 x 10 = 20 marks)

  1. Explain the bisection method with an example. [Unit 1, 2078, 10 Marks]
  2. Describe the Newton-Raphson method and its convergence. [Unit 1, 2077, 10 Marks]

Group B: Answer any 8 (8 x 5 = 40 marks)

  1. What is the difference between interpolation and approximation? [Unit 2, 2076, 5 Marks]
  2. Use Lagrange’s interpolation to find \(f(2)\) given points \((1, 1)\), \((3, 9)\), \((4, 16)\). [Unit 2, 2075, 5 Marks]
  3. Apply Simpson’s 1/3 rule to approximate \(\int_0^1 e^x dx\), \(n = 4\). [Unit 3, 2074, 5 Marks]
  4. Solve the system using Gauss-Seidel method (2 iterations): \(10x + y - z = 11\), \(x + 10y + z = 28\), \(-x + y + 10z = 35\). [Unit 4, 2073, 5 Marks]
  5. Find the dominant eigenvalue of the matrix \(\begin{bmatrix} 2 & 1 \\ 1 & 2 \end{bmatrix}\) using the Power Method (2 iterations). [Unit 4, 2072, 5 Marks]
  6. Solve \(y' = x + y\), \(y(0) = 1\), at \(x = 0.1\) using Euler’s method, \(h = 0.1\). [Unit 5, 2071, 5 Marks]
  7. Use the shooting method to solve \(y'' + y = 0\), \(y(0) = 0\), \(y(1) = 1\). [Unit 5, 2070, 5 Marks]
  8. Classify the PDE: \(\frac{\partial^2 u}{\partial x^2} - \frac{\partial^2 u}{\partial y^2} = 0\). [Unit 6, 2069, 5 Marks]

Practice Set 1 (60 Marks)

Group A: Answer any 2 (2 x 10 = 20 marks)

  1. Explain the bisection method with an example. [Unit 1, 2075, 10 Marks]
  2. Describe the Secant method and its advantages over the Newton-Raphson method. [Unit 1, 2078, 10 Marks]

Group B: Answer any 8 (8 x 5 = 40 marks)

  1. Define convergence in the Newton-Raphson method. [Unit 1, 2074, 5 Marks]
  2. Use Newton’s forward interpolation to find \(f(1.5)\) given points \((1, 1)\), \((2, 8)\), \((3, 27)\). [Unit 2, 2076, 5 Marks]
  3. Approximate \(\int_0^2 (x^2 + 1) dx\) using the Trapezoidal rule, \(n = 4\). [Unit 3, 2073, 5 Marks]
  4. Solve the system using Gauss Elimination: \(2x + y + z = 5\), \(x + 3y - z = 2\), \(x - y + 2z = 3\). [Unit 4, 2072, 5 Marks]
  5. Find the inverse of the matrix \(\begin{bmatrix} 1 & 2 \\ 3 & 4 \end{bmatrix}\) using Gauss-Jordan method. [Unit 4, 2071, 5 Marks]
  6. Solve \(y' = -2xy\), \(y(0) = 1\), at \(x = 0.1\) using Runge-Kutta 4th order, \(h = 0.1\). [Unit 5, 2070, 5 Marks]
  7. Solve \(y'' = -y\), \(y(0) = 0\), \(y'(0) = 1\), at \(x = 0.1\) using RK4, \(h = 0.1\). [Unit 5, 2069, 5 Marks]
  8. Solve \(\nabla^2 u = 0\) on a 1x1 square, \(u(x,0) = 0\), \(u(x,1) = 1\), \(u(0,y) = 0\), \(u(1,y) = 0\), \(h = 0.5\), using Finite Difference. [Unit 6, 2077, 5 Marks]

Practice Set 2 (60 Marks)

Group A: Answer any 2 (2 x 10 = 20 marks)

  1. Explain the Fixed-Point Iteration method and apply it to solve \(x = \cos(x)\), starting with \(x_0 = 0.5\), for 3 iterations. [Unit 1, 2079, 10 Marks]
  2. Solve the system using LU Decomposition: \(3x + 2y + z = 7\), \(2x + 3y + 2z = 8\), \(x + y + 3z = 6\). [Unit 4, 2076, 10 Marks]

Group B: Answer any 8 (8 x 5 = 40 marks)

  1. Use the Regula Falsi method to find a root of \(x^3 - 2x - 5 = 0\) in \([2, 3]\), 2 iterations. [Unit 1, 2078, 5 Marks]
  2. Use Newton’s Divided Difference to find \(f(2.5)\) given points \((1, 1)\), \((2, 4)\), \((3, 9)\), \((4, 16)\). [Unit 2, 2077, 5 Marks]
  3. Apply Simpson’s 3/8 rule to approximate \(\int_0^3 x^3 dx\), \(n = 3\). [Unit 3, 2075, 5 Marks]
  4. Solve the system using Jacobi Iteration (2 iterations): \(5x - y + z = 10\), \(2x + 4y - z = 12\), \(x - y + 3z = 9\), initial guess \((0, 0, 0)\). [Unit 4, 2074, 5 Marks]
  5. Solve \(y' = x + y\), \(y(0) = 1\), at \(x = 0.2\) using Modified Euler’s method, \(h = 0.1\). [Unit 5, 2073, 5 Marks]
  6. Use Milne’s Predictor-Corrector to solve \(y' = x^2 + y\), \(y(0) = 0\), at \(x = 0.4\), given \(y(0.1) = 0.0101\), \(y(0.2) = 0.0408\), \(y(0.3) = 0.0945\), \(h = 0.1\). [Unit 5, 2072, 5 Marks]
  7. Solve the heat equation \(\frac{\partial u}{\partial t} = \frac{\partial^2 u}{\partial x^2}\), \(u(x,0) = x(1-x)\), \(u(0,t) = u(1,t) = 0\), \(h = 0.25\), \(k = 0.01\), at \(t = 0.01\). [Unit 6, 2071, 5 Marks]
  8. Solve the wave equation \(\frac{\partial^2 u}{\partial t^2} = \frac{\partial^2 u}{\partial x^2}\), \(u(x,0) = \sin(\pi x)\), \(\frac{\partial u}{\partial t}(x,0) = 0\), \(u(0,t) = u(1,t) = 0\), \(h = 0.25\), \(k = 0.25\), at \(t = 0.25\). [Unit 6, 2070, 5 Marks]

Practice Set 3 (60 Marks)

Group A: Answer any 2 (2 x 10 = 20 marks)

  1. Apply the Bisection method to find a root of \(e^x - 3x = 0\) in \([0, 1]\) with error analysis for 3 iterations. [Unit 1, 2080, 10 Marks]
  2. Solve the boundary value problem \(y'' + 2y' + y = 0\), \(y(0) = 0\), \(y(1) = 1\), using the finite difference method, \(h = 0.25\). [Unit 5, 2079, 10 Marks]

Group B: Answer any 8 (8 x 5 = 40 marks)

  1. Apply Newton-Raphson to \(x^3 - x - 1 = 0\), \(x_0 = 1\), and estimate the error after 2 iterations. [Unit 1, 2078, 5 Marks]
  2. Use linear spline interpolation to estimate \(f(2.5)\) given points \((1, 2)\), \((3, 6)\), \((4, 8)\). [Unit 2, 2077, 5 Marks]
  3. Compute the derivative of \(f(x) = x^3\) at \(x = 1\) using the central difference formula, given \(h = 0.1\). [Unit 3, 2076, 5 Marks]
  4. Use Cholesky decomposition to solve \(4x + 2y = 10\), \(2x + 2y = 8\). [Unit 4, 2075, 5 Marks]
  5. Solve \(y' = x + y\), \(y(0) = 1\), at \(x = 0.4\) using Adams-Bashforth 2nd order, given \(y(0.1) = 1.11\), \(y(0.2) = 1.242\), \(h = 0.1\). [Unit 5, 2074, 5 Marks]
  6. Solve the heat equation \(\frac{\partial u}{\partial t} = \frac{\partial^2 u}{\partial x^2}\), \(u(x,0) = \sin(\pi x)\), \(u(0,t) = u(1,t) = 0\), using Crank-Nicolson, \(h = 0.25\), \(k = 0.01\), at \(t = 0.01\). [Unit 6, 2073, 5 Marks]
  7. Solve \(\nabla^2 u = 0\) on a 1x1 square, \(u(x,0) = 0\), \(u(x,1) = 1\), \(u(0,y) = 0\), \(\frac{\partial u}{\partial x}(1,y) = 0\), \(h = 0.5\). [Unit 6, 2072, 5 Marks]
  8. Use least squares to fit a line \(y = a + bx\) to points \((1, 2)\), \((2, 3)\), \((3, 5)\). [Unit 2, 2071, 5 Marks]

Practice Set 4 (60 Marks)

Group A: Answer any 2 (2 x 10 = 20 marks)

  1. Explain the False Position method and discuss its convergence rate. Apply it to solve \(x^3 - 5x + 1 = 0\) in \([0, 1]\) for 3 iterations. [Unit 1, 2081, 10 Marks]
  2. Solve the system of ODEs using RK4: \(y' = z\), \(z' = -y\), \(y(0) = 0\), \(z(0) = 1\), at \(x = 0.2\), \(h = 0.1\). [Unit 5, 2080, 10 Marks]

Group B: Answer any 8 (8 x 5 = 40 marks)

  1. Use the iterative method to solve \(x = e^{-x}\), starting with \(x_0 = 0\), for 3 iterations, and discuss convergence. [Unit 1, 2079, 5 Marks]
  2. Use cubic spline interpolation to estimate \(f(2.5)\) given points \((1, 1)\), \((2, 8)\), \((3, 27)\). [Unit 2, 2078, 5 Marks]
  3. Approximate \(\int_0^1 \frac{1}{1+x} dx\) using Romberg integration, starting with \(h = 0.5\). [Unit 3, 2077, 5 Marks]
  4. Solve \(2x + y = 5\), \(x + 3y = 7\) using QR decomposition. [Unit 4, 2076, 5 Marks]
  5. Solve \(y' = x + y^2\), \(y(0) = 0\), at \(x = 0.2\) using a Predictor-Corrector method for systems, given \(y(0.1) = 0.005\), \(h = 0.1\). [Unit 5, 2075, 5 Marks]
  6. Solve the Poisson equation \(\nabla^2 u = -2\) on a 1x1 square, \(u = 0\) on all boundaries, \(h = 0.5\). [Unit 6, 2074, 5 Marks]
  7. Solve the wave equation \(\frac{\partial^2 u}{\partial t^2} = \frac{\partial^2 u}{\partial x^2}\), \(u(x,0) = x(1-x)\), \(\frac{\partial u}{\partial t}(x,0) = 0\), \(u(0,t) = u(1,t) = 0\), using implicit method, \(h = 0.25\), \(k = 0.25\), at \(t = 0.25\). [Unit 6, 2073, 5 Marks]
  8. Compute the second derivative of \(f(x) = e^x\) at \(x = 0\) using the formula \(f''(x) \approx \frac{f(x+h) - 2f(x) + f(x-h)}{h^2}\), \(h = 0.1\). [Unit 3, 2072, 5 Marks]

Practice Set 5 (60 Marks)

Group A: Answer any 2 (2 x 10 = 20 marks)

  1. Apply Muller’s method to find a root of \(x^3 - x - 2 = 0\) using initial guesses \(x_0 = 0\), \(x_1 = 1\), \(x_2 = 2\). Perform 2 iterations. [Unit 1, 2082, 10 Marks]
  2. Solve the heat equation \(\frac{\partial u}{\partial t} = \frac{\partial^2 u}{\partial x^2}\) on \([0, 1]\), \(u(x,0) = x(1-x)\), \(u(0,t) = u(1,t) = 0\), using the ADI method, \(h = 0.25\), \(k = 0.01\), at \(t = 0.01\). [Unit 6, 2081, 10 Marks]

Group B: Answer any 8 (8 x 5 = 40 marks)

  1. Use Bairstow’s method to find a quadratic factor of \(x^3 - 2x^2 + 3x - 1 = 0\) with initial guesses \(p_0 = 1\), \(q_0 = 1\), 1 iteration. [Unit 1, 2079, 5 Marks]
  2. Use Hermite interpolation to estimate \(f(1.5)\) given \(f(1) = 1\), \(f'(1) = 2\), \(f(2) = 4\), \(f'(2) = 8\). [Unit 2, 2078, 5 Marks]
  3. Approximate \(\int_0^1 e^x dx\) using 2-point Gaussian quadrature. [Unit 3, 2077, 5 Marks]
  4. Solve \(4x + y = 5\), \(x + 3y = 6\) using the conjugate gradient method, initial guess \((0, 0)\), 1 iteration. [Unit 4, 2076, 5 Marks]
  5. Solve \(y'' = -y\), \(y(0) = 0\), \(y'(0) = 1\), at \(x = 0.1\) using Runge-Kutta-Nyström method, \(h = 0.1\). [Unit 5, 2075, 5 Marks]
  6. Solve \(\nabla^2 u = 0\) on a triangular domain with vertices \((0,0)\), \((1,0)\), \((0,1)\), \(u = 0\) on \(y = 0\), \(u = x\) on \(x = 0\), \(u = y\) on \(x + y = 1\), \(h = 0.5\). [Unit 6, 2074, 5 Marks]
  7. Use the Taylor series method to solve \(y' = x + y\), \(y(0) = 1\), at \(x = 0.1\). [Unit 5, 2073, 5 Marks]
  8. Compute the first derivative of \(f(x) = \sin(x)\) at \(x = 0.5\) with error analysis, using forward difference, \(h = 0.1\). [Unit 3, 2072, 5 Marks]