Numerical Methods: Taylor Series, Root Finding, and More
Classified in Mathematics
Written at on English with a size of 2.39 KB.
Taylor Series
f(x+h) = f(x) + f'(x)h + f''(x)h2 /2! + f'''(x)h3 /3! + ...
Secant Method (Find Root)
- Rewrite as f(x)=0
- Set initial points
- f'(x2) = (f(x2) - f(x1)) / (x2-x1)
- New point becomes x2
- Iterate
LU Decomposition
A = LU
Crout's
Identity top
Doolittle
Identity bottom
- Set up LU
- Find components through matrix multiplication and solve for variables
Solving for b matrix
LUX=B
- Set UX = Y
- Solve LY = B using algebra
- Solve UX = Y using algebra
Norm
Absolute value of the largest row sum
Condition
||A||inf||A-1||inf
Gauss-Seidel
- Set each equation to a variable
- Use any initial values for the first equation
- Use the x1 from the first equation to solve x2
- Iterate (Fast version of Jacobi Method)
Discrete Least Squares Approximation
AX = B
- Make matrix A by [ n ∑(x) ∑(x2) ...]
- Make matrix B [ ∑(y) ∑(xy) ∑(x2y) ] column
- Solve for X
Gauss Quadrature
- Convert integral to limits -1 to 1 by:
∫abf(x)dx = ((b-a)/2) ∫-11f(((b-a)/2)x + ((b+a)/2))dx - Find the appropriate n-Point function
- Replace f(x) with the converted f(x). Ex: c1f(.6x1+.7)dx + c2f(.6x2+.7)dx
Numerical Differentiation
1st Order
- Forward: (f(x+h) - f(x)) / h
- Backward: (f(x) - f(x-h)) / h
- Central: (f(x+h) - f(x-h)) / 2h
2nd Order
- Forward: (f(x+2h) - 2f(x+h) + f(x)) / h2
- Backward: (f(x) - 2f(x-h) + f(x-2h)) / h2
- Central: (f(x+h) - 2f(x) + f(x-h)) / h2
3rd Order
- Forward: (f(x+3h) - 3f(x+2h) + 3f(x+h) - f(x)) / h3
- Backward: (f(x) - 3f(x-h) + 3f(x-2h) - f(x-3h)) / h3
- Central: (f(x+2h) - 2f(x+h) + 2f(x-h) - f(x-2h)) / 2h