Projection of a Circle onto the Tangent Grid of a Hyperbola

Introduction

The tangent grid is defined by the family of tangent lines to the hyperbola. Initially, attempts were made using gradients and shear transformations, but these approaches did not yield satisfactory results. The current approach uses a parametric transformation based on the geometry of the hyperbola and its tangent lines.

Initial Attempts: Gradients and Shear Transformations

Gradients with Shear

The first approach involved using the gradient of the hyperbola to project shapes onto its tangent grid. The gradient of the hyperbola $y = \frac{b}{a} \sqrt{x^2 - a^2}$ is given by: $$ \frac{dy}{dx} = \frac{b^2 x}{a^2 y}. $$ Shear transformations were attempted to align the circle with the tangent grid. A shear transformation is defined as: $$ \begin{pmatrix} x' \\ y' \end{pmatrix} = \begin{pmatrix} 1 & k \\ 0 & 1 \end{pmatrix} \begin{pmatrix} x \\ y \end{pmatrix}, $$ where $k$ is the shear factor, which is the derivative. While this approach worked for simple curves, it failed to account for the curvature of the hyperbola, resulting in distorted and inaccurate projections, and, this approach also led to numerical instability near the asymptotes of the hyperbola (where $y \approx 0$), causing division by zero and incorrect projections.

Implemented Approach: Parametric Transformation

Hyperbola and Tangent Lines

The hyperbola is defined parametrically as: $$ x = a \cosh(t), \quad y = b \sinh(t), $$ where $a$ and $b$ are the semi-major and semi-minor axes, respectively. The derivative of the hyperbola is: $$ \frac{dx}{dt} = a \sinh(t), \quad \frac{dy}{dt} = b \cosh(t). $$ At a point $t$ on the hyperbola, the tangent line is given by: $$ y = \frac{b \cosh(t)}{a \sinh(t)} (x - a \cosh(t)) + b \sinh(t). $$

Tangent-Based Coordinate System

A coordinate system $(t, v)$ is defined, where:

The transformation from $(t, v)$ to Cartesian coordinates $(x, y)$ is: $$ x = a \cosh(t) + v \cdot a \sinh(t), \quad y = b \sinh(t) + v \cdot b \cosh(t). $$

Projection of a Circle

A circle in $(t, v)$ space is defined by: $$ (t - p)^2 + (v - q)^2 = r^2, $$ where $(p, q)$ is the center and $r$ is the radius. Applying the transformation: $$ x = a \cosh(t) + v \cdot a \sinh(t), \quad y = b \sinh(t) + v \cdot b \cosh(t), $$ the circle is projected onto the tangent grid of the hyperbola. The resulting shape is a distorted version of the original circle, often resembling a cardioid or other interesting curves.