#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 103
Default Area under trendline

Does anybody know how to find the area under the curve of a trendline (6th
degree polynomial in my case).

Thanks in advance for any help.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default Area under trendline

Two ways:
1 Divide into relatively small intervals, & in each interval muliply the
width by the average height.
2 As you've got a polynomial in x, you can use the integration formula:
integral(x^n)dx = (x^(n+1))/(n+1)
... so the integral from 0 to A2 of your formula (3E+09x6 - 7E+08x5 +
8E+07x4 - 4E+06x3 + 42077x2 + 1197.x) becomes
=3E+09*A2^7/7 - 7E+08*A2^6/6 + 8E+07*A2^5/5 - 4E+06*A2^4/4 +
42077*A2^3/3 + 1197*A2^2/2
--
David Biddulph

"Josh" wrote in message
...
Does anybody know how to find the area under the curve of a trendline (6th
degree polynomial in my case).

Thanks in advance for any help.



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 837
Default Area under trendline

There is no native Excel function for integration, but integrating a
polynomial is straightforward. Assume the coefficients are in A2:G2 (as in
output of LINEST for fitting a polynomial) and the corresponding powers are
in A1:G1. The value of the polynomial at x is then
=SUMPRODUCT(A2:G2,x^A1:G1), and the integral from a to b of the polynomial is
=SUMPRODUCT(A2:G2/(A1:G1+1),b^(A1:G1+1))-SUMPRODUCT(A2:G2/(A1:G1+1),a^(A1:G1+1))

Jerry

"Josh" wrote:

Does anybody know how to find the area under the curve of a trendline (6th
degree polynomial in my case).

Thanks in advance for any help.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Use values instead of labels on X-axis in Area/Stacked Area Charts Ryan Charts and Charting in Excel 1 November 21st 06 04:14 PM
Stacked area and area chart combo [email protected] Charts and Charting in Excel 6 August 18th 06 02:30 PM
Why I get gray area in sheet tab of page setup? can't resize area. joey0617 Excel Discussion (Misc queries) 1 July 15th 06 05:30 PM
How to increase chart area without affecting plot area? [email protected] Charts and Charting in Excel 2 April 21st 06 09:05 PM
Resize chart area without resizing plot area Janwillem van Dijk Charts and Charting in Excel 2 August 2nd 05 01:52 AM


All times are GMT +1. The time now is 03:44 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"