© Philip Joyce 2019
P. JoyceNumerical Chttps://doi.org/10.1007/978-1-4842-5064-8_3

3. Numerical Integration

Philip Joyce1 
(1)
Goostrey, UK
 
In calculus if we want to find the area under a curve, there is often a simple technique of calculus for us to use. Consider the curve in Figure 3-1. This is the curve of y = 2x – x2.
../images/480762_1_En_3_Chapter/480762_1_En_3_Fig1_HTML.png
Figure 3-1

Finding the area between a curve and x-axis

The technique involves adding one to the power and bringing the power down to divide.

This is specified by
$$ \underset{0.4}{\overset{1.6}{\int }}2x-{x}^2\kern0.125em dx $$
In this case we have chosen to find the area between 0.4 and 1.6 on the x-axis. ...

Get Numerical C: Applied Computational Programming with Case Studies now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.