Recall & Review
beginner
What is numerical differentiation?
Numerical differentiation is a way to find the slope or rate of change of a function using numbers instead of formulas. It estimates the derivative by using values of the function at certain points.
Click to reveal answer
beginner
What is the forward difference formula for numerical differentiation?
The forward difference formula estimates the derivative at a point x by using the function values at x and a point slightly ahead, x + h: f'(x) ≈ (f(x + h) - f(x)) / h, where h is a small step size.
Click to reveal answer
intermediate
Why do we choose a small step size h in numerical differentiation?
A small step size h helps get a better estimate of the derivative because it measures the change over a tiny interval. But if h is too small, rounding errors can happen, so we balance between accuracy and errors.
Click to reveal answer
intermediate
What is the central difference formula and why is it better than forward difference?
The central difference formula uses points before and after x: f'(x) ≈ (f(x + h) - f(x - h)) / (2h). It is usually more accurate than forward difference because it balances the slope from both sides.
Click to reveal answer
beginner
Show a simple MATLAB code snippet to compute the numerical derivative of sin(x) at x = pi/4 using central difference.
h = 1e-5;
x = pi/4;
derivative = (sin(x + h) - sin(x - h)) / (2 * h);
disp(derivative);
Click to reveal answer
Which formula uses points on both sides of x to estimate the derivative?
✗ Incorrect
Central difference uses f(x + h) and f(x - h), points on both sides of x, to estimate the derivative.
In numerical differentiation, what happens if the step size h is too large?
✗ Incorrect
A large h measures change over a big interval, which can miss details and reduce accuracy.
What MATLAB command displays the value of a variable on the screen?
✗ Incorrect
disp() is used in MATLAB to display values or messages.
Which of these is NOT a common numerical differentiation method?
✗ Incorrect
Integration by parts is a calculus technique, not a numerical differentiation method.
Why might very small h cause problems in numerical differentiation?
✗ Incorrect
Very small h can cause rounding errors due to limited computer precision.
Explain how to estimate the derivative of a function at a point using numerical differentiation.
Think about how you find slope using points close to the target point.
You got /4 concepts.
Describe the difference between forward difference and central difference methods.
Consider which points around x each method uses.
You got /4 concepts.