Applications: qualitative behavior

Paths in the plane

A classical set of applications of first-order ODEs involves finding paths through space with specific properties.

Example

Catenary

Problem: A catenary is the shape formed by a hanging chain, string, or cable, and also the shape formed by a stable arch. A cable can only resist expansion forces directed along its length, while an arch can only resist compression forces directed along its length. What is the shape of a catenary?

Solution: Consider a hanging chain. Let FT be the tension force tangent to the chain at a point p=(x,y), and let FH be the horizontal component of the tension, so FH=FTcosθ, where θ is the angle formed by the line tangent to the chain at p.

The vertical balance of forces is more complicated. Set x=0 at the lowest point on the chain, and let s(x) measure the arclength of the chain with s(0)=0. At x=0, the chain has a horizontal slope, so the vertical component of tension force there is zero. At p=(x,y), the vertical component of tension force is FTsinθ. The total vertical force on the portion of chain from the bottom up to p is therefore FTsinθ, and this must balance the total weight of the chain from the bottom up to p, which is ρs(x), where ρ is the chain density. So FTsinθ=ρs(x).

By dividing our two equations, we have ρs(x)=FHtanθ. We may write dydx=tanθ for the slope of the tangent at p. This gives us the differential equation y=ρFHs(x). To solve this, we need to relate the arclength function s(x) to y(x). Recall the arclength formula:

s(x)=u=0x1+(y(u))2du.

Plugging this in gives a differential equation that can be solved algebraically. The solution (family of curves) is:

y(x)=FHρcosh(ρFHx)+D.

If we set h0=y(0), i.e. the vertical position of the bottom of the chain, we can solve for D and obtain:

y(x)=FHρcosh(ρFHx)+(h0FHρ).

https://www.desmos.com/calculator/ngjjfg5yxj

Question 05-01

Solve the ODE

Solve (algebraically) the ODE used to define the catenary curve. (Hint: differentiate the function s(x), substitute in, then use a reduction of order.)

Question 05-02

Arch vs. chain

Why does the St. Louis arch (or any other self-supporting arch) also have a catenary shape?

Example

Tractrix

A tractrix is a curve given by dragging a point behind a string of fixed length.

Problem: Suppose we drag the point p behind a string of length a. Suppose p starts at (a,0), and we start at (0,0) and walk in the +y direction. What is the shape of the path of p?

Solution: Write p=(x,y). The tangent line to the string at p has slope given by

dydx=a2x2x.

To see this, draw the triangle with vertices (x,y) and (0,y) and (0,y+a2x2). The hypotenuse of this triangle is the string itself, and we are pulling from the top vertex.

This equation is separable, and the solution is:

y(x)=aln(a+a2x2x)a2x2.

https://www.desmos.com/calculator/9mu1stojhl

Question 05-03

Pushing a pole

Suppose a pole is pushed from one end, with a free pivot on the end from which it is pushed. The shape of the path taken by the opposite end is also a tractrix. Why?

(Describe the concept of tractrix in such a way that it applies equally to dragging strings and pushing poles.)

Catenary vs. tractrix The catenary curve is the evolute of the tractrix; the tractrix is the involute of the catenary. https://en.wikipedia.org/wiki/Involute#Involute_and_evolute

Example

Pursuit curve

Problem: A gazelle runs up the y-axis at speed v1 starting at (0,0), and a cheetah runs towards the gazelle at speed v2 starting at (a,0). What is the shape of the path taken by the cheetah?

Solution: The gazelle’s path can be given parametrically by the curve 𝐫(t)=(0,v1t). Suppose the cheetah is at point p=(x,y(x)). The vertical distance from cheetah to gazelle is yv1t, and the horizontal distance is x.

We assume the cheetah is always running straight toward the gazelle, so the slope of the tangent line to the cheetah’s path is (yv1t)/x, and we obtain the differential equation:

dydx=yv1tx.

This equation involves two independent variables, t and x, so we cannot immediately solve it. Of course they are related by the fact that x(t) is the x-coordinate of the cheetah’s path. We would like to eliminate t from the equation by substituting a formula for t in terms of x, y, and y quantities. This is the hard part.

We know that the cheetah is running at speed v2, so we also have the equation:

v2=dsdt=dsdxdxdt=1+(y)2dxdt.

(Here we use s(t) for the arclength of the cheetah’s path.) This equation relates t to the quantities x, y, and y.

Now we seek to combine the equations. We can flip the second equation to obtain

dtdx=1v21+(y)2.

If we differentiate the first equation in x, we can make the t disappear, with dt/dx appearing instead:

y(x)=x(yv1t)(yv1t)x2=yxv1xdtdxyx=v1xdtdxxy=v1v21+(y)2.

Set k=v1/v2. Reduce the order using p(x)=y(x) and obtain:

p(x)=12((xa)k(ax)k)

Integrate this again to find y, solving for the constant using the initial condition y(a)=0:

y(x)=12((ak+1)(xa)k+1(a1k)(xa)1k)+ak(1k2).

https://www.desmos.com/calculator/geosk6qjrb

Question 05-04

Checking algebra

Check the algebra for the solution of p(x) and then the integration for y(x). (Write out all intermediate steps.)

Growth and decay

Another classic application of differential equations produces exponential growth and decay. Variants on this theme can account for recurring additions and subtractions.

Example

Growth of retirement fund with compound interest

A quantity of money A(t) in a savings account with compound interest rate r grows according to the differential equation A(t)=rA. The solution of this equation is an exponential function A(t)=A0ert, where A0=A(0) is the initial quantity in the account.

Theory: Compound interest with continuous deposit or withdrawal Suppose you make continuous deposits or withdrawals at a rate of d (in dollars per year, with d>0 for deposits, d<0 for withdrawals). Now the equation is:

dAdt=rA+d.

This equation is linear and separable. The solution can be found algebraically:

A(t)=Certdr.

If the account starts with A(0)=0, then C=dr and A(t)=dr(ert1).

Achieving a retirement fund Suppose this situation describes your Roth IRA. How much should you deposit in the account per year to achieve $800,000 after 40 years, with r=0.05? Answer:

d=$800,0000.05e0.05401=$6261.

Constant rate of retirement withdrawal, with inflation Suppose you have a retirement account with A0 dollars, growing at the interest rate r, and you plan to withdraw money at a rate which is increasing with inflation at k=2% per year, and starting at $80,000 per year. What should A0 be to ensure you will have money for 30 years of retirement?

This problem involves two exponential growths, one stemming from interest and the other from inflation. The rate of withdrawal W(t) satisfies W(t)=kW, so W(t)=W0ekt per year. Then the account value satisfies:

dAdt=rAW0ekt.

This equation is linear. The solution is:

A(t)=CertW0krekt.

Setting A(0)=A0, we can solve for C. Then plugging in A(30)=0, obtain the equation:

(A0+W0kr)er30=W0krek30.

Setting W_0=\ ParseError: Unexpected character: '\' at position 5: W_0=\̲80,000,r=0.05,andk=0.02,solveforA_0 and find \ ParseError: Unexpected character: '\' at position 11: and find \̲1,580,000.

Exercise 05A-01

Design your traditional IRA

You are planning a traditional IRA for retirement: contributions during your working life are pre-tax, and withdrawals during retirement are taxed according to your income bracket when withdrawing. Your plan is to start the fund with $20,000 when you turn 30, and then to contribute a fixed yearly amount X (modeled with a continuous yearly addition rate) each year until you turn 65. You invest the IRA in a broad market index with average yearly returns of 10% (not adjusted for inflation). Starting at age 65 you stop contributing and start withdrawing $70,000 per year after taxes for the next 25 years of retirement, and you would like to have $200,000 remaining in your estate at age 90, both figures measured in today’s dollars. Your tax bracket with this retirement income is 20%. Inflation is assumed to be a steady 2.5% per year. Everything is compounded continuously. What should you choose for the yearly contributions X?

Example

RC Circuits

An electrical circuit with a single resistor and a single capacitor is called an RC circuit: Suppose the voltage source E produces a voltage V(t) between its terminals, and write VR and VC for the voltage drops across the resistor and capacitor.

By Ohm’s Law, VR=IR, where I is the current flowing through the resistor, and R is the resistance of the resistor (a constant). The capacitor voltage drop satisfies VC=qC, where q is the charge stored in the capacitor, and C is the capacitance of the capacitor (a constant). Current is the rate of flow of charge per unit time: I=dqdt.

By Kerchoff’s Voltage Law, we have an equation for the circuit:

V(t)=VR+VC=IR+qC.

So we find that charge satisfies:

dqdt=V(t)q/CR,q(t)+1RCq(t)=1RV(t),

which is a linear ODE. Solving this ODE and dividing by C gives us a formula for VC(t):

VC(t)=1Cq(t)=V0et/RC+et/RC1RC0tes/RCV(s)ds.

Let us study this solution. The first term, V0et/RC, represents exponential decay from V0 to 0. The second term depends on the source function V(t). For example, if V(t)=V a constant, then the entire second term reduces to V itself, and the solution VC(t) will exponentially decay from V0+V down to V.

Here is a Mathlet that shows the response VC(t) when the source V(t) is a rectangular wave: https://mathlets.org/mathlets/periodic-box/

Exercise 05A-02

Bacteria growth on surface of spherical clump

A spherical clump of bacteria is growing in such a way that only the bacteria on its surface can reproduce, because only these are exposed to new food sources in the environment, while these surface bacteria do reproduce with exponential growth. Recall the formulas for volume and surface area of a sphere:

V=43πr3,A=4πr2.

Find a differential equation satisfied by the number N(t) of bacteria as a function of time.

Autonomous equations

In a first calculus class, the sign of the derivative y of a function y(x) is written on the number line in order to indicate places where y is increasing or decreasing. This technique is useful for determining whether a critical point is a local min, max, or neither.

The same technique is used to study first-order autonomous differential equations. Autonomous equations having the form dydt=f(y), meaning that the defining function f does not involve the independent variable t.

The main differences are: (i) for autonomous ODEs we have the derivative f(y) but we do not already have the function y(t), and (ii) for autonomous ODEs we draw the signs of f(y) as vertical arrows (up or down) on a vertical line, instead of “+” and “” on a horizontal line. We can add filled dots where f(y)=0, and open dots or dashed lines where f(y)=±, since these lines have special meaning.

This vertical number line we use to analyze dydt=f(y) is called a phase line. Phase lines can be used to make qualitative observations about the behavior of solutions to autonomous ODEs.

Lines y=y0 corresponding to zeros of f(y) yield flat solutions. If the derivative is negative at such a line, i.e. f(y0)<0, so f(y) cross through zero from above to below, then solutions will be attracted to the line y=y0. These lines are called stable equilibria. If f(y0)>0 then solutions will be repelled from the line. These lines are called unstable equilibria. (Sometimes stable equilibria are called sinks and unstable ones which are repulsive on both sides are called sources, while unstable ones that are repulsive on one side and attractive on the other side are called nodes.)

When f(y0)=0, the equilibrium y=y0 could be stable, unstable, or neither, and additional information is needed. The situation is the same as for critical points of a function that fails the second-derivative test.

Phase lines:

Phase lines with f at y=1:

Phase lines deduced from the graph of f(y) alone:

Logistic growth Many natural systems experience exponential growth and decay only to first order. Once the exponential behavior has occurred for significant time, environmental effects of the growth or decay begin to modulate the rate of that growth or decay.

Exponential growth satisfies the equation y(t)=ry, where r is a constant giving the growth rate. We can modify the equation to account for changes of growth rate that depend on the quantity y by letting r become a function h(y).

Example

Logistic curve: population dynamics

Modified exponential growth with a growth rate given by the linear function h(y)=ray gives the logistic equation:

dydt=(ray)y.

Using the theory of phase lines, we can study solutions to this equation without finding an explicit formula for them. Write K=r/a, so f(y)=r(1yK)y. This number K is sometimes called the carrying capacity of the population’s environment, because the growth rate r(1yK) will go negative when y exceeds K.

Now let us classify equilibrium points. We have f(0)=f(K)=0. Compute

f(y)=r2ay=r(12yK),

so f(0)=r>0 and f(K)=r<0. Therefore y=0 is an unstable equilibrium, while y=K is a stable equilibrium.

The logistic equation is separable, and it can be solved exactly and explicitly. Solutions are called logistic curves. These are given by:

y(t)=y0Ky0+(Ky0)ert.

Consider the interpretation of this formula. The initial value is y(0)=y0. As t, the second term in the denominator goes to zero. So y(t)K as t. This is true whether y0>K or y0<K.

It is useful to observe that the concavity of the solution trajectories can be ascertained from the formula for f(y) without actually solving the logistic equation. This relies on the chain rule:

d2ydt2=ddtf(y)=f(y)dydt=f(y)f(y).

For the logistic equation we are considering, this product is:

f(y)f(y)=r2(12yK)(1yK)y.

The inflection point is where this function changes sign, which is at y=12K, so the rate of population increase starts slowing down when the population is halfway to the carrying capacity of the environment.

Exercise 05B-01

Studying an autonomous equation

Sketch the phase line of the following ODE:

dydt=(y22)arctan(y).

Classify each equilibrium trajectory as stable or unstable. Draw some representative solution trajectories using the qualitative information of your phase line.

Exercise 05B-02

Gompertz equation

Tumor growth is sometimes modeled by the Gompertz equation:

dXdt=aXbXlnX.

What are the equilibrium lines? Are they stable or unstable? What is the inflection point on a trajectory from the lower to the upper equilibrium?

Now solve the equation explicitly.

Problems due Monday 19 Feb 2024 by 1:00pm

Problem 05-01

Pursuit with a crosswind

An airplane starts at (a,0) and flies to the origin (0,0), but there is a crosswind. The wind blows in the +y direction at a constant speed vw, and the airplane flies with a fixed speed va relative to the air around it. The plane always flies with its fuselage pointing towards (0,0). Assume va>vw. Find the path taken by the plane over the ground. (Hint: recall that dydx=y(t)x(t).)

Problem 05-02

Escape velocity

A body is launched towards space from the surface of the earth. Assume the force of gravity on the body is given by mgR2(R+z)2, where R is the radius of the earth, z is the altitude of the body above the surface of the earth, and m and g are constants representing the mass of the body and the gravitational constant. Ignore air resistance. What is the minimum launch velocity v0 needed for the body to escape earth’s gravity?

  • Using Newton’s Law, write down a differential equation satisfied by the body during flight.
  • Write this equation in terms of the velocity v (dependent) and altitude z (independent). (You will need to eliminate dt using the chain rule.)
  • Solve this equation by separating variables, writing an explicit function v(z). Use the initial condition v(0)=v0.
  • Find the maximum altitude in terms of v0. (Find z when v=0.) Now find v0 which produces an infinite maximum altitude.
Problem 05-03

Coffee cooling

Newton’s Law of Cooling says that an object at temperature T, when placed in an ambient environment at temperature TA, will cool according to the following differential equation:

dTdt=k(TTA),

where k is some constant that depends on the properties of the object and environment.

Suppose you have a cup of hot black coffee and some creamer at room temperature. You are going to drink the coffee in 15 minutes, and you want it to be as hot as possible. Do you put the creamer in now, or wait until just before drinking?

(You should assume that the temperature taken on by a mixture of coffee and creamer is the average of their original temperatures, weighted by their original quantities.)