


Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
How to solve first order linear differential equations using a systematic method. It provides examples and definitions to help understand the process. The first example involves modeling the amount of orange juice in a container over time, while the second example involves solving a differential equation that is not separable. The document also explains how to find a function that makes the left-hand side of the differential equation look like a product.
Typology: Lecture notes
1 / 4
This page cannot be seen from the preview
Don't miss anything!



Example 1. A 20-quart juice dispenser in a cafeteria is filled with a juice mixture that is 10% cranberry and 90% orange juice. A pineapple-orange blend (40% pineapple and 60% orange) is entering the dispenser at a rate of 4 quarts an hour and the well-stirred mixture leaves at a rate of 5 quarts an hour. Model the situation with a differential equation whose solution is the amount of orange juice in the container at time t.
Let y = y(t) be the amount of orange juice in the container at time t.
Notice that unlike previous problems we’ve done, the rate in and rate out are not the same. Each hour the number of gallons of juice mixture decreases by 1 quart. dy dt = rate in of orange juice - rate out of orange juice
rate in = 4 qts mixturehr · (0.6) (^) qts mixtureqts orange = 2. 4 qts orangehr
rate out = 5 qts mixturehr · (^) (20y−^ qts oranget)qts mixture = (^205) −yt^ qts orangehr
The differential equation modelling the situation is
dy dt
5 y 20 − t
where y(0) = 18.
This differential equation is not separable. But it is a first order linear dif- ferential equation and by the end of this handout you should be able to solve it.
Definition: A first order linear differential equation is a differential equation that can be put in the form
dy dx
We will refer to this as ‘standard form’ for such a differential equation.
The goal of this handout is to show you how to systematically solve such a differential equation. The next example serves to motivate the method. Example 2. Solve dydx + (^1) x y = x^2.
First verify for yourself that this differential equation is not separable. Having established that, the prospect of solving might look grim. However, suppose we were to multiply both sides of the equation by x.
dy dx
x y = x^2
x
dy dx
If you look long and hard at the left hand side of the equation above you might start to see the product rule in there and recognize that the left hand side of this equation is the derivative of xy with respect to x. That observation proves to be very handy because we can then integrate with respect to x and solve for y as follows:
d dx
(xy) = x^3 ∫ d dx
(xy) dx =
x^3 dx
xy =
x^4 4
y =
x^3 4
x
Note that we cannot replace Cx by a constant C 1 because x is not a constant! What saved the day was the idea of multiplying both sides of the differential
equation by some function so that the left hand side of the differential equation was just the derivative of a product. Let’s try to do this in general. (The rewards are great – we’ll end up with a recipe for solving this type of differential equation.)
General Case: We begin with
dy dx
Our goal is to find a function v(x) such that when we multiply both sides by v(x) the left hand side looks like a product. Let v(x) be a positive function. Multiplying by v(x) gives
v(x) dy dx
Thinking about the product rule we see that we should aim for a function v(x) such that the left hand side of (1) is (^) dxd (vy). In other words, we want to find v(x) such that
v(x)
dy dx
d dx
(vy). (2)
From the product rule we know that (^) dxd (vy) = v(x) dydx + dvdx y so our goal is to find v(x) such that
v(x) dy dx
dv dx
y.
This amounts to finding v(x) such that
v(x)P (x)y =
dv dx
y, or equivalently v(x)P (x) =
dv dx
If the equation is actually separable, it is advisable to simply separate variables!
Example 3. Solve dydx = e^2 x^ + 3y. Find the general solution and then the particular solution with y(0) = 3.
This is not separable, so we put it in standard form: dydx − 3 y = e^2 x. P (x) = −3 and Q(x) = e^2 x v(x) = e
P (x) dx (^) = e
− 3 dx (^) = e− 3 x. Multiplying by v(x) gives
e−^3 x^ dy dx
− 3 e−^3 xy = e−x d dx
(e−^3 xy) = e−x
e−^3 xy =
e−x^ dx + C
e−^3 xy = −e−x^ + C y = −e^2 x^ + Ce^3 x If y(0) = 3, then 3 = −e^0 + Ce^0 = −1 + C, so C = 4 and y = −e^2 x^ + 4e^3 x.
Note that if you really wanted to, after identifying P , Q, and v, you could skip directly to (^) dxd (e−^3 xy) = e−x^ dx + C and solve.
Example 4. Solve (x^2 + 1)y′^ + 3xy = 6x.
This is not separable, so we put it in standard form: y′^ + (^) x (^23) +1x y = (^) x^62 x+. P (x) = (^) x^32 x+1 and Q(x) = (^) x (^26) +1x. v(x) = e
P (x) dx (^) = e
∫ (^3) x x^2 +1 dx^ = e^3 /2 ln(x^2 +1)^ = (x^2 + 1)^3 /^2.
(x^2 + 1)^3 /^2 y =
(x^2 + 1)^3 /^2
6 x x^2 + 1 dx + C
(x^2 + 1)^3 /^2 y =
6 x(x^2 + 1)^1 /^2 dx + C
(x^2 + 1)^3 /^2 y = 2(x^2 + 1)^3 /^2 + C y = 2(x^2 + 1)−^3 /^2 [(x^2 + 1)^3 /^2 + C]
y = 2 +
(x^2 + 1)^3 /^2
Now you are ready to go back and solve the equation from Example 1.
Homework problems: Solve the following: