Parabola, defined locus of points P such that the distance from a line (called the directrix) to P is equal to the distance from to a fixed point (called the focus).

The code plots the parabola $$ y = ax^2 + bx + c $$ with $$ a = 1, b = 0, c = 0. $$ It calculates the vertex at (h, k) with h = 0, k = 0. The foucs is at $$ (h, k + \frac{1}{4a}), \text{ and the directrix is at } y = k - \frac{1}{4a}. $$
$$ \text{A tangent line at } (x_{\text{point}}, y_{\text{point}}) \text{ is drawn, with slope } m = 2ax_{\text{point}} + b. $$

The code plots a parabola defined parametrically as:
$$ (x(t), y(t)) = \left(t, \frac{1}{4} t^2\right) $$
The derivative of the curve is given by:
$$ \frac{dx}{dt} = 1, \quad \frac{dy}{dt} = \frac{1}{2} t $$
Tangents to the curve at various points ( t ) are plotted using the equation:
$$ y_t = y_0 + \frac{dy}{dx}(x - x_0) $$ For each $$(t)$$ a tangent line is drawn in red if $$ (t < 0) $$ and in purple if $$ ( t \geq 0 ).$$