MATH 417 Lecture 14

From Notes
Jump to navigation Jump to search

« previous | Thursday, February 27, 2014 | next »

End Exam 1 content


Exam Review

Section 2.1: Bisection

(#10)

Find root in using bisection:

  1. f(-1.5) < 0
  2. f(2.5) > 0
  3. f(0.5) > 0
  4. f(-0.5) < 0
  5. f(0) = 0 ← stop


Section 2.2: Fixed Point

for

Find and take and recursively find for


  1. for any , we need



In our case, we take :


Find the number of iterations needed to get accuracy :

Choose , now

Therefore take

Newton's Method

,

If is concave-up, choose right endpoint: Newton's method works best when and

In our example above,


Chapter 3: Interpolation

Given , interpolate as a polynomial


Lagrange


Newton

Example: (9th ed: 124 #7): Find polynomial that interpolates at 0, 1, 2, 3 at the point (that is, find ) given:

  • (the line through and )
  • (the line through and )
  • (the parabola through , , and has value at

We know the lines through f(0)

x   f(x)
--------
0    1
        2
1    3       -1
        0             (a-1)/6
2    3       (a-3)/2
        a-3
3    a


Now , hence and .


Therefore, our interpolating polynomial is

and evaluated at , we get

Hermite

A tomato is launched at a height of 10 ft with an initial speed of 10 ft/s. The tomato hits a person standing 50 ft away and has a final speed of -20 ft/s

 x   f(x)  f'(x)
 0    10
            10
 0    10          -51/250
            -1/5           -12/3125
 50   0           -99/250
            -20
 50   0


Whoa! The trajectory of an object is parabolic (disregarding friction or air resistance), and given only two points with derivatives (positions and velocities), we can reconstruct the entire trajectory exactly. The same can be done with three points, since three points uniquely defines a parabola.

Section 4.1: Differentiation

(9th ed. #22) Approximate using , Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle f(x_0)} , , to accuracy


Taylor series around :

Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \begin{align} f(x_0-h) &= f(x_0) - h \, f'(x_0) + \frac{h^2}{2} \, f''(x_0) - \frac{h^3}{6} \, f'''(x_0) + O(h^4) \\ f(x_0+h) &= f(x_0) + h \, f'(x_0) + \frac{h^2}{2} \, f''(x_0) + \frac{h^3}{6} \, f'''(x_0) + O(h^4) \\ f(x_0+2h) &= f(x_0) + 2h \, f'(x_0) + \frac{(2h)^2}{2} \, f''(x_0) + \frac{(2h)^3}{6} \, f'''(x_0) + O(h^4) \end{align}}

Multiply equations by , Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle B} , and Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle C} , respectively and solve for:


Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle A \, f(x_0 - h) + B \, f(x_0 + h) + C \, f(x_0 + 2h) = (A + B + C) \, f(x_0) + h(-A + B + 2C) \, f'(x_0)} .

We get the following system of equations

Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \begin{cases} -A + B + 2C &= 1 \\ A + B + 4C &= 0 \\ -A + B + 8C &= 0 \end{cases} \quad \implies \quad \left\langle A,B,C \right\rangle = \left\langle -\frac{1}{3}, 1, -\frac{1}{6} \right\rangle}


Alternatively, we can find Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle P_3'(x_0)} via the interpolating polynomial above, but that usually involves more work.


Sections 4.3 and 4.7: Integration

(9th ed. #20)


Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \int_{0}^{1} f(x) \,\mathrm{d}x \approx \frac{1}{2} \, f(x_0) + c_1 \, f(x_1)}

Find the rule with best DAC (which will be the Gaussian rule since scaling factor is 1/2)

  1. Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \int_{0}^{1} 1 \,\mathrm{d}x = 1 = \frac{1}{2} + c_1} , so Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle c_1 = \frac{1}{2}}
  2. Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \int_{0}^{1} x \,\mathrm{d}x = \frac{1}{2} = \frac{1}{2} \, x_0 + \frac{1}{2} \, x_1 }
  3. Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \int_{0}^{1} x^2 \,\mathrm{d}x = \frac{1}{3} = \frac{1}{2} \, x_0^2 + \frac{1}{2} \, x_1^2}

Solve for Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle x_0, x_1 = \frac{1}{2} \pm \frac{\sqrt{3}}{6}} .

Degree of accuracy is Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle 2 \cdot 2 - 1 = 3} .

Note: Every Gaussian rule is symmetric


(9th ed. #13)

Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \int_{0}^{2} f(x) \, \mathrm{d}x \approx 4} by trapezoid and Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \approx 2} by simpson's rule. Find Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle f(1)} .


Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \begin{cases} \frac{2}{2} \, \left( f(0) + f(2) \right) &= 4 \\ \frac{2}{6} \, \left( f(0) + 4f(1) + f(2) \right) &= 2 \end{cases} \quad \implies \quad 4 + 4f(1) = 6 \quad \implies \quad f(1) = \frac{1}{2}}