Find the tangent plane to the surface in Mathematica

Click For Summary
SUMMARY

The discussion focuses on finding the tangent plane to the surface defined by the equation z = 2x² - y² at the point (2, 1) using Mathematica. The user successfully implements the necessary calculations and visualizations, including the derivative functions fx and fy, and plots both the surface and the tangent plane using Plot3D. The code provided is confirmed to be correct, demonstrating effective use of Mathematica's capabilities for 3D plotting and calculus.

PREREQUISITES
  • Understanding of calculus, specifically partial derivatives
  • Familiarity with Mathematica syntax and functions
  • Knowledge of 3D plotting techniques in Mathematica
  • Basic concepts of tangent planes in multivariable calculus
NEXT STEPS
  • Explore Mathematica's documentation on the D function for differentiation
  • Learn about the Plot3D function and its options for customizing 3D plots
  • Study the concept of tangent planes in more depth, including examples
  • Investigate advanced visualization techniques in Mathematica, such as manipulating viewpoints
USEFUL FOR

Students and professionals in mathematics, particularly those studying multivariable calculus, as well as Mathematica users looking to enhance their skills in 3D plotting and surface analysis.

Logistics
Messages
30
Reaction score
0
Hey guys I have just started learning mathematica and I was wandering if someone could confirm if I did the following correct:

Question:

Find the tangent plane to the surface z = 2x^2 -y^2 at the point (2,1). Plot the tangent plane and the surface on the same graph. Change th eviewpoint to show the tangent plane clearly.

Solution:

Clear[f, x, y, fx, fy, point1, point2]
point1 = 2;
point2 = 1;
f[x_, y_] = 2x^2 - y^2;
fx[x_, y_] = D[f[x, y], x];
fy[x_, y_] = D[f[x, y], y];
T[x_, y_] := f[point1, point2] + fx[point1, point2](x - point1) + fy[point1, point2](y - point2)
T[x, y]

Clear[G1, G2];
G1 = Plot3D[f[x, y], {x, -2, 10}, {y, -4, 4}]
G2 = Plot3D[T[x, y], {x, -2, 10}, {y, -4, 4}]
Show[G1, G2, ViewPoint -> {0, -2, 0.3}, AspectRatio -> 1, AxesLabel -> {"x", "y", "f(x,y)"}]


Thanks in advance
 
Physics news on Phys.org
anyone able to confirm if it's correct?
 
Logistics said:
anyone able to confirm if it's correct?

I tried it and it looks ok ; the code also looks ok...
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
Replies
1
Views
1K
  • · Replies 8 ·
Replies
8
Views
3K
Replies
1
Views
1K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 3 ·
Replies
3
Views
6K