Y2, C10 - Numerical Methods Flashcards

1
Q

How would you show that f(x) = e^x +2x - 3 has a root between x = 0.5 and x = 0.6

A

Solve f(0.5) and f(0.6)
= -0.35127
= 0.02211
Because CHANGE IN SIGN and f(x) CONTINUOUS, root for f(x) is between 0.5 and 0.6

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

When is a function continuous

A

When you can trace it without taking your pen off the page

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

Does a change in sign always mean there isn’t a root

A

NO
The sign change method fails to detect a root if there were an even number of roots in that interval

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

g(x) = e^x-1 + x - 6
The root of g(x) = 0 is A
What is a suitable interval to show that A = 2.307 to 3 decimal places

A

[2.3065, 2.3075]

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

How do you solve f(x) = 0 by an iterative method

A

Rearrange into form x = g(x) and use the iterative formula x(n+1) = g(x(n))
Where n+1 and n are subscripts

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

The iterative formula:
x(n+1) = ln(6 - x(n)) + 1
x(0) = 2
is used to find an approximate value for A, calculate the values of x1, x2 and x3

A

x1 = ln(6 - x(0)) + 1
x1 = ln(6 - 2) + 1 = 2.3863
x2 = ln(6 - x(1)) + 1 = …
x3 = ln(6 - x(2)) + 1 = …

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

What does it mean if the x(n) values get closer and closer together

A

The iteration is successful and convergent

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

What does it mean if the x(n) values get further and further apart

A

The iteration has failed and is divergent

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

What does it mean if the x(n) values bounce back and forth between values

A

The iteration oscillates and is periodic / non-convergent

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

Do staircase diagrams always converge

A

NO, they can diverge

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

How do you draw staircase / cobweb diagrams

A

From x0, draw up to curve, across to line (y=x), then to curve etc.

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

What is the Newton-Raphson iteration formula for solving f(x) = 0

A

x(n+1) = xn - (f(xn)) / (f’(xn))
Where xn is the first x coordinate and f(xn) is the first y coordinate

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

Using the Newton-Raphson process, state the recurrence relation for f(x) = x^2 - x - 1

A

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

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

When can the Newton-Raphson method fail (3 ways)

A

When the starting x0 value is the stationary point
It can diverge (oscillate)
Can give approximation for a different (wrong) root

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

Why doesn’t the Netwon-Raphson method work when the starting x0 point is stationary

A

f’(x0) = 0
You cannot divide by 0 and f’(x0) is the denominator of the formula
The tangent will never meet the x-axis

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

How would you draw / follow a Newton-Raphson diagram

A

Draw a tangent from the point x0 and follow it to the x axis
Go vertically up or down from the x axis point to find the next value on the curve
Repeat

17
Q

Mark scheme: explain why the Newton-Raphson method cannot be used if the denominator = 0

A

Tangent to the curve would not meet the x-axis
OR
There is a stationary point at x = 0
OR
Tangent to the curve is horizontal

18
Q

What is f’(x) of 15000(0.85)^x - 1000sinx

A

Product rule
f’(x) = 15000 * (0.85)^x * ln(0.85) - 1000cos(x)