Solutions to equations Flashcards

1
Q

Subtraction method

A

For equation A = B
subtract B from A then see where it intercepts x axis

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

Criteria of methods

A

Needs to be continuous and fully defined in the required range
Some methods may converge to an asymptote which is bad

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

Sign test

A

check upper and lower bounds of calculated root and if one is positive and one negative then it is correct

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

When does sign test fail

A

When 2 roots are very close so sign change undetected
Repeated roots as there is no sign change

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

Interval bisection

A

2 values straddling the root to get interval, then split into two equal parts with one side + and one - until converge to the root
fails if an even number of roots in the interval

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

interval table

A

7 columns - r, a, sign of fa, b, sign of fb, c (a+b/2), sign of fc
then replace either a or b in the next row based on sign change
the solutions appear when two values on the same row round to the same degree

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

FPI setup

A

rearrange f(x) into x = g(x)
draw a line of x = g(x) and a line of y = x
(overlap = root)

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

how to FPI

A

choose an x value then draw a line from x,0 to the g(x) then draw horizontally to y = x then draw vertically to g(x) and continue until root reached

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

Staircase and cobweb

A

staircase is when gradient of derivative of initial guess is more than 0 - hence values slowly move in one difection
cobweb is when gradient of derivative of initial guess is less than 0 - so values fluctuate up and down

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

FPI Failure

A

if magnitude of gradient is more than 1 (i.e steeper than y = x) values will diverge away and fail, so f’(x0) needs to be less steep then 1 or -1

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

relaxation process

A

with x = g(x) get a guess of x then do :
1-λ(x) + λ g(x) as a new estimate

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

Best lambda value for relaxation

A

as close to the root as possible as the graph of g(x) with lambda subbed in will have a shallower gradient than original f(x) at the root

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

ensuring accuracy

A

do a few more iterations than needed and check values with sign tests

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

Newton-Raphson

A

Draw a tangent to the curve at x = initial guess, then next guess is where the tangent meets the x axis and continue

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

Newton raphson formula

A

x(n+1) = xn - f(x)/ f’(x)

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

newton raphson failure
and secant fixture

A

fails if close to stationary point (gradient near 0 so tangent diverges far), fails if first guess too far, fails for discontinuous or partially undefined graphs
Secant fixes by approximating the derivative/gradient

17
Q

Secant formula

A

f(x1)x0 - x1f(x0) / f(x1) - f(x0)

18
Q

secant graph

A

draw a straight line between x1 and x0 and x intercept is x2
then straight line between x1 and x2 (on the curve) and x intercept is x3 (extrapolate if needed)
repeat as many times as needed

19
Q

False position

A

estimate curve gradient with a straight line from A to B
then bisect the line with change of sign to get a better straight line (vertically match bisection)

20
Q

False position formula

A

c = af(b) - bf(a) / f(b) - f(a)
basically secant

21
Q

False position vs secant

A

FP always works but is slower
FP requires a sign change between iterations