29.06.2016 Views

Thomas Calculus 13th [Solutions]

  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

109 110. Example CAS commands:<br />

Section 3.8 Derivatives of Inverse Functions and Logarithms 179<br />

Maple:<br />

with( plots );<br />

eq := cos(y) = x^(1/5);<br />

domain := 0 .. 1;<br />

x0 := 1/2;<br />

f := unapply( solve( eq, y ), x );<br />

# (a)<br />

Df := D(f);<br />

plot( [f(x),Df(x)], x=domain, color=[red,blue], linestyle=[1,3], legend=["y=f(x)",y=f'(x)"],<br />

title="#110(a) (Section 3.8)" );<br />

q1 := solve( eq, x );<br />

# (b)<br />

g := unapply( q1, y );<br />

m1 := Df(x0);<br />

# (c)<br />

t1 := f(x0)+m1*(x-x0);<br />

y=t1;<br />

m2 := 1/Df(x0);<br />

# (d)<br />

t2 := g(f(x0)) + m2*(x-f(x0));<br />

y=t2;<br />

domaing := map(f,domain);<br />

# (e)<br />

p1 := plot( [f(x),x], x=domain, color=[pink,green], linestyle=[1,9], thickness=[3,0] ):<br />

p2 := plot( g(x), x=domaing, color=cyan, linestyle=3, thickness=4 ):<br />

p3 := plot( t1, x=x0-1..x0+1, color=red, linestyle=4, thickness=0 ):<br />

p4 := plot( t2, x=f(x0)-1..f(x0)+1, color=blue, linestyle=7, thickness=1 ):<br />

p5 := plot( [ [x0,f(x0)], [f(x0),x0] ], color=green ):<br />

display( [p1,p2,p3,p4,p5], scaling=constrained, title="#110(e) (Section 3.8)" );<br />

Mathematica: (Assigned function and values for a, b, and x0 may vary)<br />

For problems 109 and 110, the code is just slightly altered. At times, different parts of solutions need to be<br />

used as in the definitions of f[x] and g[y]<br />

Clear[x, y]<br />

{a,b} = {0, 1}; x0 = 1/2 ;<br />

1/5<br />

eqn = Cos[y] == x<br />

soly = Solve[eqn, y]<br />

f[x_] = y /. soly[[2]]<br />

Plot[{f[x], f'[x]}, {x, a, b}]<br />

solx = Solve[eqn, x]<br />

g[y_] = x /. solx[[1]]<br />

y0 = f[x0]<br />

ftan[x_] = y0+f'[x0] (x-x0)<br />

gtan[y_] = x0 + 1/f'[x0] (y-y0)<br />

Plot[{f[x], ftan[x], g[x], gtan[x], Identity[x]}, {x, a, b},<br />

Epilog Line[{x0, y0}, {y0, x0}}], PlotRange {{a, b}, {a, b}}, AspectRatio Automatic]<br />

Copyright<br />

2014 Pearson Education, Inc.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!