Math 467 Homework Set 1: some solutions > with(detools): with(plots): Warning, the name changecoords has been redefined

Similar documents
It is easier to visualize plotting the curves of cos x and e x separately: > plot({cos(x),exp(x)},x = -5*Pi..Pi,y = );

Topic 6: Calculus Integration Volume of Revolution Paper 2

Calculus I Review Handout 1.3 Introduction to Calculus - Limits. by Kevin M. Chevalier

Thursday 14 June 2012 Morning

Study Guide for Test 2

Functions. Edexcel GCE. Core Mathematics C3

Graphs of Polynomial Functions. Use the information that you get from the Maple output to do the following:

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

Exponential and Logarithmic Functions. College Algebra

Functions of Several Variables

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

minutes/question 26 minutes

Partial Derivatives (Online)

Accuracy versus precision

Contents. MATH 32B-2 (18W) (L) G. Liu / (TA) A. Zhou Calculus of Several Variables. 1 Homework 1 - Solutions 3. 2 Homework 2 - Solutions 13

HSC Mathematics - Extension 1. Workshop E2

Section 4.3. Graphing Exponential Functions

MEI STRUCTURED MATHEMATICS METHODS FOR ADVANCED MATHEMATICS, C3. Practice Paper C3-B

Names: / / / Chapter 6: Sojourn into Calculus Section 1. Derivative and Integral Formulae with MAPLE

correlated to the Michigan High School Mathematics Content Expectations

Math 340 Fall 2014, Victor Matveev. Binary system, round-off errors, loss of significance, and double precision accuracy.

Cardinality of Sets. Washington University Math Circle 10/30/2016

MATH 122 FINAL EXAM WINTER March 15, 2011

5-2 Verifying Trigonometric Identities

Math 241, Final Exam. 12/11/12.

Continuity and Tangent Lines for functions of two variables

MAT137 Calculus! Lecture 31

Integration. Volume Estimation

Lesson 16: Integration

DOWNLOAD PDF BIG IDEAS MATH VERTICAL SHRINK OF A PARABOLA

An Introduction to Maple and Maplets for Calculus

5-2 Verifying Trigonometric Identities

Lesson 3: Solving Equations; Floating-point Computation


Mathematics E-15 Exam I February 21, Problem Possible Total 100. Instructions for Proctor

Algebra 4-5 Study Guide: Direct Variation (pp ) Page! 1 of! 9

AP Calculus AB Unit 2 Assessment

1

Using the HP 38G in upper school: preliminary thoughts

C3 Numerical methods

MATH 19520/51 Class 6

1. Draw the state graphs for the finite automata which accept sets of strings composed of zeros and ones which:

Omit Present Value on pages ; Example 7.

Math 113 Exam 1 Practice

Math 5BI: Problem Set 2 The Chain Rule

DO NOT RE-DISTRIBUTE THIS SOLUTION FILE

Calculus III. 1 Getting started - the basics

Graphs of Exponential

Course of study- Algebra Introduction: Algebra 1-2 is a course offered in the Mathematics Department. The course will be primarily taken by

Walt Whitman High School SUMMER REVIEW PACKET. For students entering AP CALCULUS BC

Graphing and Equations

Section 5: Functions: Defining, Evaluating and Graphing

Math 1206 Calculus Sec. 5.6: Substitution and Area Between Curves (Part 2) Overview of Area Between Two Curves

The Divergence Theorem

MATH 417 Homework 8 Instructor: D. Cabrera Due August 4. e i(2z) (z 2 +1) 2 C R. z 1 C 1. 2 (z 2 + 1) dz 2. φ(z) = ei(2z) (z i) 2

C1M0 Introduction to Maple Assignment Format C1M1 C1M1 Midn John Doe Section 1234 Beginning Maple Syntax any

Integration. Edexcel GCE. Core Mathematics C4

Chapter 7. Exercise 7A. dy dx = 30x(x2 3) 2 = 15(2x(x 2 3) 2 ) ( (x 2 3) 3 ) y = 15

MATH 31A HOMEWORK 9 (DUE 12/6) PARTS (A) AND (B) SECTION 5.4. f(x) = x + 1 x 2 + 9, F (7) = 0

AQA GCSE Maths - Higher Self-Assessment Checklist

Homework: Study 6.1 # 1, 5, 7, 13, 25, 19; 3, 17, 27, 53

4 Visualization and. Approximation

We can conclude that if f is differentiable in an interval containing a, then. f(x) L(x) = f(a) + f (a)(x a).

Appendix H: Introduction to Maple

2 Geometry Solutions

Queens College, CUNY, Department of Computer Science Numerical Methods CSCI 361 / 761 Fall 2018 Instructor: Dr. Sateesh Mane

MA 113 Calculus I Fall 2015 Exam 2 Tuesday, 20 October Multiple Choice Answers. Question

QUIZ 4 (CHAPTER 17) SOLUTIONS MATH 252 FALL 2008 KUNIYUKI SCORED OUT OF 125 POINTS MULTIPLIED BY % POSSIBLE

Monte Carlo Integration

Cecil Jones Academy Mathematics Fundamentals

The diagram above shows a sketch of the curve C with parametric equations

Functions of Two variables.

SPM Add Math Form 5 Chapter 3 Integration

The Bisection Method versus Newton s Method in Maple (Classic Version for Windows)

Principles of Linear Algebra With Maple TM The Newton Raphson Method

MATH 54 - LECTURE 4 DAN CRYTSER

MEI GeoGebra Tasks for AS Pure

An Introduction to Using Maple in Math 23

Linear and quadratic Taylor polynomials for functions of several variables.

Solve, RootOf, fsolve, isolve

Basic stuff -- assignments, arithmetic and functions

MATH 104 Sample problems for first exam - Fall MATH 104 First Midterm Exam - Fall (d) 256 3

First of all, we need to know what it means for a parameterize curve to be differentiable. FACT:

Graphs and transformations, Mixed Exercise 4

Lesson 29: Fourier Series and Recurrence Relations

Math 213 Calculus III Practice Exam 2 Solutions Fall 2002

Introduction to Classic Maple by David Maslanka

AP Calculus BC Course Description

Mastery. PRECALCULUS Student Learning Targets


CHAPTER 5: Exponential and Logarithmic Functions

Core Mathematics 3 Functions

. Tutorial Class V 3-10/10/2012 First Order Partial Derivatives;...

Calculus II - Math 1220 Mathematica Commands: From Basics To Calculus II - Version 11 c

MATH 261 EXAM I PRACTICE PROBLEMS

Math 3 Coordinate Geometry Part 2 Graphing Solutions

TABLE OF CONTENTS CHAPTER 1 LIMIT AND CONTINUITY... 26

The following information is for reviewing the material since Exam 3:

Minnesota Academic Standards for Mathematics 2007

x 6 + λ 2 x 6 = for the curve y = 1 2 x3 gives f(1, 1 2 ) = λ actually has another solution besides λ = 1 2 = However, the equation λ

Transcription:

Math 467 Homework Set : some solutions > with(detools): with(plots): Warning, the name changecoords has been redefined Problem : 2.2.7 Find the fixed points, determine their stability, for d x( t ) = cos x e x > plot(cos(x) - exp(x),x = -5*Pi..Pi,y=-2..2); It is easier to visualize plotting the curves of cos x and e x separately: > plot({cos(x),exp(x)},x = -5*Pi..Pi,y = -2..2);

The fixed points are at the intersections of these two curves. Let's find the first few numerically, specifying the intervals for the numerical solution, which we know from the behaviour of cos x: > x0 := fsolve(exp(x)-cos(x),x,-..); x := fsolve(exp(x)-cos(x),x,-pi..-); x2 := fsolve(exp(x)-cos(x),x,-2*pi..-pi); x3 := fsolve(exp(x)-cos(x),x,-3*pi..-2*pi); x4 := fsolve(exp(x)-cos(x),x,-4*pi..-3*pi); x0 := 0. x := -.29269579 x2 := -4.72292759 x3 := -7.853593280 x4 := -0.9955906 We observe that the roots xk for 2 k are close to the zeros of cos x, since e x is small: > evalf(seq(-(k-/2)*pi,k=2..4)); -4.7238898, -7.85398635,-0.99557429

e x From the sign of cos x, we can see that the fixed points xk are stable if k is odd, and unstable if k is even. We can deduce the qualitative behaviour of the solutions from the fixed points and their stability. Direct numerical integration using Maple gives: > eqp := diff(x(t),t) = exp(x(t)) - cos(x(t)); initconds := [[x(0)=],[x(0)=0],[x(0)=-],[x(0)=-2],[x(0)=-4],[x(0)=x2],[x(0 )=-5],[x(0)=-7], [x(0)=-8]]: DEplot(eqp,x(t),t=0..8,x=-9..2,initconds,linecolor=black); > d eqp := x( t ) = e x( t ) cos ( x( t ) ) A closed-form analytical solution is not available, since it would require the integration of e x cos x. Problem 2: 2.2.8 We seek a dynamical system yielding the given flow. A possible answer is given by d x( t ) = ( x + ) 2 x ( x 2) > eqp2 := diff(x(t),t) = (x(t)+)^2 * x(t) * (x(t)-2): initconds2 := [[x(0)=-.5],[x(0)=-],[x(0)=-0.8],[x(0)=0],[x(0)=.2], [x(0)=2],[x(0)=2.00]]: DEplot(eqp2,x(t),t=0..5,x=-2..3,initconds2,linecolor=black);

This is one of many possible answers; others are obtained by multiplying the vector field by g( x ), where g is positive except possibly at one or more of the fixed points. Problem 3: 2.2.0 - Fixed Points We seek examples of first-order dynamical systems dx/ = f(x) satisfying certain conditions: (a) Every real number is a fixed point: dx = 0 (b) Every integer is a fixed point, and there are no others: dx = sin( π x ) (c) There are no examples in which there are exactly three fixed points, and all are stable. In fact, we cannot even have two stable fixed points adjacent to each other. This is easily seen by drawing a picture; but we can also argue as follows: Suppose x_ and x_2 are two adjacent fixed points. Then, from the assumptions that f(x) is continuous, and that f(x) is nonzero between x_ and x_2 (there are no fixed points between x_ and x_2), we must have that f(x) has one sign between x_ and x_2. Suppose without loss of generality that f(x)>0 in this interval. Then for any initial condition x_0 in this interval, the solution must be increasing (dx/ > 0), and must approach x_2 as t, consistent with the assumption that x_2 is stable. However, this contradicts the assumption that x_ is stable, since we can choose the initial point x_0 as close to (but above) x_ as we like. (d) An equation with no fixed points is dx = (e) A simple example of an equation with precisely 00 fixed points is

dx = ( x )( x 2 ).. ( x 99 )( x 00) Problem 4: 2.2.3 - Skydiver > m := 'm': g := 'g': k := 'k': eqp3 := diff(v(t),t) = g - k*v(t)^2/m; d k v( t ) 2 eqp3 := v( t ) = g m The command odeadvisor indicates the solution method for this first-order ODE. > odeadvisor(eqp3); [_quadrature ] To find the solution, we separate variables, and integrate; the integration of ( a 2 v 2 ) ( ) (where a = gm ) is best performed using partial fractions. Maple can also solve this equation k analytically: dsolve(eqp3); gmk ( t + _C ) tanh gmk m v( t ) = k mg In fact, this solution is only valid if m, g and k are all positive, and if < v( t ). It seems k that Maple automatically made these assumptions; in this case they are justified, but this example shows that in general Maple's analytical solutions are not always reliable: do the calculations by hand, and show your working! (you can use Maple to check, if you like). That is, the solution produced by Maple is only the general solution for a < v( 0 )(the problem is to take care with absolute value signs...). We can find the particular solution satisfying the initial condition v0 ( ) = 0: > solp3 := rhs(dsolve({eqp3,v(0)=0})); gmk t tanh gmk m solp3 := k Now we can use Maple to find the asymptotic behaviour: > limit(solp3,t=infinity); gmk t tanh gmk m lim t k Evidently, now (finally!) Maple is concerned about the sign of the variables. Let's try specifying that all variables are positive: > limit(solp3,t=infinity) assuming (g>0,m>0,k>0);

gmk k This gives the correct terminal velocity. We can write the formula for v( t ) in terms of the terminal velocity V: vsol := simplify(subs(m=k*v^2/g,solp3)) assuming (k>0,v>0); vsol := tanh tg V V This answer is much more easily obtained by the graphical method. We plot dv against v (choosing some values of the variables): g := 0: m := 0.: k := : plot(g - k*v*v/m,v=-.5...5); m := 'm': g := 'g': k := 'k': Now let's use the numbers given: The average velocity is (in ft/sec) Vavg := (3400-200)/6; evalf(vavg); 7325 Vavg := 29 252.5862069 ds The distance travelled as a function of time is s( t ) satisfying = v and s( 0 ) = 0. s := int(vsol,t) assuming (V>0,g>0); V 2 ln tanh tg V 2 ln tanh tg + V V s := 2 g 2 g This solution doesn't look too correct: it is giving negative arguments of the ln function (and is

thus complex-valued). Let's try to help Maple a bit, by performing the appropriate substitution by hand... s2 := Int(vsol,t) assuming (V>0,g>0); > s3 := value(student[changevar](tau=t*g/v,s2,tau)); > s := subs(tau=t*g/v,s3); s2 := tanh tg d V V t s3 := V 2 ln ( cosh( τ ) ) g V 2 ln cosh tg V s := g > g := 32.2: t := 6: s; dist := 3400-200; solve(s=dist,v); 0.0305590062 V 2 ln cosh 3735.2 V dist := 29300-252.5862069 In the command solve, Maple attempts an analytical solution; in this case it gets it wrong (I'm not sure why; but the given value is the average velocity computed previously, which cannot also be the terminal velocity). For a problem with purely floating-point solutions, we should use fsolve (and look for the positive solution): Vterm := fsolve(s=dist,v,v=0..infinity); Vterm := 265.685485 From this value of the terminal velocity, we can compute the drag constant k. Note that the weight (in pounds) is mg. weight := 26.2: kdrag := solve(sqrt(weight/k)=vterm,k); kdrag := 0.003700305037 > m := 'm': g := 'g': k := 'k': s := 's': t := 't': Problem 5: 2.3.2 - Autocatalysis k_ a The fixed points are readily found to be 0 and k_ ( ) > fp4 := k_*a*x - km_*x^2; solve(fp4,x); fp4 := k_ a x km_ x 2

0, k_ a km_ x = 0 is unstable, the other fixed point is stable. We can do a quick graphical analysis, and plot some typical solutions, if we assume values for the constants: a := : k_ := : km_ := : plot(fp4,x=-0.5...5); > DEplot(diff(x(t),t)=a*k_*x(t)-km_*x(t)^2,x(t),t=0..5,x=-0.2.. 2,[[x(0)=-0.0],[x(0)=0.],[x(0)=0.7],[x(0)=.7]],linecolor=blac k); Problem 6: 2.4.7 - Pitchfork bifurcation > f6 := (x,a) -> a*x - x^3;

f6 := ( x, a ) ax x 3 We plot the three vector fields next to each other, using the array function: p6a := plot(f6(x,-),x=-.5...5,y=-2..2,tickmarks=[0,0]): p6b := plot(f6(x,0),x=-.5...5,y=-2..2,tickmarks=[0,0]): p6c := plot(f6(x,),x=-.5...5,y=-2..2,tickmarks=[0,0]): > plots6 := array(..,..3): plots6[,]:=p6a: plots6[,2]:=p6b: plots6[,3]:=p6c: display(plots6); For a 0, there is a unique fixed point at x = 0, which is stable; for a < 0 this is found by linear stability analysis (since f'(0) = a < 0), while for a = 0, linear stability analysis does not prove stability (decay towards the origin is slower than exponential - see the next problem), but a look at the plot of x 3 shows that the origin is stable. If 0 < a, there are three fixed points, at x = 0, x = a and x = a. Now f'(0) = a is positive, so the origin is unstable, while the other two fixed points are stable, with f' = 2 a. This is also apparent from the graphs. > Problem 7: 2.4.9 - Critical slowing down Reset variables: x0 := 'x0': > eqp7 := diff(x(t),t) = - x(t)^3; d eqp7 := x( t ) = x( t ) 3 Find the analytical solution with arbitrary initial condition: xsa := dsolve({eqp7,x(0)=x0},x(t)) assuming x0>0; xsb := dsolve({eqp7,x(0)=x0},x(t)) assuming x0<0; xsz := dsolve({eqp7,x(0)=0},x(t));

> limit(xsa,t=infinity); limit(xsb,t=infinity); xsa := x( t ) = xsb := x( t ) = 2 t + 2 t + xsz := x( t ) = 0 lim t lim t x( t ) = 0 x( t ) = 0 So the solutions approach zero for arbitrary initial conditions; however, the decay is proportional x0 2 x0 2 to, not exponential. t dx We plot the solutions of this equation and of = x on the same graph: lineq := diff(x(t),t) = -x(t): linsoln := dsolve({lineq,x(0)=0},x(t)); critsoln := dsolve({eqp7,x(0)=0},x(t)); linsoln := x( t ) = 0 e ( t) critsoln := x( t ) = 2 t + 00 > plot([rhs(linsoln),rhs(critsoln)],t=0..0);

dx Note that the solution to = x 3 decays much more rapidly initially, but then slows down once x <. Problem 8: 2.5. - Reaching origin in finite time The origin x = 0 is a stable fixed point for any real 0 < c. We plot a few representative vector fields: > plot(-x^(/2),x=0..2,tickmarks=[0,0]); plot(-x^,x=0..4,-4..0.5,tickmarks=[0,0]); plot(-x^2,x=0..2,y=-4..0.5,tickmarks=[0,0]);

We know that for c =, the decay towards the origin is exponential, and x approaches 0 asymptotically. When < c, the decay is slower than exponential, as we derived in Problem 7. So the only possibility for the solution to decay to zero in finite time is for c <. The time taken from x = to x = 0 is T = int(-/x^c,x=..0); x ( c + ) T = lim x 0+ c When < c, the limit diverges; when c =, T is also infinite ( T = lim ln x). When c <, the time

is finite: T = int(-/x^c,x=..0) assuming c < ; T = c Problem 9: 2.5.2 - Blow-up dy We know that solutions y( t ) of = + y 2 blow up in finite time. Now for < x, the solutions dx x( t ) of = + x 0 grow more rapidly than y( t ), since x 2 < x 0 for < x. Thus the solutions x( t ) must also blow up in finite time. This is not yet a complete argument, though, since it is only valid for < x; but since + x 0, we know that solutions beginning at any initial condition x0 will reach x = at the latest at time t = x0; and since we reach x = in finite time, we can then begin the comparison with y( t ). An alternative argument: suppose x0 ( ) = x0. The time taken to diverge (reach x = ) is given by T = Int(/(+x^0),x=x0..infinity); T = x0 dx + x 0 If this is finite for all x0, then we have finite-time blow-up. But we have T < Int(/(+x^0),x=-infinity..infinity): so Int(/(+x^0),x=-..) + 2*Int(/(+x^0),x=..infinity): and introducing appropriate comparisons, we find T < Int(/,x=-..) + 2*Int(/(+x^2),x=..infinity); T < dx + 2 d x - + x 2 Thus an estimate of the upper bound for the blow-up time for any initial condition is > int(,x=-..) + 2*int(/(+x^2),x=..infinity); evalf(%); (clearly finite) π 2 + 2 3.570796327 The actual upper bound is int(/(+x^0),x=-infinity..infinity); evalf(%); π 5 sin π 0

We plot some numerical solutions: 2.03328478 DEplot(diff(x(t),t)=+x(t)^(0),x(t),t=0..3,x=-3..5,[[x(0)=-.]],stepsize=0.0,linecolor=black); >