Lesson 9 of 18
Tangent Plane
The Tangent Plane
Just as a tangent line approximates a 1D curve near a point, a tangent plane approximates a 2D surface near a point :
This is called the linear approximation or linearization of at .
Why It Works
Near , changes approximately linearly:
- Moving in the -direction changes by
- Moving in the -direction changes by
The tangent plane captures both effects simultaneously.
Error of Approximation
The error is small near — it's for smooth functions.
Examples
For at :
- , ,
- (exact: )
Your Task
Implement double tangent_plane(double (*f)(double, double), double x0, double y0, double x, double y, double h) that evaluates the linear approximation at the given point, using partial derivatives computed with step size .
TCC compiler loading...
Loading...
Click "Run" to execute your code.