Numerical Analysis final exam review
The topics, worked on a live board with an AI tutor.
Units
Floating point and error
- Floating-point numbers
- Error, cancellation and conditioning
Practice
In the toy system, which floats lie in [2, 4) and what is the gap there?Answer
2, 2.5, 3, 3.5; the gap is 0.5
Hint: Multiply the e = 0 block by 2
The value 1000 is computed as 999. Give the absolute and relative error.Answer
1 and 0.001, or 0.1%
Hint: Divide the absolute error by the true value
Solving nonlinear equations
- Bisection
- Newton's method
- Fixed-point iteration
- The secant method and order of convergence
Practice
Does f(x) = x² − 2 change sign on [1, 2]? Which half do you keep after the first midpoint?Answer
Yes (−1 and 2); c = 1.5 gives 0.25 > 0, so keep [1, 1.5]
Hint: f(1.5) = 2.25 − 2
Do one Newton step for f(x) = cos x − x from x₀ = 1.Answer
x₁ = 1 − (−0.4597)/(−1.8415) = 0.7504
Hint: f′(x) = −sin x − 1
Interpolation
What exams ask
numerical libraries and exams build interpolants in Newton form because a new data point costs one extra term instead of a whole new solve.
- Polynomial interpolation
- Newton's divided differences
- Interpolation error and Runge's phenomenon
- Cubic splines
Practice
How many coefficients does a polynomial of degree at most 4 have, and so how many points fix it?Answer
5 coefficients, so 5 points
Hint: Count a0 through a4
Write the Newton form for the points (0, 2), (1, 5), (3, 9) with c₀ filled in, leaving c₁ and c₂ unknownAnswer
p(x) = c₀ + c₁(x − 0) + c₂(x − 0)(x − 1), with c₀ = 2
Hint: The first node is x = 0, so plug it in
Differentiation and integration
What exams ask
most integrals have no closed form, and numerical codes and exam problems choose between these rules by their error order
- Finite differences
- Trapezoid and Simpson's rules
- Gaussian quadrature
Practice
Use the forward difference with h = 0.1 to approximate f′(0) for f(x) = eˣ, and give the error.Answer
(e⁰.1 − 1)/0.1 = 1.05171, error 0.0517
Hint: The exact derivative of eˣ at 0 is 1
use T with h = 0.5 (heights 0, 0.25, 1) for ∫₀¹ x² dxAnswer
T₂ = 0.5[0 + 0.25 + 0.5] = 0.375
Hint: Ends count half, the middle once
Solving linear systems
- Gaussian elimination with pivoting
- LU and Cholesky factorizations
- Norms and condition numbers
- Iterative methods
Practice
For 0.01x + y = 1 and x + y = 2, what is the multiplier?Answer
100
Hint: Second row entry over pivot
Factor [[1,1],[3,5]] as LUAnswer
L = [1 0; 3 1], U = [1 1; 0 2]
Hint: The multiplier is 3/1
Least squares computation
- Least squares by QR
- Orthogonalization: Gram-Schmidt and Householder
Practice
Set up A and b for fitting y = c₀ + c₁t to the points (0, 3), (1, 1), (2, 2)Answer
A = [[1,0],[1,1],[1,2]], b = (3,1,2)ᵀ
Hint: One row per point, the row is (1, t)
Apply one Gram-Schmidt step with a1 = (3, 4)ᵀ and a2 = (1, 0)ᵀ.Answer
q1 = (0.6, 0.8), r12 = 0.6, v = (0.64, −0.48), q2 = (0.8, −0.6)
Hint: Subtract 0.6·q1 from a2
Computing eigenvalues
- The power method
- The QR algorithm
- The singular value decomposition in practice
Practice
With the same A, start at x₀ = (0,1) and compute x₁ and x₂, each rescaled by its largest entry.Answer
x₁ = (1,3) → (0.33,1); x₂ = A(1,3) = (7,11) → (0.64,1)
Hint: Multiply row by column, then divide by the larger entry
Do one QR step on A = [[3, 1], [4, 2]].Answer
Q = [[0.6, −0.8], [0.8, 0.6]], R = [[5, 2.2], [0, 0.4]], RQ = [[4.76, −2.68], [0.32, 0.24]]
Hint: q₁ = (3, 4)/5, then r₁₂ = q₁ · (1, 2) = 2.2
Solving differential equations
- Euler and Runge-Kutta methods
- Stability and stiff equations
Practice
Apply Euler with h = 0.5 to y' = −y, y(0) = 1 up to t = 1 and find the error against e⁻¹ = 0.3679.Answer
y(1) ≈ 0.25; error 0.118
Hint: Each step multiplies y by 1 − 0.5 = 0.5
Find the largest h for which Euler is stable on y' = −20y.Answer
h < 0.1
Hint: |1 − 20h| < 1 gives 0 < h < 0.1
Questions
What does the Numerical Analysis review cover?
Every unit of the course, 8 in all. Pick one and Helio teaches it on the board, then asks you questions. Floating point and error; Solving nonlinear equations; Interpolation; Differentiation and integration; Solving linear systems; Least squares computation; Computing eigenvalues; Solving differential equations.
Can it help the week before my final?
Yes. Pick a topic, and Helio explains it, checks you and goes over what you miss.
Is it the same as my class?
It follows the usual topics of Numerical Analysis. For anything else on your syllabus, type the topic and Helio teaches that too.
How much is free?
30 minutes a month for one learner, with no card. Starter is free for 7 days with a card: cancel in time and pay nothing.






