How to modify a power function?

  • Thread starter Thread starter SHRock
  • Start date Start date
  • Tags Tags
    Function Power
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
5 replies · 2K views
SHRock
Messages
8
Reaction score
0

Homework Statement



Let's say I have 2 ordered pairs. I want to find the the a and b in the function. How would I do that?

Homework Equations


y=ax^b


The Attempt at a Solution


y/a=x^b
b=log(y/a)/logx

But now I have 2 variables. How would I find those variables?
 
Physics news on Phys.org
SHRock said:

Homework Statement



Let's say I have 2 ordered pairs. I want to find the the a and b in the function. How would I do that?

Homework Equations


y=ax^b


The Attempt at a Solution


y/a=x^b
b=log(y/a)/logx

But now I have 2 variables. How would I find those variables?

Substitute the points you have into your equation. Then you will have two equations in the two unknowns, a and b.
 
Mark44 said:
Substitute the points you have into your equation. Then you will have two equations in the two unknowns, a and b.

Yeah but the problem is I don't know how to reduce that.

Let's say I pick 2 points

(35,0.01)
(4.5,30)

so the functions will be

b=log(0.01/a)/log 35

b=log(30/a)log4.5
 
Let's go back to the original equation, y = axb

Using your points, we have
.01 = a * 35b
30 = a* 4.5b

Dividing the first equation by the second, we have
.01/30 = 35b/4.5b = (35/4.5)b

Can you solve that for b? Once you get b, then use either equation to find a.
 
Mark44 said:
Let's go back to the original equation, y = axb

Using your points, we have
.01 = a * 35b
30 = a* 4.5b

Dividing the first equation by the second, we have
.01/30 = 35b/4.5b = (35/4.5)b

Can you solve that for b? Once you get b, then use either equation to find a.

Oh ok thanks I get it. Now another little questions. Let's say if I do this for multiple ordered pairs. And a and b aren't always the same, but pretty close. Should get the average of those and plug it in as b? Because this is like a lab and error will occur.