The average of a function

  • Thread starter ribod
  • Start date
14
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?
 

cronxeh

Gold Member
949
10
[tex]\frac{1}{x_{2}-x_{1}} \int_{x_{1}}^{x_{2}} {\frac{x}{x-\frac{1}{x}} dx }[/tex]

[tex] a = x_{1}, b = x_{2} [/tex]

[tex]\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) ) [/tex]
 
Last edited:

Zurtex

Science Advisor
Homework Helper
1,120
1
Correct me if I am wrong but I think that nicely cancels down to:

[tex]\frac{1}{b - a}\left(b - a + \text{tanh}^{-1}(a) - \text{tanh}^{-1}(b) \right)[/tex]
 
Last edited:

cronxeh

Gold Member
949
10
And you assume that if OP doesnt know the avg of a function, then he'll know what hyperbolic tangent is :rofl:
 
I know what tanh is but not the average of a function.
 
998
0
Ah, but do you know what [tex]\tanh^{-1}[/tex] is?!?!
 

HallsofIvy

Science Advisor
Homework Helper
41,639
837
The average of a function, f(x), between x= x1 and x= x2 is:
[tex]\frac{1}{x_2-x_1}\int_{x_1}^{x_2}f(x)dx[/tex]
 

Physics Forums Values

We Value Quality
• Topics based on mainstream science
• Proper English grammar and spelling
We Value Civility
• Positive and compassionate attitudes
• Patience while debating
We Value Productivity
• Disciplined to remain on-topic
• Recognition of own weaknesses
• Solo and co-op problem solving

Hot Threads

Top