Math 4600: Homework 11 Solutions

Similar documents
HOMEWORK # 2: MATH 211, SPRING Note: This is the last solution set where I will describe the MATLAB I used to make my pictures.

Math 36. Rumbos Spring Solutions to Assignment #6. 1. Suppose the growth of a population is governed by the differential equation.

dt = C exp (3 ln t 4 ). t 4 W = C exp ( ln(4 t) 3) = C(4 t) 3.

Solutions to Assignment 1

Math 333 Problem Set #2 Solution 14 February 2003

ME 391 Mechanical Engineering Analysis

1 1 + x 2 dx. tan 1 (2) = ] ] x 3. Solution: Recall that the given integral is improper because. x 3. 1 x 3. dx = lim dx.

t + t sin t t cos t sin t. t cos t sin t dt t 2 = exp 2 log t log(t cos t sin t) = Multiplying by this factor and then integrating, we conclude that

MA 214 Calculus IV (Spring 2016) Section 2. Homework Assignment 1 Solutions

EXERCISES FOR SECTION 1.5

Math 23 Spring Differential Equations. Final Exam Due Date: Tuesday, June 6, 5pm

15. Vector Valued Functions

Math Final Exam Solutions

Solutionbank Edexcel AS and A Level Modular Mathematics

u(x) = e x 2 y + 2 ) Integrate and solve for x (1 + x)y + y = cos x Answer: Divide both sides by 1 + x and solve for y. y = x y + cos x

5.1 - Logarithms and Their Properties

System of Linear Differential Equations

Y 0.4Y 0.45Y Y to a proper ARMA specification.

Math 2214 Solution Test 1A Spring 2016

Some Basic Information about M-S-D Systems

Chapter 2. First Order Scalar Equations

Math 334 Test 1 KEY Spring 2010 Section: 001. Instructor: Scott Glasgow Dates: May 10 and 11.

Math 10B: Mock Mid II. April 13, 2016

Reading from Young & Freedman: For this topic, read sections 25.4 & 25.5, the introduction to chapter 26 and sections 26.1 to 26.2 & 26.4.

Introduction to Physical Oceanography Homework 5 - Solutions

Ground Rules. PC1221 Fundamentals of Physics I. Kinematics. Position. Lectures 3 and 4 Motion in One Dimension. A/Prof Tay Seng Chuan

IB Physics Kinematics Worksheet

Differential Equations

Chapter 15: Phenomena. Chapter 15 Chemical Kinetics. Reaction Rates. Reaction Rates R P. Reaction Rates. Rate Laws

Class Meeting # 10: Introduction to the Wave Equation

Review - Quiz # 1. 1 g(y) dy = f(x) dx. y x. = u, so that y = xu and dy. dx (Sometimes you may want to use the substitution x y

Chapter 6. Systems of First Order Linear Differential Equations

1. VELOCITY AND ACCELERATION

3.6 Derivatives as Rates of Change

Physics 235 Chapter 2. Chapter 2 Newtonian Mechanics Single Particle

Module 2 F c i k c s la l w a s o s f dif di fusi s o i n

WEEK-3 Recitation PHYS 131. of the projectile s velocity remains constant throughout the motion, since the acceleration a x

Math 2142 Exam 1 Review Problems. x 2 + f (0) 3! for the 3rd Taylor polynomial at x = 0. To calculate the various quantities:

ENV 6015 Solution to Mixing Problem Set

k B 2 Radiofrequency pulses and hardware

Ch.1. Group Work Units. Continuum Mechanics Course (MMC) - ETSECCPB - UPC

CHAPTER 12 DIRECT CURRENT CIRCUITS

UCLA: Math 3B Problem set 3 (solutions) Fall, 2018

Simulation-Solving Dynamic Models ABE 5646 Week 2, Spring 2010

Week 1 Lecture 2 Problems 2, 5. What if something oscillates with no obvious spring? What is ω? (problem set problem)

Math 116 Second Midterm March 21, 2016

Predator - Prey Model Trajectories and the nonlinear conservation law

t is a basis for the solution space to this system, then the matrix having these solutions as columns, t x 1 t, x 2 t,... x n t x 2 t...

KINEMATICS IN ONE DIMENSION

4.5 Constant Acceleration

KEY. Math 334 Midterm I Fall 2008 sections 001 and 003 Instructor: Scott Glasgow

Fishing limits and the Logistic Equation. 1

AP Chemistry--Chapter 12: Chemical Kinetics

, where P is the number of bears at time t in years. dt (a) If 0 100, lim Pt. Is the solution curve increasing or decreasing?

Announcements: Warm-up Exercise:

Two Coupled Oscillators / Normal Modes

Answers to 1 Homework

Traveling Waves. Chapter Introduction

AP Calculus BC Chapter 10 Part 1 AP Exam Problems

!!"#"$%&#'()!"#&'(*%)+,&',-)./0)1-*23)

MA 366 Review - Test # 1

Math 105 Second Midterm March 16, 2017

Chapter 13 Homework Answers

23.2. Representing Periodic Functions by Fourier Series. Introduction. Prerequisites. Learning Outcomes

Math 116 Practice for Exam 2

Section 3.5 Nonhomogeneous Equations; Method of Undetermined Coefficients

72 Calculus and Structures

( ) a system of differential equations with continuous parametrization ( T = R + These look like, respectively:

1 st order ODE Initial Condition

Challenge Problems. DIS 203 and 210. March 6, (e 2) k. k(k + 2). k=1. f(x) = k(k + 2) = 1 x k

Position, Velocity, and Acceleration

a. Show that these lines intersect by finding the point of intersection. b. Find an equation for the plane containing these lines.

Brock University Physics 1P21/1P91 Fall 2013 Dr. D Agostino. Solutions for Tutorial 3: Chapter 2, Motion in One Dimension

APPM 2360 Homework Solutions, Due June 10

Homework-8(1) P8.3-1, 3, 8, 10, 17, 21, 24, 28,29 P8.4-1, 2, 5

Matlab and Python programming: how to get started

= ( ) ) or a system of differential equations with continuous parametrization (T = R

4.1 - Logarithms and Their Properties

(1) (2) Differentiation of (1) and then substitution of (3) leads to. Therefore, we will simply consider the second-order linear system given by (4)

Solutions from Chapter 9.1 and 9.2

3, so θ = arccos

Homework 2 Solutions

2.1: What is physics? Ch02: Motion along a straight line. 2.2: Motion. 2.3: Position, Displacement, Distance

Note: For all questions, answer (E) NOTA means none of the above answers is correct.

Week #13 - Integration by Parts & Numerical Integration Section 7.2

EE100 Lab 3 Experiment Guide: RC Circuits

1. Kinematics I: Position and Velocity

Math Week 14 April 16-20: sections first order systems of linear differential equations; 7.4 mass-spring systems.

Lecture 2-1 Kinematics in One Dimension Displacement, Velocity and Acceleration Everything in the world is moving. Nothing stays still.

Chapter 8 The Complete Response of RL and RC Circuits

Advanced Organic Chemistry

NEWTON S SECOND LAW OF MOTION

Hamilton- J acobi Equation: Weak S olution We continue the study of the Hamilton-Jacobi equation:

2.7. Some common engineering functions. Introduction. Prerequisites. Learning Outcomes

ADVANCED MATHEMATICS FOR ECONOMICS /2013 Sheet 3: Di erential equations

THE WAVE EQUATION. part hand-in for week 9 b. Any dilation v(x, t) = u(λx, λt) of u(x, t) is also a solution (where λ is constant).

6.003 Homework 1. Problems. Due at the beginning of recitation on Wednesday, February 10, 2010.

MEI STRUCTURED MATHEMATICS 4758

Lab 10: RC, RL, and RLC Circuits

Transcription:

Mah 46: Homework Soluions Gregory Handy [.] One of he well-known phenomenological (capuring he phenomena, bu no necessarily he mechanisms) models of cancer is represened by Gomperz equaion dn d = bn ln(n/k) (a) Solve his equaion wih N() = N using he subsiuion u = ln(n/k), o obain he soluion N() = K exp( Ae b ), where A = ln(n /K). (b) Plo he soluion as a funcion of ime for K =, N =., b =. Illusrae wih a plo and describe in words wha happens o he umor dynamics if he growh rae b is varied. Compare wih he logisic dynamics dn d = bn(n K). (a) We sar by considering he subsiuion u = ln(n/k). Solving for N yields Differeniaing boh sides wih respec o yields N() = Ke u(). dn d = Keu() du d. We can plug in he above componens ino our ODE o find Ke u du d = bkeu u du d = bu. Using separaion of variables and hen inegraing, we find Wriing his in erms of N(), we have du u = bd ln(u) = b + C u() = Ae b. ln(n/k) = Ae b N() = K exp(ae b ). We can now use our iniial condiion o solve for he consan A Thus, our final soluion is N() = N N = K exp(a) A = ln(n /k). N() = K exp( Ae b ), wih A = ln(n /K).

b=. b=. b=..9.8 Gomperz Logisic.9.8 Gomperz Logisic.9.8 Gomperz Logisic.7.7.7.6.6.6 N(). N(). N()..4.4.4.3.3.3.2.2.2.... Figure : Plo of he soluions for he Gomperz equaion and he logisic equaion. Noe he change in he x-axis beween he plos. (b) The soluion plo (wih varying levels of b) of he Gomperz equaion can be found in Fig.. increasing b, we find ha he graph increases significanly faser. We can also solve he logisic equaion using separaion of variaions, or solve i numerically using ode4 (I oped for he numerical mehod). These plos can also be found in Fig.. Comparing hese wo curves, we find ha ha he Gomperz equaion increases faser han he logisic equaion. [.2] Do he following exercises for hese funcions: (a) f(x, y) = y 2 sin x (b) f(x, y) = exp(.(x 2 + y 2 )) Find f,,, gradien of f. (compuing) Visualize he surface and he level curves given by he equaion z = f(x, y) in MATLAB. Explore differen funcions for ploing: mesh, meshz, meshc, surface and see wha hey do. (a) We firs consider f(x, y) = y 2 sin x. We find f = [y2 sin x] = y 2 cos(x). = 2 [y 2 sin x] = [y 2 sin x] = [2y sin x] = 2y cos x Since f is a coninuous, well-behaving funcion, we know immediaely ha = 2y cos x. 2

Lasly, he gradien of f is ( f, f ) = ( y 2 cos(x), 2y sin(x) ). 4 2 z 2 4 y x Figure 2: Plo of f(x, y) = y 2 sin x. (b) We firs consider f(x, y) = exp(.(x 2 + y 2 )). We find f = [exp(.(x2 + y 2 ))] =.2x exp(.(x 2 + y 2 )). = 2 [exp(.(x 2 + y 2 ))] = [exp(.(x 2 + y 2 ))] = [.2y exp(.(x2 + y 2 ))] =.4yx exp(.(x 2 + y 2 )) Since f is a coninuous, well-behaving funcion, we know immediaely ha =.4yx exp(.(x2 + y 2 )). Lasly, he gradien of f is ( f, f ) = (.2x exp(.(x 2 + y 2 )),.2y exp(.(x 2 + y 2 )) ). 3

z. y x Figure 3: Plo of f(x, y) = exp(.(x 2 + y 2 )). [.3] Concenraion of nuiens in a Peri dish (shallow pool of nuriens) can be described by c(x, y) = C exp( α(x 2 + y 2 )). A baceria is siing a he poin (, ) and moves in he direcion of increasing nuriens concenraion. In which direcion will i move? Draw a picure. Where will i end up? By he problem saemen, we can assume C, α >. In order o find he direcion of movemen, we need o find he gradien a he poin (, ), c(x, y) = 2αC x exp( α(x 2 + y 2 )) c(x, y) = 2αC y exp( α(x 2 + y 2 )). I follows ha ( c(x, y), ) c(x, y) = ( 2αC exp( 2α), 2αC exp( 2α)). (, ) Thus, he baceria will wan o decrease is x-posiion, while increasing is y-posiion. The baceria will coninue o climb up he concenraion gradien unil he gradien is (, ). Looking a he above formula, his will occur when x = and y =. Figure 4: Plo of he baceria a (, ) on he concenraion surface c(x, y) = C exp( α(x 2 + y 2 )). The black line uses he gradien o show he direcion ha he baceria will move. 4

The following wo problems refer o he one-dimensional diffusion equaion u = Du xx [.4] Find he seady sae soluion of he one-dimensional diffusion equaion wih boundary condiions u x (, ) = c, u(l, ) = c 2, x [, L]. Plo i. We can find he seady sae soluion by seing u =. I follows ha we are lef wih he following ODE u xx =. Inegraing once, we find u x = k. From he boundary condiion u x (, ) = c, we know ha k = c. Inegraing his equaion again yields u(x) = c x + k 2. Using he oher boundary condiion u(l, ) = c 2, we find c 2 = c L + k 2 k 2 = c 2 c L. Thus, our final soluion is u(x) = c x + (c 2 c L) Choosing L =, c =, and c 2 = 2, we plo his seady sae soluion on Fig.. 2.8.6 u(x).4.2.2.4.6.8 x Figure : Seady sae soluion. [.] In an experimen a subsance of concenraion A is released ino a narrow ube a x =, =. I difuses along he ube wih diffusion consan D =. Deecors are seup along he ube a all locaions x >. They can deec he subsance if he concenraion is above % of A. (a) Wha is he furhes locaion X() where he deecor will be responding a ime? (Hin: You will need o solve he diffusion equaion before you find X(). Use fundamenal soluion approach.) (b) Skech he ime evoluion of X()

(a) Given he fundamenal soluion of he diffusion equaion we know our soluion akes he form u(x, ) = Γ(x, ) = e x2 /(4D), e (x y)2 /(4D) f(y)dy, where u(x, ) = f(x) is our iniial condiion. For his problem, we have u(x, ) = = e (x y)2 /(4D) Aδ(y )dy A e x2 /(4D) = A e x2 /(4), where we have aken D = in he las equaliy. Now, we are ineresing in X(), he furhes locaion ha is able o deec u(x, ).A. Thus, seing he above soluion equal o.a and solving for x yields A e x2 /(4) =.A e x2 /(4) =. ( x2 = ln. ) 4 ( X() = 4 ln. ) (b) Taking A =, we can use MATLAB o plo X(). We see ha iniially his poin increases, before going back o zero. This makes sense, since as increases from, he soluion will spread ou, and hus X() will increase. However as, he soluion will flaen ou, and no poins will be above he % hreshold, and so X() will decrease back o. Run he code on he nex page o produce a movie of his soluion evolving wih ime. 4 3 X() 2 2 3 4 Figure 6: Plo of X(). 6

clear; clc; close all; A=; D = ; = [:.:3]; x=[:.:]; u = zeros(lengh(x),lengh()); for i = :lengh() u(:,i) = A/sqr(4*pi*D*(i)).*exp(-x.^2./(4*D*(i))); end deecor=sqr(-log(.*sqr(4*pi*d*))*4*d.*); % makes a movie ha plos he soluions and he % deecor poin for i = :lengh() hold off plo(x,u(:,i), linewidh,.) hold on plo(real(deecor(i)),.*a,., markersize,2, color, black ) se(gca, fonsize,6) xlabel( x, fonsize,6) ylabel( u(x,), fonsize,6) ile_emp=sprinf( ime=%.2f,(i)); ile(ile_emp) axis([ ]) pause(.) end %% figure(2); plo(,real(deecor), linewidh,.) se(gca, fonsize,6) xlabel(, fonsize,6) ylabel( X(), fonsize,6) 7