How Do You Calculate the Average Value of a Function Between Two Points?

  • Thread starter Thread starter ribod
  • Start date Start date
  • Tags Tags
    Average Function
ribod
Messages
14
Reaction score
0
I have this function:
y=x/(x-1/x)
and I want to find out the average value of y, between two values of x.

Is there some mathematical way to do this?
 
Mathematics news on Phys.org
\frac{1}{x_{2}-x_{1}} \int_{x_{1}}^{x_{2}} {\frac{x}{x-\frac{1}{x}} dx }

a = x_{1}, b = x_{2}

\frac{1}{b-a} * ( b + \frac{1}{2}*log(b - 1) - \frac{1}{2}*log(b+1) - a - \frac{1}{2} * log(a-1) + \frac{1}{2} * log(a+1) )
 
Last edited:
Correct me if I am wrong but I think that nicely cancels down to:

\frac{1}{b - a}\left(b - a + \text{tanh}^{-1}(a) - \text{tanh}^{-1}(b) \right)
 
Last edited:
And you assume that if OP doesn't know the avg of a function, then he'll know what hyperbolic tangent is :smile:
 
I know what tanh is but not the average of a function.
 
Ah, but do you know what \tanh^{-1} is??
 
The average of a function, f(x), between x= x1 and x= x2 is:
\frac{1}{x_2-x_1}\int_{x_1}^{x_2}f(x)dx
 
Back
Top