Finding an eksponential function given 2 points

In summary, the author is having trouble getting a function of the form f(x) = ax^r to be accurate. They are using a power function, which is a linear function. They are interpolating between points to find r.
  • #1
Dr-NiKoN
94
0
Given the two points: (270, 59) and (420, 135) I want to find an exponential function that goes trough these two points.
So I have:
[itex]ca^{260} = 50[/itex] and [itex]ca^{420} = 135[/itex]

I then divide these two functions:

[itex]\frac{ca^{270}}{ca^{420}} = \frac{59}{135}[/itex]

[itex]a^{270-420} = \frac{59}{135}[/itex]

[itex]a = (\frac{59}{135})^{\frac{1}{270-420}}[/itex]

Is this the correct way for finding a and c, thus giving me a eksponential function?
 
Physics news on Phys.org
  • #2
Your method is correct, however, your ;ast two steps use 270-420 instead of 260-420. You probably just copied it wrong by accident, no big deal. By the way, it's exponential :)
 
  • #3
Ok, then I need help.
It's 270 btw.

[itex]a = (\frac{59}{135})^{\frac{1}{270-420}}[/itex]

[itex] a= 1.0055[/itex]

Now finding c:
[itex] ca^{270} = 59[/itex]

[itex]c = \frac{59}{a^{270}} = \frac{59}{1.0055^{270}} = 13.3[/itex]

But:
[itex]f(x) = 13.3 * 1.0055^x[/itex]
Isn't correct.

I'm not sure where I'm going wrong here :(
Shouldn't a or c be less than 1?
 
Last edited:
  • #4
No, since this is an increasing function, a cannot be less than 1. I don't know why you think a or c must be less than 1.

Using your figures,
13.3(1.0055)^270= 58.5 instead of 59
13.3(1.0055)^420= 133.1 instead of 135.

It looks to me like you are just rounding off too much. I get
a= 1.005533502 and then c= 13.29795470.

Using those values, c a^270= 59.00000000 and c a^420= 135.00000000.
 
  • #5
Sorry guys, the confusion was due to me using an incorrect number.

Thanks :)
 
Last edited:
  • #6
I'll use this thread instead of creating a new one. I'm working on creating emphiric functions given various data-sets.

Linear functions and as shown above exponential functions are fine.
Now I'm working with functions that are similar to exponential functions, but using log.
I want a function of the form: [itex]f(x) = c * x^r[/itex]

The data set:
[itex](\log{x_0}, \log{y_0}), (\log{x_1}, \log{y_1}).[/itex]

There might obviously be more points. From these points, we try to draw out a straight line as possible on a graph. Then find the graphs slope(?) graphically with a ruler. ie
[itex]\frac{\Delta x}{\Delta y} = r[/itex]

Now we have:
[itex]c * x_0^r = y_0 \rightarrow c = \frac{y_0}{x_0^r}[/itex]

I've tried this out with various data, but my function is always very inaccurate. It's 100% for the point I use to find 'c', but for any other point the result might be as much as 50% off. I know it's an emphiric function, but I would expect I would be able to get it more accurate.

Is this normal?
 
  • #7
Whatever have you been doing??
We have:
[tex]y(x)=cx^{r}[/tex]
or, EQUIVALENTLY:
[tex]log(y)=rlog(x)+log(c)[/tex]
You are to interpolate, using initial conditions:
[tex]log(y_{0})=rlog(x_{0})+log(c)[/tex]
[tex]log(y_{1})=rlog(x_{1})+log(c)[/tex]
This yields:
[tex]r=\frac{log(\frac{y_{1}}{y_{0}})}{log(\frac{x_{1}}{x_{0}})}[/tex]
[tex]log(c)=log(y_{1})-rlog(x_{1})=log(\frac{y_{1}}{x_{1}^{r}})[/tex]
Or:
[tex]c=\frac{y_{1}}{x_{1}^{r}}[/tex]
 
Last edited:
  • #8
Ah, that works like a charm.

I'm guessing my error was that I was still treating it as an exponential function, just using log on the values for each point.

What is a function of the form f(x) = ax^r called by the way? Is this also a linear function?
 
  • #9
It's called a power function.
 
  • #10
I'm sorry if this is a stupid question, but my book doesn't mention it.

Is this correct?

[itex]\frac{\log(x_0)}{\log(x_1)} = \log(\frac{x_1}{x_0})[/itex]

Because my book says:

[itex]\log(\frac{x_0}{x_1}) = \log(x_0) - \log(x_1)[/itex]
 
Last edited:
  • #11
No it is not!
I can't see that I have done that mistake.

what your book writes, is correct.
 
  • #12
I'm sure what you have written is correct, I'm just having trouble getting from:

[itex]log(y_{1})=rlog(x_{1})+log(c)[/itex]
[itex]log(y_{0})=rlog(x_{0})+log(c)[/itex]

to

[itex]r=\frac{log(\frac{y_{1}}{y_{0}})}{log(\frac{x_{1}} {x_{0}})}[/itex]

Have you done:

[itex]\log(y_0) - r\log(x_0) = \log(y_1) - r\log(x_1)[/itex]

To find r? I don't understand what you mean by interpolating, or what step you did.
 
  • #13
I have subtracted the left-hand SIDES from each other, and equated that to the subtraction of the right-hand sides from each other.
 
  • #14
Note "interpolation" means to fit given data to some type of curve (in this case, we determine what sort of exponential curve fits two given data points)
 
  • #15
[itex]\log(y_0) - r\log(x_0) = \log(y_1) - r\log(x_1)[/itex]

[itex]r\log(x_1) - r\log(x_0) = \log(y_1) - \log(y_0)[/itex]

[itex]r(\log(x_1) - \log(x_0)) = \log(y_1) - \log(y_0)[/itex]

[itex]r * \log(\frac{x_1}{x_0}) = \log(\frac{y_1}{y_0})[/itex]

[itex] r = \frac{\log(\frac{y_1}{y_0})}{\log(\frac{x_1}{x_0})}[/itex]

Yay :)

I was just wondering if this was the same way you did it. It seems so elemental, and I thought you where using other elements of log to get there.
 
  • #16
No, your understanding of logs is clearly as "deep" as my own..:smile:
 
Last edited:
  • #17
I highly doubt it :)

thanks a lot!
 

FAQ: Finding an eksponential function given 2 points

What is an exponential function?

An exponential function is a mathematical function in which the independent variable appears in the exponent. It has the general form of f(x) = a^x, where a is a constant and x is the independent variable.

How do I find an exponential function given two points?

To find an exponential function given two points, you will first need to write out the general form of the function: f(x) = a^x. Then, plug in the coordinates of the two points into the equation to form a system of equations. Solve for the constant a using algebraic methods to find the exponential function that passes through the two points.

What are the steps for finding an exponential function given two points?

The steps for finding an exponential function given two points are:

  1. Write out the general form of the function: f(x) = a^x
  2. Plug in the coordinates of the two points into the equation to form a system of equations
  3. Solve for the constant a using algebraic methods
  4. Write out the final exponential function using the value of a

What are some real-life applications of exponential functions?

Exponential functions are used in a variety of real-life applications, including population growth, compound interest, radioactive decay, and bacterial growth. They are also used to model growth patterns in economics, biology, and physics.

Are there any limitations to using exponential functions?

While exponential functions can be useful for modeling certain phenomena, they have limitations. For example, they can only be used for data that exhibits exponential growth or decay. Also, they may not accurately predict long-term trends as they do not account for external factors that may affect the data. Additionally, they can be difficult to interpret and may not provide a complete understanding of the underlying processes.

Similar threads

Back
Top