1 Numerical Integration
1 Numerical Integration
Recap
Fundamental Theorem of Calculus
𝒃
f(x) is continuous on [a, b]
∫ 𝒇 ( 𝒙 ) 𝒅𝒙=𝑭 ( 𝒃 ) − 𝑭 ( 𝒂 ) F is an antiderivative of f
𝒂
𝑥
𝑎 𝛿𝑥
𝑏
𝑦= 𝑓 (𝑥)
𝛿𝑥
𝑥1 𝑥 2 𝑥 3 𝑥 4 𝑥5 𝑥 6 𝑥7 𝑥
𝑎 𝑏
What is the total area between and ?
𝑏
∫𝑓 ( 𝑥 ) 𝑑𝑥
𝑎
As
Definite Integration
𝑏
∫ 𝑓 ( 𝑥 ) 𝑑𝑥
𝑎
∫ sin ( 𝑥 ) 𝑑𝑥−
2
+
0
0
𝜋 2 𝜋 𝑥2 𝜋
∫ sin ( 𝑥 ) 𝑑𝑥 −
+
0
0
∫ sin ( 𝑥 ) 𝑑𝑥 −
2𝜋
+
0
𝜋
2
Evaluating Definite Integrals
∫3𝑥 2
¿[ 𝑥
𝑑𝑥 3 2
]1 We use square brackets to
1 say that we’ve integrated the
function, but we’re yet to
involve the limits 1 and 2.
𝑏
𝑏
∫𝑓 ′
( 𝑥 ) 𝑑𝑥 =[ 𝑓 ( 𝑥 ) ] 𝑎 = 𝑓 ( 𝑏 ) − 𝑓 ( 𝑎)
𝑎
Evaluating Definite Integrals
−1
2
∫ 4 𝑥 +3 𝑥 𝑑𝑥3 2
∫ 2𝑥 +2𝑥𝑑𝑥
3
−2
a
c
e
The sketch shows the curve with equation . Find the area of the shaded region (hint:
first find the roots).
2
𝟒
Find the area of the finite region between the curve with equation
and the -axis. 𝟐
4 𝟏𝟎
𝟑
Find the area of the finite region between the curve with equation and the -axis.
6
𝟏
𝟏
𝟑
Harder Examples
Find the area bounded between the curve with equation and the -
axis.
𝑦
Sketch:
𝑥
−1 1
So total area is
Harder Examples
Sketch the curve with equation and find the area between the curve and the -
axis.
Adding:
-3 1
𝑥
Exercise 2
Find the area of the finite region or regions bounded by the
curves and the -axis.
1
1
1 3
5
20
2 6
1
40
3 2
1
4 1
3
1
5 21
12
Curves bound between two lines
𝑦= 𝑓 (𝑥)
𝛿𝑥
𝑥
𝑎 𝑏
Remember that meant the sum of all the values between and
(by using infinitely thin strips).
Curves bound between two lines
𝑦=
𝑔(
𝑥)
𝑦=𝑓
(𝑥)
𝑏 𝑥
𝑎
How could we use a similar principle if we were looking for the
area bound between two lines?
𝑏
What is the height of each of these strips?
𝐴=∫ 𝑔 ( 𝑥 ) − 𝑓 ( 𝑥 )
therefore 𝑎
area…
Curves bound between two lines
Find the area bound between
𝑦 and .
𝑥
𝑦= 3
∫ 𝑥 ( 4 − 𝑥 ) − 𝑥 𝑑𝑥= 4.5
𝑦=
0
𝑥( 4
−𝑥 𝑥
)
Bro Tip: Always do the function of the top Bro Tip: We’ll need to
line minus the function of the bottom line. find the points at
That way the difference in the values is which they intersect.
always positive, and you don’t have to
worry about negative areas.
Curves bound between two lines
𝑥=−4 ,
Area =
More complex areas
Bro Tip: Sometimes we can
subtract areas from others.
e.g. Here we could start with
-3)
the area of the triangle OBC.
x(x
y=
C
2 x
y=
A B
𝟏
𝑨𝒓𝒆𝒂=𝟏𝟔
𝟑
Exercise 3
1 A region is bounded by the line and the curve .
a) Find the coordinates of the points of intersection.
b) Hence find the area of the finite region bounded by and the curve.
4 𝐴
7.2
Exercise 4
(Probably more difficult than you’d see in an exam paper, but you never know…)
Q6 The diagram shows a sketch of part of the curve with equation and the
line with equation .
7
𝑅1
𝑅2
𝑥
7
Trapezium Rule
Instead of infinitely thin
rectangular strips, we
might use trapeziums to
y4 approximate the area
under the curve.
y3
What is the area here?
y2
y1
1 1 1
𝐴𝑟𝑒𝑎= h( 𝑦1+𝑦2)+ h( 𝑦2+𝑦3)+ h( 𝑦3+𝑦4)
2 2 2
h h h
Trapezium Rule
In general:
width of each trapezium
𝑏
h
∫ 𝑦 𝑑𝑥 ≈ ( 𝑦 1 +2 ( 𝑦 2+ …+ 𝑦 𝑛 −1 ) + 𝑦 𝑛 )
2
𝑎
Example
We’re approximating the region bounded between , , the
x-axis the curve
x 1 1.5 2 2.5 3
y 1 2.25 4 6.25 9
𝑨 𝟏=
𝒏( 𝟐)
𝒃 − 𝒂 𝒇 ( 𝒙𝟎 ) + 𝒇 ( 𝒙 𝟏 ) f(x0)
( )
( ) ( )
𝒃 − 𝒂 𝒇 𝒙𝟏 + 𝒇 𝒙 𝟐 f(x4)
𝑨 𝟐=
𝒏 𝟐 A1 A2 A3 A4
𝑨 𝟑= ( ( ) ( )
)
𝒃 − 𝒂 𝒇 𝒙𝟐 + 𝒇 𝒙 𝟑
𝒏 𝟐
+ 𝑨 𝟒=
𝒏( ( ) ( )
𝟐
_________________________
)
𝒃 − 𝒂 𝒇 𝒙𝟑 + 𝒇 𝒙𝟒 a 𝚫𝒙
𝒘𝒊𝒅𝒕𝒉=
𝒃−𝒂
b
=𝚫 𝒙
𝒏
𝒃 −𝒂
𝟐𝒏 (
𝑨𝑻 = 𝒇 ( 𝒙 𝟎 ) +𝟐 𝒇 ( 𝒙 𝟏) +𝟐 𝒇 ( 𝒙 𝟐 ) +𝟐 𝒇 ( 𝒙 𝟑 ) + 𝒇 ( 𝒙 𝟒 ) )
Trapezium Rule
Bro Tip: You can generate table with Casio calcs . . Use ‘Alpha’ button to key in X within the function. Press =
0.8571
𝟎.𝟏
𝑨𝒓𝒆𝒂= ( 𝟎 . 𝟕𝟎𝟕𝟏+𝟐 ( 𝟎 .𝟕𝟓𝟗𝟏+𝟎 . 𝟖𝟎𝟗𝟎+𝟎 . 𝟖𝟓𝟕𝟏+𝟎 .𝟗𝟎𝟑𝟕 ) +𝟎 . 𝟗𝟒𝟖𝟕 )=𝟎 .𝟒𝟏𝟔
𝟐