Unformatted text preview:

Lab7temp 151 22C Jupyter Notebook 11 5 22 2 21 AM MATH 151 Lab 7 Put team members names and section number here In 1 from sympy import from sympy plotting import plot plot parametric Question 1 In 79 x symbols x f1 8 x 2 f2 5 exp x 2 2 2 x df1 diff f1 x df2 diff f2 x cval1 solve df1 x cval2 nsolve df2 3 cval3 nsolve df2 5 print Critcal values are cval2 and cval3 Critcal values are 2 41784619385985 and 4 78643377270907 In 84 neg5 f1 subs x 5 pos5 f2 subs x 5 cv1 f2 subs x cval2 cv2 f2 subs x cval3 print The absolute extrema on 5 5 is cv1 when x cval2 The absolute extrema on 5 5 is 7 20429639824017 when x 2 41 784619385985 In 57 neg10 f1 subs x 10 pos10 f2 subs x 10 cv1 f2 subs x cval2 cv2 f2 subs x cval3 print The absolute extrema on 10 10 is pos10 evalf when x 10 The absolute extrema on 10 10 is 10 0000005626759 when x 10 http localhost 8888 notebooks Downloads Lab7temp 151 22C ipynb Page 1 of 5 1a 1b 1c 1d 2a 2b Lab7temp 151 22C Jupyter Notebook 11 5 22 2 21 AM In 13 plot f1 x 10 0 f2 x 0 10 ylim 20 10 10 0 75 5 0 2 5 5 0 75 10 0 10 Out 13 sympy plotting plot Plot at 0x7fd393e13520 Question 2 In 17 r0 symbols r0 r symbols r k symbols k v k r0 r r 2 derivative diff v r cvals solve derivative r print The value of r in the interval 1 2r0 r0 at which v has an absolute maximum is The value of r in the interval 1 2r0 r0 at which v has an absol ute maximum is 2 r0 3 In 19 val v subs r cvals 1 print The absolute maximum value of v on the same interval is val The absolute maximum value of v on the same interval is 4 k r0 3 27 http localhost 8888 notebooks Downloads Lab7temp 151 22C ipynb Page 2 of 5 Lab7temp 151 22C Jupyter Notebook 11 5 22 2 21 AM In 21 rval 2 0 65 3 vval 4 15000 0 65 3 27 print The maximum value of the function when r 0 65 and k 15000 is The maximum value of the function when r 0 65 and k 15000 is 6 10 2777777777778 and it occurs when r 0 43333333333333335 2c 2d In 22 v 15000 0 65 r r 2 plot v r 0 0 65 Out 22 sympy plotting plot Plot at 0x7fd37003bc10 Question 3 3a http localhost 8888 notebooks Downloads Lab7temp 151 22C ipynb Page 3 of 5 In 75 print Since the derivative of f x g x is 0 this tells us that there is no slope to the graph and all values within the domain to the function are critical values Lab7temp 151 22C Jupyter Notebook 11 5 22 2 21 AM In 30 from sympy import x symbols x f atan x g acot x df diff f x dg diff g x print Derivative of f x df print Derivative of g x dg simplified df dg print f x g x simplified simplified Derivative of f x 1 x 2 1 Derivative of g x 1 x 2 1 f x g x simplified 0 3b 3c Since the derivative of f x g x is 0 this tells us that there is no slope to the graph and all values within the domain to the function are critical values In 91 function atan x acot x plot function x 10 10 ylim 5 5 print For x 0 y pi 2 and for x 0 y pi 2 O 25 50 For x 0 y pi 2 and for x 0 y pi 2 http localhost 8888 notebooks Downloads Lab7temp 151 22C ipynb Page 4 of 5 Lab7temp 151 22C Jupyter Notebook 11 5 22 2 21 AM 3d In 92 print tan theta is equivelant to cot 2 theta print If x tan theta and you arccot both sides of the equation tan theta cot 2 theta print You get arccot tan theta arccot cot 2 theta after substitution of x it leads to arccotx 2 theta print Since x tan theta theta arctanx and arccotx 2 arctanx print This gives us arccotx arctanx 2 so this is seen in the graph when x 0 tan theta is equivelant to cot 2 theta If x tan theta and you arccot both sides of the equation ta n theta cot 2 theta You get arccot tan theta arccot cot 2 theta after su bstitution of x it leads to arccotx 2 theta Since x tan theta theta arctanx and arccotx 2 arctanx This gives us arccotx arctanx 2 so this is seen in the grap h when x 0 http localhost 8888 notebooks Downloads Lab7temp 151 22C ipynb Page 5 of 5


View Full Document

TAMU MATH 151 - Lab 7

Documents in this Course
Lab 9

Lab 9

5 pages

Lab 8

Lab 8

9 pages

Lab 6

Lab 6

5 pages

Lab 5

Lab 5

5 pages

Lab 4

Lab 4

6 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 7
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 7 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 7 2 2 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?