Taylor, Optimality and Gradient Descent: past questions

28 questions · 89 marks · 10 papers. Try each one before checking.

Solve them and check answers →Read the notes first

1 Dec 2024

Question 8 MCQ · 3 marks

Find the point on the line defined by $y = 2x + 1$ that is closest to the point $(4,0)$.

  1. $(3,7)$
  2. $(0.4, 1.8)$
  3. $(0,0)$
  4. $(-1,0)$

Question 7 MCQ · 3 marks

Consider a function $f(x,y) = 3x^2 - 6xy + y^2 + 4$. Using gradient descent algorithm, with an initial guess of $(1, 4)$ and learning rate of $\frac{1}{t^2}$, where $t = 1, 2, 3, \dots$ What will be the value of $(x, y)$ after two iterations?

  1. $x = 7, y = 4$
  2. $x = 2.5, y = 12.5$
  3. $x = 4, y = 6$
  4. $x = 3.5, y = 10$

6 Apr 2026

Question 5 MCQ · 3 marks

Which of the following represents the Taylor series expansion up to the third degree term of $f(x) = \frac{1}{1 - x}$ around $x = 0$?

  1. $1 + x + x^2 + x^3$
  2. $1 - x + x^2 - x^3$
  3. $1 - x - x^2 - x^3$
  4. $x + x^2 + x^3 + x^4$

Question 11 SA · 4 marks

A function $f(x) = x^2 - 6x + 5$ is minimized using the gradient descent algorithm. Let $x^*$ denote the value of $x$ at which $f(x)$ is minimized. Starting from the initial point $x_0 = 4$, one iteration of gradient descent is performed with a learning rate of $\eta = 0.1$. If $x_1$ denotes the point obtained after this iteration, find the value of $|x_1 - x^*|$. Enter the answer correct to one decimal place.

Type your answer on the interactive page.

Question 8 MSQ · 4 marks

Consider a function $f : \mathbb{R} \rightarrow \mathbb{R}$ whose graph is shown below. $x = a$ and $x = b$ correspond to local minima of $f$. \[Image Description: A 2D Cartesian coordinate graph with horizontal $x$-axis labeled $0, 1, 2, 3, 4, 5, 6, 7$ and vertical $y$-axis labeled $-2, -1, 0, 1$. A smooth blue curve has two local minima (troughs) in the region $x \in (1, 4)$: the first local minimum is at $x = a$ (around $x \approx 1.35$, $y \approx -0.8$), followed by a local maximum around $x \approx 2.25$, and a second deeper local minimum at $x = b$ (around $x \approx 3.5$, $y \approx -2.2$). Vertical dashed lines connect $a$ and $b$ on the $x$-axis to their respective local minimum points on the curve.\] We run two separate instances of gradient descent with the same learning $\eta$ but different initial points. (1) Starting from the point $x_0 = a - \delta$ (2) Starting from the point $x_0 = b + \delta$. Assume that $\delta$ and $\eta$ are very small positive quantities. Which of the following is/are true if we run gradient descent for a large number of iterations?

  1. Instance (1) will converge to the point $x = a$
  2. Instance (2) will converge to the point $x = b$
  3. Both instances (1) and (2) will converge to $x = a$
  4. Both instances (1) and (2) will converge to $x = b$
  5. Instance (1) will not converge to $x = a$, but will diverge to negative infinity
  6. Instance (2) will not converge to $x = b$, but will diverge to infinity

14 Aug 2026

Question 3 MCQ · 3 marks

Suppose the third-degree Taylor polynomial of a function $f(x)$ about $x = 0$ is $T_3(x) = 1 + 2x + 3x^2 + 4x^3$. Compute the value of $f'(0) + \frac{f''(0)}{2} + f'''(0)$.

  1. $29$
  2. $20$
  3. $32$
  4. $35$

Question 9 SA · 3 marks

Let $(p_1, p_2)$ denote the point on the line $y = x$ that is closest to the point $(2,0)$. Find $p_1 + p_2$.

Type your answer on the interactive page.

Question 7 MSQ · 4 marks

Consider the function $f(x) = ax^2, a > 0$. Gradient descent is used to minimize $f(x)$ with learning rate $\eta$. Which of the following statements is/are correct?

  1. Gradient descent converges for every $\eta > 0$.
  2. If $\eta = \frac{1}{2a}$, the global minimum is reached in exactly one iteration for every non-zero initial point $x_0$.
  3. If $\eta = \frac{1}{a}$, the global minimum is reached in exactly one iteration for every initial point $x_0$.
  4. If $\eta = \frac{1}{a}$, the iterates alternate between $x_0$ and $-x_0$ for any $x_0 \ne 0$.

July 2022

Question 10 SA · 4 marks

It is known that for some function, $f(0) = 1$, $f'(x) = -\cos(x)e^{\sin(x)}$, and $f''(x) = \sin(x)e^{\sin(x)} + (\cos(x))^2 e^{\sin(x)}$. What is the value of $f(1)$ using taylor series expansion. Use second order approximation (up to $f''(x)$) starting with $x = 0$ and $d = 1$.

Type your answer on the interactive page.

Question 11 SA · 4 marks

We need to find the cheapest cylindrical container to hold $1000\text{ m}^3$ of water. The cost of top and bottom circular base is twice that of material used for side of cylinder. Suppose if $1\text{ m}^2$ area of side cost 1000 rupees. Top and bottom base costs 2000 rupees each, then what is the value of radius of cylinder such that we get minimum cost?

Type your answer on the interactive page.

Question 9 SA · 4 marks

We need to find the optimal value of the objective function $f(x,y,z) = \log(xyz) + xyz$. We start with $X_0 = \begin{bmatrix} 1 \\ 2 \\ 3 \end{bmatrix}$. If $X_1 = \begin{bmatrix} i \\ j \\ k \end{bmatrix}$ using the gradient descent algorithm and using $\eta = 1$, then what is the absolute value of $|i + j + k|$? Enter the answer up to 2 decimals accuracy.

Type your answer on the interactive page.

24 Mar 2024

Question 19 SA · 3 marks

The value of a function at point $5$ is $10$. The values of the function's first and second order derivatives at this point are $5$ and $2$ respectively. What will be the function's approximate value at the point $5.1$? (Enter the answer correct up to two decimal places).

Type your answer on the interactive page.

Question 18 MCQ · 3 marks

Find the point(s) on the circle $y^2 = 4 + x^2$ closest to the point $(3, 0)$.

  1. $-1.5, -2.5$
  2. $1.5, 2.5$
  3. $1.5, -2.5$
  4. $-1.5, 2.5$

Question 17 MCQ · 3 marks

Consider a function $f(x,y) = x^2 - 4x + 2y + 1$. Using gradient descent algorithm, with an initial guess of $(3, 2)$ and learning rate of $\frac{1}{t+1}$, where $t = 1, 2, 3, \dots$ What will be the value of $(x, y)$ after two iterations?

  1. $x = 0.5, y = 0$
  2. $x = 2.512, y = 1.612$
  3. $x = 0, y = 0$
  4. $x = 2, y = 0.33$

Dec 2023

Question 4 MCQ · 3 marks

A firm produces two goods A and B. Let $x$ and $y$ denote the prices per unit of A and B, respectively. Sum of the prices for each unit of these two goods is 60. The profit on these goods is evaluated as $2x^2y$. What should the prices of these two products be if the profit is to be maximized?

  1. $x = 40, y = 20$
  2. $x = 20, y = 40$
  3. $x = 30, y = 30$
  4. $x = 0, y = 60$
  5. None of these

Question 18 SA · 3 marks

Find the area of the largest rectangle that can be inscribed in a semicircle $y = \sqrt{2 - x^2}$.

Type your answer on the interactive page.

Question 3 MCQ · 3 marks

Consider a function $f(x,y) = x^2 + y^2 - 4x - 2y + 5$. Using gradient descent algorithm, with an initial guess of $(3, 2)$ and learning rate of $0.1$, what will be the value of $(x, y)$ after one iteration?

  1. $x = 3.2, y = 2.2$
  2. $x = 3, y = 2$
  3. $x = 1.8, y = 0.8$
  4. $x = 2.8, y = 1.8$

16 Mar 2025

Question 2 MCQ · 3 marks

Which of the following represents the Taylor's series expansions up to the fourth degree term of $f(x) = \frac{1}{x}$ around $x = 1$?

  1. $1 + (x - 1) - (x - 1)^2 + (x - 1)^3 - (x - 1)^4$
  2. $1 - (x + 1) + (x + 1)^2 - (x + 1)^3 + (x + 1)^4$
  3. $1 - (x - 1) + (x - 1)^2 - (x - 1)^3 + (x - 1)^4$
  4. $1 + (x - 1) + (x - 1)^2 + (x - 1)^3 + (x - 1)^4$

Question 10 SA · 3 marks

If the minimum value of the function $f(x) = e^{x^2 - 8x + 15}$ is $e^{\alpha}$ then find the value of $\alpha$.

Type your answer on the interactive page.

Question 9 SA · 3 marks

For the function: $f(x,y) = x^2 + 3y^2 - 4xy + 5$ Using the initial values $x_0 = 2$ and $y_0 = 3$, perform one iteration of gradient descent with a learning rate of $0.1$. What is the value of $f(x,y)$ after this iteration? Enter the answer correct to two decimal places.

Type your answer on the interactive page.

Aug 2023

Question 6 SA · 3 marks

If $f([1,2,3]^T) = 10$ and $\nabla f([1,2,3]^T) = [1,5,7]^T$ then find the value of $f([2,2,2]^T)$ using first order taylor series expansion.

Type your answer on the interactive page.

Question 10 SA · 4 marks

What is the maximum area of a circle that can be inscribed in a closed region formed by two parabolas, $y = 2 - x^2$ and $y = x^2 - 2$? Hint: The circle will be centered at origin.

Type your answer on the interactive page.

4 Aug 2024

Question 19 SA · 3 marks

The value of a function at point $25$ is $5$. The values of the function's first and second order derivatives at this point are $0.1$ and $-0.002$ respectively. What will be the function's approximate value at the point $25.1$? (Enter the answer correct up to three decimal places).

Type your answer on the interactive page.

Question 18 SA · 3 marks

Consider a function $f(x,y) = (x - 1)^2 + (y - 2)^2$. Using a gradient descent algorithm, with an initial guess of $(0, 0)$ and learning rate of $0.1$, what will be the absolute difference between the value of the function after first and second iteration? Enter the answer correct to three decimal places.

Type your answer on the interactive page.

Question 17 MCQ · 2 marks

Which of the following statements about choosing the learning rate in gradient descent is incorrect?

  1. A small learning rate can lead to slow convergence.
  2. A large learning rate can cause the loss function to fluctuate around theminimum.
  3. A large learning rate can cause divergence.
  4. A small learning rate always causes the training to progress very quickly.

3 Aug 2025

Question 2 MCQ · 2 marks

Let $f : \mathbb{R}^n \rightarrow \mathbb{R}$ be an $n$ times continuously differentiable function. Suppose that $\nabla f(x^*) = 0$ and $\nabla^2 f(x^*) > 0$.

What can we conclude about $x^*$?

  1. $x^*$ is a local maximum
  2. $x^*$ is a saddle point
  3. $x^*$ is a local minimum
  4. Nothing can be concluded

Question 10 SA · 3 marks

Find the point(s) on the parabola $y = x^2$ that is closest to the point $(0,2)$. If $(x, y)$ is the closest point, find the value of $x^2 + y^2$. Give your answer correct to two decimal places.

Type your answer on the interactive page.

Question 7 MCQ · 3 marks

Consider the function $f(x,y) = (x - 1)^2 + (y + 2)^2$. Using the gradient descent algorithm with an initial guess $(x_0, y_0) = (3, -1)$ and learning rate $\eta_t = \frac{1}{t+1}$ where $t = 0, 1, 2, \dots,$ what will be the value of $(x, y)$ after two iterations?

  1. $x = 1, y = -2$
  2. $x = 2, y = -2$
  3. $x = 1.5, y = -2.5$
  4. $x = 1.625, y = -2.375$

Check your answers →

Weeks covering this topic

Other MLF topics