It is well known that $$ \int_a^b f(x) dx = (b-a)\bar{f} $$ where $\bar{f}$ is the average value of $f(x)$ in $[a,b]$
I was wondering if there is a similar approach for $$ \int_a^b xf(x) dx $$ involving the average value. I am pretty sure that i have seen something about this in the past but I can't find anything right now since I don't even know how to search for it
Thank you all in advance
The first formula you wrote is usually taken to be the definition of "average value."
The second integral is closely related to a similar quantity known as the "first moment of $f$" (you've written down "the first moment around $0$").
If you think of $f(x)$ as the amount of mass at position $x$ from the center of a lever-arm (which is centered at $x = 0$), then the integral represents the torque about the pivot of the lever.
Because of the appearance of the integral, a natural way to evaluate it is to use integration by parts (at least when $f$ has an obvious antiderivative).
Anyhow, if you search for "moment integrals", you'll find a great deal more information.