4.1/
The derivative
- Derivative:
- The forward/backward difference formula:
Derivative formulat [at \(x = x_0\)]
This formula is known as the forward-difference formula if
and the backward-difference formula if- Derivation:
Error Bound:
- Derivation:
- The \((n + 1)\)-point formula to approximate \(f'(x_j)\):
- Derivation:
- Derivation:
- Three-point Formula:
for each \(j = 0, 1, 2\), where the notation \(\zeta_j\) indicates that this point depends on \(x_j\).
- Derivation:
- Derivation:
Three-Point Formulas
- Equally Spaced nodes:
The formulas from Eq. (4.3) become especially useful if \(x_1 =\)
\(x_2 =\) - Three-Point Endpoint Formula:
The approximation in Eq. (4.4) is useful at
Because:
Errors: the errors in both Eq. (4.4) and Eq. (4.5) are
On the interval:
- Three-Point Midpoint Formula:
Errors:
This is because Eq. (4.5) uses data on \(\ \ \ \ \ \ \ \ \ \ \ \ \ \\) and Eq. (4.4) uses data \(\ \ \ \ \ \ \ \ \ \ \ \ \ \\)
Note also that f needs to be evaluated at \(\ \ \ \ \ \ \ \ \ \ \ \ \ \\) in Eq. (4.5), whereas in Eq. (4.4) it \(\ \ \ \ \ \ \ \ \ \ \ \ \ \\)On the interval:
Five-Point Formulas
- What?
- Why?
-
Error:
The error term for these formulas is - Five-Point Midpoint Formula:
Used for approximation at
On the interval:
- Five-Point Endpoint Formula:
Used for approximation at
Left-endpoint approximations are found using this formula with \(\ \ \ \ \ \ \ \ \ \ \ \ \ \\) and right-endpoint approximations with \(\ \ \ \ \ \ \ \ \ \ \ \ \ \\).
The five-point endpoint formula is particularly useful for \(\ \ \ \ \ \ \ \ \ \ \ \ \ \\)
On the interval:
Approximating Higher Derivatives
- Approximations to Second Derivatives:
On the interval:
- Derivation:
- Why does the error bound change?
- Why does the error bound change?
- Derivation:
- Second Derivative Midpoint Formula:
On the interval:
- Derivation:
Error Bound: If \(f^{(4)}\) is \(\ \ \ \ \ \ \ \ \ \ \ \ \ \\) on \(\ \ \ \ \ \ \ \ \ \ \ \ \ \\) it is \(\ \ \ \ \ \ \ \ \ \ \ \ \ \\) , and the approximation is \(\ \ \ \ \ \ \ \ \ \ \ \ \ \\) .
- Derivation:
Round-Off Error Instability
- Form of Error:
- We assume that our computations actually use the values \(\ \ \ \ \ \ \ \ \ \ \ \ \ \\) \(\ \ \ \ \ \ \ \ \ \ \ \ \ \\)
- which are related to the true values \(\ \ \ \ \ \ \ \ \ \ \ \ \ \\) \(\ \ \ \ \ \ \ \ \ \ \ \ \ \\)
by:
\(\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \\) &
\(\ \ \ \ \ \ \ \ \ \ \ \ \ \\) \(\ \ \ \ \ \ \ \ \ \ \ \ \ \\)
- The total error:
It is due to \(\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \\)
- Error Bound:
-
ASSUMPTION: \(\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \\) \(\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \\)
-
ERROR:
-
- Reducing Truncation Error:
- How? \(\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \\) \(\ \ \ \ \ \ \ \ \ \ \ \ \ \\)
- Effect of reducing \(h\):
- Conclusion:
4.2/
Extrapolation
- What?
- Extrapolation is used to
- Extrapolation can be applied whenever
- Suppose that for each number \(h \neq 0\) we have a formula \(N_1(h)\) that approximates an
unknown constant \(\ \ \ \ \ \ \ \\), and that the truncation error involved with the approximation has the
form,
\(\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \\) - The truncation error is \(\ \ \ \ \ \ \ \ \ \ \ \ \ \\)
where,
(1)
(2)
and, in general,
\(\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \\)- The object of extrapolation is
- Extrapolation is used to
- Why?
-
- The \(\mathcal{O}(h)\) formula for approximating \(M\):
The First Formula:
The Second Formula:
- The \(\mathcal{O}(h^2)\) approximation formula for M:
- Derivation:
- Derivation:
- When to apply Extrapolation?
(1)(2)
- The \(\mathcal{O}(h^4)\) formula for approximating \(M\):
- The \(\mathcal{O}(h^6)\) formula for approximating \(M\):
- The \(\mathcal{O}(h^{2j})\) formula for approximating \(M\):
- Derivation:
- Derivation:
- The Order the Approximations Generated:
- How to actually calculate a derivative using the Extrapolation formula:
Deriving n-point Formulas with Extrapolation
- Deriving Five-point Formula:
4.3/
Numerical Quadrature
- What?
- How?
- Based on:
- Method:
- Derivation:
- Derivation:
- The Quadrature Formula:
- The Error:
The Trapezoidal Rule
- What?
- Precision
- The Trapezoidal Rule:
- Derivation:
- Derivation:
- Error:
Simpson’s Rule
- What?
- Simpson’s Rule:
- Derivation:
- Derivation:
- Precision
- Error:
Measuring Precision
- What?
- Precision [degree of accuracy]:
- Precision of Quadrature Formulas:
- The degree of precision of a quadrature formula is \(\mathcal{O}\)
- The Trapezoidal and Simpson’s rules are examples of \(\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \\)
- Types of Newton-Cotes formulas:
- The degree of precision of a quadrature formula is \(\mathcal{O}\)
Closed Newton-Cotes Formulas
- What?
- It is called closed because:
- It is called closed because:
- Form of the Formula:
where,
- The Error Analysis:
- Degree of Preceision:
- Even-n: the degree of precision is \(\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \\)
- Odd-n: the degree of precision is
- Closed Form Formulas:
- \(n = 1\): \(\ \ \ \ \ \ \ \ \ \ \ \ \ \\) rule
- \(n = 2\): \(\ \ \ \ \ \ \ \ \ \ \ \ \ \\) rule
- \(n = 3\): \(\ \ \ \ \ \ \ \ \ \ \ \ \ \\) rule
- n = 4:
- \(n = 1\): \(\ \ \ \ \ \ \ \ \ \ \ \ \ \\) rule
Open Newton-Cotes Formulas
- What?
- They \(\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \\)
- They use
- This implies that
- Open formulas contain \(\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \\)
- Form of the Formula:
where,
- The Error Analysis:
- Degree of Preceision:
- Even-n:
- Odd-n:
- Open Form Formulas:
- \(n = 0\): [PUT NAME HERE]
- \(n = 1\):
- \(n = 2\):
- n = 3:
- \(n = 0\): [PUT NAME HERE]
4.4/
Composite Rules
- What?
- Why?
-
- Notice:
Composite Simpson’s rule
- Composite Simpson’s rule:
- Error in Comoposite Simpson’s Rule:
Error:
- Theorem [Rule and Error]:
- Algorithm:
Composite Newton-Cotes Rules
- Composite Trapezoidal rule:
- Composite Midpoint rule:
Round-Off Error Stability
- Stability Property:
- Proof:
4.5/
Main Idea
- What?
- Why?
- Error in Composite Trapezoidal rule:
This implies that \(\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \\)
- Extrapolation Formula:
Extrapolation then is used to produce \(\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \\) approximations by
and according to this table,
Calculate the Romberg table this way:
- Algorithm:
4.6/
Main Idea
-
- What?
-
-
- Why?
-
Approximation Formula:
\(\int_{a}^{b} f(x) dx =\)
- Derivation:
- Derivation:
- Error Bound:
- Error relative to Composite Approximations:
- Error relative to True Value:
- ERROR DERIVATION:
This implies
- Error relative to Composite Approximations:
- Procedure:
When the approximations in (4.38)
Then we use the error estimation procedure to
If the approximation on one of the subintervals fails to be within the tolerance \(\ \ \ \ \ \ \ \\), then
- Algorithm:
- Derivation:
4.7/
Main Idea
-
- What?
-
-
-
-
To Measure Accuracy:
-
-
-
The Coefficients \(c_1, c_2, ... , c_n\) in the approximation formula are \(\ \ \ \ \ \ \ \ \ \ \ \ \ \\) ,
and,
The Nodes \(x_1, x_2, ... , x_n\) are restricted by/to \(\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \\)
This gives,
The number of Parameters to choose is \(\ \ \ \ \ \ \ \ \ \ \ \ \ \\)
-
-
-
If the coefficients of a polynomial are considered parameters,
This, then, is
-
- Why?
Legendre Polynomials
- What?
- Why?
- Properties:
- The roots of these polynomials are:
- The roots of these polynomials are:
- The first Legendre Polynomials:
\(P_0(x) = \ \ \ \ \ , \ \ \ \ \ \ \ \ \ \ \ \ \ \ P_1(x) = \ \ \, \ \ \ \ \ \ \ \ \ \ \ \ \ \ P_2(x) = \ \ \ \ \ \ \ \ \ \ ,\)
\(P_3(x) = \ \ \ \ \ \ \ \ ,\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ P_4(x) = \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \\) - Determining the nodes:
- PROOF:
The nodes \(x_1, x_2, ... , x_n\) needed to
- PROOF:
Gaussian Quadrature on Arbitrary Intervals
- What?
- The Change of Variables:
- Gaussian quadrature [arbitrary interval]:
4.8/
Approximating Double Integral
- What?
- Why?
- Comoposite Trapezoidal Rule for Double Integral:
\(\ \ \iint_R f(x,y) \,dA \ =\) \(\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \\)- DERIVATION:
- DERIVATION:
- Comoposite Simpsons’ Rule for Double Integral:
- Rule:
- Error:
- Derivation:
- Rule:
Gaussian Quadrature for Double Integral Approximation
- What?
- Why?
- Example:
Non-Rectangular Regions
- What?
Form:
or,
- How?
- We use
- Step Size:
- x:
- y:
- Simpsons’ Rule for Non-Rect Regions:
- Simpsons’ Double Integral [Algorithm]:
- Gaussian Double Integral [Algorithm]:
Triple Integral Approximation
-
- What?
-
- On what?
-
- Form:
- Form:
- Gaussian Triple Integral [Algorithm]: