Symmetry of Q gives ∂yieyTQy/2=eyTQy/2∑jqijyj. Also ∂yif(i,y2/2)=yi∂ℓif. Substitute these identities into the left side and integrate the resulting total yi derivative by parts. Compact support removes the boundary term and leaves exactly the right side.