Numerical Methods: A Study Guide
I. Study Guide Outline
A. Newton's Method for Non-Linear Systems (Lecture 02)
1. Understanding the Jacobian Matrix: Definition and computation for systems.
2. Applying Newton's Iteration: $X_{k+1} = X_k - [F'(X_k)]^{-1}F(X_k)$.
3. Example Applications: Solving systems of equations using Newton's
method.
4. Limitations: When Newton's method fails and why (e.g., non-invertible
Jacobian).
5. Secant Method: Understanding the formula and differences between the
secant method and Newton's method.
B. Solution of Linear Equation Systems (Lecture 03)
1. Vectors and Matrices: Definitions, types (row, column, identity), and basic
operations.
2. Gaussian Elimination:
• Forward Elimination: Understand the steps to reduce a system to upper
triangular form.
• Backward Substitution: Solving for variables in an upper triangular system.
1. Pivoting:
• Partial Pivoting: Why it's used and how to select pivot elements to improve
stability.
• Scaled Partial Pivoting: Understanding scale vector and index vector,
combining scaling with pivoting for better accuracy.
1. Determining Solution Existence: Conditions for unique, infinite, or no
solutions based on the reduced matrix.
2. Tridiagonal Systems: Algorithm for solving tridiagonal systems efficiently.
3. Gauss-Jordan Method: Reducing the matrix to an identity matrix.
C. Least Squares Regression (Lecture 04)
1. Linear Regression: Formulating the problem; understand why minimizing
the sum of squared errors.
2. Normal Equations: Deriving and solving the normal equations.
3. Example Applications: Performing linear regression on data sets.
D. Numerical Solutions to ODEs (Various Sources)
1. Taylor Series Method: Using Taylor Series Expansions to approximate the
value of a function.
2. Euler's Method:
• Standard Euler Method: Understanding the formula and its limitations
(accuracy, stability).
• Modified Euler's Method: Using the Mean Slope, finding the Mean Slope by
evaluating at both the Old and New Value.
1. Runge-Kutta Methods: (Specifically, 4th order)
• Formulae for each stage (k1, k2, k3, k4) and the final approximation,
understanding this method allows for high accuracy.
1. Milne's Method:
• Knowing when to use Milne's Method, know what starting values are needed
to proceed with solving this, using predictor and corrector methods.
1. Multistep Methods: *Adams-Bashforth predictor formula and Newton's
backward formula are all examples.
E. Advanced Topics (Various Sources)
1. Secant Method: Derivative free method, Understanding the formula.
2. Successive approximations and using the error tolerance to solve problems,
including how to obtain cubic convergence.
3. Newton's Bivariate Interpolation for Equispaced Points:
• Understanding spacing h in x and k in y, also understanding how to define
∆x f (x, y) and ∆y f (x, y).
1. Finite-difference approximations
• Understanding Taylor's expansions and their use in various derivates.
II. Quiz (Short Answer)
1. What is the Jacobian matrix, and why is it important in Newton's
method for systems of non-linear equations?
The Jacobian matrix contains the first-order partial derivatives of a vector-
valued function. It is used in Newton's method to approximate the inverse of the
derivative of the function, allowing for iterative updates towards the root.
2. Explain the difference between forward elimination and backward
substitution in Gaussian elimination.
Forward elimination transforms a system of linear equations into an upper
triangular form by systematically eliminating variables. Backward substitution
then solves the upper triangular system starting from the last variable and
working backwards to find the values of all variables.
3. Why is pivoting necessary in Gaussian elimination, and what is the main
goal of pivoting?
Pivoting is necessary to avoid division by zero or small numbers, which can
lead to numerical instability and inaccurate results. The main goal is to choose
the largest possible pivot element (in absolute value) to minimize round-off
errors and improve the stability of the solution.
4. Describe the difference between partial pivoting and scaled partial
pivoting.
Partial pivoting selects the largest element in the current column below the
pivot position as the next pivot. Scaled partial pivoting first scales each row by
the largest element in that row and then chooses the pivot element based on
these scaled values, which leads to better numerical stability when there are
large differences in the magnitude of matrix elements.
5. How can you determine if a system of linear equations has a unique
solution, infinite solutions, or no solution after performing Gaussian
elimination?
If, after Gaussian elimination, the matrix has a non-zero determinant (no zero
rows), the system has a unique solution. If there's a row of zeros with a
corresponding zero element in the result vector, the system has infinite
solutions. If the row of zeros corresponds to a non-zero element in the result
vector, there is no solution.
6. Explain the normal equations used to solve a linear regression problem.
What are you solving for?
The normal equations provide a method to find the coefficients (parameters)
that minimize the sum of squared errors in a linear regression model. The
normal equations are derived by setting the derivative of the sum of squared
errors with respect to each coefficient equal to zero and solving the resulting
system of linear equations.
7. Describe the steps for solving tridiagonal systems efficiently. What
makes them special?
Tridiagonal systems are solved efficiently using the tridiagonal matrix
algorithm (TDMA), which involves forward elimination and backward
substitution tailored to the structure of the matrix. Their special structure (only
diagonal, superdiagonal, and subdiagonal elements are non-zero) allows for
reduced computational complexity compared to general Gaussian elimination.
8. What is the main idea behind Euler's Method for solving ordinary
differential equations (ODEs), and what is one of its primary
limitations?
Euler's method approximates the solution of an ODE by using the derivative at
the current point to extrapolate the solution to the next point in time. A primary
limitation is that it is a first-order method, which means it can have low
accuracy, especially for large step sizes, and can suffer from stability issues.
9. Explain the use of the Mean Slope in the Modified Euler's Method.
The mean slope in the modified Euler's method is used to approximate the
average rate of change of the solution over the interval by averaging the slope at
the beginning and end of the interval. This method takes the old value and the
new value to calculate the Mean Slope.
10. When would you utilize Milne's Method for solving and what is needed
in order to complete the problem?
Milne's method relies on four starting values as it utilized multistep methods to
solve differential equations. These 4 starting values are needed in order to
continue to the last step of the problem which utilizes a predictor and corrector,
this is done to predict future values of the solution based on past values and the
corrected for accuracy.
III. Essay Questions
1. Discuss the advantages and disadvantages of using Newton's method versus
the Secant method for solving systems of non-linear equations. In what
situations would one method be preferred over the other?
2. Explain the importance of pivoting strategies in Gaussian elimination.
Compare and contrast partial pivoting and scaled partial pivoting, and
provide an example where scaled partial pivoting would significantly
improve the accuracy of the solution compared to partial pivoting alone.
3. Describe the conditions under which a system of linear equations has a
unique solution, infinite solutions, or no solution. Explain how these
conditions can be determined through Gaussian elimination and the analysis
of the resulting reduced matrix.
4. Compare and contrast Euler's method, Modified Euler's Method and the 4th-
order Runge-Kutta method for solving ordinary differential equations.
Discuss their accuracy, stability, and computational cost, and provide
examples of situations where each method would be most appropriate.
5. Describe in detail how Milne's Method is used to approximate solutions to
ordinary differential equations. Explain the steps, and why is it necessary to
use a predictor and corrector method?
IV. Glossary of Key Terms
• Vector: A one-dimensional array of numbers.
• Matrix: A two-dimensional array of numbers.
• Identity Matrix: A square matrix with ones on the main diagonal and zeros
elsewhere.
• Jacobian Matrix: A matrix of all first-order partial derivatives of a vector-
valued function.
• Newton's Method: An iterative method for finding the roots of a function.
• Gaussian Elimination: An algorithm for solving systems of linear
equations by reducing the matrix to upper triangular form.
• Forward Elimination: The first phase of Gaussian elimination, reducing
the matrix to upper triangular form.
• Backward Substitution: The second phase of Gaussian elimination, solving
for variables in the upper triangular system.
• Pivoting: The process of swapping rows in a matrix to ensure a stable pivot
element during Gaussian elimination.
• Partial Pivoting: Selecting the largest element in the current column as the
pivot.
• Scaled Partial Pivoting: Scaling rows before selecting a pivot to account
for varying magnitudes.
• Normal Equations: A system of linear equations used to solve least squares
problems in linear regression.
• Tridiagonal Matrix: A matrix with non-zero elements only on the main
diagonal, the subdiagonal, and the superdiagonal.
• Tridiagonal Matrix Algorithm (TDMA): An efficient algorithm for
solving tridiagonal systems.
• Euler's Method: A first-order numerical method for solving ordinary
differential equations.
• Runge-Kutta Method: A family of numerical methods for solving ordinary
differential equations.
• Milne's Method: A multistep method used to solve differential equations.
• Predictor-Corrector Method: An example of Milne's Method, A pair of
methods, predictor is used to approximate the solution and corrector is used
to correct and refine the solution.
• Ordinary Differential Equation (ODE): An equation involving a function
and its derivatives.
• Taylor Series Method: Uses Taylor Series Expansions to approximate the
value of a function.
• Finite-difference approximations: Approximating derivatives using
difference equations.
• Secant Method: Derivative free method which uses the formula, xk + 1 = x
ffxff
• ∆x f (x, y): The difference of values, with equispaced points, with spacing h
in x and k in y
• Cubic Convergence: Convergence occurs at a rate proportional to the cube
of the error