Quadratic surfaces and intersection curves

173 Views Asked by At

You are given a second order surface $Ax^2+By^2+Cz^2=α$ and a plane $x+z=β$. Determine the type of the surface and the type of the curve at the intersection of the surface and the plane.

Basically, I need to write a program, that will do task, getting as parameters $A, B, C, \alpha,\beta$. So, the best way I found to make this, is to just check every equation by coefficients signs to determine quadratic surface. But what about curves of intersection? Is there a simple way to determine their type only by given parameters?

3

There are 3 best solutions below

3
On

Comment:

When you intersect the surface with plane $p(x, z)=x+z=\beta$ that means you eliminate y in the surface equation. Now you have curve $Ax^2+Cz^2=\alpha$ in (x,z) plane; we may rewrite this equation as:

$\frac {x^2}{C}+\frac{z^2}{A}=\frac {\alpha}{AC}$

The coordinate of points of intersection are the solution of this system of equatn:

$\begin{cases}\frac {x^2}{C}+\frac{z^2}{A}=\frac {\alpha}{AC}\\x+z=\beta \end{cases}$

If $A, C. \alpha>0$ then you have an ellipse. If [$A<0$ and $C>0$]or [$C<0 $ and $A>0$], then Hyperbola is the intersection.

0
On

One of the ways would be to parametrize your plane and all points on the plane can be then represented as $(t, y, \beta - t)$.

Plugging it into the equation of your quadratic surface, you get parametrized equation of the intersection curve.

$r(t,y) = At^2+By^2+C(\beta - t)^2 - α = 0$

i.e $ \,r(t,y) = (A+C)t^2+By^2 -2 C \beta \,t - α + \beta^2C = 0$

0
On

Regarding the existence of intersections. Making the substitution of $x = \beta-z$ into $A x^2+B y^2+C z^2=\alpha$ we get

$$ B y^2 + C z^2+(\beta-z)^2 = \alpha $$

so

$$ y = \pm\frac{\sqrt{\alpha-A (\beta -z)^2-C z^2}}{\sqrt{B}} $$

and the intersection exists if $\Delta = \alpha-A (\beta -z)^2-C z^2\ge 0$ assuming $B\gt 0$

Now

$$ \Delta = \frac{(A+C) \alpha -A C \beta ^2}{A+C}-(A+C) \left(z-\frac{A \beta }{A+C}\right)^2 \ge 0 $$

and assuming for instance that $A+C>0$ if

$$ (A+C) \alpha \lt A C \beta ^2 $$

no intersection.