Question: What is the best way to describe the set of reflected points of one plane curve along the perpendicular lines at points of another plane curve?
I am trying to find a way to find the reflection of a curve onto another.
Here is a Desmos graph to visualize the setup https://www.desmos.com/calculator/wpbzb9hm1b
Some background:
In college algebra, one learns that the inverse $g^{-1}(x)$ of a function $g(x)$ is found geometrically to be the reflection of $g(x)$ along the line $y=x$. This makes intuitive sense, because we are swapping inputs with outputs.
Reflecting a line onto another may not necessarily yield a function. But that shouldn't stop us from drawing it. I have not seen anyone do it anywhere else.
Let $f(x)$ be the function we wish to use for reflection, and $ g(x) $ the function we wish to reflect. The procedure is as follows: first, we identify a point in $ (a, f(a)) $ and draw a line perpendicular to $f(x)$ at $a$ . This line intersects $g(x)$ at some point $(x_0, g(x_0))$ (it is possible that this line intersects at multiple points, but, for now, let's take the closest). We measure the distance $ d $ between these points, and use it to draw the point $ (x_h, h(x_h)) $ that is $ d $ units away from $ (a, f(a)) $ on the opposite side of the line perpendicular to $ f(x) $.
If $ f(x) $ is differentiable and $ f'(a) \neq 0 $, the perpendicular line at $ (a, f(a)) $ has the slope $ -\frac{1}{f'(a)} $. The direction vector for this line is $ (1, -\frac{1}{f'(a)}) $ or any scalar multiple thereof. The equation for the line perpendicular to $ f(x) $ at $ (a, f(a)) $ is:
$$ y = -\frac{1}{f'(a)}(x - a) + f(a) $$
For $ g(x) $ to intersect this line, it must satisfy the equation. Let's call the intersection point $ (x_0, g(x_0)) $. We can find $ x_0 $ by solving the equation:
$$ g(x_0) = -\frac{1}{f'(a)}(x_0 - a) + f(a) $$
Once $ x_0 $ is found, $ g(x_0) $ is simply the value of $ g(x) $ at $ x_0 $.
The distance $ d $ is calculated using the distance formula: $$ d = \sqrt{(x_0 - a)^2 + (g(x_0) - f(a))^2} $$