Professional Documents
Culture Documents
FP1 Chp8 NumericalMethods
FP1 Chp8 NumericalMethods
Numerical Methods
jamie@drfrostmaths.com
www.drfrostmaths.com
@DrFrostMaths
𝑑𝑦 𝟐
=2 𝑥 → 𝒚 = 𝒙 + 𝒄
𝑑𝑥
Clearly, it is possible to solve this differential
equation directly analytically (i.e. using direct
integration). But what if we couldn’t find this
solution analytically (e.g. because we had an
expression which is not integratable)…
Solutions to differential equations
𝑑𝑦
=2 𝑥
𝑑𝑥
This is known as a vector field
plot or tangent field.
This corresponds to a
Suppose we picked a random particular solution to the
The vector field plot shows the
starting point. differential equation (rather
gradient of the curve for that
This point forms part of some than the ‘general’ solution),
point, i.e. the direction the
solution curve to this because by fixing a point, we fix
curve is moving in.
differential equation. the in
Solutions to differential equations
𝑑𝑦 2 3
=𝑥 + 𝑦 This differential equation is not
𝑑𝑥 actually solvable!
(i.e. no expressible using conventional
algebraic notation)
0.1 ( )
𝑑𝑦
𝑑𝑥 0
( 1 , 0.5 )h=0.1
The gradient by definition tells us
what would increase by for each
unit increase in .
Therefore new coordinate:
?
Gradient at :
Actual point on
solution curve.
Predicted point on
solution curve.
(
( 𝑥 𝑟 +1 , 𝑦 𝑟 +1 ) = 𝑥 𝑟 + h , 𝑦 𝑟 +h
𝑑𝑥 ) )
( 𝑑𝑦 𝑟
h
( )
𝑑𝑦
𝑑𝑥 𝑟
( 𝑥𝑟 , 𝑦𝑟 )
Test Your Understanding
Edexcel FP1 SAM Q6
?
(Extra Practice)
Use Euler’s method to estimate the value at of the particular solution to the differential equation ,
which passes through the point . Use a step length of 0.5.
Gradient at :
Gradient at :
?
The point is
Exercise 8A
Pearson Further Pure 1
Pages 164-165
Midpoint method
Actual point on
solution curve.
Predicted point on Euler’s method leads to
Error solution curve. quite a large amount of
(
( 𝑥 𝑟 +1 , 𝑦 𝑟 +1 ) = 𝑥 𝑟 + h , 𝑦 𝑟 +h ( ))
𝑑𝑦
𝑑𝑥 𝑟
error. Reducing the step
size will help…
( 𝑑𝑦
h 𝑑𝑥
) 𝑟
( 𝑥𝑟 , 𝑦𝑟 )
𝑃 𝑖 −1 𝑃𝑖
Midpoint method
This suggests that to get
from to an Actual point on
approximation of , we
𝑃 𝑖 +1 can add 2 lots of the
𝑃 𝑖 +1 solution curve.
Predicted point on
gradient of the tangent solution curve.
of the middle point to
the -value.
𝑃𝑖 𝑃 𝑖 −1 𝑃𝑖
2 ( )
𝑑𝑦
𝑑𝑥 𝑖
𝑃 𝑖 −1
h h
Which passes through the point . Give your answer correct to 4dp.
𝑥 0 𝑥1 𝑥 2
0 0.25 0.5
Using Euler’s method:
We need to work out from
? Work out and
STEP 1: Use Euler’s method
to get from to :
Using midpoint formula:
STEP 2: Now that we have 2
points, we can use midpoint
formula to get from :
? Work out
Exercise 8B
Pearson Further Pure 1
Pages 167-168
Solving second-order differential equations
h h
𝑑𝑦
( )( )
𝑑𝑦
means “the rate of change of
gradient”. So similarly we could
consider how changes across an −
( ) 𝑑𝑥 0 ? 𝑑𝑥
2
interval :
𝑑𝑦 −1
2
≈
𝑑𝑥 0 h
?
Solving second-order differential equations
! To solve second-order differential equations using Euler’s method, use
?
Test Your Understanding
Edexcel FP1 Mock Set 2 Q2
Exercise 8C
Pearson Further Pure 1
Pages 171-172
Simpson’s Rule
𝑦
We want to 𝑦 There’s of course
approximate this the trapezium rule
area. What methods (say with 2 strips)
do you know?
∫ 𝑓 ( 𝑥 ) 𝑑𝑥
𝑎
𝑥 𝑥
𝑎 𝑏 𝑎 h 𝑏
𝑦 You may have also 𝑦 We will look at
heard of the Simpson’s Rule, which
midordinate rule. fits a quadratic curve
within each interval.
𝑥 𝑥
𝑎 h 𝑏 𝑎 h 𝑏
Simpson’s Rule
𝑦 𝑦 0.5 For each interval, we use the
𝑦0 𝑦1 values of the two endpoints
and the midpoint.
or informally:
Example
𝑏
1
∫ 𝑓 ( 𝑥 ) 𝑑𝑥 ≈
3
h ¿ ¿
𝑎
?
Area under curve
(4sf)
?
Exercise 8D
Pearson Further Pure 1
Pages 174-175