Loading…

Locus Equation Generator [hyperbola from Two Foci]

Math Geometry • Analytical and Advanced Geometry (capstone)

View all topics

Hyperbola Locus Calculator – Difference of Distances to Foci

Enter two foci \(F_1(x_1,y_1)\), \(F_2(x_2,y_2)\) and a constant difference \(D\). This tool builds the hyperbola locus: all points \(P(x,y)\) such that \(\big|\;PF_1 - PF_2\;\big| = D\). It computes \(a,b,c\), plots both branches and asymptotes, and animates a moving point to verify the distance difference.

Inputs accept 1e-3, pi, e, sqrt(2), sin(), cos(), tan(), ln(), log(), abs(). Use * for multiplication.

Foci and distance difference


Valid hyperbola requires \(0 < D < 2c\) where \(2c\) is the distance between the foci. If \(D=2c\), the locus is degenerate; if \(D>2c\), there is no real locus.
View & output options

Drag to pan • wheel/trackpad to zoom • double-click “Reset view” to refit. Units are square, and axis numbers always remain visible on the frame.

Ready
Construction view (interactive)

The hyperbola branches are dashed, asymptotes are dotted, and the animation draws \(PF_1\), \(PF_2\) to verify \(\big|\;PF_1-PF_2\;\big|=D\).

Rate this calculator

0.0 /5 (0 ratings)
Be the first to rate.
Your rating
You can update your rating any time.

Frequently Asked Questions

Why does a hyperbola use a difference of distances?

By definition, a hyperbola is the set of points P such that the absolute difference |PF1 − PF2| is constant. That condition generates two branches.

When does a real hyperbola exist?

Let 2c be the distance between foci. A real hyperbola exists only when 0 < D < 2c. If D = 2c it is degenerate, and if D > 2c there is no real locus.

What are a, b, and c?

With D = 2a and 2c = distance between foci, the parameter b is b = sqrt(c^2 − a^2). These determine the shape and the asymptotes.

How do you handle rotated foci?

The calculator uses a unit axis vector t along the foci and a perpendicular vector n. Using u=(P−C)·t and v=(P−C)·n, the equation is u^2/a^2 − v^2/b^2 = 1.