First-order Linear Equations

Earlier, we studied an application of a first-order differential equation that involved solving for the velocity of an object. In particular, if a ball is thrown upward with an initial velocity of v0

ft/s, then an initial-value problem that describes the velocity of the ball after t

seconds is given by

dvdt=−32,v(0)=v0.

This model assumes that the only force acting on the ball is gravity. Now we add to the problem by allowing for the possibility of air resistance acting on the ball.

Air resistance always acts in the direction opposite to motion. Therefore if an object is rising, air resistance acts in a downward direction. If the object is falling, air resistance acts in an upward direction ([link]). There is no exact relationship between the velocity of an object and the air resistance acting on it. For very small objects, air resistance is proportional to velocity; that is, the force due to air resistance is numerically equal to some constant k

times v.

For larger (e.g., baseball-sized) objects, depending on the shape, air resistance can be approximately proportional to the square of the velocity. In fact, air resistance may be proportional to v1.5,

or v0.9,

or some other power of v.

A diagram of a baseball with an arrow above it pointing up and an arrow below it pointing down. The upper arrow is labeled “air resistance –kv” and the lower arrow is labeled “g = -9.8 m/sec ^ 2.”

We will work with the linear approximation for air resistance. If we assume k>0,

then the expression for the force FA

due to air resistance is given by FA=kv.

Therefore the sum of the forces acting on the object is equal to the sum of the gravitational force and the force due to air resistance. This, in turn, is equal to the mass of the object multiplied by its acceleration at time t

(Newton’s second law). This gives us the differential equation

mdvdt=kvmg.

Finally, we impose an initial condition v(0)=v0,

where v0

is the initial velocity measured in meters per second. This makes g=9.8m/s2.

The initial-value problem becomes

mdvdt=kvmg,v(0)=v0.

The differential equation in this initial-value problem is an example of a first-order linear differential equation. (Recall that a differential equation is first-order if the highest-order derivative that appears in the equation is 1.)

In this section, we study first-order linear equations and examine a method for finding a general solution to these types of equations, as well as solving initial-value problems involving them.

Definition

A first-order differential equation is linear if it can be written in the form

a(x)y+b(x)y=c(x),

where a(x),b(x),

and c(x)

are arbitrary functions of x.

Remember that the unknown function y

depends on the variable x;

that is, x

is the independent variable and y

is the dependent variable. Some examples of first-order linear differential equations are

(3x24)y+(x3)y=sinx(sinx)y(cosx)y=cotx4xy+(3lnx)y=x34x.

Examples of first-order nonlinear differential equations include

(y)4(y)3=(3x2)(y+4)4y+3y3=4x5(y)2=siny+cosx.

These equations are nonlinear because of terms like (y)4,y3,

etc. Due to these terms, it is impossible to put these equations into the same form as [link].

Standard Form

Consider the differential equation

(3x24)y+(x3)y=sinx.

Our main goal in this section is to derive a solution method for equations of this form. It is useful to have the coefficient of y

be equal to 1.

To make this happen, we divide both sides by 3x24.

y+(x33x24)y=sinx3x24

This is called the standard form of the differential equation. We will use it later when finding the solution to a general first-order linear differential equation. Returning to [link], we can divide both sides of the equation by a(x).

This leads to the equation

y+b(x)a(x)y=c(x)a(x).

Now define p(x)=b(x)a(x)

and q(x)=c(x)a(x).

Then [link] becomes

y+p(x)y=q(x).

We can write any first-order linear differential equation in this form, and this is referred to as the standard form for a first-order linear differential equation.

Writing First-Order Linear Equations in Standard Form

Put each of the following first-order linear differential equations into standard form. Identify p(x)

and q(x)

for each equation.

  1. y=3x4y
  2. 3xy4y3=2

    (here

    x>0)
  3. y=3y4x2+5
  1. Add 4y

    to both sides:


    y+4y=3x.

    In this equation,

    p(x)=4

    and

    q(x)=3x.
  2. Multiply both sides by 4y3,

    then subtract

    8y

    from each side:


    3xy4y3=23xy=2(4y3)3xy=8y63xy8y=−6.

    Finally, divide both sides by

    3x

    to make the coefficient of

    y

    equal to

    1:
    y83xy=23x.

    This is allowable because in the original statement of this problem we assumed that

    x>0.

    (If

    x=0

    then the original equation becomes

    0=2,

    which is clearly a false statement.)


    In this equation,

    p(x)=83x

    and

    q(x)=23x.
  3. Subtract y

    from each side and add

    4x25:
    3yy=4x25.

    Next divide both sides by

    3:
    y13y=43x253.

    In this equation,

    p(x)=13

    and

    q(x)=43x253.

Put the equation (x+3)y2x3y4=5

into standard form and identify p(x)

and q(x).

y+15x+3y=10x20x+3;p(x)=15x+3

and q(x)=10x20x+3

Hint

Multiply both sides by the common denominator, then collect all terms involving y

on one side.

Integrating Factors

We now develop a solution technique for any first-order linear differential equation. We start with the standard form of a first-order linear differential equation:

y+p(x)y=q(x).

The first term on the left-hand side of [link] is the derivative of the unknown function, and the second term is the product of a known function with the unknown function. This is somewhat reminiscent of the power rule from the Differentiation Rules section. If we multiply [link] by a yet-to-be-determined function μ(x),

then the equation becomes

μ(x)y+μ(x)p(x)y=μ(x)q(x).

The left-hand side [link] can be matched perfectly to the product rule:

ddx[f(x)g(x)]=f(x)g(x)+f(x)g(x).

Matching term by term gives y=f(x),g(x)=μ(x),

and g(x)=μ(x)p(x).

Taking the derivative of g(x)=μ(x)

and setting it equal to the right-hand side of g(x)=μ(x)p(x)

leads to

μ(x)=μ(x)p(x).

This is a first-order, separable differential equation for μ(x).

We know p(x)

because it appears in the differential equation we are solving. Separating variables and integrating yields

μ(x)μ(x)=p(x)μ(x)μ(x)dx=p(x)dxln\|μ(x)\|=p(x)dx+Celn\|μ(x)\|=ep(x)dx+C\|μ(x)\|=C1ep(x)dxμ(x)=C2ep(x)dx.

Here C2

can be an arbitrary (positive or negative) constant. This leads to a general method for solving a first-order linear differential equation. We first multiply both sides of [link] by the integrating factor μ(x).

This gives

μ(x)y+μ(x)p(x)y=μ(x)q(x).

The left-hand side of [link] can be rewritten as ddx(μ(x)y).

ddx(μ(x)y)=μ(x)q(x).

Next integrate both sides of [link] with respect to x.

ddx(μ(x)y)dx=μ(x)q(x)dxμ(x)y=μ(x)q(x)dx.

Divide both sides of [link] by μ(x):

y=1μ(x)[μ(x)q(x)dx+C].

Since μ(x)

was previously calculated, we are now finished. An important note about the integrating constant C:

It may seem that we are inconsistent in the usage of the integrating constant. However, the integral involving p(x)

is necessary in order to find an integrating factor for [link]. Only one integrating factor is needed in order to solve the equation; therefore, it is safe to assign a value for C

for this integral. We chose C=0.

When calculating the integral inside the brackets in [link], it is necessary to keep our options open for the value of the integrating constant, because our goal is to find a general family of solutions to [link]. This integrating factor guarantees just that.

Problem-Solving Strategy: Solving a First-order Linear Differential Equation
  1. Put the equation into standard form and identify p(x)

    and

    q(x).
  2. Calculate the integrating factor μ(x)=ep(x)dx.
  3. Multiply both sides of the differential equation by μ(x).
  4. Integrate both sides of the equation obtained in step 3,

    and divide both sides by

    μ(x).
  5. If there is an initial condition, determine the value of C.
Solving a First-order Linear Equation

Find a general solution for the differential equation xy+3y=4x23x.

Assume x>0.

  1. To put this differential equation into standard form, divide both sides by x:
    y+3xy=4x3.

    Therefore

    p(x)=3x

    and

    q(x)=4x3.
  2. The integrating factor is μ(x)=e(3/x)dx=e3lnx=x3.
  3. Multiplying both sides of the differential equation by μ(x)

    gives us


    x3y+x3(3x)y=x3(4x3)x3y+3x2y=4x43x3ddx(x3y)=4x43x3.
  4. Integrate both sides of the equation.
    ddx(x3y)dx=4x43x3dxx3y=4x553x44+Cy=4x253x4+Cx−3.
  5. There is no initial value, so the problem is complete.
Analysis

You may have noticed the condition that was imposed on the differential equation; namely, x>0.

For any nonzero value of C,

the general solution is not defined at x=0.

Furthermore, when x<0,

the integrating factor changes. The integrating factor is given by [link] as f(x)=ep(x)dx.

For this p(x)

we get

ep(x)dx=e(3/x)dx=e3ln\|x\|=\|x\|3,

since x<0.

The behavior of the general solution changes at x=0

largely due to the fact that p(x)

is not defined there.

Find the general solution to the differential equation (x2)y+y=3x2+2x.

Assume x>2.

y=x3+x2+Cx2
Hint

Use the method outlined in the problem-solving strategy for first-order linear differential equations.

Now we use the same strategy to find the solution to an initial-value problem.

A First-order Linear Initial-Value Problem

Solve the initial-value problem

y+3y=2x1,y(0)=3.
  1. This differential equation is already in standard form with p(x)=3

    and

    q(x)=2x1.
  2. The integrating factor is μ(x)=e3dx=e3x.
  3. Multiplying both sides of the differential equation by μ(x)

    gives


    e3xy+3e3xy=(2x1)e3xddx[ye3x]=(2x1)e3x.

    Integrate both sides of the equation:


    ddx[ye3x]dx=(2x1)e3xdxye3x=e3x3(2x1)23e3xdxye3x=e3x(2x1)32e3x9+Cy=2x1329+Ce−3xy=2x359+Ce−3x.
  4. Now substitute x=0

    and

    y=3

    into the general solution and solve for

    C:
    y=23x59+Ce−3x3=23(0)59+Ce−3(0)3=59+CC=329.

    Therefore the solution to the initial-value problem is


    y=23x59+329e−3x.

Solve the initial-value problem y2y=4x+3y(0)=−2.

y=−2x4+2e2x

Applications of First-order Linear Differential Equations

We look at two different applications of first-order linear differential equations. The first involves air resistance as it relates to objects that are rising or falling; the second involves an electrical circuit. Other applications are numerous, but most are solved in a similar fashion.

Free fall with air resistance

We discussed air resistance at the beginning of this section. The next example shows how to apply this concept for a ball in vertical motion. Other factors can affect the force of air resistance, such as the size and shape of the object, but we ignore them here.

A Ball with Air Resistance

A racquetball is hit straight upward with an initial velocity of 2

m/s. The mass of a racquetball is approximately 0.0427

kg. Air resistance acts on the ball with a force numerically equal to 0.5v,

where v

represents the velocity of the ball at time t.

  1. Find the velocity of the ball as a function of time.
  2. How long does it take for the ball to reach its maximum height?
  3. If the ball is hit from an initial height of 1

    meter, how high will it reach?

  1. The mass m=0.0427kg,k=0.5,

    and

    g=9.8m/s2.

    The initial velocity is

    v0=2

    m/s. Therefore the initial-value problem is


    0.0427dvdt=−0.5v0.0427(9.8),v0=2.

    Dividing the differential equation by

    0.0427

    gives


    dvdt=−11.7096v9.8,v0=2.

    The differential equation is linear. Using the problem-solving strategy for linear differential equations:


    Step 1. Rewrite the differential equation as

    dvdt+11.7096v=−9.8.

    This gives

    p(t)=11.7096

    and

    q(t)=−9.8

    Step 2. The integrating factor is

    μ(t)=e11.7096dt=e11.7096t.

    Step 3. Multiply the differential equation by

    μ(t):
    e11.7096tdvdt+11.7096ve11.7096t=−9.8e11.7096tddt[ve11.7096t]=−9.8e11.7096t.

    Step 4. Integrate both sides:


    ddt[ve11.7096t]dt=−9.8e11.7096tdtve11.7096t=−9.811.7096e11.7096t+Cv(t)=−0.8369+Ce−11.7096t.

    Step 5. Solve for

    C

    using the initial condition

    v0=v(0)=2:
    v(t)=−0.8369+Ce−11.7096tv(0)=−0.8369+Ce−11.7096(0)2=−0.8369+CC=2.8369.

    Therefore the solution to the initial-value problem is

    v(t)=2.8369e−11.7096t0.8369.
  2. The ball reaches its maximum height when the velocity is equal to zero. The reason is that when the velocity is positive, it is rising, and when it is negative, it is falling. Therefore when it is zero, it is neither rising nor falling, and is at its maximum height:
    2.8369e−11.7096t0.8369=02.8369e−11.7096t=0.8369e−11.7096t=0.83692.83690.295lne−11.7096t=ln0.2951.221−11.7096t=−1.221t0.104.

    Therefore it takes approximately

    0.104

    second to reach maximum height.

  3. To find the height of the ball as a function of time, use the fact that the derivative of position is velocity, i.e., if h(t)

    represents the height at time

    t,

    then

    h(t)=v(t).

    Because we know

    v(t)

    and the initial height, we can form an initial-value problem:


    h(t)=2.8369e−11.7096t0.8369,h(0)=1.

    Integrating both sides of the differential equation with respect to

    t

    gives


    h(t)dt=2.8369e−11.7096t0.8369dth(t)=2.836911.7096e−11.7096t0.8369t+Ch(t)=−0.2423e−11.7096t0.8369t+C.

    Solve for

    C

    by using the initial condition:


    h(t)=−0.2423e−11.7096t0.8369t+Ch(0)=−0.2423e−11.7096(0)0.8369(0)+C1=−0.2423+CC=1.2423.

    Therefore


    h(t)=−0.2423e−11.7096t0.8369t+1.2423.

    After

    0.104

    second, the height is given by


    h(0.2)=−0.2423e−11.7096t0.8369t+1.24231.0836

    meter.

The weight of a penny is 2.5

grams (United States Mint, “Coin Specifications,” accessed April 9, 2015, http://www.usmint.gov/about_the_mint/?action=coin_specifications), and the upper observation deck of the Empire State Building is 369

meters above the street. Since the penny is a small and relatively smooth object, air resistance acting on the penny is actually quite small. We assume the air resistance is numerically equal to 0.0025v.

Furthermore, the penny is dropped with no initial velocity imparted to it.

  1. Set up an initial-value problem that represents the falling penny.
  2. Solve the problem for v(t).
  3. What is the terminal velocity of the penny (i.e., calculate the limit of the velocity as t

    approaches infinity)?

  1. dvdt=v9.8v(0)=0
  2. v(t)=9.8(et1)
  3. limtv(t)=limt(9.8(et1))=−9.8m/s21.922mph
Hint

Set up the differential equation the same way as [link]. Remember to convert from grams to kilograms.

Electrical Circuits

A source of electromotive force (e.g., a battery or generator) produces a flow of current in a closed circuit, and this current produces a voltage drop across each resistor, inductor, and capacitor in the circuit. Kirchhoff’s Loop Rule states that the sum of the voltage drops across resistors, inductors, and capacitors is equal to the total electromotive force in a closed circuit. We have the following three results:

  1. The voltage drop across a resistor is given by
    ER=Ri,

    where

    R

    is a constant of proportionality called the resistance, and

    i

    is the current.

  2. The voltage drop across an inductor is given by
    EL=Li,

    where

    L

    is a constant of proportionality called the inductance, and

    i

    again denotes the current.

  3. The voltage drop across a capacitor is given by
    EC=1Cq,

where C

is a constant of proportionality called the capacitance, and q

is the instantaneous charge on the capacitor. The relationship between i

and q

is i=q.

We use units of volts (V)

to measure voltage E,

amperes (A)

to measure current i,

coulombs (C)

to measure charge q,

ohms (Ω)

to measure resistance R,

henrys (H)

to measure inductance L,

and farads (F)

to measure capacitance C.

Consider the circuit in [link].

A diagram of an electric circuit in a rectangle. The top has a capacitor C, the left has a voltage generator Vs, the bottom was a resistor R, and the right has an inductor L.

Applying Kirchhoff’s Loop Rule to this circuit, we let E

denote the electromotive force supplied by the voltage generator. Then

EL+ER+EC=E.

Substituting the expressions for EL,ER,

and EC

into this equation, we obtain

Li+Ri+1Cq=E.

If there is no capacitor in the circuit, then the equation becomes

Li+Ri=E.

This is a first-order differential equation in i.

The circuit is referred to as an LR

circuit.

Next, suppose there is no inductor in the circuit, but there is a capacitor and a resistor, so L=0,R0,

and C0.

Then [link] can be rewritten as

Rq+1Cq=E,

which is a first-order linear differential equation. This is referred to as an RC circuit. In either case, we can set up and solve an initial-value problem.

Finding Current in an *RL* Electric Circuit

A circuit has in series an electromotive force given by E=50sin20tV,

a resistor of 5Ω,

and an inductor of 0.4H.

If the initial current is 0,

find the current at time t>0.

We have a resistor and an inductor in the circuit, so we use [link]. The voltage drop across the resistor is given by ER=Ri=5i.

The voltage drop across the inductor is given by EL=Li=0.4i.

The electromotive force becomes the right-hand side of [link]. Therefore [link] becomes

0.4i+5i=50sin20t.

Dividing both sides by 0.4

gives the equation

i+12.5i=125sin20t.

Since the initial current is 0, this result gives an initial condition of i(0)=0.

We can solve this initial-value problem using the five-step strategy for solving first-order differential equations.

Step 1. Rewrite the differential equation as i+12.5i=125sin20t.

This gives p(t)=12.5

and q(t)=125sin20t.

Step 2. The integrating factor is μ(t)=e12.5dt=e12.5t.

Step 3. Multiply the differential equation by μ(t):

e12.5ti+12.5e12.5ti=125e12.5tsin20tddt[ie12.5t]=125e12.5tsin20t.

Step 4. Integrate both sides:

ddt[ie12.5t]dt=125e12.5tsin20tdtie12.5t=(250sin20t400cos20t89)e12.5t+Ci(t)=250sin20t400cos20t89+Ce−12.5t.

Step 5. Solve for C

using the initial condition v(0)=2:

i(t)=250sin20t400cos20t89+Ce−12.5ti(0)=250sin20(0)400cos20(0)89+Ce−12.5(0)0=40089+CC=40089.

Therefore the solution to the initial-value problem is i(t)=250sin20t400cos20t+400e−12.5t89=250sin20t400cos20t89+400e−12.5t89.

The first term can be rewritten as a single cosine function. First, multiply and divide by 2502+4002=5089:

250sin20t400cos20t89=508989(250sin20t400cos20t5089)=508989(8cos20t895sin20t89).

Next, define φ

to be an acute angle such that cosφ=889.

Then sinφ=589

and

508989(8cos20t895sin20t89)=508989(cosφcos20tsinφsin20t)=508989cos(20t+φ).

Therefore the solution can be written as

i(t)=508989cos(20t+φ)+400e−12.5t89.

The second term is called the attenuation term, because it disappears rapidly as t grows larger. The phase shift is given by φ,

and the amplitude of the steady-state current is given by 508989.

The graph of this solution appears in [link]:

A graph of the given solution over [0, 6] on the x axis. It is an oscillating function, rapidly going from just below -5 to just above 5.

A circuit has in series an electromotive force given by E=20sin5t

V, a capacitor with capacitance 0.02F,

and a resistor of 8Ω.

If the initial charge is 4C,

find the charge at time t>0.

Initial-value problem:

8q+10.02q=20sin5t,q(0)=4 q(t)=10sin5t8cos5t+172e−6.25t41
Hint

Use [link] for an RC

circuit to set up an initial-value problem.

Key Concepts

Key Equations

Are the following differential equations linear? Explain your reasoning.

dydx=x2y+sinx
dydt=ty

Yes

dydt+y2=x
y=x3+ex

Yes

y=y+ey

Write the following first-order differential equations in standard form.

y=x3y+sinx
yx3y=sinx
y+3ylnx=0
xy=(3x+2)y+xex
y+(3x+2)xy=ex
dydt=4y+ty+tant
dydt=yx(x+1)
dydtyx(x+1)=0

What are the integrating factors for the following differential equations?

y=xy+3
y+exy=sinx
ex
y=xln(x)y+3x
dydx=tanh(x)y+1
ln(coshx)
dydt+3ty=ety

Solve the following differential equations by using integrating factors.

y=3y+2
y=Ce3x23
y=2yx2
xy=3y6x2
y=Cx3+6x2
(x+2)y=3x+y
y=3x+xy
y=Cex2/23
xy=x+y
sin(x)y=y+2x
y=Ctan(x2)2x+4tan(x2)ln(sin(x2))
y=y+ex
xy=3y+x2
y=Cx3x2
y+lnx=yx

Solve the following differential equations. Use your calculator to draw a family of solutions. Are there certain initial conditions that change the behavior of the solution?

[T] (x+2)y=2y1

y=C(x+2)2+12

[T] y=3et/32y

[T] xy+y2=sin(3t)

y=Cx+2sin(3t)

[T] xy=2cosxx3y

[T] (x+1)y=3y+x2+2x+1

y=C(x+1)3x22x1

[T] sin(x)y+cos(x)y=2x

[T] x2+1y=y+2

y=Cesinh−1x2

[T] x3y+2x2y=x+1

Solve the following initial-value problems by using integrating factors.

y+y=x,y(0)=3
y=x+4ex1
y=y+2x2,y(0)=0
xy=y3x3,y(1)=0
y=3x2(x21)
x2y=xylnx,y(1)=1
(1+x2)y=y1,y(0)=0
y=1etan−1x
xy=y+2xlnx,y(1)=5
(2+x)y=y+2+x,y(0)=0
y=(x+2)ln(x+22)
y=xy+2xex,y(0)=2
xy=y+2x,y(0)=1
y=2e2x2x2x1
y=2y+xex,y(0)=−1

A falling object of mass m

can reach terminal velocity when the drag force is proportional to its velocity, with proportionality constant k.

Set up the differential equation and solve for the velocity given an initial velocity of 0.

v(t)=gmk(1ekt/m)

Using your expression from the preceding problem, what is the terminal velocity? (Hint: Examine the limiting behavior; does the velocity approach a value?)

[T] Using your equation for terminal velocity, solve for the distance fallen. How long does it take to fall 5000

meters if the mass is 100

kilograms, the acceleration due to gravity is 9.8

m/s2 and the proportionality constant is 4?

40.451

seconds

A more accurate way to describe terminal velocity is that the drag force is proportional to the square of velocity, with a proportionality constant k.

Set up the differential equation and solve for the velocity.

Using your expression from the preceding problem, what is the terminal velocity? (Hint: Examine the limiting behavior: Does the velocity approach a value?)

gmk

[T] Using your equation for terminal velocity, solve for the distance fallen. How long does it take to fall 5000

meters if the mass is 100

kilograms, the acceleration due to gravity is 9.8m/s2

and the proportionality constant is 4?

Does it take more or less time than your initial estimate?

For the following problems, determine how parameter a

affects the solution.

Solve the generic equation y=ax+y.

How does varying a

change the behavior?

y=Cexa(x+1)

Solve the generic equation y=ax+y.

How does varying a

change the behavior?

Solve the generic equation y=ax+xy.

How does varying a

change the behavior?

y=Cex2/2a

Solve the generic equation y=x+axy.

How does varying a

change the behavior?

Solve yy=ekt

with the initial condition y(0)=0.

As k

approaches 1,

what happens to your formula?

y=ektetk1

Chapter Review Exercises

True or False? Justify your answer with a proof or a counterexample.

The differential equation y=3x2ycos(x)y

is linear.

The differential equation y=xy

is separable.

F

You can explicitly solve all first-order differential equations by separation or by the method of integrating factors.

You can determine the behavior of all first-order differential equations using directional fields or Euler’s method.

T

For the following problems, find the general solution to the differential equations.

y=x2+3ex2x
y=2x+cos−1x
y(x)=2xln(2)+xcos−1x1x2+C
y=y(x2+1)
y=eysinx
y(x)=ln(Ccosx)
y=3x2y
y=ylny
y(x)=eeC+x

For the following problems, find the solution to the initial value problem.

y=8xlnx3x4,y(1)=5
y=3xcosx+2,y(0)=4
y(x)=4+32x2+2xsinx
xy=y(x2),y(1)=3
y=3y2(x+cosx),y(0)=−2
y(x)=21+3(x2+2sinx)
(x1)y=y2,y(0)=0
y=3yx+6x2,y(0)=−1
y(x)=−2x22x1323e3x

For the following problems, draw the directional field associated with the differential equation, then solve the differential equation. Draw a sample solution on the directional field.

y=2yy2
y=1x+lnxy,

for x>0


A direction field with arrows pointing up and to the right along a logarithmic curve that approaches negative infinity as x goes to zero and increases as x goes to infinity.


y(x)=Cex+lnx

For the following problems, use Euler’s Method with n=5

steps over the interval t=[0,1].

Then solve the initial-value problem exactly. How close is your Euler’s Method estimate?

y=−4yx,y(0)=1
y=3x2y,y(0)=0

Euler: 0.6939,

exact solution: y(x)=3xe−2x2+ln(3)

For the following problems, set up and solve the differential equations.

A car drives along a freeway, accelerating according to a=5sin(πt),

where t

represents time in minutes. Find the velocity at any time t,

assuming the car starts with an initial speed of 60

mph.

You throw a ball of mass 2

kilograms into the air with an upward velocity of 8

m/s. Find exactly the time the ball will remain in the air, assuming that gravity is given by g=9.8m/s2.

4049

second

You drop a ball with a mass of 5

kilograms out an airplane window at a height of 5000

m. How long does it take for the ball to reach the ground?

You drop the same ball of mass 5

kilograms out of the same airplane window at the same height, except this time you assume a drag force proportional to the ball’s velocity, using a proportionality constant of 3

and the ball reaches terminal velocity. Solve for the distance fallen as a function of time. How long does it take the ball to reach the ground?

x(t)=5000+2459493t2459e5/3t,t=307.8

seconds

A drug is administered to a patient every 24

hours and is cleared at a rate proportional to the amount of drug left in the body, with proportionality constant 0.2.

If the patient needs a baseline level of 5

mg to be in the bloodstream at all times, how large should the dose be?

A 1000

-liter tank contains pure water and a solution of 0.2

kg salt/L is pumped into the tank at a rate of 1

L/min and is drained at the same rate. Solve for total amount of salt in the tank at time t.

T(t)=200(1et/1000)

You boil water to make tea. When you pour the water into your teapot, the temperature is 100°C.

After 5

minutes in your 15°C

room, the temperature of the tea is 85°C.

Solve the equation to determine the temperatures of the tea at time t.

How long must you wait until the tea is at a drinkable temperature (72°C)?

The human population (in thousands) of Nevada in 1950

was roughly 160.

If the carrying capacity is estimated at 10

million individuals, and assuming a growth rate of 2%

per year, develop a logistic growth model and solve for the population in Nevada at any time (use 1950

as time = 0). What population does your model predict for 2000?

How close is your prediction to the true value of 1,998,257?

P(t)=1600000e0.02t9840+160e0.02t

Repeat the previous problem but use Gompertz growth model. Which is more accurate?

Glossary

integrating factor
any function f(x)

that is multiplied on both sides of a differential equation to make the side involving the unknown function equal to the derivative of a product of two functions

linear
description of a first-order differential equation that can be written in the form a(x)y+b(x)y=c(x)
standard form
the form of a first-order linear differential equation obtained by writing the differential equation in the form y+p(x)y=q(x)

Creative Commons License
This work is licensed under a Creative Commons Attribution 4.0 International License.

You can also download for free at http://cnx.org/contents/9a1df55a-b167-4736-b5ad-15d996704270@5.1

Attribution: