NUMERICAL METHODS Flashcards

1
Q

Why do we need numerical methods ?

A

Because behind polynomial 4 there is no formula to solve roots, so to find roots and solve equations we need numerical methods

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Change of sign method, what is it

What are the CONDTIONS

A

Thisnis when you habe values and you test for y, and if you get a CHANGE of sign this means there is ATLEAST 1 (could be more ) roots between these two x values

However this is only true when the CURVE IS CONTINOUS BETWEEN THESE TWO POINTS, if not, then there could be asymptotes or a discontinuity between , and still work, but no root

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

So change of sign digestion full

A

If there’s a change of sign AND the curve is CONTINOUS there is ATLEAST 1 ROOT between those two points

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How to do the change of sign , all the steps

A

Get on to one side,
Must introduce a function , so LET F(X) = etc
- now can do f( a) = , f(b) =
As there is a change of sign AND the function is CONTINOUS between a and b, there must be atleast one root between a and b

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

If there is no change of sign and curve is CONTINOUS , does that mean there are NO roots between here?

A

NO, it means we don’t know, because there could be a root and as we have no change of sign our values too far,

Or no roots at all

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

How to show that root is correct to certain dp?

A

Take upper and lower bound and sub and show there is a sign change so CONTINOUS means there is a root between this interval therefore it’s correct to this number of dp

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Assuming we don’t know it’s CONTINOUS, what are thus the 3 ways that change or sign fails

Spec points LEARN

A

1) if it’s not CONTINOUS and thus a vertical asymtope in between ( change of sign no root)
2)if there’s a repeated root ( never a change of sign but a root)
3) if the range is too large ( several roots, so no change of sign but hella roots)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

How does fixed point iteration fail?

A
  • either it doesn’t converge to root you want
  • or jus diverges away and never hits
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What condition means it will never converge at a root?

A

When the grsdient of the graph at root is not between -1 < grad <1 . When this happens it does not converge

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

When does staircase / cobeweb form?

A

When the gradient at root is negaitve cobweb , when positive staricade

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

How to do fixed point iteration, what to ALWAYS DO ONCE FOUND A ROOT TO DO IMPORTANT

A

1) make f (x) in form x = g(x) so roots of this are roots of f(x)
2) make recurrence , and start with x0
3) spam recurrence until get answer to dp

NOW MUST CHECK and verify using change of sign , go back to original f(x)
- if verified then calm, if not continue

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Again what MUST YOU DO when finding root with fixed point

A

Verify using changing of sign ALWAYS

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

So how to try and converge at the other root?

A

The only way I’d to change the rearrangement originally, this will try converge ar other root, such that grsdient is now between -1 and 1!

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

How does Newton raphsom work?

A

Starting value, finds tangent, goes to x axis, goes back to y, tangent, keeps doing to home in

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

3 ways Newton raphsom fails ? LEARN

A

1) if you sub in a stationary point, this is when f prime x is =0, and thus you’ll get 1/0 undefined
2) using change of sign you know there’s a root between ( assuming CONTINOUS ). However , using these values homes in on OTHER ROOTS, and completely missed this one

3) asymtope or discontinuities like change of sign !

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

How to home in on right root, the only way?

A

Only way is to lick a value close to the root, but this could be hard to program

17
Q

How to use Newton raphsom to find an approximation to stationary point?

A

Just let f (x) this time be dy / dx, we always set f(x) to 0 so setting it to 0 here is equivalent to the grsdient function and thus the roots of this are the STATIONARY POINTS

18
Q

How to confirm your answer for Newton raphsom on calc?

A

Sub in the f(x), and use shift solve and enter the starting value

  • now this will give you the answer if you spam answer!
19
Q

How to state the error between two bounds if we know a root lies ( say 1, 2)

A

Can say the root is Half way. 1.5 with error +-0.05

20
Q

How to show that equation has one real root only?

A

Differntiate and difnnd turning ooints ,

As bith turning points are below or above the x axis, means that there is only ONE ROOT!

21
Q

Also the Newton rapshom ,au co oleltey diverge
When is this likely to happen

A

Symmetric graoh with root at x =0

Typically if your starting value is close to a dtatuonary poijt. It’s gonna shoot oof

22
Q

Trapezium rule, what’s the relationship between ordinates and numbers of strips?

A

Always one more ordinate than number of strips, and number of strips is h in formula

23
Q

How to do trapezium

A

1) find strips
2) then make table from a and add strip length each time until b.
3) fill out for y ( use calc)

Should get one more ordinate

Then use formula
4) can check using integration but might not necessarily be true. This becaude if curve increases too much then could be overestimate etc

24
Q

How to increase accuracy for trapezium rule?

A

Run more strips

25
Q

How to tell if trapezium is overestimate / underestimate

A

If Region of curve concave up means the trapeziums alwayd bigfer so overestimate

Vice verca

26
Q

What if the concavity changes, how to say if over or underedtimate

A

If changed can’t tell

27
Q

If the values of y give 0 what shape is it

A

A trinagle

28
Q

Why do we use rectangles ?

A

We use them to find an UPPER OR LOWER BOUND to the area

29
Q

What is the only time we can use rectangles to find an upper bound / lower bound

A

The only time is when there IS NO TURNING POINT, befaude if just goes one way the all the rectangles will be above or below and so can say upper snd lower, but if it changed then it mixes

30
Q

Give answer to a degree of accuracy means what

A

Round ti number which agrees and state the dp

31
Q

When do you use the traprexium rule to give you a better value for upper or lower bound?

A

When jtspurely concave up or down, no inflection, then that means your trleaixum method will obv give better approximation

However when point of inflection, trapezium will go down and then up so csntuse it to improve on bounds

32
Q

How to show that we can’t tell underestimate overestimate

A

Find second derrivstive to see cincsvity, show that the Vinci with is so between the roots, suggesting it’s changed concavitirs, and hence the trapeziums before and after would be over and lower so we can’t tell if overall its and underestimate of overestimate

(To see what it changed from , I out left and right)