mail  mail@stemandmusic.in
    
call  +91-9818088802
Donate

Projection of a Point on Conic and Distance of a Point from Conic Using Normal to the Conic

  1. Let's consider a Conic represented by General Quadratic Equations in 2 Variables as follows

    \(Ax^2 + Bxy + Cy^2 + Dx + Ey + F=0\)   ...(1)

    The Projection of any given Point (\(x_0,y_0\)) on the Conic given by equation (1) above can be calculated using following steps
    1. Since the Conic is an Implicit Function of \(x\) and \(y\) (i.e. \(F(x,y)=0\)), it's Partial Derivatives with respect to Variables \(x\) and \(y\) are calculated as

      \({\Large \frac{\partial F}{\partial x}} = 2Ax + By + D\)   ...(2)

      \({\Large \frac{\partial F}{\partial y}} = Bx + 2Cy + E\)   ...(3)

      So, the Direction Ratio of Normal to the Conic at Any Point (\(x,y\)) on the Conic is given by the Vector

      \(\begin{bmatrix}{\Large \frac{\partial F}{\partial x}} \\ {\Large \frac{\partial F}{\partial y}}\end{bmatrix}= \begin{bmatrix}2Ax + By + D \\ Bx + 2Cy + E\end{bmatrix}\)   ...(4)

      Now, the Direction Ratio of Any Line Connecting the Point (\(x_0,y_0\)) to any Point (\(x,y\)) on the Conic is given by the Vector

      \(\begin{bmatrix}x-x_0 \\ y-y_0\end{bmatrix}\)   ...(5)

      Now, if the Line Connecting the Point (\(x_0,y_0\)) to any Point (\(x,y\)) on the Conic is Normal to the Conic, then the Vector given by expression (5) above is same as Vector given by equation (4) Multiplied by Scalar Constant \(t\). That is,

      \(t \begin{bmatrix}2Ax + By + D \\ Bx + 2Cy + E\end{bmatrix}=\begin{bmatrix}x-x_0 \\ y-y_0\end{bmatrix}\)   ...(6)

      Equation (6) above can be written in form of a System of Linear Equations in \(x\) and \(y\) and represented as the following Matrix Equation

      \(\begin{bmatrix}(2At-1) & Bt \\ Bt & (2Ct-1)\end{bmatrix}\begin{bmatrix}x \\ y \end{bmatrix}=\begin{bmatrix}-Dt-x_0 \\ -Et-y_0\end{bmatrix}\)   ...(7)
    2. Find the Value of \(x\) and \(y\) by solving the System of Linear Equations given by Matrix Equation (7) above as follows

      \(\begin{bmatrix}x \\ y \end{bmatrix}={\begin{bmatrix}(2At-1) & Bt \\ Bt & (2Ct-1)\end{bmatrix}}^{-1}\begin{bmatrix}-Dt-x_0 \\ -Et-y_0\end{bmatrix}\)   ...(8)

      The value of \(x\) and \(y\) get calculated as

      \(x={\Large \frac{BEt^2 + By_0t + Dt(1-2Ct) + x_0(1-2Ct)}{(1-2At)(1-2Ct)-B^2t^2}}\)   ...(9)

      \(y={\Large \frac{BDt^2 + Bx_0t + Et(1-2At) + y_0(1-2At)}{(1-2At)(1-2Ct)-B^2t^2}}\)   ...(10)
    3. Putting the value of \(x\) and \(y\) from equations (9) and (10) above in equation (1) we get a Quartic Polynomial Equation in Variable \(t\) as follows

      \(A(BEt^2 + By_0t + Dt(1-2Ct) + x_0(1-2Ct))^2 + B(BEt^2 + By_0t + Dt(1-2Ct) + x_0(1-2Ct)) (BDt^2 + Bx_0t + Et(1-2At) + y_0(1-2At)) + \)  \(C(BDt^2 + Bx_0t + Et(1-2At) + y_0(1-2At))^2 + D(BEt^2 + By_0t + Dt(1-2Ct) + x_0(1-2Ct))((1-2At)(1-2Ct) - B^2t^2) + \)  \(E(BDt^2 + Bx_0t + Et(1-2At) + y_0(1-2At))((1-2At)(1-2Ct) - B^2t^2) + F((1-2At)(1-2Ct) - B^2t^2)^2 = 0\)    ...(11)

      Solving the Quartic Polynomial Equation in Variable \(t\) as given by equation (11) above can give from 1 to 4 Real Values of \(t\). Putting these Real Values of Variable \(t\) in equations (9) and (10) above we can get the Points of Projection of the Point (\(x_0,y_0\)) on the Conic.
    4. Once all the Points of Projection (\(x,y\)) have been calculated, their Distances can be calculated from the Point (\(x_0,y_0\)). The one with the Minimum Value of Distance is the Distance Between the Point and the Conic.
    Related Calculators
    Related Topics