









Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
This document demonstrates how to calculate the tangent and secant lines of a function f(x) = x^3 + 5/x^2 at x_0 = 2 using maple. It includes the definition of the difference quotient, the calculation of the limit as h approaches 0, and the plotting of the tangent line and secant lines.
Typology: Assignments
1 / 15
This page cannot be seen from the preview
Don't miss anything!










MAPLE demo 2-13-
Look at tangent and secant lines.
Example f(x)=x^3+5/x^2 at x_0=2.
> f^ :=^ x^ /^ x^3 C^
x^2
f := x/x^3 C
x^2
> plot^ (^ f^ (^ x^ ) ,^ x^ =.5 ..6 )
>
Define the difference quotient for f(x) at x=2.
> q := h /
( f ( 2 C h ) K f ( 2 ) ) h
q := h/
f ( 2 C h ) K f ( 2 ) h
> q ( 3. )
> s1 := x / f ( 2 ) C q ( 3. ) $ ( xK 2 )
s1 := x/f ( 2 ) C q ( 3. ) ( x K 2 )
> plot ( [ f ( x ) , s1 ( x ) ] , x =.5 ..6 )
> q ( .1 )
> limit ( q ( h ) , h = 0 )
43 4
>
Plot the tangent line.
$ ( x K 2 )
t := x/f ( 2 ) C
x K
> plot ( [ f ( x ) , t ( x ) ] , x =.5 ..3 )
>
Define some graphs of secant lines.
> s2 := x / f ( 2 ) C q ( .5 ) $ ( xK 2 )
s2 := x/f ( 2 ) C q ( 0.5 ) ( x K 2 )
> s3 := x / f ( 2 ) C q ( .2 ) $ ( xK2 )
s3 := x/f ( 2 ) C q ( 0.2 ) ( x K 2 )
> s4 := x / f ( 2 ) C q ( .05 ) $ ( xK2 )
s4 := x/f ( 2 ) C q ( 0.05 ) ( x K 2 )
> plot ( [ f ( x ) , s2 ( x ) , s3 ( x ) , s4 ( x ) , t ( x ) ] , x = 1.5 ..3 )
>
Look at tangent line as best linear approximation.
> plot ( f ( x ) , x = 1.75 ..2.25 )
> plot ( f ( x ) , x = 1.9 ..2.1 )
> plot ( [ f ( x ) , t ( x ) ] , x = 1 ..3 )
> plot ( [ f ( x ) , t ( x ) ] , x = 1.75 ..2.25 )
> plot ( [ f ( x ) , t ( x ) ] , x = 1.95 ..2.05 )
> plot ( [ f ( x ) , t ( x ) ] , x = 1.99 ..2.01 )