Unformatted text preview:

Lab4temp 151 22C Jupyter Notebook 9 21 22 7 18 PM In from sympy import from sympy plotting import plot plot parametric MATH 151 Lab 4 Question 1 In 2 from sympy import x symbols x f 2 x 1 x 2 2 derivative diff f x m derivative subs x 2 y f subs x 2 tanline y m x 2 print The equation of the tangent line is y tanline The equation of the tangent line is y 23 18 2 x 9 In 14 m2 1 m y2 f subs x 2 normline y2 m2 x 2 print The equation of the normal line is y normline The equation of the normal line is y 9 x 2 49 6 1a 1b 1c http localhost 8891 notebooks Downloads Lab4temp 151 22C ipynb Page 1 of 6 Lab4temp 151 22C Jupyter Notebook 9 21 22 7 18 PM In 20 plot f x 0 3 normline x 0 3 tanline x 0 3 ylim print The graph of f x is in blue the tangent line in green and the normal line in orange The graph of f x is in blue the tangent line in green and the no rmal line in orange Question 2 2a http localhost 8891 notebooks Downloads Lab4temp 151 22C ipynb Page 2 of 6 Lab4temp 151 22C Jupyter Notebook 9 21 22 7 18 PM In 24 from sympy import x symbols x y sin x 1 1000 sin 1000 x plot y x 2 pi 2 pi print Slope estimate at x 0 is 1 Slope estimate at x 0 is 1 2b In 26 plot y x 0 25 0 25 print Slope estimate at x 0 is 1 Slope estimate at x 0 is 1 http localhost 8891 notebooks Downloads Lab4temp 151 22C ipynb Page 3 of 6 Lab4temp 151 22C Jupyter Notebook 9 21 22 7 18 PM 2c 2d In 27 derivative diff y x slope derivative subs x 0 print The slope at x 0 is slope The slope at x 0 is 0 In 28 plot y x 0 001 0 001 print Slope estimate at x 0 is 0 Slope estimate at x 0 is 0 Question 3 3a In 31 from sympy import t symbols t V 100000 1 1 60 t 2 val1 V subs t 0 val2 V subs t 10 AROC val2 val1 10 print The average rate of change of V from 0 to 10 mins is AROC The average rate of change of V from 0 to 10 mins is 3055 5555555 5555 http localhost 8891 notebooks Downloads Lab4temp 151 22C ipynb Page 4 of 6 In 36 print There is a difference in the value for average rate of change and instantaneous rate of change because the value for average rate of change is the slope over an interval and becuase this graph is curved it would produce a different value than if the slope was calculated at one point in this interval when t 10 The value for IROC is calculated using derivatives and is more specific for that certain point Lab4temp 151 22C Jupyter Notebook 9 21 22 7 18 PM In 32 derivative diff V t print Instantaneous rate of change of V with respect to t is derivative Instantaneous rate of change of V with respect to t is 55 55555555 55556 t 3333 33333333333 In 33 IROC derivative subs t 10 print Instantaneous rate of change of V at t 10 is IROC Instantaneous rate of change of V at t 10 is 2777 77777777778 3b 3c 3d There is a difference in the value for avergae rate of change and instantaneous rate of change because the value for average rate of change is the slope over an interval and becuase this graph is c urved it would produce a different value than if the slope was cal culated at one point in this interval when t 10 The value for IROC is calculated using derivatives and is more specific for that certain point Question 4 4a In 42 from sympy import x symbols x f exp x 1 x 2 print The first derivative of y is y diff f x the second is y The first derivative of y is y 2 x exp x x 2 1 exp x the second is y x 2 4 x 3 exp x the third is y x 2 6 x 7 exp x the fourth is y x 2 8 x 13 exp x t he fifth is y x 2 10 x 21 exp x the sixth is y x 2 12 x 31 exp x the seventh is y x 2 14 x 43 exp x and the eigth is y x 2 16 x 57 exp x http localhost 8891 notebooks Downloads Lab4temp 151 22C ipynb Page 5 of 6 Lab4temp 151 22C Jupyter Notebook 9 21 22 7 18 PM 4b 4c In 2 print The formula for the nth derivative of f is exp x x 2 n 2 x n n 1 1 The formula for the nth derivative of f is exp x x 2 n 2 x n n 1 1 In 4 from sympy import x symbols x print Derivative fifty is exp x x 2 50 2 x 50 50 1 Derivative fifty is x 2 100 x 2451 exp x http localhost 8891 notebooks Downloads Lab4temp 151 22C ipynb Page 6 of 6


View Full Document

TAMU MATH 151 - Lab 4

Documents in this Course
Lab 9

Lab 9

5 pages

Lab 8

Lab 8

9 pages

Lab 7

Lab 7

5 pages

Lab 6

Lab 6

5 pages

Lab 5

Lab 5

5 pages

Lab 3

Lab 3

6 pages

Lab 2

Lab 2

4 pages

Lab 1

Lab 1

3 pages

Notes

Notes

15 pages

Notes

Notes

1 pages

Notes

Notes

39 pages

Vectors

Vectors

7 pages

2011a_x3b

2011a_x3b

10 pages

lec5_5-7

lec5_5-7

33 pages

lec3_6-9

lec3_6-9

26 pages

lec4_1-2

lec4_1-2

25 pages

2_7

2_7

4 pages

handout

handout

2 pages

2010c_x1b

2010c_x1b

10 pages

lec3_1-3

lec3_1-3

26 pages

2011a_x3a

2011a_x3a

10 pages

LIFE

LIFE

2 pages

LIFEans

LIFEans

2 pages

s4.6

s4.6

4 pages

app_D

app_D

7 pages

lec13-23

lec13-23

28 pages

2009a_x2b

2009a_x2b

11 pages

syll5

syll5

2 pages

lec3_a-c

lec3_a-c

34 pages

syll151

syll151

2 pages

lec4_5-8

lec4_5-8

31 pages

lec6_3-4

lec6_3-4

37 pages

lec2_5-6

lec2_5-6

29 pages

2010a_x3b

2010a_x3b

12 pages

2008c_x2b

2008c_x2b

11 pages

lec5_1-3

lec5_1-3

24 pages

Exam 2A

Exam 2A

12 pages

handout

handout

2 pages

lec3_1-3

lec3_1-3

26 pages

L3A

L3A

3 pages

lec3_a-c

lec3_a-c

34 pages

lec4_3-4

lec4_3-4

15 pages

151wir8ws

151wir8ws

11 pages

lec4_5-8

lec4_5-8

31 pages

2_2

2_2

2 pages

2010c_x1a

2010c_x1a

10 pages

6_5

6_5

2 pages

lec3_4-5

lec3_4-5

29 pages

2010a_x1b

2010a_x1b

12 pages

2010a_x1a

2010a_x1a

12 pages

Load more
Download Lab 4
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view Lab 4 and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Lab 4 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?