Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have two intervals: $X=[A,B]$ and $X'=[C,D]$.

If I'd like to map $X$ to $X'$, I usually use this equation:

$$f(t)= \frac{D-C} {B-A} t + \frac{(BC - AD)} {B-A}$$

where $t$ is the time.

However this is linear mapping. I would like to do the mapping exponentially. Could someone help me in this?

I appreciate you help.

share|cite|improve this question
I just reformatted your equations. You might want to check them over to make sure I didn't screw them up somehow. :) – Micah Mar 28 '13 at 0:18

I assume by "exponentially" you mean you want a map of the form $f(t)=ke^{rt}$. So we get the equations $$C=ke^{Ar},\qquad D=ke^{Br}$$ Then $$C/D=e^{(A-B)r}$$ so $$r={\log C-\log D\over A-B}\tag1$$ and $k=Ce^{-kr}$ where $r$ is given by (1).

EDIT: As Ross points out in the comments, that was meant to be $k=Ce^{-Ar}$.

share|cite|improve this answer
Thanks for your reply. So how do I calculate f(t) from A B C and D? – user951793 Mar 27 '13 at 12:53
How is k = Ce (pow) -kr – user951793 Mar 27 '13 at 13:57
@user951793: I believe $k=Ce^{-Ar}$ Once you have $k,r$ you have everything you need for $f(t)$ – Ross Millikan Mar 28 '13 at 0:49
@RossMillikan I tried the equation with calculating k value as you suggested, but I get the following over the time: Scale:Infinity Scale:Infinity Scale:Infinity My test case is: A = 100; B = 3100; C = 0; D = 400; – user951793 Mar 28 '13 at 8:13
@user951793: that is because you are trying to take the log of zero with $C=0$. The way $f(t)$ is defined, it cannot be zero. – Ross Millikan Mar 28 '13 at 13:04

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.