Wolfram Research

Function Repository Resource:

TangentPlane (1.1.0) current version: 2.0.0 »

Source Notebook

Find the tangent plane of a function at a point

Contributed by: Wolfram|Alpha Math Team

ResourceFunction["TangentPlane"][expr,{x,a},{y,b},z]

returns an association of properties of the tangent plane to expr, viewed as an equation in x,y and z, at the point x=a,y=b.

ResourceFunction["TangentPlane"][expr,{x,a},{y,b},{z,c},w]

returns properties of a tangent plane in four dimensions.

ResourceFunction["TangentPlane"][,prop]

returns the value of the tangent plane property prop.

Details

Allowed values of prop are "StandardFormEquation", "Slopes" and "Plot".
If expr does not have head Equal, then expr is treated as an expression defining the independent variable in terms of the dependent variables. In other words, ResourceFunction["TangentPlane"][expr,{x,a},{y,b},z] is equivalent to ResourceFunction["TangentPlane"][z==expr,{x,a},{y,b},z] if expr itself has a head other than Equal, and similarly in four dimensions.

Examples

Basic Examples (2) 

Return the equation of the tangent plane to a surface:

In[1]:=
ResourceFunction["TangentPlane"][
 x^2 + y^2, {x, 2}, {y, 3}, z,  "StandardFormEquation"]
Out[1]=

Visualize the tangent plane:

In[2]:=
ResourceFunction["TangentPlane"][x^2 + y^2, {x, 2}, {y, 3}, z, "Plot"]
Out[2]=

Compute the slopes of the tangent plane with respect to x and y:

In[3]:=
ResourceFunction["TangentPlane"][
 x^2 + y^2, {x, 2}, {y, 3}, z, "Slopes"]
Out[3]=

Get an association of properties of a tangent plane to a surface:

In[4]:=
ResourceFunction["TangentPlane"][x Sin[y], {x, 2}, {y, 1}, z]
Out[4]=

Scope (2) 

The first argument to TangentPlane can be an implicit definition of a surface:

In[5]:=
ResourceFunction["TangentPlane"][
 x^2 + y^2 + z^2 == 9, {x, 0}, {y, 0}, {z, -3}, "Plot"]
Out[5]=

TangentPlane also can return equations or slopes of surfaces defined in four dimensions:

In[6]:=
ResourceFunction["TangentPlane"][
 w == x^2 + y^2 + z^2, {x, 2}, {y, 3}, {z, 5}, w]
Out[6]=

Possible Issues (2) 

If the coordinates are underspecified, information on only one of the possible tangent planes at the given coordinate values is returned:

In[7]:=
ResourceFunction["TangentPlane"][x y z == 2, {x, 1}, {y, 1}, z]
Out[7]=

Requesting tangent plane information about a point that is not on the surface will result in an error message:

In[8]:=
SecantLine[
 y == x Sin[x], {x, 2, 1}, {y, 3, 6}, "SlopeInterceptEquation"]
Out[8]=

Publisher

Wolfram|Alpha Math Team

Version History

  • 2.0.0 – 23 March 2023
  • 1.1.0 – 25 March 2022
  • 1.0.1 – 04 March 2021
  • 1.0.0 – 20 March 2020

Related Resources

Author Notes

To view the full source code for TangentPlane, evaluate the following:

In[1]:=
SystemOpen[
 FileNameJoin[{DirectoryName[FindFile["ResourceFunctionHelpers`"]], "TangentPlane.wl"}]]

License Information