{"id": "6669d22b1d41c864073017dc", "title": "Given an arbitrary set of vectors $\\{v_1, v_2, v_3\\}$ in $\\mathbb{R}^3$, the Gram-Schmidt process is applied to produce an orthonormal set of vectors $\\{u_1, u_2, u_3\\}$. If the resulting vector $u_2$ is given by $u_2 = \\frac{1}{\\sqrt{2}}(v_2 - v_1)$, which is the correct relationship between $v_1$ and $v_2$?", "option": ["A. $v_2 = v_1$", "B. $v_2$ is orthogonal to $v_1$", "C. $v_2 = v_1 + \\sqrt{2} u_1$", "D. $v_2 = 2u_1$"], "answer": "B", "parse": "The Gram-Schmidt process generates an orthonormal set from a given set of linearly independent vectors. The vectors are constructed such that each new vector is orthogonal to the previous ones and of unit length. In this context, $u_2$ is orthogonal to $u_1$ and also normalized.\nGiven $u_2 = \\frac{1}{\\sqrt{2}}(v_2 - v_1)$, we want to find the relationship between $v_1$ and $v_2$. The standard Gram-Schmidt formula for $u_2$ given already computed $u_1$ is:\n$$u_2 = \\frac{v_2 - \\text{proj}_{u_1}(v_2)}{\\| v_2 - \\text{proj}_{u_1}(v_2) \\|},$$\nwhere $\\text{proj}_{u_1}(v_2) = \\frac{\\langle v_2, u_1 \\rangle \\cdot u_1}{\\langle u_1, u_1 \\rangle}$.\nSince $u_1$ is obtained from $v_1$ by normalization, $u_1 = \\frac{v_1}{\\|v_1\\|}$.\nTherefore, $\\text{proj}_{u_1}(v_2) = \\frac{\\langle v_2, \\frac{v_1}{\\|v_1\\|}\\rangle \\cdot \\frac{v_1}{\\|v_1\\|}}$.\nGiven $u_2 = \\frac{1}{\\sqrt{2}}(v_2 - v_1)$ is already normalized, it implies that $\\|v_2 - v_1\\| = \\sqrt{2}$. For the projection term, we infer that $\\text{proj}_{u_1}(v_2) = v_1$, suggesting that $v_2$ and $v_1$ are orthogonal, and hence $\\langle v_2, u_1 \\rangle = 1$.", "qtype": "Single choice question", "subject": "Mathematics", "grade": "University", "has_img": false} {"id": "6669780fe77989980b3b8f10", "title": "Which of the following is the equation of a circle with a center at (3, -2) and a radius of 5?", "option": ["A. $(x + 3)^2 + (y - 2)^2 = 25$", "B. $(x - 3)^2 + (y + 2)^2 = 25$", "C. $(x - 3)^2 + (y - 2)^2 = 25$", "D. $(x + 3)^2 + (y + 2)^2 = 25$"], "answer": "B", "parse": "The standard form of the equation of a circle is $(x - h)^2 + (y - k)^2 = r^2$, where $(h, k)$ is the center and $r$ is the radius. Substituting the given center (3, -2) and radius 5 into the formula, we get:\n$$(x - 3)^2 + (y + 2)^2 = 25$$", "qtype": "Single choice question", "subject": "Mathematics", "grade": "University", "has_img": false} {"id": "666978ebe77989980b3b8faa", "title": "If $ f(x) = \\frac{2x^3 - x^2 + 3x - 1}{x + 1} $, what is the limit of $ f(x) $ as $ x $ approaches -1?", "option": ["A. $ 0 $", "B. $ -5 $", "C. $ 7 $", "D. $ -\\infty $", "E. Does not exist"], "answer": "D", "parse": "To find the limit of the function $ f(x) $ as $ x $ approaches -1, first check if the function is defined at $ x = -1 $ by substituting -1 into the denominator. The denominator becomes zero, indicating a potential issue with direct substitution. This suggests the possibility of a removable discontinuity or some other singularity.\nTo resolve this, perform polynomial division to simplify $ f(x) $:\n$ \\frac{2x^3 - x^2 + 3x - 1}{x + 1} $\nUsing synthetic division or long division, we divide $ 2x^3 - x^2 + 3x - 1 $ by $ x + 1 $:\n1. Divide the leading term $ 2x^3 $ by $ x $ to get $ 2x^2 $.\n2. Multiply $ 2x^2 $ by $ x + 1 $ to get $ 2x^3 + 2x^2 $.\n3. Subtract $ 2x^3 + 2x^2 $ from $ 2x^3 - x^2 $ to get $ -3x^2 + 3x $.\nRepeat the process for $ -3x^2 + 3x $:\n4. Divide $ -3x^2 $ by $ x $ to get $ -3x $.\n5. Multiply $ -3x $ by $ x + 1 $ to get $ -3x^2 - 3x $.\n6. Subtract $ -3x^2 - 3x $ from $ -3x^2 + 3x $ to get $ 6x - 1 $.\nFinally, repeat once more for $ 6x - 1 $:\n7. Divide $ 6x $ by $ x $ to get $ 6 $.\n8. Multiply $ 6 $ by $ x + 1 $ to get $ 6x + 6 $.\n9. Subtract $ 6x + 6 $ from $ 6x - 1 $ to get $ -7 $.\nThe division reveals that:\n$$ \\frac{2x^3 - x^2 + 3x - 1}{x + 1} = 2x^2 - 3x + 6 + \\frac{-7}{x + 1} $$\nAs $ x $ approaches -1, the term $ \\frac{-7}{x + 1} $ approaches $-\\infty$.\nFrom this, we conclude the limit does not exist in the finite sense; it diverges to negative infinity.", "qtype": "Single choice question", "subject": "Mathematics", "grade": "University", "has_img": false} {"id": "6669952ce77989980b3ba3ab", "title": "In the context of sorting algorithms, the quicksort algorithm can be described as a \"divide and conquer\" algorithm because it divides the data into smaller subarrays, sorts the subarrays, and then _ _ _ _ _ _ _ the results.", "option": null, "answer": "combines", "parse": "Quicksort works by selecting a 'pivot' element from the array and partitioning the other elements into two subarrays according to whether they are less than or greater than the pivot. The subarrays are then sorted recursively. Eventually, the results from the subarrays are combined to form the final sorted array. The missing term here refers to the process of putting together the sorted subarrays to get the final sorted list.", "qtype": "Short answer question", "subject": "Mathematics", "grade": "University", "has_img": false} {"id": "6669cd541d41c864072ffa9d", "title": "Which of the following sets is open in the context of standard topology on the real numbers?", "option": ["A. $ (0, 1) $", "B. $ [0, 1] $", "C. $ \\{0\\} $", "D. $ \\mathbb{R} $"], "answer": "A", "parse": "A set $ U $ in the real numbers $ \\mathbb{R} $ is considered open if for every point $ x $ in $ U $, there exists an $\\epsilon > 0$ such that the interval $ (x - \\epsilon, x + \\epsilon) $ is entirely contained within $ U $.\n- Option A ($ (0, 1) $) is an open interval, meaning for any point within this interval, you can find a small $\\epsilon$-neighborhood around the point that still lies within the interval.\n- Option B ($ [0, 1] $) is not open because the endpoints 0 and 1 do not have neighborhoods entirely contained within the set.\n- Option C ($ \\{0\\} $) is a single-point set, which is not open because no $\\epsilon$-neighborhood around 0 (other than 0 itself) lies within the set.\n- Option D ($ \\mathbb{R} $) is the entire set of real numbers, which is open since any point $ x $ in $ \\mathbb{R} $ will have an $\\epsilon$-neighborhood entirely within $ \\mathbb{R} $.", "qtype": "Single choice question", "subject": "Mathematics", "grade": "University", "has_img": false} {"id": "66698340e77989980b3b9641", "title": "The Euler's totient function $ \\phi(n) $ is defined as the number of positive integers up to $ n $ that are relatively prime to $ n $. Calculate $ \\phi(15) $.", "option": ["A. 5", "B. 6", "C. 7", "D. 8"], "answer": "D", "parse": "To calculate $ \\phi(15) $, we use the formula for Euler's totient function. If $ n $ is a product of two coprime numbers $ a $ and $ b $, then $ \\phi(ab) = \\phi(a) \\times \\phi(b) $.\nGiven $ 15 = 3 \\times 5 $:\n- $ \\phi(3) = 3 \\times (1 - \\frac{1}{3}) = 2 $\n- $ \\phi(5) = 5 \\times (1 - \\frac{1}{5}) = 4 $\nUsing the formula:\n$$ \\phi(15) = \\phi(3) \\times \\phi(5) = 2 \\times 4 = 8 $$", "qtype": "Single choice question", "subject": "Mathematics", "grade": "University", "has_img": false} {"id": "66698bb1e77989980b3b9b45", "title": "Describe how machine perception contributes to the development of autonomous vehicles. Provide at least two specific examples.", "option": null, "answer": "Machine perception enables autonomous vehicles to detect and classify objects (e.g., pedestrians, other vehicles, road signs) and assess road conditions (e.g., lane markings, obstacles, traffic signals).", "parse": "Machine perception involves the ability of machines to interpret data from the environment through sensors and make corresponding decisions. In the context of autonomous vehicles, machine perception allows the vehicle to recognize and respond to various stimuli. Key examples include:\n1. Object Detection: Autonomous vehicles use cameras and LIDAR to detect and classify objects such as pedestrians, other vehicles, and road signs.\n2. Road Condition Assessment: Sensors detect road conditions such as lane markings, obstacles, and traffic signals to ensure safe navigation.", "qtype": "Short answer question", "subject": "Mathematics", "grade": "University", "has_img": false} {"id": "6669d0031d41c8640730096e", "title": "Consider the following non-homogeneous system of linear equations:\n$$ 2x + 3y = 4 $$\n$$ 4x + 6y = 8 $$\nDetermine if this system has a solution. If yes, state how many solutions there are.", "option": null, "answer": "The system has infinitely many solutions.", "parse": "First, observe that the second equation is a multiple of the first equation. Specifically, multiplying the first equation by 2 gives:\n$$ 2(2x + 3y) = 2 \\cdot 4 $$\n$$ 4x + 6y = 8 $$\nThis means that both equations are essentially the same line when represented graphically, meaning they are not independent; they represent the same constraint. Hence, every solution to the first equation is also a solution to the second.\nBecause the two equations are dependent and consistent, the system has infinitely many solutions, corresponding to all points on the line $ 2x + 3y = 4 $.", "qtype": "Short answer question", "subject": "Mathematics", "grade": "University", "has_img": false} {"id": "666a6cf71d41c8640732661d", "title": "A Fourier cosine series represents a function using only sine terms. True or False?", "option": null, "answer": "False", "parse": "A Fourier cosine series uses only cosine terms to represent a function. It does not include sine terms, which are instead used in a Fourier sine series. The distinction lies in the type of trigonometric functions used; cosine series use cosines exclusively, while sine series use sines.", "qtype": "True or false question", "subject": "Mathematics", "grade": "University", "has_img": false} {"id": "6669a8d6e77989980b3bb1d4", "title": "In singular value decomposition (SVD), a matrix $ A $ can be decomposed into three matrices $ U $, $ \\Sigma $, and $ V^T $. Which of the following statements is true about these matrices?", "option": ["A. $ U $ and $ V^T $ are both diagonal matrices.", "B. $ \\Sigma $ is an orthogonal matrix.", "C. $ U $ and $ V $ are orthogonal matrices.", "D. $ U $, $ \\Sigma $, and $ V^T $ are all invertible matrices."], "answer": "C", "parse": "In the singular value decomposition (SVD) of a matrix $ A $, the decomposition is given by $ A = U \\Sigma V^T $. Here, $ U $ and $ V $ are orthogonal matrices, meaning their columns are orthonormal vectors. $ \\Sigma $ is a diagonal matrix containing the singular values on its diagonal. The orthogonality of $ U $ and $ V $ is a key property that makes SVD a powerful tool in data analysis and computational mathematics.", "qtype": "Single choice question", "subject": "Mathematics", "grade": "University", "has_img": false} {"id": "6669cd541d41c864072ffaa3", "title": "A function $ f(x, y) $ is given by $ f(x, y) = x^3 - 3xy^2 $. Which of the following statements about the Hessian matrix of this function at the point $ (0, 0) $ are true?", "option": ["A. The Hessian matrix at $ (0, 0) $ is a zero matrix.", "B. The Hessian matrix at $ (0, 0) $ has non-zero diagonal elements.", "C. The determinant of the Hessian matrix at $ (0, 0) $ is zero.", "D. The function has a saddle point at $ (0, 0) $ since the Hessian matrix is not positive definite."], "answer": "A, C", "parse": "The Hessian matrix of a function $ f(x, y) $ is a square matrix of second-order mixed partial derivatives of the function. For $ f(x, y) = x^3 - 3xy^2 $:\nFirst, calculate the necessary partial derivatives:\n- $ f_x = \\frac{\\partial f}{\\partial x} = 3x^2 - 3y^2 $\n- $ f_y = \\frac{\\partial f}{\\partial y} = -6xy $\n- $ f_{xx} = \\frac{\\partial^2 f}{\\partial x^2} = 6x $\n- $ f_{xy} = f_{yx} = \\frac{\\partial^2 f}{\\partial x \\partial y} = -6y $\n- $ f_{yy} = \\frac{\\partial^2 f}{\\partial y^2} = -6x $\nAt the point $ (0, 0) $:\n- $ f_{xx}(0, 0) = 0 $\n- $ f_{xy}(0, 0) = 0 $\n- $ f_{yx}(0, 0) = 0 $\n- $ f_{yy}(0, 0) = 0 $\nSo the Hessian matrix at $ (0, 0) $ is:\n\\[\n\\begin{pmatrix}\n0 & 0 \\\\\n0 & 0\n\\end{pmatrix}\n\\]", "qtype": "Multiple choice question", "subject": "Mathematics", "grade": "University", "has_img": false} {"id": "66699d61e77989980b3baa12", "title": "Consider a simple Markov decision process where a robot can be in one of two states: State A or State B. Each time step, the robot must choose to perform one of two actions: Action 1 or Action 2. The transition probabilities and rewards for each action are given below:\n- Action 1:\n- From State A to State A: Probability 0.6, Reward 5\n- From State A to State B: Probability 0.4, Reward 3\n- From State B to State A: Probability 0.7, Reward 2\n- From State B to State B: Probability 0.3, Reward 4\n- Action 2:\n- From State A to State A: Probability 0.8, Reward 6\n- From State A to State B: Probability 0.2, Reward 4\n- From State B to State A: Probability 0.5, Reward 1\n- From State B to State B: Probability 0.5, Reward 5\nIf the initial state is State A, and the robot must choose one action to maximize the expected reward in the next time step, which action should the robot choose?", "option": null, "answer": "The robot should choose Action 2.", "parse": "To determine which action the robot should choose, calculate the expected rewards for Action 1 and Action 2 from State A. The expected reward is the sum of the product of transition probabilities and their corresponding rewards.\nFor Action 1 from State A:\nExpected Reward = (0.6 5) + (0.4 3) = 3 + 1.2 = 4.2\nFor Action 2 from State A:\nExpected Reward = (0.8 6) + (0.2 4) = 4.8 + 0.8 = 5.6\nAction 2 yields a higher expected reward than Action 1, so the robot should choose Action 2.", "qtype": "Short answer question", "subject": "Mathematics", "grade": "University", "has_img": false} {"id": "666a73381d41c86407328c40", "title": "Consider the function $ f(x) = x^3 - 3x^2 + 2x $. Compute the differential $ df $ when $ x = 2 $ and $ dx = 0.1 $.", "option": null, "answer": "0.2", "parse": "The differential $ df $ is given by the formula $ df = f'(x) dx $. To compute $ df $, we first need to find the derivative $ f'(x) $ of the function $ f(x) = x^3 - 3x^2 + 2x $.\n1. Compute the derivative:\n\\[\nf'(x) = \\frac{d}{dx}(x^3 - 3x^2 + 2x) = 3x^2 - 6x + 2\n\\]\n2. Evaluate the derivative at $ x = 2 $:\n\\[\nf'(2) = 3(2)^2 - 6(2) + 2 = 12 - 12 + 2 = 2\n\\]\n3. Calculate the differential $ df $ using $ f'(2) $ and $ dx = 0.1 $:\n\\[\ndf = f'(2) \\cdot dx = 2 \\cdot 0.1 = 0.2\n\\]\nThus, the differential $ df $ when $ x = 2 $ and $ dx = 0.1 $ is 0.2.", "qtype": "Short answer question", "subject": "Mathematics", "grade": "University", "has_img": false} {"id": "66690187e779890b80ea42d1", "title": "In a triangle, if one angle is twice as large as another, the side opposite the larger angle is twice as long as the side opposite the smaller angle. True or False?", "option": null, "answer": "False", "parse": "In a triangle, the lengths of the sides are proportional to the sines of their opposite angles. Specifically, for any triangle ABC with angles $\\alpha$, $\\beta$, and $\\gamma$ opposite sides $a$, $b$, and $c$ respectively, the following relationship holds: $\\frac{a}{\\sin(\\alpha)} = \\frac{b}{\\sin(\\beta)} = \\frac{c}{\\sin(\\gamma)}$. If one angle is twice as large as another, the sine of the double angle is not twice the sine of the smaller angle, making it incorrect to assert that the side opposite the larger angle is twice as long as the side opposite the smaller angle.", "qtype": "True or false question", "subject": "Mathematics", "grade": "University", "has_img": false} {"id": "666a645e1d41c864073227b8", "title": "The function $ f(x, y) $ has continuous partial derivatives with respect to $ x $ and $ y $. Given that $ \\frac{\\partial f}{\\partial x} $ at the point $(2, 3)$ equals zero and $ \\frac{\\partial f}{\\partial y} $ at the point $(2, 3)$ is nonzero, the point $(2, 3)$ is necessarily a critical point of $ f $.", "option": null, "answer": "False", "parse": "A point $(a, b)$ is considered a critical point of a function $ f(x, y) $ if both partial derivatives $ \\frac{\\partial f}{\\partial x} $ and $ \\frac{\\partial f}{\\partial y} $ are zero at $(a, b)$. In this case, while $ \\frac{\\partial f}{\\partial x} $ is zero at $(2, 3)$, $ \\frac{\\partial f}{\\partial y} $ is not zero. Therefore, $(2, 3)$ cannot be a critical point because not both partial derivatives are zero.", "qtype": "True or false question", "subject": "Mathematics", "grade": "University", "has_img": false} {"id": "6669d0391d41c86407300e0b", "title": "A subspace $ W $ of $ \\mathbb{R}^n $ is called a linear variety if it is a translation of a linear subspace. Given the subspace $ V $ of $ \\mathbb{R}^3 $ defined by the equation $ x + y + z = 0 $, which of the following sets is a linear variety of $ V $?\n\\( \\begin{aligned}\n& A. & \\{(x, y, z) \\in \\mathbb{R}^3 \\mid x + y + z = 1\\} \\\\\n& B. & \\{(x, y, z) \\in \\mathbb{R}^3 \\mid x + y + z = 0\\} \\\\\n& C. & \\{(x, y, z) \\in \\mathbb{R}^3 \\mid x = y = z\\} \\\\\n& D. & \\{(x, y, z) \\in \\mathbb{R}^3 \\mid x - y + z = 0\\}\n\\end{aligned} \\)", "option": ["A. \\{(x, y, z) \\in \\mathbb{R}^3 \\mid x + y + z = 1\\}", "B. \\{(x, y, z) \\in \\mathbb{R}^3 \\mid x + y + z = 0\\}", "C. \\{(x, y, z) \\in \\mathbb{R}^3 \\mid x = y = z\\}", "D. \\{(x, y, z) \\in \\mathbb{R}^3 \\mid x - y + z = 0\\}"], "answer": "A", "parse": "A linear variety of a subspace $ V $ is a set that can be described as $ V + p $ for some point $ p \\in \\mathbb{R}^3 $. This means it is a translation of the subspace $ V $. The given subspace $ V $ is defined by the equation $ x + y + z = 0 $, which is a plane through the origin in $ \\mathbb{R}^3 $.\n- Option A describes a plane $ x + y + z = 1 $, which is a translation of the plane $ x + y + z = 0 $ by the vector $ (1, 0, 0) $. Therefore, it is a linear variety of $ V $.\n- Option B describes the same plane as $ V $, which is a subspace but not translated, hence not a linear variety.\n- Option C describes the line through the origin where $ x = y = z $. This is not a translation of the given plane.\n- Option D describes a different plane $ x - y + z = 0 $ that is neither parallel nor translated version of the plane $ x + y + z = 0 $. Therefore, it is not a linear variety.", "qtype": "Single choice question", "subject": "Mathematics", "grade": "University", "has_img": false} {"id": "66691ecfe779890b80eaeb96", "title": "Given a 2x2 matrix $ A = \\begin{pmatrix} 2 & 1 \\\\ 0 & 3 \\end{pmatrix} $, its characteristic equation is $ \\lambda^2 - 5\\lambda + 6 = 0 $. Using the Cayley-Hamilton theorem, complete the equation that the matrix $ A $ satisfies: $ A^2 - 5A + 6I = \\_\\_\\_\\_\\_ $.", "option": null, "answer": "0", "parse": "The Cayley-Hamilton theorem states that every square matrix satisfies its own characteristic equation. For the given matrix $ A $, the characteristic equation is $ \\lambda^2 - 5\\lambda + 6 = 0 $. By the theorem, $ A $ will satisfy this equation when substituting $ A $ for $ \\lambda $. Thus, we have:\n$$ A^2 - 5A + 6I = 0 $$\nHere, $ I $ denotes the 2x2 identity matrix. Simplifying, we find:\n$$ A^2 - 5A + 6I = 0 $$", "qtype": "Short answer question", "subject": "Mathematics", "grade": "University", "has_img": false} {"id": "6669969ee77989980b3ba46b", "title": "Active learning in machine learning is a method where the algorithm actively chooses the data from which it learns. A common strategy in active learning is uncertainty sampling, where the model selects the instances for which it is least certain about its predictions. This is often measured by the model's predicted probability for the most likely class. For a binary classification problem, if the model's predicted probabilities for a given instance are $0.6$ for class $A$ and $0.4$ for class $B$, the model's uncertainty for this instance is ______.", "option": null, "answer": "0.673", "parse": "In uncertainty sampling for binary classification, the uncertainty is typically measured by the model's confidence in its predictions. One common metric used is the entropy of the predicted probabilities. For a binary classification problem, the entropy $ H $ is calculated as follows:\n$$ H = - (p \\log(p) + (1 - p) \\log(1 - p)) $$\nwhere $ p $ is the predicted probability of one of the classes (let's say class A). The predicted probability for class A is $0.6$, so $1 - p$ is the probability for class B, which is $0.4$. Plugging these values into the entropy formula:\n$$ H = - (0.6 \\log(0.6) + 0.4 \\log(0.4)) $$\nUsing the natural logarithm (base $e$) for calculation:\n$$ H = - (0.6 \\log(0.6) + 0.4 \\log(0.4)) \\approx - (0.6 \\times (-0.5108) + 0.4 \\times (-0.9163)) $$\n$$ \\approx - ( -0.3065 - 0.3665) $$\n$$ \\approx 0.673 $$\nHence, the model's uncertainty for this instance, measured by entropy, is approximately $0.673$.", "qtype": "Fill-in-the-blank question", "subject": "Mathematics", "grade": "University", "has_img": false} {"id": "666a75a11d41c86407329cf5", "title": "Linear programming can be used to solve problems with non-linear constraints as long as the objective function is linear. True or False?", "option": null, "answer": "False", "parse": "Linear programming specifically deals with linear constraints and a linear objective function. If any of the constraints are non-linear, it no longer fits the definition of a linear programming problem and requires different methods to solve, such as non-linear programming techniques.", "qtype": "True or false question", "subject": "Mathematics", "grade": "University", "has_img": false} {"id": "66698565e77989980b3b97f1", "title": "Let $ f(x) $ be a function defined as follows:\n\\[\nf(x) =\n\\begin{cases}\nx^2 & \\text{if } x \\geq 0 \\\\\n-x^2 & \\text{if } x < 0\n\\end{cases}\n\\]\nThe function $ f(x) $ is differentiable at $ x = 0 $ if and only if $ \\underline{\\hspace{2cm}} $.", "option": null, "answer": "0", "parse": "For a function to be differentiable at a point, it must first be continuous at that point. Thus, we need to check the continuity of $ f(x) $ at $ x = 0 $. For $ f(x) $ defined piecewise, we check both $ f(0) $ and the limits from both sides as $ x $ approaches 0.\nChecking continuity at $ x = 0 $:\n$$ f(0) = 0^2 = 0 $$\nLeft-hand limit as $ x $ approaches 0:\n$$ \\lim_{x \\to 0^-} f(x) = \\lim_{x \\to 0^-} -x^2 = 0 $$\nRight-hand limit as $ x $ approaches 0:\n$$ \\lim_{x \\to 0^+} f(x) = \\lim_{x \\to 0^+} x^2 = 0 $$\nSince $ f(0) = 0 $ and both one-sided limits equal 0, $ f(x) $ is continuous at $ x = 0 $.\nNext, we need to check the differentiability. For $ f $ to be differentiable at $ x = 0 $, the left-hand derivative must equal the right-hand derivative at that point.\nLeft-hand derivative at $ x = 0 $:\n$$ \\lim_{h \\to 0^-} \\frac{f(0 + h) - f(0)}{h} = \\lim_{h \\to 0^-} \\frac{-h^2 - 0}{h} = \\lim_{h \\to 0^-} -h = 0 $$\nRight-hand derivative at $ x = 0 $:\n$$ \\lim_{h \\to 0^+} \\frac{f(0 + h) - f(0)}{h} = \\lim_{h \\to 0^+} \\frac{h^2 - 0}{h} = \\lim_{h \\to 0^+} h = 0 $$\nBoth the left-hand and right-hand derivatives at $ x = 0 $ are equal to 0. Therefore, $ f(x) $ is differentiable at $ x = 0 $.\nGiven this, the correct condition for differentiability is that the left-hand and right-hand derivatives at $ x = 0 $ must be equal, which happens if and only if $ 0 $.", "qtype": "Short answer question", "subject": "Mathematics", "grade": "University", "has_img": false}