BRAGA

02 Writing02-02 Notes02-02-182

Hyperbola

Published 16 Apr 20267 min read
Contents
  1. 01Deep Breakdown
  2. 02Flowchart
  3. 03Real-world use
  4. 04The formula, piece by piece
  5. 05The formula in words
  6. 06Critical Concepts
  7. 07Step-by-step calculation (tiny example)
  8. 08Code examples
x2a2−y2b2=1\frac{x^2}{a^2} - \frac{y^2}{b^2} = 1
(1)

Deep Breakdown

What it tells me (Situation Awareness): A hyperbola is the set of all points in the plane where the difference of distances to two fixed foci is constant. The standard form x2a2−y2b2=1\frac{x^2}{a^2} - \frac{y^2}{b^2} = 1 opens left and right, with vertices at (±a,0)(\pm a, 0) and asymptotes y=±baxy = \pm \frac{b}{a}x. In DA/DS: hyperbolas appear as the level curves of multiplicative relationships between two variables (e.g., xy=cxy = c is a rectangular hyperbola), in supply-demand economic modeling, in time-series with exponential divergence, and in the geometry of SVMs with hyperbolic kernels. The rectangular hyperbola xy=kxy = k is central to interpreting elasticity and power-law trade-offs.

Flowchart

Hyperbola:x^2/a^2 -y^2/b^2 = 1Two branches:left (x < -a) andright (x > a)Vertices: (+-a, 0)Asymptotes: y =+-(b/a)*xFoci: c =sqrt(a^2 + b^2),foci at (+-c, 0)Focus property:||PF1| - |PF2|| =2a for any pointP on hyperbolaRectangularhyperbola: xy =k (asymptotesare x and yaxes)DA/DS: constantrevenue curves,power-lawtrade-offs,elasticity

Real-world use

Where it is used

Economic elasticity and trade-off curves (constant revenue price×quantity=k\text{price} \times \text{quantity} = k), hyperbolic discounting in behavioral economics, bifurcation points in dynamical systems, level curves in contour plots of multiplicative objective functions, and calibration curves in spectroscopy/chemistry (Beer-Lambert law at high concentrations shows hyperbolic saturation).

Problem it solves

When a relationship between two variables is multiplicative (xy=kxy = k), their level curves are rectangular hyperbolas. Recognizing this shape tells you the relationship is a power-law trade-off: as xx increases, yy must decrease proportionally to maintain constant product. The standard hyperbola also models systems where two diverging behaviors co-exist (two branches).

How it solves the problem

The equation x2a2−y2b2=1\frac{x^2}{a^2} - \frac{y^2}{b^2} = 1 is a conic section formed by a plane cutting a double cone at a steep angle. Re-arranging: y=±bax2−a2y = \pm \frac{b}{a}\sqrt{x^2 - a^2}, defined only for ∣x∣≥a|x| \geq a. The two branches diverge toward the asymptotes y=±baxy = \pm\frac{b}{a}x as ∣x∣→∞|x| \to \infty.

Example in a business

A DS models the price-quantity trade-off in a pricing experiment. At constant revenue R=p×qR = p \times q, the curve is a rectangular hyperbola: p=R/qp = R/q. The DS fits this to historical data to identify the constant-revenue curve and uses it to find the price point that maximizes profit margin while staying on the same revenue level. Deviations from the hyperbola indicate price sensitivity changes.

The formula, piece by piece

  • aa: real semi-axis — half the distance between the two vertices (±a\pm a on the xx-axis)
  • bb: imaginary semi-axis — controls the steepness of the asymptotes
  • x2a2−y2b2=1\frac{x^2}{a^2} - \frac{y^2}{b^2} = 1: standard form, horizontal transverse axis
  • Asymptotes: y=±baxy = \pm\frac{b}{a}x (lines the hyperbola approaches but never reaches)
  • Vertices: (±a,0)(\pm a, 0)
  • Foci: (±c,0)(\pm c, 0) where c=a2+b2c = \sqrt{a^2 + b^2} (note: c>ac > a for hyperbola, vs. c<ac < a for ellipse)
  • Eccentricity: e=c/a>1e = c/a > 1 (vs. ellipse e<1e < 1, parabola e=1e = 1)
  • Conjugate (vertical) hyperbola: y2b2−x2a2=1\frac{y^2}{b^2} - \frac{x^2}{a^2} = 1 (opens up/down)
  • Rectangular hyperbola: xy=kxy = k — asymptotes are coordinate axes; a=ba=b

The formula in words

"The hyperbola equation says: the normalized xx-contribution exceeds the normalized yy-contribution by exactly 1. Points exist only where ∣x∣≥a|x| \geq a (the two branches). The curve curves away from the origin and approaches (but never touches) the straight lines y=±baxy = \pm\frac{b}{a}x." Tiny example: a=3a=3, b=2b=2. Vertex: (3,0)(3, 0). Asymptotes: y=±23xy = \pm\frac{2}{3}x. Check: x=5x=5, y=±2(25/9)−1=±216/9=±8/3≈±2.67y = \pm 2\sqrt{(25/9) - 1} = \pm 2\sqrt{16/9} = \pm 8/3 \approx \pm 2.67. ✓\checkmark

Critical Concepts

  • Conic classification: x2a2+y2b2=1\frac{x^2}{a^2} + \frac{y^2}{b^2} = 1 (ellipse), x2a2−y2b2=1\frac{x^2}{a^2} - \frac{y^2}{b^2} = 1 (hyperbola). The sign change between terms is what distinguishes them.
  • Asymptotes don't cross: the hyperbola approaches its asymptotes as ∣x∣→∞|x| \to \infty but never intersects them (for finite x,yx, y). This is key for understanding model behavior at extremes.
  • Rectangular hyperbola xy=kxy = k: rotating the standard hyperbola by 45° gives xy=kxy = k. This is the form most common in economics (constant elasticity demand) and optimization trade-offs.
  • Eccentricity >1> 1: the defining property of a hyperbola. Eccentricity measures how "open" the conic is: e=1e=1 is a parabola, e>1e>1 is a hyperbola, e<1e<1 is an ellipse.
  • Two branches: unlike the ellipse, the hyperbola has two separate branches. In data, this can represent two distinct regimes.
  • Parametric form: (acosh⁡(t),bsinh⁡(t))(a\cosh(t), b\sinh(t)) for the right branch; uses hyperbolic functions (hence the name "hyperbolic" functions).

Step-by-step calculation (tiny example)

Step 1: Identify parameters a=2a=2, b=3b=3. Vertices at (±2,0)(\pm 2, 0). Asymptotes: y=±32xy = \pm\frac{3}{2}x. c=4+9=13≈3.606c = \sqrt{4+9} = \sqrt{13} \approx 3.606. Eccentricity e=13/2≈1.803e = \sqrt{13}/2 \approx 1.803.

Step 2: Find a point on the hyperbola x=4x=4: 164−y29=1⇒4−y29=1⇒y2=27⇒y=±33≈±5.196\frac{16}{4} - \frac{y^2}{9} = 1 \Rightarrow 4 - \frac{y^2}{9} = 1 \Rightarrow y^2 = 27 \Rightarrow y = \pm 3\sqrt{3} \approx \pm 5.196.

Step 3: Verify focus property For the right branch, for any point PP: ∣PF2∣−∣PF1∣=2a=4|PF_2| - |PF_1| = 2a = 4. Foci at (±13,0)(\pm\sqrt{13}, 0).

Code examples

Beginner example (Python)

python
import numpy as np
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt

def hyperbola_y(x: np.ndarray, a: float, b: float) -> np.ndarray:
    """Compute y values for hyperbola x^2/a^2 - y^2/b^2 = 1 (upper branch)."""
    return b * np.sqrt((x**2 / a**2) - 1.0)


a, b = 2.0, 3.0
c = np.sqrt(a**2 + b**2)
ecc = c / a
print(f"Hyperbola: a={a}, b={b}")
print(f" Vertices: (+-{a}, 0)")
print(f" Foci: (+-{c:.4f}, 0)")
print(f" Asymptotes: y = +-(b/a)*x = +-{b/a:.4f}*x")
print(f" Eccentricity: e = {ecc:.4f}")

# Sample points on the right branch
x_vals = np.linspace(a, 10, 200)
y_upper = hyperbola_y(x_vals, a, b)
print(f"\nSample points (right branch, upper):")
for x_pt in [2.0, 4.0, 6.0, 10.0]:
    y_pt = float(hyperbola_y(np.array([x_pt]), a, b)[0])
    check = x_pt**2/a**2 - y_pt**2/b**2
    print(f" x={x_pt}: y={y_pt:.4f}, check x^2/a^2-y^2/b^2 = {check:.6f}")

# Rectangular hyperbola xy = k
K = 6.0
x_r = np.linspace(0.5, 12, 100)
y_r = K / x_r
print(f"\nRectangular hyperbola xy={K}: at x=3, y={K/3:.2f}; at x=6, y={K/6:.2f}")

Beginner example (R)

r
# -- Hyperbola ---
a <- 2; b <- 3
c_focal <- sqrt(a^2 + b^2)
ecc <- c_focal / a
cat(sprintf("Hyperbola: a=%g, b=%g\n", a, b))
cat(sprintf(" Vertices: (+-%.4f, 0)\n", a))
cat(sprintf(" Foci: (+-%.4f, 0)\n", c_focal))
cat(sprintf(" Asymptotes: y = +-%.4f * x\n", b/a))
cat(sprintf(" Eccentricity: %.4f\n", ecc))

# Sample points
for (x_pt in c(2, 4, 6, 10)) {
  if (x_pt^2/a^2 > 1) {
    y_pt <- b * sqrt(x_pt^2/a^2 - 1)
    check <- x_pt^2/a^2 - y_pt^2/b^2
    cat(sprintf(" x=%.0f: y=%.4f, check=%.6f\n", x_pt, y_pt, check))
  }
}

Professional example (Python)

python
import numpy as np
import pandas as pd
np.random.seed(42)

# -- Business scenario: constant-revenue hyperbola for pricing analysis ---
# Model price-quantity relationship at different revenue levels.
# Rectangular hyperbola: price * quantity = revenue (constant).
TARGET_REVENUE_LEVELS = [10000, 15000, 20000]
QUANTITY_RANGE = np.linspace(100, 2000, 100)
rows = []
for rev in TARGET_REVENUE_LEVELS:
    prices = rev / QUANTITY_RANGE
    rows.append({
        "revenue_target": rev,
        "qty_at_price_10": rev / 10.0,
        "qty_at_price_20": rev / 20.0,
        "qty_at_price_50": rev / 50.0,
        "price_at_qty_500": rev / 500.0,
        "price_elasticity": -1.0,  # constant for rectangular hyperbola
    })
df = pd.DataFrame(rows)
print("Constant-revenue curves (rectangular hyperbola: price * quantity = revenue):")
print(df.to_string(index=False))

# Simulate noisy price-quantity data and fit a rectangular hyperbola (xy = k)
TRUE_REVENUE = 12000.0
qty_data = np.random.uniform(200, 1800, 30)
price_data = TRUE_REVENUE / qty_data + np.random.normal(0, 0.5, 30)

# Fit: xy = k; estimate k as mean(price * quantity)
k_hat = np.mean(price_data * qty_data)
residuals = price_data - k_hat / qty_data
print(f"\nFitted rectangular hyperbola (price * quantity = k):")
print(f" True k = {TRUE_REVENUE:.0f}")
print(f" Estimated k = {k_hat:.2f}")
print(f" RMSE of price residuals: {np.sqrt(np.mean(residuals**2)):.4f}")

Source: 1300 p. 162

#linear-algebra#spatial-distance-norms-and-analytic-geometry#analytic-geometry-shapes-perimeter-area-volume

Keyboard shortcuts

Single keys, ignored while typing in a field or with Cmd, Ctrl or Alt held.

0
Home
1 2 3 4
Work, Writing, Tools, About
j / k
Next / previous section on this page
n / p
Next / previous project or essay
u
Up one level
l
Deutsch
t
Light or dark theme
?
This list
Esc
Close