跳到主要内容

如何在Excel中计算绘制曲线下的面积?

学习积分时,您可能已经绘制了一条绘制的曲线,在曲线下方阴影了一个区域,然后计算阴影部分的面积。 在这里,本文将介绍两种在Excel中计算绘制曲线下面积的解决方案。


用梯形法则计算绘制曲线下的面积

例如,您创建了一个绘制的曲线,如下图所示。 此方法会将曲线和x轴之间的面积分成多个梯形,分别计算每个梯形的面积,然后将这些面积求和。

1。 曲线下的第一个梯形在x = 1和x = 2之间,如下图所示。 您可以使用以下公式轻松计算其面积:  =(C3+C4)/2*(B4-B3).

2。 然后,您可以向下拖动公式单元格的“自动填充”手柄以计算其他梯形的面积。
备注:最后一个梯形在曲线下的x = 14和x = 15之间。 因此,将“自动填充”手柄拖动到倒数第二个单元格,如下图所示。   

3。 现在,找出所有梯形的面积。 选择一个空白单元格,键入公式 = SUM(D3:D16) 得到绘制面积下的总面积。

使用图表趋势线计算绘制曲线下的面积

该方法将使用图表趋势线获取绘制曲线的方程式,然后使用方程式的确定积分来计算绘制曲线下的面积。

1。 选择绘制的图表,然后单击 设计 (或 图表设计)> 添加图表元素 > 趋势线 > 更多趋势线选项。 看截图:

2。 在 格式化趋势线 窗格:
(1)在 趋势线选项 部分,选择最适合您的曲线的一个选项;
(2)检查 在图表上显示方程式 选项。

3。 现在,方程式已添加到图表中。 将方程式复制到工作表中,然后获取方程式的定积分。

就我而言,趋势线的一般方程为 y = 0.0219x ^ 2 + 0.7604x + 5.1736,因此它的定积分是 F(x) =(0.0219 / 3)x ^ 3 +(0.7604 / 2)x ^ 2 + 5.1736x + c.

4。 现在我们将x = 1和x = 15插入定积分,并计算两个计算结果之间的差。 差异表示绘制曲线下的面积。
 

面积= F(15)-F(1)
Area =(0.0219/3)*15^3+(0.7604/2)*15^2+5.1736*15-(0.0219/3)*1^3-(0.7604/2)*1^2-5.1736*1
面积= 182.225


相关文章:

最佳办公生产力工具

🤖 Kutools 人工智能助手:基于以下内容彻底改变数据分析: 智能执行   |  生成代码  |  创建自定义公式  |  分析数据并生成图表  |  调用 Kutools 函数...
热门特色: 查找、突出显示或识别重复项   |  删除空白行   |  合并列或单元格而不丢失数据   |   不使用公式进行四舍五入 ...
超级查询: 多条件VLookup    多值VLookup  |   跨多个工作表的 VLookup   |   模糊查询 ....
高级下拉列表: 快速创建下拉列表   |  依赖下拉列表   |  多选下拉列表 ....
列管理器: 添加特定数量的列  |  移动列  |  切换隐藏列的可见性状态  |  比较范围和列 ...
特色功能: 网格焦点   |  设计图   |   大方程式酒吧    工作簿和工作表管理器   |  资源库 (自动文本)   |  日期选择器   |  合并工作表   |  加密/解密单元格    按列表发送电子邮件   |  超级筛选   |   特殊过滤器 (过滤粗体/斜体/删除线...)...
前 15 个工具集12 文本 工具 (添加文本, 删除字符,...)   |   50+ 图表 类型 (甘特图,...)   |   40+ 实用 公式 (根据生日计算年龄,...)   |   19 插入 工具 (插入二维码, 从路径插入图片,...)   |   12 转化 工具 (小写金额转大写, 货币兑换,...)   |   7 合并与拆分 工具 (高级组合行, 分裂细胞,...)   |   ... 和更多

使用 Kutools for Excel 增强您的 Excel 技能,体验前所未有的效率。 Kutools for Excel 提供了 300 多种高级功能来提高生产力并节省时间。  单击此处获取您最需要的功能...

产品描述


Office Tab 为 Office 带来选项卡式界面,让您的工作更加轻松

  • 在Word,Excel,PowerPoint中启用选项卡式编辑和阅读,发布者,Access,Visio和Project。
  • 在同一窗口的新选项卡中而不是在新窗口中打开并创建多个文档。
  • 每天将您的工作效率提高50%,并减少数百次鼠标单击!
Comments (9)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
Danke für das Tutorial,

ich habe ein Verständnisproblem zum bestimmten Integral.
1. warum ist in der Formel das "c" und warum verschwindet es beim Einsetzen wieder?
2. wenn ich 1 und 15 in meine Formel einfüge, sind dies doch lediglich die Werte der X Achse. Also meine Messpunkte aber nicht meine Messwerte. Die "echten" Werte meines Diagrams sind die auf der Y-Achse und diese werden doch dann nicht berücksichtigt, oder?
This comment was minimized by the moderator on the site
Bonjour,
Pourriez-vous m'expliquer à quoi corresponds le petit "c" en fin d'équation de F(x) ?
Merci beaucoup !
This comment was minimized by the moderator on the site
Wie kommen Sie von der Trendlinie zum bestimmten Integral?

Sie beschreiben, dass ich die Gleichung der Trendlinie in das Arbeitsblatt kopieren soll. Wie soll das funktionieren?

Kopieren Sie die Gleichung in Ihr Arbeitsblatt und erhalten Sie dann das bestimmte Integral der Gleichung.
In meinem Fall lautet die allgemeine Gleichung nach Trendlinie y = 0.0219x ^ 2 + 0.7604x + 5.1736daher ist sein bestimmtes Integral F (x) = (0.0219 / 3) x ^ 3 + (0.7604 / 2) x ^ 2 + 5.1736x + c.
This comment was minimized by the moderator on the site
Ik heb een dataplot waarbij de waardes van de X-as variëren tussen negatieve en positieve waardes.
Bv -80 tot +80. Als ik daarbij deze regels volg, maak ik denk ik een fout tussen de 2 data punten op de overgang van positief naar negatief, aangezien ik som een negatieve oppervlak onder de curve uitkom, zowel met trapezium als met integraal methode.
Ik ken het kruispunt (x=0) niet altijd, dus kan de grafiek niet in 2 stukken opsplitsen.
Kunnen jullie me helpen hoe ik dit best aanpak?

Thx!
Sofie
This comment was minimized by the moderator on the site
Thank you for explaining.. I learned the same, that I did not know before. really helps me a lot.RegardsDebashis
This comment was minimized by the moderator on the site
The formula for the trapezoid rule should be =((C3+C4)/2)*(B4-B3) instead of =(C3+C4)/2*(B4-B3). Otherwise you will divide C3+C4 by 2*(B4-B3), instead of multiplying (C3+C4)/2 by (B4-B3)
This comment was minimized by the moderator on the site
Hi Bas,
Actually the formula will be calculated just like what it's like when you do mathematical operation. It makes no difference if you add the additional brackets to (C3+C4)/2 or not. Unless you add the brackets this way: (C3+C4)/(2*(B4-B3)), then it will divide C3+C4 by 2*(B4-B3).
Anyway, thanks for your feedback. If you have any other questions, please don't hesitate to let me know. :)
Amanda
This comment was minimized by the moderator on the site
You are correct, my apologies. I was under the assumption that multiplication had precedence over division, as I learned in school many years ago, but apparently that rule changed almost 30 years ago and I only now became aware of that. Well, better late than never, so thank you for correcting me.
This comment was minimized by the moderator on the site
You are welcome Bas, and I do feel happy for you gaining one more little knowledge here :)
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations