Previous Up Next

19.3.5  Tangent to a 2D graph

The tangent command draws tangents to surfaces.

Example

Define the function g:

g(x):=x^2

then the graph G of g and a point A on the graph:

G:=plotfunc(g(x),x):; A:=point(1.2,g(1.2)):;

If you want to draw the tangent at the point A to the graph G, enter:

T:=tangent(G, A)

or:

T:=tangent(G, 1.2)

For the equation of the tangent line, enter:

equation(T)
     
y=2.4 x−1.44           

Previous Up Next