Integration of values in column

I have a set of values in columns and i want to insert the integration formulaKrikwood-Buff Integral.

I have r values in 1st column, g(r) values in 2nd column and {(r^2)(g(r)-1)} values in 3rd column. Now as per the integration equation, i need to integrate 3rd column for every limit ranging from 0 to respective r value. How can i do this integration in LibreOffice clac…??

Any suggestions are highly appreciated.

Thank you.

I realize this is an old question and a late response but I recently had to do something similar with a discrete probability mass function and it seemed to work for me, I would suggest plotting the integrand as a table then in a chart create a graph then find the trendline as a polynomial. Then manually integrate the polinomial then again create a chart showing the integration of the original function.