0
$\begingroup$

Suppose we walk to reach next milestone. Each next milestone is increasingly farther away (function slows down). Specific example: You need $1$ step to reach first point, another 2 steps to reach second point, another $3$ steps to reach third point, etc. If I know the amount of steps I have passed, how can I know which milestone I've passed? This is the function that solves the problem but all day long I cannot find what this formula is:

function image 1

It looks so incredibly simple! and yet I couldn't derive nor find anything about it!

But the question is more general than this. What if I want less contrast and the slowing down of Y not to be $1X$, but maybe $0.5X$?

function image 2

I know my terminology might be wrong, but this is precisely why I'm asking this question, because I don't even know what those functions are called, what that growth is called, and how to google it at all. I've found nothing. Maybe there's some formal terminology that I don't know of, and if it's not some 1 to 1 duplicate question in face of more well-stated question, then I expect a highly detailed answer on this: How to approach such problems, how to find such formulas, and how to fine-tune them to get any consistent slowing-down growth functions.

$\endgroup$
3
  • 1
    $\begingroup$ Both of these functions are (half of) parabolas, turned on their side. $\endgroup$
    – davidlowryduda
    Commented Jun 21 at 17:19
  • $\begingroup$ if you write $x = a y^2 + by + c$ and plug in three $(x,y)$ pairs, you get a linear system, three equations in three unknowns $(a,b,c)$ $\endgroup$
    – Will Jagy
    Commented Jun 21 at 17:41
  • $\begingroup$ I understood that these functions are parabolas turned on their side, but i had (and have) no idea how to extract 'x' from y = 5x^2 + 5x in the way i needed here $\endgroup$ Commented Jun 21 at 17:47

2 Answers 2

0
$\begingroup$

If $x$ is the horizontal coordinate in your first graphic, the corresponding value is simply $f(x)=-\frac 12+\frac 12 \sqrt{1+8x}$.

For the second graphic you can use $g(x) = -\frac 32 +\frac 12 \sqrt{9+16x}$.

You can obtain these functions just by fitting the values with a second degree polynomial.

$\endgroup$
0
$\begingroup$

I'll elaborate on @PierreCarre's answer. What we need is a function $f$ that takes a number of steps $s$ and tells us what milestone we have reached ($f(s)$). I will first derive its inverse, because that's where my natural exploration brought me.

Going from the first milestone to the second requires one step. More generally, starting from the $n$th milestone, one would need $n$ steps to reach the next milestone (the $(n+1)$th one). Hence, to reach the $(n+1)$th milestone from the first, one would need to sum all these steps: $$\sum_{i=1}^ni = 1 + 2 + \dots + n.$$ There exists a closed formula for this sum (famously derived by Gauss): $$\sum_{i=1}^ni = \frac{n(n+1)}2.$$ This formula asks us what milestone, and tells us the number of steps required. You can check that this is the inverse of $f$ by comparing the formulations. Now remains to find $f$. Let $$g(n) = \frac{n(n+1)}2.$$ Now let's rewrite: $$\iff 2g(n) = n^2 + n$$ $$\iff n^2 + n -2g(n) = 0.$$ We can use the quadratic formula, using $n$ as the unknown variable, to find that $$n = \frac{\sqrt{8g(n) + 1} - 1}2 \text{ or } n = \frac{-\sqrt{8g(n) + 1} - 1}2.$$ Now notice that $g(n)$ and $s$ both denote an amount of steps needed to reach a certain milestone. Similarly, notice that $f(s)$ and $n$ both denote a milestone. We can hence rewrite the above formulas as follows: $$f(s) = \frac{\sqrt{8s + 1} - 1}2 \text{ or } f(s) = \frac{-\sqrt{8s + 1} - 1}2.$$ The latter is a decreasing function and hence not what we want. The former corresponds to the formula in the other answer, and it seems to pass the sanity check of inserting the first few numbers.


As for the second formula, you are summing $$1 + 1.5 + 2 + 2.5 + ... + x = \frac12(2+3+4+...+n),$$ where $x$ is an integer $n$ divided by two. We recognise the sum of the first $n$ integers between the parentheses, except the first term ($1$) is omitted. We can again use Gauss' formula to rewrite this, keeping the subtracted $1$ in mind. $$\dots = \frac12\left((1+2+3+4+...+n) - 1\right) = \frac12\left(\frac{n(n+1)}2 - 1\right).$$ It remains to find the inverse of this formula.

$\endgroup$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .