See Section 26.6.7 for tangents in the plane.
The tangent command finds tangent planes to surfaces.
If obj is the graph of a function, then P can be a point in the domain of the function, and the point on the graph will be used.
S:=sphere([0,0,0],3); tangent(S,[2,2,1]) |
G:=plotfunc(x^2+y^2,[x,y]); tangent(G,[2,2]) |