Name: Math Analytic Geometry and Calculus III - Spring Matlab Project - due on Wednesday, March 30

Similar documents
MATLAB Laboratory 09/23/10 Lecture. Chapters 5 and 9: Plotting

MATH 2221A Mathematics Laboratory II

W1005 Intro to CS and Programming in MATLAB. Plo9ng & Visualiza?on. Fall 2014 Instructor: Ilia Vovsha. hgp://

Classes 7-8 (4 hours). Graphics in Matlab.

3. The three points (2, 4, 1), (1, 2, 2) and (5, 2, 2) determine a plane. Which of the following points is in that plane?

Directional Derivatives. Directional Derivatives. Directional Derivatives. Directional Derivatives. Directional Derivatives. Directional Derivatives

What you will learn today

The College of Staten Island

Math 21a Tangent Lines and Planes Fall, What do we know about the gradient f? Tangent Lines to Curves in the Plane.

Functions of Several Variables

Introduction to MATLAB

Math 113 Calculus III Final Exam Practice Problems Spring 2003

14.6 Directional Derivatives and the Gradient Vector

CSE 123. Plots in MATLAB

Parametric Surfaces. Substitution

Introduction to MATLAB: Graphics

Calculus III. Math 233 Spring In-term exam April 11th. Suggested solutions

Introduction to MATLAB

Kevin James. MTHSC 206 Section 15.6 Directional Derivatives and the Gra

(a) Find the equation of the plane that passes through the points P, Q, and R.

f xx (x, y) = 6 + 6x f xy (x, y) = 0 f yy (x, y) = y In general, the quantity that we re interested in is

University of California, Berkeley

Name: Class: Date: 1. Use Lagrange multipliers to find the maximum and minimum values of the function subject to the given constraint.

MATH 261 FALL 2000 FINAL EXAM INSTRUCTIONS. 1. This test booklet has 14 pages including this one. There are 25 questions, each worth 8 points.

1. no trace exists correct. 2. hyperbola : z 2 y 2 = ellipse : y z2 = ellipse : 5. circle : y 2 +z 2 = 2

Equation of tangent plane: for implicitly defined surfaces section 12.9

Math 206 First Midterm October 5, 2012

Mechanical Engineering Department Second Year (2015)

SGN Introduction to Matlab

PURE MATHEMATICS 212 Multivariable Calculus CONTENTS. Page. 1. Assignment Summary... i 2. Summary Assignments...2

Lagrange Multipliers. Lagrange Multipliers. Lagrange Multipliers. Lagrange Multipliers. Lagrange Multipliers. Lagrange Multipliers

MATH11007 NOTES 12: PARAMETRIC CURVES, ARCLENGTH ETC.

Directional Derivatives and the Gradient Vector Part 2

Name: Date: 1. Match the equation with its graph. Page 1

Lecture 15. Lecturer: Prof. Sergei Fedotov Calculus and Vectors. Length of a Curve and Parametric Equations

Topic 5-6: Parameterizing Surfaces and the Surface Elements ds and ds. Big Ideas. What We Are Doing Today... Notes. Notes. Notes

MATH 230 FALL 2004 FINAL EXAM DECEMBER 13, :20-2:10 PM

Lecture 3 for Math 398 Section 952: Graphics in Matlab

MATH11007 NOTES 15: PARAMETRIC CURVES, ARCLENGTH ETC.

Math Exam III Review

Math 21a Homework 22 Solutions Spring, 2014

MA FINAL EXAM Green April 30, 2018 EXAM POLICIES

Name: Final Exam Review. (b) Reparameterize r(t) with respect to arc length measured for the point (1, 0, 1) in the direction of increasing t.

Math 213 Calculus III Practice Exam 2 Solutions Fall 2002

Practice problems from old exams for math 233

Determine whether or not F is a conservative vector field. If it is, find a function f such that F = enter NONE.

Measuring Lengths The First Fundamental Form

MATH 2023 Multivariable Calculus

PURE MATHEMATICS 212 Multivariable Calculus CONTENTS. Page. 1. Assignment Summary... i 2. Introduction Timetable Assignments...

Due: Fri Sep :00 PM MDT Question

Practice problems. 1. Given a = 3i 2j and b = 2i + j. Write c = i + j in terms of a and b.

Directional Derivatives and the Gradient Vector Part 2

Math 265 Exam 3 Solutions

Directional Derivatives as Vectors

Introduction to Matlab for Engineers

Lab 6: Graphical Methods

MAT 275 Laboratory 1 Introduction to MATLAB

while its direction is given by the right hand rule: point fingers of the right hand in a 1 a 2 a 3 b 1 b 2 b 3 A B = det i j k

Plotting x-y (2D) and x, y, z (3D) graphs

Math 126C: Week 3 Review

Practice problems from old exams for math 233 William H. Meeks III December 21, 2009

MATH 1020 WORKSHEET 10.1 Parametric Equations

Dr. Iyad Jafar. Adapted from the publisher slides

Workbook. MAT 397: Calculus III

Lab of COMP 406 Introduction of Matlab (II) Graphics and Visualization

University of Saskatchewan Department of Mathematics & Statistics MATH Final Instructors: (01) P. J. Browne (03) B. Friberg (05) H.

Math 126 Final Examination SPR CHECK that your exam contains 8 problems on 8 pages.

Line Integration in the Complex Plane

MATH 116 REVIEW PROBLEMS for the FINAL EXAM

In other words, we want to find the domain points that yield the maximum or minimum values (extrema) of the function.

Background for Surface Integration

ds dt ds 1 dt 1 dt v v v dt ds and the normal vector is given by N

INTRODUCTION TO MATLAB PLOTTING WITH MATLAB

(a) Find cylindrical coordinates for the point whose rectangular coordinates are (x, y, z) = ( 4, 8, 2). Solution: r = p x 2 + y 2 =

UNIVERSITI TEKNIKAL MALAYSIA MELAKA FAKULTI KEJURUTERAAN ELEKTRONIK DAN KEJURUTERAAN KOMPUTER

Math (Spring 2009): Lecture 5 Planes. Parametric equations of curves and lines

INTERNATIONAL EDITION. MATLAB for Engineers. Third Edition. Holly Moore

16.6. Parametric Surfaces. Parametric Surfaces. Parametric Surfaces. Vector Calculus. Parametric Surfaces and Their Areas

2. Give an example of a non-constant function f(x, y) such that the average value of f over is 0.

Topic 6: Calculus Integration Volume of Revolution Paper 2

Quiz 6 Practice Problems

MATLAB Tutorial. Mohammad Motamed 1. August 28, generates a 3 3 matrix.

Constrained Optimization and Lagrange Multipliers

MAC2313 Final A. a. The vector r u r v lies in the tangent plane of S at a given point. b. S f(x, y, z) ds = R f(r(u, v)) r u r v du dv.

Goals: Course Unit: Describing Moving Objects Different Ways of Representing Functions Vector-valued Functions, or Parametric Curves

Graphics in MATLAB. Responsible teacher: Anatoliy Malyarenko. November 10, Abstract. Basic Plotting Commands

Math 126 Final Examination Autumn CHECK that your exam contains 9 problems on 10 pages.

MA 114 Worksheet #17: Average value of a function

3. The domain of a function of 2 or 3 variables is a set of pts in the plane or space respectively.

Winter 2012 Math 255 Section 006. Problem Set 7

FF505/FY505 Computational Science. MATLAB Graphics. Marco Chiarandini

Direction Fields; Euler s Method

Solution of final examination

MATH 200 (Fall 2016) Exam 1 Solutions (a) (10 points) Find an equation of the sphere with center ( 2, 1, 4).

PROBLEMS INVOLVING PARAMETERIZED SURFACES AND SURFACES OF REVOLUTION

Volumes of Solids of Revolution Lecture #6 a

Multivariate Calculus Review Problems for Examination Two

d f(g(t), h(t)) = x dt + f ( y dt = 0. Notice that we can rewrite the relationship on the left hand side of the equality using the dot product: ( f

UNIVERSITI TEKNOLOGI MALAYSIA SSE 1893 ENGINEERING MATHEMATICS TUTORIAL 5

Multivariate Calculus: Review Problems for Examination Two

Transcription:

Name: Math 275 - Analytic Geometry and Calculus III - Spring 2011 Solve the following problems: Matlab Project - due on Wednesday, March 30 (Section 14.1 # 30) Use Matlab to graph the curve given by the vector equation r(t) = t 2, ln t, t. Make sure you choose a parameter domain and viewpoints that reveal the true nature of the curve. Note: command plot3 may be useful in plotting 3D curves. (Section 14.1 # 33) Graph the curve with parametric equations x = (1 + cos 16t) cos t, y = (1 + cos 16t) sin t, z = 1 + cos 16t Explain the appearance of the graph by showing that it lies on a cone. (Section 14.1 # 40) Try to sketch by hand the curve of intersection of the parabolic cylinder y = x 2 and the top half of the ellipsoid x 2 + 4y 2 + 4z 2 = 16. Then find parametric equations for this curve and use these equations and Matlab to graph the curve. (Section 14.2 # 27) Find parametric equations for the tangent line to the curve with the parametric equations x = t, y = e t, z = 2t t 2 at the point (0, 1, 0). Illustrate by graphing both the curve and the tangent line on a common screen. (Section 14.3 # 35) Use Matlab to graph both the curve y = x 2 and its curvature function κ(x) on the same screen. Is the graph of κ what you would expect? (Section 15.1 # 51, # 52) Use Matlab to graph the function using different domains and viewpoints. Get a printout of one that, in your opinion, gives a good view. Plot also some contour curves of the same function and compare with the graph. (a) f(x, y) = e x2 + e 2y2

(b) f(x, y) = (1 3x 2 + y 2 ) e 1 x2 y 2 Note: commands meshgrid, mesh, surf, contour may be useful in plotting surfaces and contour curves. (Section 15.1 # 70) Use Matlab to graph the function f(x, y) = xy x 2 + y 2 using using different domains and viewpoints. Comment of limiting behavior of the function. What happens when both x and y become large? What happens when (x, y) approaches the origin? (Section 15.4 # 8) Graph the surface z = arctan(xy 2 ) and the tangent plane at the point (1, 1, π/4). (Choose the domain and viewpoint so that you get a good view of both the surface and the tangent plane.) Then zoom in until the surface and the tangent plane become indistinguishable. When computer graphing is required, use Matlab commands plot, plot3, mesh, surf, contour etc. that were introduced in the computer class to visualize your results. Use xlabel, ylabel, title etc. commands to be clear which problem and which function(s) you are plotting. Submit your m.files together with graphs. The following command may be useful in saving the figure as a postscript file: print -depsc2 graph.eps Type help print for more information on how to print your results. Some Matlab tutorials are posted on the class web site and there are other available on the internet. 2

(Section 14.1 # 30) Use Matlab to graph the curve given by the vector equation r(t) = t 2, ln t, t. Make sure you choose a parameter domain and viewpoints that reveal the true nature of the curve. Note: command plot3 may be useful in plotting 3D curves. Section 14.1 # 30: graph of curve x=t 2, y=log(t), z=t 5 4 3 z 2 1 0 2 1 0 y 1 2 3 0 5 10 x 15 20 25 Figure 1: Section 14.1 # 30 3

(Section 14.1 # 33) Graph the curve with parametric equations x = (1 + cos 16t) cos t, y = (1 + cos 16t) sin t, z = 1 + cos 16t Explain the appearance of the graph by showing that it lies on a cone. Figure 2: Section 14.1 # 33 4

(Section 14.1 # 40) Try to sketch by hand the curve of intersection of the parabolic cylinder y = x 2 and the top half of the ellipsoid x 2 + 4y 2 + 4z 2 = 16. Then find parametric equations for this curve and use these equations and Matlab to graph the curve. Figure 3: Section 14.1 # 40 5

(Section 14.2 # 27) Find parametric equations for the tangent line to the curve with the parametric equations x = t, y = e t, z = 2t t 2 at the point (0, 1, 0). Illustrate by graphing both the curve and the tangent line on a common screen. Section 14.2: # 27: curve and its tangent line curve tangent line 10 5 0 5 10 15 30 20 10 0 10 4 2 0 2 4 Figure 4: Section 14.2 # 27 6

(Section 14.3 # 35) Use Matlab to graph both the curve y = x 2 and its curvature function κ(x) on the same screen. Is the graph of κ what you would expect? 3 2.5 Section 14.3: # 35 y(x)!(x) 2 1.5 1 0.5 0 5 4 3 2 1 0 1 2 3 4 5 Figure 5: Section 14.3 # 35 7

(Section 15.1 # 51, # 52) Use Matlab to graph the function using different domains and viewpoints. Get a printout of one that, in your opinion, gives a good view. Plot also some contour curves of the same function and compare with the graph. (a) f(x, y) = e x2 + e 2y2 (b) f(x, y) = (1 3x 2 + y 2 ) e 1 x2 y 2 Note: commands meshgrid, mesh, surf, contour may be useful in plotting surfaces and contour curves. Figure 6: Section 15.1 # 51 and # 52 8

(Section 15.1 # 70) Use Matlab to graph the function f(x, y) = xy x 2 + y 2 using using different domains and viewpoints. Comment of limiting behavior of the function. What happens when both x and y become large? What happens when (x, y) approaches the origin? Figure 7: Section 15.1 # 70 9

(Section 15.4 # 8) Graph the surface z = arctan(xy 2 ) and the tangent plane at the point (1, 1, π/4). (Choose the domain and viewpoint so that you get a good view of both the surface and the tangent plane.) Then zoom in until the surface and the tangent plane become indistinguishable. Figure 8: Section 15.4 # 8 10

% Math 275: This is program matlab_solutions.m to for matlab project clear all % Section 14.1 # 30 t=0.1:1e-3:5; x=t.^2; y=log(t); z=t; figure(1); clf(1) set(gca, FontSize,12); set(gca, box, on ) plot3(x,y,z) title( Section 14.1 # 30: graph of curve x=t^2, y=log(t), z=t ) grid on print -depsc2 problem_14_1_30.eps % Section 14.1 # 33 t=-10:1e-3:10; figure(2); clf(2) set(gca, FontSize,12); set(gca, box, on ) x=(1+cos(16*t)).*cos(t); y=(1+cos(16*t)).*sin(t); z=(1+cos(16*t)); subplot(2,2,1) plot3(x,y,z, Linewidth,1) 11

title( Section 14.1 # 33: curve ) grid on t=-10:1e-1:10; subplot(2,2,2) x=t; y=t; [X,Y]=meshgrid(x,y); f=inline( sqrt(x.^2+y.^2), x, y ); mesh(x,y,f(x,y)) %xlim([-2 2]) %ylim([-2 2]) %zlim([0 2]) title( Cone z=sqrt(x^2+y^2) ) print -depsc2 problem_14_1_33.eps % Section 14.1 # 40 figure(3); clf(3) set(gca, FontSize,12); set(gca, box, on ) subplot(2,2,1) x=-2:1e-2:2; z=0:1e-2:3; f=inline( x.^2, x, z ); [X3,Z3]=meshgrid(x,z); mesh(x3,f(x3,z3),z3) hold on subplot(2,2,2) mesh(x3,f(x3,z3),z3) hold on subplot(2,2,1) x=-2:1e-2:2; y=-sqrt(2):1e-2:sqrt(2); f=inline( sqrt(4-x.^2/4-y.^2), x, y ); [X2,Y2]=meshgrid(x,y); mesh(x2,y2,f(x2,y2)) 12

title( Section 14.1: # 40 ) x=-1:1e-2:1; y=x.^2; z=sqrt(4-x.^4-x.^2/4); plot3(x,y,z, rd, Linewidth,5) subplot(2,2,2) plot3(x,y,z, r, Linewidth,4) print -depsc2 problem_14_1_40.eps % Section 14.2 # 27 figure(4); clf(4) set(gca, FontSize,12); set(gca, box, on ) t=-3:1e-2:3; x1=t; y1=exp(-t); z1=2*t-t.^2; x2=t; y2=1-t; z2=2*t; plot3(x1,y1,z1, b, Linewidth,2) hold on plot3(x2,y2,z2, r, Linewidth,2) grid on legend( curve, tangent line ) title( Section 14.2: # 27: curve and its tangent line ) print -depsc2 problem_14_2_27.eps % Section 14.3 # 35 figure(5); clf(5) set(gca, FontSize,12); set(gca, box, on ) x=-5:1e-2:5; 13

y=x.^(-2); kappa=6*x.^(-4)./((1+4*x.^(-6)).^(3/2)); plot(x,y, b, Linewidth,2) hold on plot(x,kappa, r, Linewidth,2) ylim([0 3]) legend( y(x), \kappa(x) ) title( Section 14.3: # 35 ) print -depsc2 problem_14_3_35.eps % Section 15.1 # 51, 52 figure(6); clf(6) set(gca, FontSize,12); set(gca, box, on ) x=-2:1e-2:2; y=x; [X,Y]=meshgrid(x,y); f=inline( exp(-x.^2)+exp(-2*y.^2), x, y ); g=inline( (1-3*x.^2+y.^2).*exp(1-x.^2-y.^2), x, y ); subplot(2,2,1) mesh(x,y,f(x,y)) title( Section 15.1 # 51: surface plot ) subplot(2,2,2) contour(x,y,f(x,y)) title( Section 15.1 # 51: contour plot ) subplot(2,2,3) mesh(x,y,g(x,y)) title( Section 15.1 # 52: surface plot ) 14

subplot(2,2,4) contour(x,y,g(x,y)) title( Section 15.1 # 52: contour plot ) print -depsc2 problem_15_1_51_52.eps % Section 15.1 # 70 figure(7); clf(7) set(gca, FontSize,12); set(gca, box, on ) x=-1:1e-2:1; y=x; [X,Y]=meshgrid(x,y); f=inline( (x.*y)./(x.^2+y.^2), x, y ); subplot(2,2,1) mesh(x,y,f(x,y)) title( Section 15.1: # 70: close to the origin ) subplot(2,2,2) x=-50:1e-1:50; y=x; [X,Y]=meshgrid(x,y); mesh(x,y,f(x,y)) title( Section 15.1: # 70: away from the origin ) print -depsc2 problem_15_1_70.eps % Section 15.4 # 8 15

figure(8); clf(8) set(gca, FontSize,12); set(gca, box, on ) x=-1:1e-2:1; y=x; [X,Y]=meshgrid(x,y); f=inline( atan(x.*y.^2), x, y ); subplot(2,2,1) mesh(x,y,f(x,y)) hold on g=inline( pi/4+(x-1)/2+y-1, x, y ); mesh(x,y,g(x,y)) title( Section 15.4: # 8 ) % surface % tangent plane x2=0.9:1e-3:1.1; y2=x2; [X2,Y2]=meshgrid(x2,y2); subplot(2,2,2) mesh(x2,y2,f(x2,y2)) hold on mesh(x2,y2,g(x2,y2)) title( Section 15.4: # 8: zoom in ) xlim([0.9 1.1]) ylim([0.9 1.1]) print -depsc2 problem_15_4_8.eps 16