Maths Question: Distributing numbers on a curve

The problem situation: I need a function which when you give it a 1, it will be give you a 100, and when you give it 99, it will give you 9900. The tough part is that I need the “gap” between each output to increase as the inputs get higher.

I’m not sure if I am explaining myself clearly. I could come up a function which gives an even distribution f(x) = 100 + (x-1) * 100. So if x is 1, I will get 100 and if x is 2 then I will get 200, and when x is 99, I will get 9900. But the difference between each output is 100 each time

What I like to achieve is when x gets higher, the gap between f(x) and (fx+1) grows, but in the meanwhile f(1) = 100 and f(99) = 9900.

What mathematical concepts shall I use?

Thanks in advance!

I’m not any kind of mathematician but I suspect that any function that returns 100 for 1, 200 for 2, 300 for 3, … will have a difference of 100 between successive values.

And by the way, your equation 100 - (x - 1)* 100 boils down to 100*x.

What I like to achieve is when x gets higher, the gap between f(x) and (fx+1) grows, but in the meanwhile f(1) = 100 and f(99) = 9900.

Any equation with an increasing derivative in the range you give will do the job; a simple choice would be a quadratic; one meeting the criteria above would be:

f(x) = x^2 + 99

But there are other choices (cubic, exponential) which would make the “gap” between sucessive values of f(x) for x=integer increase more quickly.

This has to be an exponential function. And here it is …

y = f(x) = 100e[sup]b(x-1)[/sup], where b = ln(9)/8 = 0.274653072167027.

Ooops, if you want f(9) = 9900, then b = ln(99)/8 = 0.574389981266824.

So, it’s y = f(x) = 100e[sup]b(x-1)[/sup], with b = 0.574389981266824.

I’m some kind of ex-mathematician, and I agree with the first reply to the OP: if you want f(x) = 100x, the difference between each successive value of f(x) has to be 100 - your question makes no sense. Or do you mean that after x = 99 you want the derivative to increase? But it would be easy to come up with an arbitrary function that does that. In any case, neither of the other two replies seem to give you what you want; CJJ*'s equation gives f(x) = 103 when x = 2 (you want f(x) = 200), and both of nivlac’s provide infinite non-recurring decimals except at certain values of x. But until we know what the OP is trying to ask, I can’t say for certain whether they’re completely wrong :).

I’m sorry I didn’t clarify (I tried, but I don’t know enough Math jargon).

I need to have a function, when you plug in f(1), it gives you 100 and when you plug in f(99) it gives you 9900. But I want the difference between f(1) and f(2) to be different.

If I take f(x) = 100 + (x - 1) * 100, I will get a function in which f(x+1) - f(x), for any value of x between 1 and 99, will be 100, which is not what I want.

What I wish is as x gets higher, the difference between f(x) and f(x+1) grows.

So I guess I shall take a stab at niviac’s and CJJ’s* answers.

What am I talking about :smack: Ignore that line. What I meant is I want the different between f(1) and f(2) to be different from that of f(3) and f(4) and so on…

OK, so we’re getting to the bottom of this now! CJJ*'s suggestion seems to give you what you need - looks like he understood it better than me without needing further explanation! nivlac’s second attempt does do what he says it does, but you wanted f(99) = 9900, not f(9) = 9900. It would seem the equation he posted, but with b = ln(99)/98 would work.

Thanks for the correction! Yes, I read f(9) = 9900. With b = ln(99)/98, f(99) = 9900.
So the solution is y = f(x) = 100e[sup]b(x-1)[/sup], with b = 0.046888978062598.