Chapter 6: Roots (Open Methods)

studied byStudied by 0 people
0.0(0)
Get a hint
Hint

true

1 / 57

encourage image

There's no tags or description

Looks like no one added any tags here yet for you.

58 Terms

1

true

(T/F) open methods require only a single starting value or two starting values that do not necessarily bracket the root

New cards
2

true

(T/F) open methods sometimes diverge or move away from the true root

New cards
3

- fixed point iteration
- Newton- Raphson
- Secant
- Modified Secant

open methods include

New cards
4

utilizing fixed point iteration(one point / successive substitution) to get x on the left hand side.

for more on fixed point refer to lecture powerpoint

how do open methods predict a root?

New cards
5

bisection and secant method. It's good because it combines them

Fzero uses

New cards
6
<p>- allows one to predict a new value of x as a function of an old value of x<br><br>Thus, given an initial guess at the root xi , Eq. (6.1) can be used to compute a new estimate xi+1 as expressed by the iterative formula<br><br>&amp; so on<br><br>x(i+2) = g(x(i + 1))</p>

- allows one to predict a new value of x as a function of an old value of x

Thus, given an initial guess at the root xi , Eq. (6.1) can be used to compute a new estimate xi+1 as expressed by the iterative formula

& so on

x(i+2) = g(x(i + 1))

what is the advantage of fixed point iteration?

New cards
7
term image

approximate relative error is given by this formula

New cards
8
<p>the approximate percent relative error is halved after each iteration</p>

the approximate percent relative error is halved after each iteration

fixed point iteration has linear convergence and can be proved by

New cards
9
<p>- separating the equation into two components and then graphing the components separately and seeing where they intersect. <br><br>- just graph the original function and see where it intersects the x axis</p>

- separating the equation into two components and then graphing the components separately and seeing where they intersect.

- just graph the original function and see where it intersects the x axis

two alternative graphical methods for determining the root of an equation are

New cards
10
<p>the intersection of the two components of the equation (it's the same thing as the root of the function) (denoted by red circle)<br><br>-- idk if abscissa will always be the root!</p>

the intersection of the two components of the equation (it's the same thing as the root of the function) (denoted by red circle)

-- idk if abscissa will always be the root!

what is an abscissa

New cards
11
<p>For the first case (Fig. 6.3a), the initial guess of x0 is used to determine the corresponding point on the y2 curve [x0, g(x0)]. The point [x1, x1] is located by moving left horizontally to the y1 curve. These movements are equivalent to the first iteration of the fixed-point method:<br>x1 = g(x0)<br>Thus, in both the equation and in the plot, a starting value of x0 is used to obtain an esti- mate of x1. The next iteration consists of moving to [x1, g(x1)] and then to [x2, x2].</p>

For the first case (Fig. 6.3a), the initial guess of x0 is used to determine the corresponding point on the y2 curve [x0, g(x0)]. The point [x1, x1] is located by moving left horizontally to the y1 curve. These movements are equivalent to the first iteration of the fixed-point method:
x1 = g(x0)
Thus, in both the equation and in the plot, a starting value of x0 is used to obtain an esti- mate of x1. The next iteration consists of moving to [x1, g(x1)] and then to [x2, x2].

fixed point iteration graphically

New cards
12

|g′(x)| < 1.

Convergence for fixed point iteration occurs when

New cards
13
term image

fixed point iteration convergence

New cards
14
term image

fixed point iteration divergence

New cards
15

decrease with each iteration

for fixed point iteration, if |g′| < 1 , the errors

New cards
16

grow

for fixed point iteration, if |g′| > 1, the error

New cards
17
<p>positive, and hence the errors will have the same sign (a and c)</p>

positive, and hence the errors will have the same sign (a and c)

If for fixed point iteration, the derivative is positive, the errors will be

New cards
18
<p>change sign on each iteration (b and d)</p>

change sign on each iteration (b and d)

If for fixed point iteration, the derivative is negative, the errors will

New cards
19
<p>if the initial guess of the root is xi , a tangent can be extended from the point [xi , f (xi )]. The point where this tangent crosses the x axis usually represents an improved estimate of the root.</p>

if the initial guess of the root is xi , a tangent can be extended from the point [xi , f (xi )]. The point where this tangent crosses the x axis usually represents an improved estimate of the root.

Newton Raphson method

New cards
20
term image

for the newton raphson method, The first derivative at x is equivalent to the slope ... which can be rearranged to ..

New cards
21

no. Well, the percent relative error at each iteration decreases much faster for newton than fixed

usually is the fixed point iterative method faster than the newton raphson method?

New cards
22

proportional to the square

for newton raphson method, the error should be roughly ..... of the previous error

NOTE: the number of significant figures of accuracy approximately doubles with each iteration

New cards
23

is exhibited by newton raphson method because the error is roughly proportional to the square of the previous error... this means the number of significant figures of accuracy approximately doubles with each iteration

quadratic convergence

New cards
24
term image

example of slow convergence using newton raphson method

New cards
25
<p>* multiple roots<br><br><b> when the first guess is in a region where the slope is near zero (so first iteration flings solution far away!! so it takes time to converge back in on it (</b>nature of the function basically*) -- figure on left <br><br>* (figure a) inflection point (f'(x) = 0) occurs in the vicinity of a root, causing the iterations to diverge from the root. So slow when root is at an inflection point<br><br>* (figure b) illustrates the tendency of the Newton-Raphson technique to oscillate around a local maximum or minimum. Such oscillations may persist, or, as in Fig. 6.6b, a near-zero slope is reached whereupon the solution is sent far from the area of interest. <br><br>* (fig C) encountering near zero slopes (disaster cause a derivative of 0 causes division by 0)<br><br>* (fig d) tangent line shoots off horizontally. never hitting the x axis</p>

* multiple roots

when the first guess is in a region where the slope is near zero (so first iteration flings solution far away!! so it takes time to converge back in on it (nature of the function basically*) -- figure on left

* (figure a) inflection point (f'(x) = 0) occurs in the vicinity of a root, causing the iterations to diverge from the root. So slow when root is at an inflection point

* (figure b) illustrates the tendency of the Newton-Raphson technique to oscillate around a local maximum or minimum. Such oscillations may persist, or, as in Fig. 6.6b, a near-zero slope is reached whereupon the solution is sent far from the area of interest.

* (fig C) encountering near zero slopes (disaster cause a derivative of 0 causes division by 0)

* (fig d) tangent line shoots off horizontally. never hitting the x axis

when is there slow convergence for newton raphson method? (4)

New cards
26

true. its convergence depends on the nature of the function and on the accuracy of the initial guess.

(T/F) There is no general convergence criterion for Newton-Raphson

New cards
27
<p>when derivatives are hard to evaluate, so use the backward finitde divided difference</p>

when derivatives are hard to evaluate, so use the backward finitde divided difference

when can the secant method be used?

New cards
28
<p>uses the finite divided difference and two arbitrary initial guesses <br><br>used when derivatives are hard to evaluate</p>

uses the finite divided difference and two arbitrary initial guesses

used when derivatives are hard to evaluate

secant method

New cards
29

because f(x) is not required to change signs between the estimates

why is the secant method not considered a bracketing method?

New cards
30
<p>a fractional perturbation of the independent variable to estimate f'(x)<br><br>where sigma is a small perturbation fraction.</p>

a fractional perturbation of the independent variable to estimate f'(x)

where sigma is a small perturbation fraction.

instead of using arbitrary initial guesses for the secant method, what can you do

New cards
31
<p>a small perturbation fraction is used instead of two arbitrary initial guesses</p>

a small perturbation fraction is used instead of two arbitrary initial guesses

modified secant method

New cards
32
term image

modified secant method example

New cards
33

the perturbation might not be a proper value. It sigma is too small, the method can be swamped by round-off error caused by subtractive cancellation in the denominator of Eq. (6.9). If it is too big, the technique can become inefficient and even divergent. How- ever, if chosen correctly, it provides a nice alternative for cases where evaluating the derivative is difficult and developing two initial guesses is inconvenient.

what are possible errors that come with the modified secant method

New cards
34

hybrid approach that combined the reliability of bracketing with the speed of the open methods

chooses when to use which

didn't read this section (6.4) page 163

brent's mehod

New cards
35
<p>used to find the real root of a single equation. <br><br>takes in the function and an initial guess (open method) <br><br>or two guesses in a vector can also be passed. <br><br><br>(another card tells you more specifics)</p>

used to find the real root of a single equation.

takes in the function and an initial guess (open method)

or two guesses in a vector can also be passed.


(another card tells you more specifics)

fzero()

New cards
36

the guess that you need to pass needs to be a guess near the root. for example x^2 - 9 has two roots, so if you pass 0 it'll give you -3, if you pass 4, 3.

for fzero function, wat is a disadvantage,

New cards
37

it first performs a search to identify a sign change. This search differs from the incremental search described in Section 5.3.1, in that the search starts at the single initial guess and then takes increasingly bigger steps in both the positive and negative directions until a sign change is detected.

Then it does the fast methods (secant and inverse quadratic interpolation) unless an unacceptable result occurs (root estimate falls outside bracket), then bracketing method occurs.

once it finds an acceptable root (or gets closer to the root) it switches to the faster methods. Bisection typically dominates at first, but then switches to the other

how does the fzero function work if a single initial guess is passed,

New cards
38

secant and inverse quadratic interpolation

fast root finding methods

New cards
39
<p>[x,fx] = a vector containing the root x and the function evaluated at the root fx, options is a data structure created by the optimset function, and p1, p2... are any parameters that the function requires. Note that if you desire to pass in parameters but not use the options, pass an empty vector [] in its place.</p>

[x,fx] = a vector containing the root x and the function evaluated at the root fx, options is a data structure created by the optimset function, and p1, p2... are any parameters that the function requires. Note that if you desire to pass in parameters but not use the options, pass an empty vector [] in its place.

fzero syntax

New cards
40
term image

optimest function spills out all the data that occurred during the fzero function

New cards
41

bisection method and newton raphson method

for polynomials, which root finding method is utile for finding a single root

New cards
42

roots function

if we want to find all the roots of a polynomial, what do we use

New cards
43
<p>x is a column vector containing the roots and c is a row vector containing the polynomial coefficients</p>

x is a column vector containing the roots and c is a row vector containing the polynomial coefficients

roots function syntax

New cards
44
<p>treats it as an eigenvalue problem<br><br>creates a companion matrix by dividing the all the coefficients by the first coefficient then placing them in a matrix with 1s and 0s. The companion matrix has a useful property that its eigenvalues are the roots of the polynomial. <br><br>after it makes the matrix, it uses matlab's eigenvalue evaluation function to determine the roots of the polynomial.</p>

treats it as an eigenvalue problem

creates a companion matrix by dividing the all the coefficients by the first coefficient then placing them in a matrix with 1s and 0s. The companion matrix has a useful property that its eigenvalues are the roots of the polynomial.

after it makes the matrix, it uses matlab's eigenvalue evaluation function to determine the roots of the polynomial.

how does the roots function work

New cards
45

poly() function

inverse function of roots function is

New cards
46
<p>when passed the values of the roots, it returns the polynomial's coefficients. <br><br>where r is a column vector containing the roots and c is a row vector containing the polynomial's coefficients.</p>

when passed the values of the roots, it returns the polynomial's coefficients.

where r is a column vector containing the roots and c is a row vector containing the polynomial's coefficients.

poly() function

New cards
47
term image

example, finding roots of polynomial. using polyval(), poly(), roots(), and deconv()

(1/3)

New cards
48
term image

(2/3)

New cards
49
term image

(3/3)

New cards
50

- combines reliability of bracketing with speed of open methods.

- chooses when to do which.

for bracketing method uses bisection and for open methods uses secant method or inverse quadratic interpolation

Brent's method

New cards
51

secant method is sometimes referred to as such because the lines that connects the two guesses is used to estimate the new root estimate by observing where it crosses the x axis

linear interpolation method

New cards
52
<p>determining a sideways quadratic function that goes through 3 points and observing where it intersects the x axis<br>the point where it intersects the x axis will be used as the new root estimate<br><br>y = 0 corresponds to the root x(i+1)<br><br><b>this equation finds the root</b></p>

determining a sideways quadratic function that goes through 3 points and observing where it intersects the x axis
the point where it intersects the x axis will be used as the new root estimate

y = 0 corresponds to the root x(i+1)

this equation finds the root

inverse quadratic interpolation

New cards
53
<p>the parabola might not intersect the x axis (when the parabola has complex roots)<br><br>so inverse quadratic interpolation was created to switch the axis and make a sideways graph</p>

the parabola might not intersect the x axis (when the parabola has complex roots)

so inverse quadratic interpolation was created to switch the axis and make a sideways graph

what is the flaw with quadratic interpolation not inverse

New cards
54
<p>inverse quadratic interpolation is better as seen in the picture</p>

inverse quadratic interpolation is better as seen in the picture

comparing inverse quadratic interpolation vs secant

New cards
55
term image

inverse quadratic interpolation example

New cards
56
term image

reversing x and y in this equation will yield a quadratic in x

New cards
57
term image

quadratic in y is made using this equation

New cards
58
<p>If the three y values are not distinct (i.e., yi-2 = yi-1 or yi-1 = yi), an inverse quadratic function does not exist.<br><br>If we arrive at a situation where the y values are not distinct, we can always revert to the less efficient secant method to generate a root using two of the points. If yi 2 yi 1, we use the secant method with xi-1 and xi. If yi-1 yi, we use xi-2 and xi-1.</p>

If the three y values are not distinct (i.e., yi-2 = yi-1 or yi-1 = yi), an inverse quadratic function does not exist.

If we arrive at a situation where the y values are not distinct, we can always revert to the less efficient secant method to generate a root using two of the points. If yi 2 yi 1, we use the secant method with xi-1 and xi. If yi-1 yi, we use xi-2 and xi-1.

when does inverse quadratic interpolation not work

New cards

Explore top notes

note Note
studied byStudied by 23 people
Updated ... ago
5.0 Stars(2)
note Note
studied byStudied by 41 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 11 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 46 people
Updated ... ago
4.0 Stars(1)
note Note
studied byStudied by 91 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 9 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 26 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 30060 people
Updated ... ago
4.4 Stars(24)

Explore top flashcards

flashcards Flashcard36 terms
studied byStudied by 9 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard117 terms
studied byStudied by 66 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard27 terms
studied byStudied by 16 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard103 terms
studied byStudied by 16 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard47 terms
studied byStudied by 7 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard29 terms
studied byStudied by 15 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard46 terms
studied byStudied by 4 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard40 terms
studied byStudied by 65 people
Updated ... ago
5.0 Stars(1)