Mathematics Paper 2 syllabus: Numerical Analysis and…
UPSC Mathematics optional Paper 2 syllabus with PYQs
Numerical Analysis and Computer Programming: Numerical methods: Solution of algebraic and transcendental equations of one variable by bisection, Regula-Falsi and Newton-Raphson methods, solution of system of linear equations by Gaussian Elimination and Gauss-Jorden (direct), Gauss-Seidel (iterative) methods. Newton's (forward and backward) and interpolation, Lagrange's interpolation. Numerical integration: Trapezoidal rule, Simpson's rule, Gaussian quadrature formula. Numerical solution of ordinary differential equations: Eular and Runga Kutta methods. Computer Programming: Binary system; Arithmetic and logical operations on numbers; Octal and Hexadecimal Systems; Conversion to and from decimal Systems; Algebra of binary numbers. Elements of computer systems and concept of memory; Basic logic gates and truth tables, Boolean algebra, normal forms. Representation of unsigned integers, signed integers and reals, double precision reals and long integers. Algorithms and flow charts for solving numerical analysis problems
- Algebraic equations and linear systems
- Logic gates and Boolean algebra
- Binary and number systems
- Numerical integration
- Interpolation
- Numerical solution of ODEs
- Algorithms and flow charts
Previous year questions
- 2026 Q5(b): By using the Newton-Raphson iterative formula, establish the formula $x_{i+1} = \dfrac{1}{3}\left(2x_i + \dfrac{N}{x_i^2}\right)$ to find the cube root of N. Use this formula, if established, to find the cube root of 63 correct to four decimal places with the initial approximation 3.9.
- 2026 Q5(c): Consider the logic circuit L: [Figure] Inputs A, B, C feed three AND gates whose outputs feed one OR gate giving output Y; some inputs to the AND gates pass through NOT gates. (i) Express Y as a Boolean expression. (ii) Write 8-bit special sequences for A, B and C. (iii) Find the truth table of L using 8-bit special sequences.
- 2026 Q6(b): (i) Find the decimal equivalent of the following floating point 10-bit numbers with 5 bits as fractional part: 1010111011 and 0100101010 [8] (ii) Evaluate $(11001.1011)_{10} + (33.24)_8 + (101101)_2$ and convert the final result in hexadecimal system. [7]
- 2026 Q7(b): Evaluate the integral $\int_0^{0.8} f(x)\,dx$, where $f(x) = 0.2 + 25x - 200x^2 + 675x^3 - 900x^4 + 400x^5$ by using single application of Simpson's $\dfrac{3}{8}$ rule.
- 2026 Q8(b): Consider the initial value problem: $\dfrac{dy}{dx} = 1 + \dfrac{y}{x}$, $y(1) = 1$, $h = 1$ (Step-size) (i) Apply the classical fourth order Runge-Kutta method to approximate the solution $y(2)$. (ii) Use Euler's method to find $y(2)$ and $y(3)$.
- 2025 Q5(b): Solve the following system of linear equations by Gauss-Seidel method: $10x + 2y + z = 9$ $2x + 20y - 2z = -44$ $-2x + 3y + 10z = 22$
- 2025 Q5(c): (i) Convert the number $(3479)_{10}$ into binary system and the number $(7AE \cdot 9F)_{16}$ into decimal system. (ii) Determine the truth table for the Boolean function $F(x, y, z) = (x + y + z')(x' + y')$ Also derive the full disjunctive normal form of $F(x, y, z)$ from the truth table.
- 2025 Q6(b): Simplify the Boolean function $F(x, y, z) = xyz + x'yz + xy'z + xyz'$ and draw the corresponding GATE network.
- 2025 Q7(b): Find the unique polynomial of degree 2 or less which fits the following data: | $x$ | 0 | 1 | 3 | |---|---|---|---| | $f(x)$ | 1 | 3 | 55 | Also obtain the bound on the truncation error.
- 2025 Q8(b): Find the constant $p$ and error term for the quadrature formula $$\int_{x_0}^{x_1} f(x)\,dx = \frac{h}{2}(f_0 + f_1) + ph^2(f_0' - f_1')$$ where $x_0 + h = x_1$, $f_0 = f(x_0)$, $f_1 = f(x_1)$ and prime ($'$) represents derivative with respect to $x$. Hence deduce the composite rule for integrating $$\int_a^b f(x)\,dx,\ a = x_0 < x_1 < \cdots < x_N = b$$
- 2024 Q5(b): Solve the following system of linear equations by Gauss-Jordan method: $2x + 3y - z = 5$ $4x + 4y - 3z = 3$ $2x - 3y + 2z = 2$
- 2024 Q5(c): (i) Determine the decimal equivalent in sign magnitude form of $(8D)_{16}$ and $(FF)_{16}$. (ii) Determine the decimal equivalent of $(9B2.1A)_{16}$.
- 2024 Q6(b): Draw the logical circuit for the Boolean expression $Y = AB\overline{C} + B\overline{C} + \overline{A}B$. Also, obtain the output Y (truth table) for the three input bit sequences: $A = 10001111$, $B = 00111100$, $C = 11000100$
- 2024 Q7(b): Integrate $f(x) = 5x^3 - 3x^2 + 2x + 1$ from $x = -2$ to $x = 4$ using (i) Simpson's $\frac{3}{8}$ rule with width h = 1, and (ii) Trapezoidal rule with width h = 1.
- 2024 Q8(b): Using Newton's forward difference formula for interpolation, estimate the value of $f(2.5)$ from the following data: | x | 1 | 2 | 3 | 4 | 5 | 6 | |---|---|---|---|---|---|---| | f(x) | 0 | 1 | 8 | 27 | 64 | 125 |
- 2023 Q5(b): Given $\dfrac{dy}{dx} = \dfrac{y^2 - x}{y^2 + x}$ with initial condition $y = 1$ at $x = 0$. Find the value of $y$ for $x = 0.4$ by Euler's method, correct to 4 decimal places, taking step length $h = 0.1$.
- 2023 Q5(c): Evaluate, using the binary arithmetic, the following numbers in their given system: (i) $(634.235)_8 - (132.223)_8$ (ii) $(7AB.432)_{16} - (5CA.D61)_{16}$
- 2023 Q6(b): Solve the system of linear equations $7x_1 - x_2 + 2x_3 = 11$ $2x_1 + 8x_2 - x_3 = 9$ $x_1 - 2x_2 + 9x_3 = 7$ correct up to 4 significant figures by the Gauss-Seidel iterative method. Take initially guessed solution as $x_1 = x_2 = x_3 = 0$.
- 2023 Q7(a): (i) Find the conjunctive normal form (CNF) of the following Boolean function: $f(x, y, z, t) = x \cdot y \cdot z + \bar{x} \cdot y \cdot (t + \bar{z})$ (ii) Express the Boolean function $f(x, y, z) = x + \overline{(\bar{x} \cdot \bar{y} + \bar{x} \cdot z)} + z$ in disjunctive normal form (DNF) and construct the truth table for the function.
- 2023 Q8(b): Compute a root of the equation $\log_{10}(2x + 1) - x^2 + 3 = 0$, in the interval $[0, 3]$, by Regula-Falsi method, correct to 6 decimal places.
- 2022 Q5(b): Solve, by Gauss elimination method, the system of equations $2x+2y+4z=18$ $x+3y+2z=13$ $3x+y+3z=14$
- 2022 Q5(c): (i) Convert the number $(1093.21875)_{10}$ into octal and the number $(1693.0628)_{10}$ into hexadecimal systems. (ii) Express the Boolean function $F(x,y,z)=xy+x'z$ in a product of maxterms form.
- 2022 Q6(b): Find a combinatorial circuit corresponding to the Boolean function $f(x,y,z)=[x\cdot(\bar{y}+z)]+y$ and write the input/output table for the circuit.
- 2022 Q7(b): The velocity of a train which starts from rest is given by the following table, the time being reckoned in minutes from the start and the velocity in km/hour: | $t$ (minutes) | 2 | 4 | 6 | 8 | 10 | 12 | 14 | 16 | 18 | 20 | |---|---|---|---|---|---|---|---|---|---|---| | $v$ (km/hour) | 16 | 28.8 | 40 | 46.4 | 51.2 | 32 | 17.6 | 8 | 3.2 | 0 | Using Simpson's $\frac{1}{3}$rd rule, estimate approximately in km the total distance run in 20 minutes.
- 2022 Q8(b): Using Runge-Kutta method of fourth order, solve the differential equation $\dfrac{dy}{dx}=x+y^2$ with $y(0)=1$, at $x=0.2$. Use four decimal places for calculation and step length 0.1.
- 2021 Q5(b): Find a positive root of the equation $3x = 1 + \cos x$ by a numerical technique using initial values $0, \dfrac{\pi}{2}$; and further improve the result using Newton-Raphson method correct to 8 significant figures.
- 2021 Q5(c): (i) Convert $(3798.3875)_{10}$ into octal and hexadecimal equivalents. (ii) Obtain the principal conjunctive normal form of $(\neg P \to R) \wedge (Q \Leftrightarrow P)$.
- 2021 Q6(b): Obtain the Boolean function $F(x, y, z)$ based on the table given below. Then simplify $F(x, y, z)$ and draw the corresponding GATE network: | x | y | z | F(x, y, z) | |---|---|---|---| | 1 | 1 | 1 | 1 | | 1 | 1 | 0 | 1 | | 1 | 0 | 1 | 1 | | 1 | 0 | 0 | 0 | | 0 | 1 | 1 | 1 | | 0 | 1 | 0 | 0 | | 0 | 0 | 1 | 0 | | 0 | 0 | 0 | 0 |
- 2021 Q7(b): Solve the system of equations $3x_1 + 9x_2 - 2x_3 = 11$ $4x_1 + 2x_2 + 13x_3 = 24$ $4x_1 - 2x_2 + x_3 = -8$ correct up to 4 significant figures by using Gauss-Seidel method after verifying whether the method is applicable in your transformed form of the system.
- 2021 Q8(b): Derive Newton's backward difference interpolation formula and also do error analysis.
- 2020 Q5(b): Show that the equation: $f(x)=\cos\frac{\pi(x+1)}{8}+0.148x-0.9062=0$ has one root in the interval $(-1, 0)$ and one in $(0, 1)$. Calculate the negative root correct to four decimal places using Newton-Raphson method.
- 2020 Q5(c): Let $g(w,x,y,z)=(w+x+y)(x+\bar y+z)(w+\bar y)$ be a Boolean function. Obtain the conjunctive normal form for $g(w,x,y,z)$. Also express $g(w,x,y,z)$ as a product of maxterms.
- 2020 Q6(b): For the solution of the system of equations: $4x+y+2z=4$ $3x+5y+z=7$ $x+y+3z=3$ set up the Gauss-Seidel iterative scheme and iterate three times starting with the initial vector $X^{(0)}=0$. Also find the exact solutions and compare with the iterated solutions.
- 2020 Q7(b): Find a quadrature formula $$\int_0^1 f(x)\frac{dx}{\sqrt{x(1-x)}}=\alpha_1 f(0)+\alpha_2 f\left(\tfrac12\right)+\alpha_3 f(1)$$ which is exact for polynomials of highest possible degree. Then use the formula to evaluate $\int_0^1\frac{dx}{\sqrt{x-x^3}}$ (correct up to three decimal places).
- 2020 Q8(b): Write the three point Lagrangian interpolating polynomial relative to the points $x_0$, $x_0+\varepsilon$ and $x_1$. Then by taking the limit $\varepsilon\to 0$, establish the relation $$f(x)=\frac{(x_1-x)(x+x_1-2x_0)}{(x_1-x_0)^2}f(x_0)+\frac{(x-x_0)(x_1-x)}{(x_1-x_0)}f'(x_0)+\frac{(x-x_0)^2}{(x_1-x_0)}f(x_1)+E(x)$$ where $E(x)=\frac16(x-x_0)^2(x-x_1)f'''(\xi)$ is the error function and $\min.(x_0, x_0+\varepsilon, x_1)<\xi<\max.(x_0, x_0+\varepsilon, x_1)$
- 2019 Q5(b): Apply Newton-Raphson method, to find a real root of transcendental equation $x\log_{10}x=1\cdot2$, correct to three decimal places.
- 2019 Q5(d): Using Runge-Kutta method of fourth order, solve $\dfrac{dy}{dx}=\dfrac{y^2-x^2}{y^2+x^2}$ with $y(0)=1$ at $x=0\cdot2$. Use four decimal places for calculation and step length $0\cdot2$.
- 2019 Q5(e): Draw a flow chart and write a basic algorithm (in FORTRAN/C/C++) for evaluating $y=\displaystyle\int_0^6 \frac{dx}{1+x^2}$ using Trapezoidal rule.
- 2019 Q6(b): Find the equivalent numbers given in a specified number to the system mentioned against them: (i) Integer 524 in binary system. (ii) $101010110101\cdot101101011$ to octal system. (iii) decimal number 5280 to hexadecimal system. (iv) Find the unknown number $(1101\cdot101)_8\to(?)10$.
- 2019 Q7(b): Apply Gauss-Seidel iteration method to solve the following system of equations: $2x+y-2z=17,$ $3x+20y-z=-18,$ $2x-3y+20z=25,$ correct to three decimal places.
- 2019 Q8(a): Given the Boolean expression $X=AB+ABC+A\overline{B}\,\overline{C}+A\overline{C}$ (i) Draw the logical diagram for the expression. (ii) Minimize the expression. (iii) Draw the logical diagram for the reduced expression.
- 2018 Q5(b): Using Newton's forward difference formula find the lowest degree polynomial $u_x$ when it is given that $u_1 = 1$, $u_2 = 9$, $u_3 = 25$, $u_4 = 55$ and $u_5 = 105$.
- 2018 Q5(d): Starting from rest in the beginning, the speed (in Km/h) of a train at different times (in minutes) is given by the above table : Using Simpson's $\frac{1}{3}$rd rule, find the approximate distance travelled (in Km) in 20 minutes from the beginning. | Time (Minutes) | 2 | 4 | 6 | 8 | 10 | 12 | 14 | 16 | 18 | 20 | |---|---|---|---|---|---|---|---|---|---|---| | Speed (Km/h) | 10 | 18 | 25 | 29 | 32 | 20 | 11 | 5 | 2 | 8.5 |
- 2018 Q5(e): Write down the basic algorithm for solving the equation : $xe^x - 1 = 0$ by bisection method, correct to 4 decimal places.
- 2018 Q6(b): Find the equivalent of numbers given in a specified number system to the system mentioned against them. (i) $(111011.101)_2$ to decimal system (ii) $(1000111110000.00101100)_2$ to hexadecimal system (iii) $(\mathrm{C4F2})_{16}$ to decimal system (iv) $(418)_{10}$ to binary system
- 2018 Q7(b): Find the values of the constants $a, b, c$ such that the quadrature formula $\int_0^h f(x)dx = h\left[af(0) + bf\left(\frac{h}{3}\right) + cf(h)\right]$ is exact for polynomials of as high degree as possible, and hence find the order of the truncation error.
- 2018 Q8(a): Simplify the boolean expression : $(a+b)\cdot(\bar{b}+c) + b\cdot(\bar{a}+\bar{c})$ by using the laws of boolean algebra. From its truth table write it in minterm normal form.
- 2017 Q5(b): Explain the main steps of the Gauss-Jordan method and apply this method to find the inverse of the matrix $$\begin{bmatrix} 2 & 6 & 6 \\ 2 & 8 & 6 \\ 2 & 6 & 8 \end{bmatrix}.$$
- 2017 Q5(c): Write the Boolean expression $z(y + z)(x + y + z)$ in its simplest form using Boolean postulate rules. Mention the rules used during simplification. Verify your result by constructing the truth table for the given expression and for its simplest form.
- 2017 Q6(b): For given equidistant values $u_{-1}$, $u_0$, $u_1$ and $u_2$, a value is interpolated by Lagrange's formula. Show that it may be written in the form $$u_x = yu_0 + xu_1 + \dfrac{y(y^2 - 1)}{3!}\Delta^2 u_{-1} + \dfrac{x(x^2 - 1)}{3!}\Delta^2 u_0,$$ where $x + y = 1$.
- 2017 Q7(b): Derive the formula $$\int_a^b y\,dx = \dfrac{3h}{8}\left[(y_0 + y_n) + 3(y_1 + y_2 + y_4 + y_5 + \ldots + y_{n-1}) + 2(y_3 + y_6 + \ldots + y_{n-3})\right].$$ Is there any restriction on $n$ ? State that condition. What is the error bound in the case of Simpson's $\dfrac{3}{8}$ rule ?
- 2017 Q8(b): Write an algorithm in the form of a flow chart for Newton-Raphson method. Describe the cases of failure of this method.
- 2016 Q5(d): Answer all the questions : Convert the following decimal numbers to equivalent binary and hexadecimal numbers : (i) 4096 (ii) 0.4375 (iii) 2048.0625
- 2016 Q6(c): Let $f(x) = e^{2x}\cos 3x$, for $x \in [0, 1]$. Estimate the value of $f(0.5)$ using Lagrange interpolating polynomial of degree 3 over the nodes $x = 0$, $x = 0.3$, $x = 0.6$ and $x = 1$. Also, compute the error bound over the interval $[0, 1]$ and the actual error $E(0.5)$.
- 2016 Q7(c): For an integral $\int_{-1}^{1} f(x)\,dx$, show that the two-point Gauss quadrature rule is given by $\int_{-1}^{1} f(x)\,dx = f\left(\frac{1}{\sqrt{3}}\right) + f\left(-\frac{1}{\sqrt{3}}\right)$. Using this rule, estimate $\int_{2}^{4} 2x e^x\,dx$.
- 2016 Q8(c): Let A, B, C be Boolean variables, $\bar{A}$ denote complement of A, A + B is an expression for A OR B and A . B is an expression for A AND B. Then simplify the following expression and draw a block diagram of the simplified expression, using AND and OR gates. $A \cdot (A + B + C) \cdot (\bar{A} + B + C) \cdot (A + \bar{B} + C) \cdot (A + B + \bar{C})$.