Finding crossing regions between two quadractics

  • Level: Graduate 
  • Thread starter rockerman
  • Start date
1 reply · 1K views · last reply
rockerman
Messages
13
Reaction score
0
Given two quadratics of the form $f(x) = x'Q_1x$ and $g(x) = x'Q_2x$ and assuming $Q_1$ and $Q_2$ are negative definite matrices, how can I find the lines that are formed by their crossing? here I'm assuming $x \in \mathbb{R}^2$.

3D surface plot of a difference of two quadratic functions over a 2D domain, with a red-and-blue colour gradient, dark red contour-like ripples, a blue dashed crossing curve, and red eigenvector arrows at the centre; axes labelled -5, 0, 5 and vertical ticks 0, -50, -100, -150.

Heatmap on a grid from -5 to 5 in both axes, dark in a vertical band near x = 0 and red-orange elsewhere, with a red arrow starting at the origin and pointing up-right and another pointing down-right.


I'm interested in finding vectors $w_1$ and $w_2$ that are parallel to the blue dashed line. I also outlined the eigenvectors of $Q_1-Q-2$, they seem to point exact in the middle of each region.
 
Write x as (x y)' and label the eight (known) entries of the two matrices, then write out ## x'(Q_1-Q_2)x=0## as an expansion that will be of the form ##\alpha x^2+\beta xy+\gamma y^2##. Then solve for ##\frac{x}{y}##.