What is a quadratic form xᵀAx and what does it tell you about a matrix?

Quick Overview

Asks what the quadratic form xᵀAx computes and what its values reveal about a matrix A. Tests understanding of definiteness, the eigenvalue view of curvature along principal axes, and how the idea appears in Hessians, Gaussians and Mahalanobis distance.

What is a quadratic form xᵀAx and what does it tell you about a matrix?

Role: Data Scientist

Category: Statistics & Math

Difficulty: medium

Interview Round: Other

What is a quadratic form $x^\top A x$, and what does it tell you about a matrix $A$? ```hint Rotate the coordinates Rewrite the expression in the basis given by the eigenvectors of $A$ and watch what happens to the cross-terms. ``` ```hint Non-symmetric matrices Compare $x^\top A x$ with $x^\top A^\top x$ for the same vector $x$. ``` ### What a Strong Answer Covers - Defines the quadratic form as a scalar and writes it as a weighted sum over the entries of $A$. - Explains why only the symmetric part of $A$ affects the value. - Connects the sign of the form over all nonzero $x$ to positive, negative, semi- and indefiniteness. - Uses the eigendecomposition to relate the form to eigenvalues and principal axes. - Names at least one place it is used, such as Hessians in optimization, Gaussian covariance or Mahalanobis distance. ### Follow-up Questions - How would you check in practice whether a given symmetric matrix is positive definite? - Why is every covariance matrix positive semidefinite, and when is it only semidefinite? - What does the surface $z = x^\top A x$ look like when $A$ is indefinite? - How does the Rayleigh quotient relate the quadratic form to the largest and smallest eigenvalues?

Overview: Asks what the quadratic form xᵀAx computes and what its values reveal about a matrix A. Tests understanding of definiteness, the eigenvalue view of curvature along principal axes, and how the idea appears in Hessians, Gaussians and Mahalanobis distance.

PracHub logo
General
Nov 24, 2026
mediumData ScientistOtherStatistics & Math
0
0

What is a quadratic form x⊤Axx^\top A x, and what does it tell you about a matrix AA?

What a Strong Answer Covers Guidance

  • Defines the quadratic form as a scalar and writes it as a weighted sum over the entries of AA .
  • Explains why only the symmetric part of AA affects the value.
  • Connects the sign of the form over all nonzero xx to positive, negative, semi- and indefiniteness.
  • Uses the eigendecomposition to relate the form to eigenvalues and principal axes.
  • Names at least one place it is used, such as Hessians in optimization, Gaussian covariance or Mahalanobis distance.

Follow-up Questions Guidance

  • How would you check in practice whether a given symmetric matrix is positive definite?
  • Why is every covariance matrix positive semidefinite, and when is it only semidefinite?
  • What does the surface z=x⊤Axz = x^\top A x look like when AA is indefinite?
  • How does the Rayleigh quotient relate the quadratic form to the largest and smallest eigenvalues?