Question 8
Find the point on the line defined by $y = 2x + 1$ that is closest to the point $(4,0)$.
- $(3,7)$
- $(0.4, 1.8)$
- $(0,0)$
- $(-1,0)$
Solve them and check answers →Read the notes first
Find the point on the line defined by $y = 2x + 1$ that is closest to the point $(4,0)$.
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?
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$?
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.
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?
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)$.
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$.
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?
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$.
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?
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.
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).
Find the point(s) on the circle $y^2 = 4 + x^2$ closest to the point $(3, 0)$.
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?
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?
Find the area of the largest rectangle that can be inscribed in a semicircle $y = \sqrt{2 - x^2}$.
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?
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$?
If the minimum value of the function $f(x) = e^{x^2 - 8x + 15}$ is $e^{\alpha}$ then find the value of $\alpha$.
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.
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.
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.
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).
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.
Which of the following statements about choosing the learning rate in gradient descent is incorrect?
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^*$?
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.
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?