Consider a vector valued function $f(\mathbf{r})$ defined from $f:\mathbb{R}^N \to \mathbb{R}^N$. Let $Q$ be a positive semidefinite matrix of size $N\times N$, which is independent of $\mathbf{r}$. How can we compute the Hessian of the functions (i) $\mathbf{y}^TQf(r)$ and (ii) $f(r)^TQf(r)$, where $\mathbf{y} \in \mathbb{R}^{N \times 1}$ is another vector independent of $\mathbf{r}$.
2026-03-30 04:39:28.1774845568
On the Hessian of a quadratic function
369 Views Asked by Bumbble Comm https://math.techqa.club/user/bumbble-comm/detail At
1
There are 1 best solutions below
Related Questions in LINEAR-ALGEBRA
- An underdetermined system derived for rotated coordinate system
- How to prove the following equality with matrix norm?
- Alternate basis for a subspace of $\mathcal P_3(\mathbb R)$?
- Why the derivative of $T(\gamma(s))$ is $T$ if this composition is not a linear transformation?
- Why is necessary ask $F$ to be infinite in order to obtain: $ f(v)=0$ for all $ f\in V^* \implies v=0 $
- I don't understand this $\left(\left[T\right]^B_C\right)^{-1}=\left[T^{-1}\right]^C_B$
- Summation in subsets
- $C=AB-BA$. If $CA=AC$, then $C$ is not invertible.
- Basis of span in $R^4$
- Prove if A is regular skew symmetric, I+A is regular (with obstacles)
Related Questions in MATRIX-CALCULUS
- How to compute derivative with respect to a matrix?
- Definition of matrix valued smooth function
- Is it possible in this case to calculate the derivative with matrix notation?
- Monoid but not a group
- Can it be proved that non-symmetric matrix $A$ will always have real eigen values?.
- Gradient of transpose of a vector.
- Gradient of integral of vector norm
- Real eigenvalues of a non-symmetric matrix $A$ ?.
- How to differentiate sum of matrix multiplication?
- Derivative of $\log(\det(X+X^T)/2 )$ with respect to $X$
Related Questions in HESSIAN-MATRIX
- Check if $\phi$ is convex
- Gradient and Hessian of quadratic form
- Let $f(x) = x^\top Q \, x$, where $Q \in \mathbb R^{n×n}$ is NOT symmetric. Show that the Hessian is $H_f (x) = Q + Q^\top$
- An example for a stable harmonic map which is not a local minimizer
- Find global minima for multivariable function
- The 2-norm of inverse of a Hessian matrix
- Alternative to finite differences for numerical computation of the Hessian of noisy function
- Interpretation of a Global Minima in $\mathbb{R}^2$
- How to prove that a level set is not a submanifold of dimension 1
- Hessian and metric tensors on riemannian manifolds
Trending Questions
- Induction on the number of equations
- How to convince a math teacher of this simple and obvious fact?
- Find $E[XY|Y+Z=1 ]$
- Refuting the Anti-Cantor Cranks
- What are imaginary numbers?
- Determine the adjoint of $\tilde Q(x)$ for $\tilde Q(x)u:=(Qu)(x)$ where $Q:U→L^2(Ω,ℝ^d$ is a Hilbert-Schmidt operator and $U$ is a Hilbert space
- Why does this innovative method of subtraction from a third grader always work?
- How do we know that the number $1$ is not equal to the number $-1$?
- What are the Implications of having VΩ as a model for a theory?
- Defining a Galois Field based on primitive element versus polynomial?
- Can't find the relationship between two columns of numbers. Please Help
- Is computer science a branch of mathematics?
- Is there a bijection of $\mathbb{R}^n$ with itself such that the forward map is connected but the inverse is not?
- Identification of a quadrilateral as a trapezoid, rectangle, or square
- Generator of inertia group in function field extension
Popular # Hahtags
second-order-logic
numerical-methods
puzzle
logic
probability
number-theory
winding-number
real-analysis
integration
calculus
complex-analysis
sequences-and-series
proof-writing
set-theory
functions
homotopy-theory
elementary-number-theory
ordinary-differential-equations
circles
derivatives
game-theory
definite-integrals
elementary-set-theory
limits
multivariable-calculus
geometry
algebraic-number-theory
proof-verification
partial-derivative
algebra-precalculus
Popular Questions
- What is the integral of 1/x?
- How many squares actually ARE in this picture? Is this a trick question with no right answer?
- Is a matrix multiplied with its transpose something special?
- What is the difference between independent and mutually exclusive events?
- Visually stunning math concepts which are easy to explain
- taylor series of $\ln(1+x)$?
- How to tell if a set of vectors spans a space?
- Calculus question taking derivative to find horizontal tangent line
- How to determine if a function is one-to-one?
- Determine if vectors are linearly independent
- What does it mean to have a determinant equal to zero?
- Is this Batman equation for real?
- How to find perpendicular vector to another vector?
- How to find mean and median from histogram
- How many sides does a circle have?
[Solving (i)]
Using Einstein Notation:
$[\nabla f\,]_{ij} = \frac{\partial\,f_i}{\partial\,r_j}$
$g_k = \frac{\partial\,(y_i\,Q_{ij}\,f_j)}{\partial\,r_k} = y_i\,Q_{ij}\frac{\partial\,f_j}{\partial\,r_k} = y_i\,Q_{ij}\,[\nabla f\,]_{jk}$
so, the column vector that will be the gradient of the function is:
$g = [\nabla f\,]^T\,Q^T\,y$
diferentiating it again we have the Hessian:
$H_{ij}=\frac{\partial}{\partial\,r_j}\left(\frac{\partial\,f_l}{\partial\,r_i} Q_{kl}\,y_k\right) = \frac{\partial^2 f_l}{\partial\,r_i\,\partial\,r_j} Q_{kl}\,y_k$
which I don't know how to write only with matricial products... but it can be computed as follows
$s = y^T\,Q$ (row vector)
$P_l = \frac{\partial^2\,f_l}{\partial\,r_i\,\partial\,r_j}$ (those are the Hessian matrices of each component of $f$)
$\boxed{H = \sum_\limits{l} s_l\,P_l}$
[Solving (ii)]
For the second case you just have to follow the same steps and apply the Product Rule when necessary.
$g_k = \frac{\partial\,(f_i\,Q_{ij}\,f_j)}{\partial\,r_k} = \frac{\partial\,f_i}{\partial\,r_k}Q_{ij}\,f_j + f_i\,Q_{ij}\frac{\partial\,f_j}{\partial\,r_k} = [\nabla f\,]_{ik}\,Q_{ij}\,f_j + f_i\,Q_{ij}\,[\nabla f\,]_{jk}$
$g^T = f^T\,Q^T\,[\nabla f\,] + f^T\,Q\,[\nabla f\,]$
$g = [\nabla f\,]^T\left(Q+Q^T\right)f$
diferentiating it again we have the Hessian:
$p = f^T\,Q$ (row vector)
$q = f^T\,Q^T$ (row vector)
$\boxed{H = [\nabla f\,]^T\left(Q+Q^T\right)[\nabla f\,] + \sum_\limits{l}(p_l+q_l)\,P_l}$