Welcome to Part 13 of my FULL walkthrough of CIE A LEVEL Maths. We're doing the Numerical solutions topic for Paper 2 so be sure to check all your skills before moving on!
Please email me at [email protected] to enquire about tuition online or in person!
this lesson is in collaboration with
flip Academy which is a free online
platform for all of your GCSE a-level IB
and cbse needs it's out now at
www.flip.academy and it's also available
as an app for IOS and Android it really
is better than the other GCSE platforms
out there has all of these lessons
online it has more topics and practice
questions for you to go through hello
and welcome back to flip Academy today
we're going to be looking at numerical
Solutions of equations this is going to
contain a bunch of graph sketching it's
going to contain a bunch of algebra as
well and that's gonna be pretty exciting
so with numerical Solutions of equations
this first respect Point really does sum
up the entire topic okay so we need to
be able to locate approximately a root
of an equation and if you remember the
word root just means solution for our
purposes okay
so we just need to be able to locate a
solution of an equation by either a
graph
or searching for a sign change so with a
graph as hopefully you may know if you
were to sketch a graph
so let's make it quite easy let's just
make this some kind of quadratic okay
and you were looking for a solution to
when that quadratic equals zero okay so
it could be any quadratic you like maybe
we can call it something like x squared
minus 2x minus three right something
like that
what you can do is you can actually look
at the graph
and try and spot when it equals zero so
when a equation or a function equals
zero it crosses or intercepts the x-axis
so those two points here are going to be
our points of intersection so they're
going to be our solutions to the
equation when that equals zero okay
technically speaking you could also have
it equal to some lines so let's say it
could be equal to
2 and you'd look for when it intersects
the line Y equals two and once again
where they cross
are your solution so you can literally
just read them off of the graph if you
were to plot it which is a very useful
skill if any of you plan on going to
University and doing things like maths
or physics or something along those
lines because you're going to be
plotting graphs and spotting points of
intersection quite a bit
you'll probably do it using a computer
though but it's good for you to know
exactly how to do it by hand
now there is one other way
and this is specific to when it equals
zero only
if you have a look at this function
right and we're just going to look at
again when it equals zero so we'll get
rid of the other stuff
quickly
okay
we draw all curve
before
it crosses here can you see that this
would be a positive value and afterwards
it goes to a negative value
interesting right and here it goes from
a negative
to a positive well this is because if
you're looking for when a root or a
solution is equal to zero
there's going to be a change of sign so
what I could do is let's say this value
here was one this value here was two if
I sub in x equals 1 and x equals two and
I notice that there's a change in the
sign either from negative to positive or
positive to negative then I can say that
this implies that there is an existence
of a root between one and two and from
there you can use something like
iteration in order to find what the
exact value is okay
okay so that's basically the notes on
this okay we're going to go through some
questions though to make this seem a lot
more and making it make a bit more sense
so part one it says by sketching each of
the graphs Y equals cosec X and Y is
equal to x Pi minus X for 0 to Pi so the
equation cosic x equals x Pi minus X has
exactly two real roots in the interval
okay so let's draw out these two graphs
so
that'd be our x-axis that'd be our Y and
again it's just a sketch you don't need
to make it super
um exact so with the cosec graph it kind
of looks like the tan graph in the sense
it has these repeating asymptotes one is
at pi over two and the other one is at
Pi okay and for the cosec graph it
starts at one because again it's one
over the M sine graph so it starts at
one and it shoots off towards Infinity
here because that's when it's going to
equal it's going to be one over zero
and after that it's going to do the same
thing but down my sketch isn't exactly
perfect but again this would be negative
one
okay it doesn't need to be perfect you
just need the general shape and there's
a very specific reason
now for the x Pi minus X graph
if you were to kind of draw that out or
expand it quickly you would have minus x
squared plus pi x so this is just a
quadratic but it's a negative quadratic
which means it's going to be a big sad
face okay or an N Shape and where does
it cross well if we look at the actual
Solutions here it crosses at x equals
zero and x equals Pi so that is this
point here and this point here and then
you're gonna have a big U shape okay so
you're going to have a big
u-shape like that
cool and it says show that has exactly
two real Roots well we're looking for
when these graphs are equal now if
you're looking for when two graphs are
equal to each other that means it's when
they intersect okay so two real roots in
this instance is when the two graphs so
when
the two graphs
intersect okay so that is here
and here
so the intersect twice
intersect twice
therefore
too real
roots
nice and easy okay three marks so you
get a mark for each of the kind of
drawings being appropriate so the rough
right shape and having the correct kind
of
um asymptotes and things like that and
then you get the last month actually
making The Logical deduction that since
they crossed twice there must be two
Roots if they cost three times the three
Roots they cross don't cross then
there's no roots and so on
and this is very similar so by sketching
a suitable pair of graphs show that the
equation 5 e to the minus x equal to
square root X so if we have a look at
what this will look like so I want to
draw it I'm going to draw it relatively
shallow
so 5e to the minus X is an exponential
decay so it starts from plus infinity
and it goes along
this and it'll go on forever and this
would obviously be one and the square
root X graph actually starts down here
and actually this would be 5 because
Times by
five uh this would be something that
looks like that
okay
and if that starts with zero because the
square root of zero be zero
perfect so if you notice there's only
one time that they'll ever cross and
they'll never ever cross again so again
we're just going to write one point of
intersection
point
of intersection
means one
root
okay so that should be nice and easy
again this relies on you knowing the
various different shapes for different
graphs and one thing you can do is kind
of try and use your logic and your
deductive skills to try and work it out
you can also use a calculator to just
kind of sub in various values to see um
which ones work for you okay so if you
had a calculator you could just
literally plug in values and see how it
behaves over time you some of your
calculators depending on which one you
have will also be able to plot a table
for you so you can kind of see what the
values are doing with time
okay
next thing so understand the idea of and
use the notation for a sequence of
approximations which converges to a root
of an equation okay it's pretty fancy
talk so what they're trying to say here
is an iterative formula to find
Solutions and they do have this general
form x n plus one equals fxn so you
might have something like let's make it
relatively light so you have x m and n
plus one equals
X N squared over 3 or something like
that right and they'll give you
sometimes they give you a starting value
of let's say one uh sometimes you have
to find or figure out or think about
which value it should be and sub that in
but the idea is is that as you
continuously use this formula so you
start with X not equals one so one
squared over three that's one over three
then you put it again so one over three
squared so that's one over nine divided
by three one over twenty seven and so on
it should converge to a specific value
in my instance it's going to converge to
zero so that would be the solution to
whatever equation I've um created here
but again I did just make that up on the
spot
so understand how a given simple
iterative formula of the form x n plus 1
is equal to f x n relates to the
equation being solved and use a given
iteration or an iteration based on a
given rearrangement of an equation to
determine a root to a prescribed degree
of accuracy that's a lot of fancy talk
essentially you're going to be using
these equations to find a solution to a
certain number of decimal places so the
problem with these kind of numerical
Solutions and this does happen a lot in
real life too is that there are
equations too complicated for us to
solve right so you have things like the
three body problem for instance
so what we do instead is we get a
numerical answer right so we get a
computer to do iteration hundreds of
times
and it will give us a value to let's say
10 decimal places and we say you know
beyond that
I don't care you know 10 decimal places
that's a billionth of a single unit of
accuracy that's good enough for me okay
that normally is good enough but that's
the idea is that these are always going
to be approximations okay
so let's have a look at this use the
iterative formula a n plus 1 equals two
Ln 16 minus a n over 6 with A1 equals
two to find the correct for sorry to
find the value of a correct to three
decimal places give the resolve each
iteration to 5 DP
okay so what we're going to do well
let's have a look see
what I would do
and this is pretty specific
is I just get A1 so if it's two equals
and then I'm going to rewrite the exact
same formula
however instead of a n I'm going to
press the ANS button and the reason for
this is the ANS button stores whatever
your last answer was so in my case it's
going to be two but when I press equals
so when I take whatever that answer is
and sub it in for me so essentially I
can do iteration by just continuously
hammering the equal sign over and over
and over and over again okay
so we need we do need to give each
iteration to 5dp which is a
it's a bit frustrating but
um in real life you just press equals
until and I'll show you what so we only
want to correct three decimal places so
what we're going to do is we're going to
wait for the first value for the first
two values that round to the same number
to three decimal places
okay so I'll show you what that means
we're going to press equals so A2 is
1.694595 so I'm going to round that to
5dp as it tells me to so A2 is equal to
one point so six nine four
um
then it would be six zero
right
so to three decimal places this rounds
to
1.695 if my next value rounds to 1.695
then I'm done and the reason for that is
the result converges so you'll notice as
I keep hammering the equal sign
it's going to change less and less so
again we're going to do this one now so
we have
1.7377 and then instead of five it's
going to be six for five decimal places
so they don't round to the same number
and you want to just keep doing this
okay now in an exam you can do this a
lot faster than I'm doing it but I'm
trying to explain it so press e was
again 1.10 CC have you noticed it hasn't
changed as much so it changes by a lot
really quickly and then it slows down
over time
so let's go again
1.7317
3. so if I look to three decimal places
it's they're both the same to two
decimal places but not to three so we
have to keep going
so A5
equals
and it should change by even less
1.7325 blah blah so one point
and I'd actually recommend trying to
write out relatively neatly which you
know I'm not sure if I'm succeeding and
doing at the moment
because what I'm doing is I'm trying to
line up the decimal places so I can see
if they're changing or not so if I look
here I can literally just read it off so
if you notice
these two values are the same
to 3dp
now if I were to press equals again and
I would recommend doing one more just to
be sure
I get 1.732 again
right and if I press it again
do you notice that few and fewer decimal
places are changing
So my answer for a
is equal to 1.732
to three decimal places
right that would be what you would do as
soon as it stops changing so in this
case we would need to find what A6 is
because that was
so that would be 733 my apologies
because A6 was
1.732 uh it was six something I think
right so these two things here have the
same
value to three decimal places so that's
one we're going to use these two are
very similar but they're slightly
different so this is seven three one
this is b733 but the next one was seven
three three okay so that might be
a better way of doing it so if we just
get rid of that
huh
okay so hopefully that makes sense
and we just that's basically what
iteration is for this
so if you notice we've done this first
part before
all right by sketching a single
paragraphs we've already done that okay
but what we're going to do is
now we need to actually find
the set of values so show that if a
sequence of values is given by the
iterative formula converges then it
converges to the roots of the equation
so how would you do something like this
well what I would do is I would take
this equation here and try and get the
original expression
because that shows that what they've
done is taken this equation and
rearranged it into this equation now
sometimes or usually to be honest part
two is actually
show that the iterate iterative formula
is this in which case you would go from
this equation to this one in this case
I've given you something slightly
different which is why I wanted to put
it in the video so we're going to go
from this back to this
so let's write it out we have X
equals a half
Ln
25 over X instead of the ends and the N
plus ones I'm just leaving it as X okay
and then we're going to try and
rearrange to give me the formula shown
above the now
if you remember your power rules for
um logarithms
if you have a power here you can just
bring it to the front so we can actually
go backwards and do the same so this is
the same thing as having
x equals so I'm going to do this in a
very kind of concise steps
so you would be able to do this a lot
faster you don't have to do every step
I'm doing I'm doing this more for
demonstration purposes just to make sure
that everyone's completely fine with
this so if you have something to the
power of half that means you're Square
rooting so you have X is equal to Ln
and then you'd have
okay so I'm going to do this in very
precise steps again you could do this a
lot faster
five over square root X
so a question that you might have is why
are we ignoring the negative value of
the square root right because
technically would be plus minus five
remember you cannot square root a
negative number so if I have a negative
in there uh bad things will happen to me
so I'm not going to do that okay for the
next step what we're going to do is
we're going to exponentiate both sides
um actually before that what we'll do is
we'll bring the power up so what we can
do
we can make this five
um square root X
to the minus one okay so actually this
five would be on the bottom as well
so all I'm doing is I'm flipping the
fraction here the reason for that is if
I look back at the answer right the five
is actually
on top if that makes sense so I need to
times both sides by 5 at some point the
only way for me to do that is if the 5
is on the bottom so that was my logic
there that's why I quickly changed it
using the power rule again I'm just
going to make that negative Ln
root X over five
and what we're going to do is divide
both sides by minus one so we're going
to move the minus over to the other side
Ln
X of five we're going to exponentiate
both sides so we have e to the minus X
again the reason the reason why I need
to do that is with a look at the answer
is an e to the minus X
equals
Square X over five and last but not
least we're going to times both sides by
five to get five e to the minus x equals
root X so because we can change this
iterative formula
back into the original equation it must
be
a um converging sequence for solutions
for this question
then for part three we do it back up
here so we actually can see the uh
iterative formula it says X1 equals one
and we're going to do the exact same
thing so
we're going to say one equals and then
we're going to type in this exact
formula so
I leave it in the exact same form too
just to make sure there's absolutely no
way I can make a mistake
answer whoops he says as he makes a
mistake
I'm just going to keep pressing equals
right so we need to do two decimal
places so slightly less painful than it
was before
um X1 is equal to 1 x 2 is equal to
one point each result four decimal
places okay so six zero nine four
it's three we're going to press equals
again
one point that changes by a lot so I'm
not even gonna
consider that
and then that'd be five
again just pause the video if you want
to read the numbers to make sure I'm not
making a silly mistake
and making sure that you get the same
answers as well
okay yeah we're still nowhere near being
the same
getting closer though
there we are okay now we're cooking with
gas 1.4231
and again I am attempting to keep them
roughly in line with each other just to
make it
nicer and again we want to make sure it
runs the same number in two decimal
places so right now it doesn't
1.4330 okay we're getting really close
now
so 43
yes we've got four two and then four
three
interesting okay
so it looks like we have got our
solution
so if you notice both of these round
to 1.43
to 2dp
so
does it say calculate the root so the
root equals
1.43
2 DP and if we were to keep pressing
equals you should notice that still four
three four three four three and so on
right because it only gets more precise
and then eventually your calculator will
just stop because it doesn't go any more
precise than that
perfect
not too bad for three marks it is kind
of a free three marks as long as you
don't make uh like a silly error
but
okay now this if you notice
you know if you have a shockingly good
memory
this is the exact question we did back
up
here it's the very first question okay
so what we're going to do with this is
I'm actually going to
keep an eye on this so we could even
move the question up to be there but
part three
if you remember rightly there were two
solutions right
uh there were was it crosses it
intersects twice
and it says use the iterative formula to
find Alpha correct to two decimal places
give the result of each iteration to
four decimal places okay
so
if you notice I need to pick a value
myself okay so I don't know all my kind
of X Norm X1 is right
however if I go back to the original
graph
Alpha
if you look here is the smaller value of
beta is smaller than beta right so it's
the smaller of the two solutions
so Alpha is going to be this one here
and beta is going to be this one here so
okay
pi over 2 is this value over here
and if I look at my sketch it should be
under half of pi over 2. so pi over 2 is
half of 3.14 so it's it's going to be
under 1.5 right
and it looks like it's really really
close to the beginning
like which does make a bit of sense
because they do increase quite rapidly
so if I just pick 0.1 as an example
let's see if we can do that so because
we want to pick a a number that is much
smaller so just to go through my logic
one more time
I know that it's going to be less than
pi over 2 right because it's on the left
hand side
bear in mind if I pick a value bigger
than pi over 2 I'm going to just get
something that goes off to Infinity
because it's nowhere near the actual
solution now the good thing is is even
if you pick something like 0.5 or 1 it
would still converge to Alpha so that's
a handy thing
so why did I pick 0.1 well I was being
cautious right if I know that roughly
here
is uh 1.5 roughly
then I want to make sure that I'm a lot
less than 1.5 so it doesn't go up to
Beta And then I think beta is Alpha
right so I'm just going to pick
something that's really quite close to
what um zero
that's where I got the idea of picking
uh 0.1 from okay so this formula is a
bit a bit more painful to sub in but you
know keep in mind it is just
substitution it's not you know the end
of the world and it says to do it to two
decimal places so 0.1 equals and then
we're just going to have a fraction
now there is also another thing
which um
you know I've seen some people get wrong
with this question
we need to be in Radiance mode
okay because the x-axis and also the
range is in radians however
I've seen a lot of people just kind of
jump straight into it and uh leave in
degrees the problem is you will still
get an answer it's just a you know won't
be the right one so kind of pointless
equals we get 3.19
and
so oops my bad I need to actually change
over to
the right value
so
I'm just going to enter it in one more
time
once a squared sine answer
over pi
sine answer
okay and the values I'm getting for
subbing those in are 0.7435
again we're just doing to four decimal
places
six four six two is equal to again
0.6615
0.6
574 ah good
if you notice both of these round
to 0.66
to 2 DP
so Alpha is going to equal 0.66
to 2 DP
perfect and now it says deduce the value
of beta so what your kind of natural
inclination might be is to just
sub it back into this formula there is a
weakness of iteration iterative formulas
is they'll only ever give you one
solution
okay which sucks a bit okay so what what
you need to do instead
is you need to actually use the fact
that this is sine
right so with sine in order to find out
the other trig values all you do again
you can you remember the cast diagram if
you'd like so
or if you use the graphs you can use the
graphs I'd personally use the class
diagram so we have one value in all
which is the 0.66
but then you'd also have
because it's a positive value right we
know it's positive because
it's in the positive quadrant so it's in
the top
so to work out that value you just do
beta equals Pi minus that because again
remember this is pi over 2. that's pi
so Pi minus 0.66 which if you put into a
calculator you should get 2.4
eight
perfect how do I know it's sine well
simple cosec
just equals one over sine
right so hopefully that makes a bit more
sense with regards to that and that kind
of brings us to the end of the iteration
kind of topic the key thing is is that
if you've got through this video and
you're happy that's really great but all
you need to do is go uh go on to you
know flip Academy go through some
questions and sketch as many graphs as
possible and just make sure that you're
okay with rearranging algebra okay if
not you can find videos doing those on
the website but until then I shall see
you in the next one