MATH 417 Lecture 12

From Notes
Jump to navigation Jump to search

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


Quiz

Approximate 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+3h)} given 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-h)} , 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)} , and to within 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 O(h^2)} accuracy

Lagrange

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_2(x)} (which has error 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 O(h^3)} ) and differentiate

Taylor Series

Recall that the taylor series 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 f} centered at 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} 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 f(x) = f(a) + (x-a) \, f'(a) + \dots}

In our case, we want to take the function at the point 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 - h} centered 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 x_0 + 3h} :


Integration

Suppose we are given and . Our goal for this example is to approximate with a linear function .

We can tell that DAC ≥ 1


  • Let , then
  • Let , then


we solve the equations above and come up with the trapezoidal rule.


The Best Rule

This requires solving for unknowns: .


Theorem. [Gaussian Rule]. There is only one rule with degree of accuracy based on points.

Proof.

quod erat demonstrandum


For two points, the gaussian rule is:

This has DAC = 3


Legendre Polynomials

This polynomial has real-valued zeroes

  1. with root , so the Gaussian rule is . can be found to be
  2. with roots , hence the Gaussian rule above.
  3. with zeroes , so the Gaussian rule is . The coefficients can be found to be , , and , respectively.


Note: the coefficients and points are always symmetric (about a symmetric interval)

Suppose we scale the gaussian rule for 3 points to the interval :

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}^{10} f(x) \,\mathrm{d}x \approx \frac{10-0}{2} \left( \frac{5}{9}\,f \left( 5 + \frac{\sqrt{3}}{3} \cdot 5 \right) + \frac{8}{9} \, f(5) + \frac{5}{9} \, f\left(5 - \frac{\sqrt{3}}{3} \cdot 5 \right) \right)}

We shift the points by 5 (to the midpoint of the