What is g(x) in Terms of f(x): Distance Path Path

  • Context: MHB 
  • Thread starter Thread starter wheepep
  • Start date Start date
  • Tags Tags
    Path
Click For Summary

Discussion Overview

The discussion revolves around determining the function g(x) that represents all points at a constant distance from a given function f(x). Participants explore various mathematical approaches and parametrizations to express g(x) in terms of f(x), focusing on both theoretical and applied aspects of the problem.

Discussion Character

  • Exploratory
  • Mathematical reasoning
  • Technical explanation

Main Points Raised

  • Some participants propose a parametrization of f(x) to derive g(x), suggesting that g(x) can be expressed using the tangent and normal vectors of the parametrized function.
  • One participant presents a formula for g(x) based on the distance D from points on f(x), leading to a parametric description of g.
  • Another participant discusses the implications of using a parametrized function at unit speed, noting that it simplifies the problem significantly.
  • Specific examples, such as using f(x) = x², are provided to illustrate the application of the derived formulas for g(x).
  • Several graphical representations are shared to visualize the relationships between f(x) and g(x) at different distances.

Areas of Agreement / Disagreement

Participants do not reach a consensus on a single expression for g(x) and present multiple approaches and formulas. The discussion includes various interpretations and methods, indicating that multiple competing views remain.

Contextual Notes

Some mathematical steps and assumptions are not fully resolved, particularly regarding the parametrization and the specific functions being considered. The discussion highlights the complexity of deriving g(x) based on different forms of f(x).

Who May Find This Useful

Readers interested in mathematical modeling, geometry, and calculus may find this discussion relevant, especially those exploring the relationships between curves and distances in a mathematical context.

wheepep
Messages
9
Reaction score
0
Path

View attachment 6235

g(x) is a function which contains all points that are at a constant distance from f(x).

What is g(x) in terms of f(x)?
 

Attachments

  • Screen Shot 2016-11-26 at 11.50.19 PM.png
    Screen Shot 2016-11-26 at 11.50.19 PM.png
    17.3 KB · Views: 139
Last edited:
Physics news on Phys.org
Let's begin by using a trivial parametrization of $f$ as follows:

$$x=t$$

$$y=f(t)$$

Now, a point on $g$ can be found to lie on the line:

$$y=-\frac{1}{f'(t)}(x-t)+f(t)$$

And the points on this line a distance $D$ from $(t,f(t))$ can be found from:

$$D=\sqrt{(x-t)^2+\left(y-f(t)\right)^2}=\left|y-f(t)\right|\sqrt{1+\left(f'(t)\right)^2}$$

Hence:

$$y=f(t)\pm\frac{D}{\sqrt{1+\left(f'(t)\right)^2}}$$

This then implies

$$-\frac{1}{f'(t)}(x-t)+f(t)=f(t)\pm\frac{D}{\sqrt{1+\left(f'(t)\right)^2}}$$

Which reduces to:

$$x=t\mp\frac{Df'(t)}{\sqrt{1+\left(f'(t)\right)^2}}$$

Thus, $g$ can be described parametrically by:

$$X=t\mp\frac{Df'(t)}{\sqrt{1+\left(f'(t)\right)^2}}$$

$$Y=f(t)\pm\frac{D}{\sqrt{1+\left(f'(t)\right)^2}}$$
 
Re: Path

wheepep said:
g(x) is a function which contains all points that are at a constant distance from f(x).

What is g(x) in terms of f(x)?

Hi wheepep! ;)

Suppose we look at the parametrized function $\gamma(t) = (t, f(t))$.
The tangent of a parametrized function is $\gamma'(t)$.
The normal is $\gamma'^\perp(t)$.
And the normal at unit length is $N(t) = \frac{\gamma'^\perp(t)}{\| \gamma'(t) \|}$.
So the function that is at constant distance $c$ is:
$$\gamma_c(t) = \gamma(t) + cN(t) = \gamma(t) + \frac{c\gamma'^\perp(t)}{\| \gamma'(t) \|}$$In your problem statement we have:
$$\gamma(x) = (x,f(x)) \\
\gamma'(x) = (1,f'(x)) \\
\gamma'^\perp(x) = (-f'(x),1) \\
N(t) = \left(-\frac{f'(x)}{\sqrt{1+f'(x)^2}}, \frac{1}{\sqrt{1+f'(x)^2}}\right) \\
\gamma_c(x) = \left(x-\frac{cf'(x)}{\sqrt{1+f'(x)^2}}, f(x) + \frac{c}{\sqrt{1+f'(x)^2}}\right)
$$

EDIT: Which is the same result MarkFL just gave! (Wink)If we (can) reparametrize the function $\gamma$ to $\tilde\gamma$ such that it has unit speed, that is, has $\| \tilde\gamma'(s) \| = 1$, we have:
$$\tilde N(s) = \tilde\gamma'^\perp(s) \\
\tilde\gamma_c(s)=\tilde\gamma(s) + c\tilde\gamma'^\perp(s)
$$Let's pick an example.
Suppose we pick $\tilde\gamma(s) = (\cos s, \sin s)$, which corresponds to $f(x)=\sqrt{1-x^2}$, then it simplifies a bit:
$$\tilde \gamma'(s) = (-\sin s, \cos s) \\
\tilde N(s) = \tilde\gamma'^\perp(s) = (\cos s, \sin s)\\
\tilde\gamma_c(s) = \tilde\gamma s + c\tilde N(s) = (\cos s + c \cos s, \sin s + c \sin s) = (1+c)(\cos s, \sin s)
$$
which is a circle with radius $(1+c)$ as expected.

If we do the same thing with $f(x)=\sqrt{1-x^2}$ and $\gamma_c(x)=\left(x-\frac{cf'(x)}{\sqrt{1+f'(x)^2}}, f(x) + \frac{c}{\sqrt{1+f'(x)^2}}\right)$, we'll find the same result - it will just take much longer.As you can see, the problem becomes much simpler if the function is a parametrized function at unit speed.
Of course it all depends on the function we want to shift.
Did you have any particular function in mind? (Wondering)
 
y = x2
 
wheepep said:
y = x2

Let's see what it looks like when filling in the formula:
[LATEXS]
\begin{tikzpicture}
%preamble \usepackage{pgfplots}
\begin{axis}[ymax=10, samples=51]
\addplot[blue, ultra thick] (x,x^2);
\addplot[red, ultra thick] ({x - 2*x/(sqrt(1+4*x^2))},{x^2 + 1/(sqrt(1+4*x^2))});
\end{axis}
\end{tikzpicture}
[/LATEXS]
[TIKZ]
%preamble \usepackage{pgfplots}
\begin{axis}[ymax=10, samples=51]
\addplot[blue, ultra thick] (x,x^2);
\addplot[red, ultra thick] ({x - 2*x/(sqrt(1+4*x^2))},{x^2 + 1/(sqrt(1+4*x^2))});
\end{axis}
[/TIKZ]
 
Interesting
 
Here's another plot with a couple more graphs at different distances:
\begin{tikzpicture}
%preamble \usepackage{pgfplots}
\begin{axis}[ymax=10, samples=151, grid=both,
axis lines=middle,
axis equal,
minor tick num=4,
xtick={-8,-6,...,8},
ytick={-4,-2,...,10},
grid style={line width=.1pt, draw=gray!30},
major grid style={line width=.2pt,draw=gray!70}
]
\addplot[green, ultra thick] ({x - 8*x/(sqrt(1+4*x^2))}, {x^2 + 4/(sqrt(1+4*x^2))});
\addplot[red, ultra thick] ({x - 4*x/(sqrt(1+4*x^2))}, {x^2 + 2/(sqrt(1+4*x^2))});
\addplot[blue, ultra thick] (x,x^2);
\addplot[red, ultra thick] ({x + 4*x/(sqrt(1+4*x^2))}, {x^2 - 2/(sqrt(1+4*x^2))});
\addplot[green, ultra thick] ({x + 8*x/(sqrt(1+4*x^2))}, {x^2 - 4/(sqrt(1+4*x^2))});
\end{axis}
\end{tikzpicture}
 
Thanks
 

Similar threads

  • · Replies 20 ·
Replies
20
Views
2K
  • · Replies 11 ·
Replies
11
Views
2K
  • · Replies 4 ·
Replies
4
Views
1K
  • · Replies 11 ·
Replies
11
Views
2K
Replies
5
Views
1K
  • · Replies 13 ·
Replies
13
Views
2K
  • · Replies 17 ·
Replies
17
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 9 ·
Replies
9
Views
3K
  • · Replies 25 ·
Replies
25
Views
3K