Week 1 Matlab
Week 1 Matlab
1. Write a MATLAB program to compute and visualize the partial derivative of a two-variable function
f(x,y) with respect to x, and plot its tangent plane at a given point (x1,y1)..
AIM
To compute the partial derivative of a two-variable function f(x,y) with respect to x at a given point and
visualize the surface along with the tangent line in MATLAB.
MATHEMATICAL FORMULATION
Given a function f(x,y), the partial derivative with respect to x at a point (x1,y1) is calculated as:
OUTPUT
Surface plot: A plot of the surface of f(x,y) around the point (x1,y1).
Tangent line: A line representing the tangent to the surface at (x1,y1) based on the computed
partial derivative.
INFERENCE
This MATLAB program computes the partial derivative of a two-variable function with respect to x and
visualizes the tangent plane at the given point. The tangent line reflects how the function changes locally
with small variations in x, giving insight into the function's behaviour at that point.