Standard form, the integrating factor and the condition defining it, the product-rule collapse that makes the left side integrable, solving initial-value problems, and applications to mixing tanks and circuits.
Subject: Calculus II · 69 slides · symbolic lesson
Open the interactive version of this deck
Title
Calculus II · Section 4.5
One multiplication turns the left side into a single derivative
Objectives
Section 4.3 solved equations you could separate. Many of the most useful equations in science cannot be separated, because the unknown appears added to something else rather than multiplied. This lesson solves a whole class of them with one idea.
OpenStax Calculus Volume 2, §4.5 First-order Linear Equations §4.5, pp. 408-421 — learning objectives 4.5.1 to 4.5.3
Separation of variables is powerful, but it only works when the right side of the equation is a product of a piece in x and a piece in y. The moment the unknown is added to something, as in y prime equals x plus y, separation stops working, and a huge number of real models have exactly that shape.
This lesson handles all of those equations at once, provided the unknown appears only to the first power. The idea is a single multiplication, chosen so that the left side of the equation becomes the derivative of one product. After that, one integration finishes the job.
The last two parts put the method to work on a ball with air resistance, on electrical circuits, and on a mixing tank. In every one of them you will see the same structure: a part of the solution that fades away and a part that stays.
Warm-up
\[ \frac{dy}{dx} = x + y \]
Discussion prompt
Use the method of Section 4.3 on this equation: try to get every y on one side with dy and every x on the other with dx. How far do you get, and exactly where does it break?
Give this a real attempt before revealing. Try dividing by y, or subtracting y, and watch what happens: any move that gets the y away from the x on the right leaves a y somewhere on the wrong side.
The underlying reason is structural. Separation needs the right side to factor into a function of x times a function of y, so that you can divide by the y factor. A sum of x and y has no such factorisation, and no algebraic trick creates one.
Keep this equation in mind. You will solve it in Part 3 with the integrating factor, and it will take five short lines. The answer contains an exponential that separation could never have produced.
Section
Part 1
Concept
Earlier the velocity of a ball thrown upward satisfied one line, because gravity was the only force. Now let air push back with a force proportional to the velocity.
\[ \frac{dv}{dt} = -32 \quad\longrightarrow\quad m\frac{dv}{dt} = -kv - mg, \quad v(0) = v_0 \]
Figure (svg): Two panels, each a ball with force arrows. Left, the ball is rising: gravity mg and air resistance kv both point down. Right, the ball is falling: gravity still points down, but air resistance kv now points up.
The new equation has v on both sides, added to a constant, so it will not separate as neatly. It is the model problem of this section: equation 4.13.
OpenStax Calculus Volume 2, §4.5 First-order Linear Equations §4.5, p. 408 — equation 4.13 and Figure 4.24
Start with the physics, because it explains where these equations come from. Newton's second law says mass times acceleration equals the total force. Without air, the only force is gravity, and the equation has no v on the right, so you just integrate.
Air resistance changes that. For small, slow objects the drag force is roughly proportional to the speed, with some constant k, and it always points against the motion. Look at the two panels: while the ball rises, drag points down along with gravity; while it falls, drag points up, against gravity.
Writing the drag as minus k times v handles both panels with one formula, because v itself changes sign when the ball turns over. The result has v on the right-hand side added to a constant. That is a first-order linear equation, and by the end of this lesson you will solve it completely.
Concept
Linear first-order equation — An equation that can be written as a coefficient function times y prime, plus a coefficient function times y, equals a function of x. The coefficients may be anything in x; y and its derivative appear only to the first power, never multiplied together or inside another function.
\[ a(x)\,y' + b(x)\,y = c(x) \]
| linear | not linear |
|---|---|
| (3x² − 4)y′ + (x − 3)y = sin x | (y′)⁴ − (y′)³ = (3x − 2)(y + 4) |
| (sin x)y′ − (cos x)y = cot x | 4y′ + 3y³ = 4x − 5 |
| 4xy′ + (3 ln x)y = x³ − 4x | (y′)² = sin y + cos x |
OpenStax Calculus Volume 2, §4.5 First-order Linear Equations §4.5, p. 409 — equation 4.14 and the examples
The word linear here is about the unknown function, not about x. The coefficients a, b and c can be as complicated as you like in x: sines, logarithms, polynomials. What matters is that y and y prime each appear to the first power, on their own, multiplied only by functions of x.
Read down the table. On the left, every equation has y prime times something in x plus y times something in x equal to something in x. On the right, each equation breaks the rule in a specific way: a power of y prime, a cube of y, or y trapped inside a sine.
When you test an equation, look at every place y or y prime appears and ask whether it is to the first power and not inside any other function. One failure anywhere and the equation is nonlinear.
Notation
Annotate
On: \( a(x)\,y' + b(x)\,y = c(x) \)
Step through the annotations and match each one to a part of the equation. The general form has three slots, each filled by a function of x alone: one multiplying y prime, one multiplying y, and one standing by itself on the right.
The right-hand side deserves a name because it has a physical meaning in almost every model. In the ball equation it is the weight, in a circuit it is the battery or generator, in a mixing tank it is the salt pouring in. It drives the system, which is why it is called the forcing term.
Notice also what the form does not allow: no product of y with y prime, no y inside an exponential, no square. Those are exactly the things that make an equation hard, and excluding them is what makes a general method possible.
Intuition
Separable asks whether the right side factors into a function of x times a function of y. Linear asks whether y enters only to the first power. Neither contains the other.
| equation | separable? | linear? |
|---|---|---|
| y′ = xy | yes | yes |
| y′ = x + y | no | yes |
| y′ = y(2 − y) | yes | no |
| y′ = x + y² | no | no |
When an equation is both, either method works. The new method is needed exactly for the second row.
It is tempting to think of linear and separable as two levels of difficulty, one inside the other. They are not. They are two independent tests, and the table shows every combination.
The first row, y prime equals x times y, passes both tests, so you may use either method; separation is usually quicker. The second row is the warm-up equation, linear but not separable, and it is the reason this lesson exists. The third row is the logistic-type equation from Section 4.4, separable but not linear because of the y squared hidden in y times 2 minus y. The last row passes neither test, and needs methods beyond this course.
So when you meet a first-order equation, run both tests. Whichever one passes tells you which tool to pick up.
Sorting
Sort into buckets
Sort each equation from the section's exercises by whether it is linear in the unknown.
OpenStax Calculus Volume 2, §4.5 First-order Linear Equations §4.5, p. 420 — Exercises 208 to 212
For each equation, find every appearance of the unknown and its derivative, and ask whether it is to the first power and multiplied only by something in the independent variable.
Three of these pass. The first has y multiplied by x squared, which is fine. The second has y multiplied by t. The fourth has no y at all on the right, which is the special case where the coefficient of y is zero; it is linear, and in fact you could just integrate it directly.
The other three fail in three different ways. A y squared is a power. An e to the y puts the unknown inside another function. And y times y prime multiplies the unknown by its own derivative, which the linear form never allows even though neither factor is squared.
Concept
Divide the whole equation by the coefficient of y prime, then give the two new coefficients names.
\[ (3x^2 - 4)y' + (x-3)y = \sin x \]
\[ y' + \frac{x-3}{3x^2-4}\,y = \frac{\sin x}{3x^2-4} \]
In general, divide equation 4.14 by a(x):
\[ y' + \underbrace{\frac{b(x)}{a(x)}}_{p(x)}\,y = \underbrace{\frac{c(x)}{a(x)}}_{q(x)} \quad\Longrightarrow\quad y' + p(x)\,y = q(x) \]
Division by a(x) is only allowed where a(x) is not zero, so standard form already tells you which intervals a solution can live on.
OpenStax Calculus Volume 2, §4.5 First-order Linear Equations §4.5, p. 409 — equations 4.15 and 4.16
Standard form is the arrangement the whole method is built on: y prime alone with coefficient one, then p of x times y, then everything else on the right as q of x. Getting there is usually one division.
The worked line shows the book's example. Dividing every term by 3x squared minus 4 leaves y prime with coefficient one, and the new coefficients are fractions. That is completely normal: p and q are allowed to be messy functions.
The last point is easy to miss. You can only divide by a of x where it is not zero, so standard form quietly restricts where your solution is valid. In the example, 3x squared minus 4 is zero at two values of x, and a solution built from standard form lives on an interval that avoids them.
Worked example
Put each equation in standard form and identify p and q.
\[ \text{(a) } y' = 3x - 4y \qquad \text{(c) } y = 3y' - 4x^2 + 5 \]
(a) Move the y term to the left
Why: Add 4y to both sides; the coefficient of y prime is already 1.
\[ y' + 4y = 3x \;\Longrightarrow\; p(x) = 4, \; q(x) = 3x \]
(c) Collect y and y prime on the left
Why: Subtract y and add 4x squared minus 5 on both sides.
\[ 3y' - y = 4x^2 - 5 \]
(c) Divide by the leading coefficient 3
Why: Every term, including the right side.
\[ y' - \frac13 y = \frac43 x^2 - \frac53 \]
(c) Read off p and q
Why: The sign belongs to p.
\[ p(x) = -\frac13, \quad q(x) = \frac43 x^2 - \frac53 \]
Check (c) at a sample point
Why: Take x equal to 0 and y equal to 5. Both forms must give the same slope.
\[ 5 = 3y' + 5 \Rightarrow y' = 0; \qquad y' = \tfrac13(5) - \tfrac53 = 0 \]
OpenStax Calculus Volume 2, §4.5 First-order Linear Equations §4.5, p. 410 — Example 4.15a and c
Both parts follow the same two moves: collect the y and y prime terms on the left with everything else on the right, then divide by whatever multiplies y prime.
In part (a), y prime already has coefficient one, so only the rearranging is needed. Adding 4y to both sides moves the y term left, and its coefficient becomes plus 4. In part (c), after rearranging you have 3 y prime, so you must divide every term by 3, including the right side. The coefficient of y becomes minus one third, and that minus sign belongs to p.
The check is worth adopting as a habit. Pick any point, work out the slope the original equation gives there, and then the slope the standard form gives. They must agree, because the two forms are the same equation. At x equal to 0 and y equal to 5 both give a slope of 0.
Worked example
\[ \frac{3xy'}{4y-3} = 2 \qquad (x > 0) \]
Multiply both sides by the denominator
Why: It contains y, so it cannot stay underneath.
\[ 3xy' = 2(4y - 3) \]
Expand
Why: Distribute the 2.
\[ 3xy' = 8y - 6 \]
Move the y term to the left
Why: Subtract 8y from both sides.
\[ 3xy' - 8y = -6 \]
Divide by 3x
Why: Allowed because x is positive. The printed text gives the right side as minus two over 3x; six over 3x is two over x.
\[ y' - \frac{8}{3x}\,y = -\frac{6}{3x} = -\frac{2}{x} \]
Read off p and q
Why: Both carry their signs.
\[ p(x) = -\frac{8}{3x}, \quad q(x) = -\frac{2}{x} \]
Check at x = 1, y = 1
Why: The original gives one slope; the standard form must give the same.
\[ y' = \frac{2(4-3)}{3} = \frac23, \qquad y' = \frac83 - 2 = \frac23 \]
OpenStax Calculus Volume 2, §4.5 First-order Linear Equations §4.5, p. 410 — Example 4.15b (the printed q(x) is corrected)
This one has the unknown in a denominator, so the first job is to clear it. Multiplying both sides by 4y minus 3 is safe as long as that expression is not zero, and it turns the equation into something with no fractions in y.
After expanding and moving the 8y across, you divide by 3x. That is allowed only because the problem says x is positive; at x equal to 0 the original equation would read 0 equals 2, which is impossible.
Watch the last division carefully. Minus 6 divided by 3x is minus 2 over x. The printed textbook gives minus 2 over 3x here, which is a misprint, and the check shows it: at x and y both equal to 1, the original equation gives a slope of two thirds, and so does the standard form with minus 2 over x. With the misprinted value you would get two, which is wrong.
Fill the middle
\[ \frac{(x+3)y'}{2x - 3y - 4} = 5 \]
Multiply out to get (x + 3) times y prime equal to 10x minus 15y minus 20, move the y term left, and divide by x + 3. Fill in the two numbers.
\[ y' + \frac{\square}{x+3}\,y = \frac{10x - \square}{x+3} \]
Fill in the blanks
y′ + (15/(x + 3)) y = (10x − 20)/(x + 3)
Why: Five times (2x minus 3y minus 4) is 10x minus 15y minus 20. Adding 15y to both sides gives (x + 3)y prime plus 15y equal to 10x minus 20, and dividing by x + 3 gives p(x) = 15/(x + 3) and q(x) = (10x − 20)/(x + 3).
OpenStax Calculus Volume 2, §4.5 First-order Linear Equations §4.5, p. 410 — Checkpoint 4.15
Work it through on paper before typing the two numbers. The only danger is losing track of a sign or a factor when you clear the denominator.
Multiplying both sides by 2x minus 3y minus 4 gives x plus 3 times y prime equal to 5 times that expression, which is 10x minus 15y minus 20. The y term is on the wrong side, so add 15y to both sides. Now the left side is x plus 3 times y prime plus 15y.
Dividing every term by x plus 3 gives p of x equal to 15 over x plus 3, and q of x equal to 10x minus 20 over x plus 3. Notice that the 15 came from the right-hand side with a minus sign and changed sign when it crossed over.
Trap
Straight from the original equation:
\[ y' = 3x - 4y \]
\[ p(x) = -4 \quad (\text{WRONG}) \]
The minus four is on the right-hand side.
p is defined by the standard form, with the y term on the left. Moving it across flips its sign.
\[ y' + 4y = 3x \]
\[ p(x) = 4 \]
The wrong sign gives the factor e to the minus 4x instead of e to the 4x, and every later line fails.
This slip happens when you are in a hurry: you see minus 4y in the equation and write minus 4 for p. But p is defined only once the equation is in standard form, with the y term on the left. On the right it has the opposite sign.
The consequence is not small. The integrating factor is e to the integral of p, so the wrong sign gives e to the minus 4x instead of e to the 4x. The left side will then not collapse into a single derivative, and nothing after that point can be right. Always rewrite the equation in standard form on paper before reading anything off it.
Section
Part 2
Concept
Multiply the standard form by a function mu of x, not yet chosen.
\[ \mu(x)y' + \mu(x)p(x)\,y = \mu(x)q(x) \]
Compare the left side with the product rule for mu times y:
\[ \frac{d}{dx}\left[\mu(x)\,y\right] = \mu(x)y' + \mu'(x)\,y \]
The first terms already agree. The second terms agree if mu is chosen so that its derivative is mu times p.
\[ \mu'(x) = \mu(x)\,p(x) \]
OpenStax Calculus Volume 2, §4.5 First-order Linear Equations §4.5, p. 411 — equation 4.19 and the product rule
Here is the central idea of the lesson. Multiply the standard form by some function mu of x that you have not yet chosen. The left side becomes mu times y prime plus mu times p times y.
Now compare that with the product rule for the product mu times y. Its derivative is mu times y prime plus mu prime times y. The first terms already match exactly. The second terms match if mu prime equals mu times p.
So the plan is: choose mu so that its derivative is mu times p. Then the entire left side is the derivative of mu times y, a single derivative, and an equation of the form derivative of something equals a known function can be solved by integrating once. The whole method is this one recognition.
Concept
The condition on mu is itself a first-order equation, and a separable one, so Section 4.3 solves it.
\[ \frac{\mu'(x)}{\mu(x)} = p(x) \]
\[ \int \frac{\mu'(x)}{\mu(x)}\,dx = \int p(x)\,dx \]
\[ \ln|\mu(x)| = \int p(x)\,dx + C \]
\[ |\mu(x)| = e^{C}\,e^{\int p(x)\,dx} \]
\[ \mu(x) = C_2\,e^{\int p(x)\,dx} \]
Any nonzero constant works, so take the simplest one.
OpenStax Calculus Volume 2, §4.5 First-order Linear Equations §4.5, p. 411 — the derivation of the integrating factor
The condition that mu prime equals mu times p is itself a differential equation, and a pleasant one: it separates. Divide by mu and you have mu prime over mu equal to p of x.
The left side is the derivative of the natural log of the absolute value of mu, so integrating both sides gives the log of mu equal to the integral of p plus a constant. Exponentiating removes the log, and the constant turns into a multiplying constant.
The book keeps that constant, calling it C sub 2, to show that there is a whole family of factors that work. You only need one of them, so the natural choice is C sub 2 equal to one. The next slides show why that choice is completely harmless, and why the same freedom does not apply to the constant that appears later.
Notation
Annotate
On: \( \mu(x) = e^{\int p(x)\,dx} \)
OpenStax Calculus Volume 2, §4.5 First-order Linear Equations §4.5, p. 412 — step 2 of the problem-solving strategy
Go through the annotations one at a time. The formula is short, but each piece hides a way to go wrong.
The most important annotation is the second one: p means the coefficient of y after you have divided through by the coefficient of y prime. If the equation came to you as x times y prime plus 3y, then p is 3 over x, not 3. Reading p from the wrong form is the single most common way to get the wrong factor.
The last annotation is a useful shortcut. When the integral of p is a multiple of a logarithm, the exponential undoes it and the factor becomes a power of x. Three over x gives x cubed; one over x minus 2 gives x minus 2. Factors are exponentials only when p is not of that logarithmic kind.
Intuition
Suppose you kept the constant and used a factor of 5 times e to the 3x. Every term of the equation is multiplied by it.
\[ 5e^{3x}y' + 15e^{3x}y = 5e^{3x}q(x) \]
The 5 is a common factor of every term, so dividing it out gives back exactly the equation you get with e to the 3x alone. Only one factor is needed, so choose the constant to be 1.
\[ \frac{d}{dx}\left[5e^{3x}y\right] = 5e^{3x}q \iff \frac{d}{dx}\left[e^{3x}y\right] = e^{3x}q \]
The constant from the LAST integration is different: it produces the whole family of solutions, and dropping it loses all but one of them.
OpenStax Calculus Volume 2, §4.5 First-order Linear Equations §4.5, p. 412 — the note on the integrating constant
This slide answers a question that bothers careful students: why are you allowed to throw away a constant of integration here, when you have been told never to do that?
Look at what the constant does. A factor of 5 times e to the 3x multiplies every single term of the equation by 5 as well as by e to the 3x. The 5 then divides straight back out, and you are left with exactly the equation you would have had with e to the 3x alone. So every choice of constant leads to the same solutions, and you might as well pick 1.
The constant that appears when you integrate the collapsed equation is completely different. It is added, not multiplied, and it is what produces a whole family of solutions. Throw it away and you keep only one solution out of infinitely many.
Concept
With mu chosen, the whole method is four lines.
\[ \mu(x)y' + \mu(x)p(x)\,y = \mu(x)q(x) \]
\[ \frac{d}{dx}\left[\mu(x)\,y\right] = \mu(x)q(x) \]
\[ \mu(x)\,y = \int \mu(x)q(x)\,dx + C \]
\[ y = \frac{1}{\mu(x)}\left[\int \mu(x)q(x)\,dx + C\right] \]
The second line is the payoff: the left side has collapsed into one derivative, so integrating it just removes the d by dx.
OpenStax Calculus Volume 2, §4.5 First-order Linear Equations §4.5, p. 411 — equations 4.20 to 4.23
Read the four lines as a story. First multiply by mu. Second, recognise that the left side is now the derivative of mu times y; this is the collapse. Third, integrate both sides: on the left the integral simply undoes the derivative, and on the right you get the integral of mu times q plus a constant. Fourth, divide by mu to get y by itself.
The collapse is the only step that needs thought, and it is guaranteed by the way mu was chosen. In practice you should still write the product rule out once to see that it really happens; if it does not, your factor is wrong.
The last line is the book's general solution formula, equation 4.23. You can use it directly, but most people find it more reliable to run through the four lines every time, because each step can be checked.
Notation
Annotate
On: \( y = \frac{1}{\mu(x)}\left[\int \mu(x)q(x)\,dx + C\right] \)
Step through the notes with the formula in view. The structure matters more than the symbols: one over mu, times the bracket of an integral plus a constant.
The annotation on the constant is the practical one. Because the constant is inside the bracket, it gets divided by mu along with everything else. That is why the answer always contains C divided by the integrating factor: C times e to the minus 3x when the factor is e to the 3x, C over x cubed when the factor is x cubed.
The last note gives you the shape of every answer in this section. The general solution is one particular solution plus C times one over mu. Once you know that, you can spot many errors instantly: if your answer has C added on its own, not divided by the factor, something went wrong.
Matching
Match the pairs
Why: Put each in standard form first. y′ − xy = 3 has p = −x; y′ + eˣy = sin x has p = eˣ; y′ − tanh(x)y = 1 has p = −tanh x, whose antiderivative is −ln cosh x; and y′ + (3t − eᵗ)y = 0 has p = 3t − eᵗ. Then μ is e to the antiderivative of p.
OpenStax Calculus Volume 2, §4.5 First-order Linear Equations §4.5, p. 420 — Exercises 218, 219, 221 and 222
Before matching, rewrite each equation in standard form. Only then can you read off p, and only then is the factor e to the integral of p.
The first is y prime minus x times y equal to 3, so p is minus x and the factor is e to the minus x squared over 2. The second is already in standard form with p equal to e to the x, whose antiderivative is e to the x again, giving e to the e to the x: an odd-looking factor, but a perfectly good one.
The third needs the antiderivative of the hyperbolic tangent, which is the log of the hyperbolic cosine. With the minus sign, the exponential of minus the log of cosh x is one over cosh x. The fourth has y on both sides; collect them and p is 3t minus e to the t.
Trap
For x y prime plus 3y equal to 4x squared minus 3x:
\[ \mu = e^{\int 3\,dx} = e^{3x} \]
(WRONG) The 3 is not p: the equation is not in standard form yet.
Divide by x first. The coefficient of y becomes 3 over x.
\[ y' + \frac{3}{x}\,y = 4x - 3 \]
\[ \mu = e^{3\ln x} = x^3 \]
With the wrong factor the left side never collapses into a single derivative.
The equation has x multiplying y prime, and the method assumes a coefficient of one. If you read off p before dividing, you take the 3 as p and get e to the 3x.
Dividing first shows p is 3 over x, and the factor is x cubed. You can see the difference is real by trying to collapse the left side with the wrong factor: e to the 3x times x y prime plus 3 e to the 3x times y is not the derivative of any single product. With x cubed it is exactly the derivative of x cubed times y. When the collapse fails, go back and check standard form.
Ranking
Put in order
Order the book's problem-solving strategy for a first-order linear equation.
Why: p is only defined once the equation is in standard form, so that comes first. The constant C appears in the integration, so it can only be fixed after step 4, and it must be fixed from the full solution, not from the integrated form before dividing.
OpenStax Calculus Volume 2, §4.5 First-order Linear Equations §4.5, p. 412 — Problem-Solving Strategy
Put the steps in order before checking, and for each one ask what it depends on. That dependency chain is the reason the order is fixed.
You cannot compute the factor without p, and p only exists in standard form, so standard form comes first. The factor must exist before you multiply by it. The constant C first appears in the integration, so you cannot use the initial condition until after step 4.
One detail on the last step: use the initial condition on the final formula for y, after dividing by the factor. It is possible to use it on the integrated line instead, but then you must remember to evaluate the factor at the starting point too, and that is where mistakes creep in.
Section
Part 3
Worked example
\[ xy' + 3y = 4x^2 - 3x, \quad x > 0 \]
Standard form
Why: Divide by x, allowed since x is positive.
\[ y' + \frac{3}{x}\,y = 4x - 3 \]
Integrating factor
Why: The antiderivative of 3 over x is 3 ln x.
\[ \mu = e^{\int 3/x\,dx} = e^{3\ln x} = x^3 \]
Multiply and collapse
Why: The left side is the product rule for x cubed times y.
\[ x^3y' + 3x^2y = \frac{d}{dx}\left[x^3y\right] = 4x^4 - 3x^3 \]
Integrate both sides
Why: Power rule on the right; keep C.
\[ x^3y = \frac{4x^5}{5} - \frac{3x^4}{4} + C \]
Divide by x cubed
Why: C is divided too.
\[ y = \frac{4x^2}{5} - \frac{3x}{4} + Cx^{-3} \]
Check by substituting
Why: Differentiate, multiply by x, add 3y: the C terms cancel and the rest is the right side.
\[ xy' = \tfrac85x^2 - \tfrac34x - 3Cx^{-3}, \quad 3y = \tfrac{12}{5}x^2 - \tfrac94x + 3Cx^{-3} \]
\[ xy' + 3y = 4x^2 - 3x \;\checkmark \]
OpenStax Calculus Volume 2, §4.5 First-order Linear Equations §4.5, p. 412 — Example 4.16
Follow the five steps. Dividing by x gives p equal to 3 over x, so the integral of p is 3 ln x, and the factor is e to the 3 ln x, which is x cubed. This is the logarithm shortcut from the notation slide.
Multiplying through by x cubed gives x cubed y prime plus 3x squared y on the left, and that is exactly the product rule for x cubed times y. Integrating both sides with the power rule and keeping the constant gives x cubed y equal to four fifths x to the fifth minus three quarters x to the fourth plus C.
Dividing by x cubed turns C into C over x cubed. The check substitutes the answer back into the original equation. The C terms cancel, minus 3C over x cubed against plus 3C over x cubed, and what is left is exactly 4x squared minus 3x. That cancellation is the proof that every value of C works.
Picture it
Figure (svg): Five solution curves of x y prime plus 3y equals 4x squared minus 3x for x between 0 and 3.2. The curve with C equal to 0 is a parabola; curves with positive C shoot up near x equal to 0 and those with negative C plunge down, and all of them merge with the parabola as x grows.
\[ y = \underbrace{\tfrac45x^2 - \tfrac34x}_{C = 0} + \frac{C}{x^3} \]
Here is the whole family drawn. The highlighted curve is the solution with C equal to 0, which is just the parabola four fifths x squared minus three quarters x.
Every other solution is that parabola plus C over x cubed. Near x equal to 0 that extra term is enormous, so the curves shoot up for positive C and plunge down for negative C. Away from 0 it becomes tiny, so all the curves merge into the parabola.
This is a preview of an idea you will use all through the lesson: the general solution is one particular solution plus a multiple of one over the integrating factor. The shape of one over the factor, here one over x cubed, decides where solutions differ and where they agree.
Concept
The book assumed x positive. Two things go wrong at zero, and the factor changes form for negative x.
\[ p(x) = \frac{3}{x} \quad\text{is undefined at } x = 0 \]
\[ \mu = e^{\int 3/x\,dx} = e^{3\ln|x|} = |x|^3 \]
For negative x the absolute value makes the factor minus x cubed, a constant multiple of x cubed, so the same family of formulas results; but a solution may not cross zero, because every one with C not zero blows up there.
OpenStax Calculus Volume 2, §4.5 First-order Linear Equations §4.5, p. 413 — the analysis after Example 4.16
The book assumed x positive, and this slide explains why. The coefficient p is 3 over x, which does not exist at x equal to 0, so the standard form breaks down there. Any solution you build must live on an interval that does not include 0.
For negative x the integral of 3 over x is 3 times the log of the absolute value of x, so the factor is the absolute value of x, cubed. On the negative axis that is minus x cubed, just a constant multiple of x cubed, and you already know constant multiples of the factor change nothing. So the same family of formulas works on either side of 0.
What does not work is crossing 0. Every solution except the parabola has a C over x cubed term that blows up there, so solutions on the left and on the right are separate pieces.
Error analysis
Annotate
On: \( x^3y = \frac{4x^5}{5} - \frac{3x^4}{4} \;\Longrightarrow\; y = \frac{4x^2}{5} - \frac{3x}{4} + C \)
Look at the two lines and try to spot the problem before revealing the notes. The integration itself is fine; the error is about where the constant was put.
The constant should have appeared when the right side was integrated, giving x cubed y equal to the polynomial plus C. Dividing by x cubed then gives C over x cubed. Here the constant was forgotten and then tacked on at the very end, after the division, so it was never divided.
The last note shows how to catch this yourself: substitute. With C equal to 1, the wrong answer gives x y prime plus 3y equal to the right side plus 3, which is not the equation. A constant added on its own is almost never correct in this method.
Step zero
\[ (x - 2)y' + y = 3x^2 + 2x, \quad x > 2 \]
Discussion prompt
Before computing any integrating factor, look at the left-hand side on its own. What is it the derivative of, and what does that save you?
Write down your answer before revealing. The habit this slide builds is to look at the equation for a moment before launching the five steps.
Apply the product rule to x minus 2 times y. The derivative of x minus 2 is 1, so you get x minus 2 times y prime plus y. That is exactly the left side of this equation.
So the equation already says that the derivative of x minus 2 times y equals 3x squared plus 2x. The integrating factor, if you compute it, turns out to be x minus 2, which just undoes the division into standard form. Recognising this saves two steps, and it is a good reminder of what the integrating factor is for: it turns the left side into this kind of perfect derivative.
Worked example
\[ (x - 2)y' + y = 3x^2 + 2x, \quad x > 2 \]
Standard form
Why: Divide by x minus 2, allowed because x exceeds 2.
\[ y' + \frac{1}{x-2}\,y = \frac{3x^2 + 2x}{x-2} \]
Integrating factor
Why: The antiderivative of one over x minus 2 is a logarithm.
\[ \mu = e^{\ln(x-2)} = x - 2 \]
Multiply: the original left side returns
Why: Multiplying by x minus 2 undoes the division.
\[ \frac{d}{dx}\left[(x-2)y\right] = 3x^2 + 2x \]
Integrate
Why: Power rule.
\[ (x-2)\,y = x^3 + x^2 + C \]
Divide
Why: The whole right side goes over x minus 2.
\[ y = \frac{x^3 + x^2 + C}{x - 2} \]
Figure (svg): Solutions of (x minus 2) y prime plus y equals 3x squared plus 2x, drawn for x from 1.5 to 5. A dashed vertical line marks x equal to 2. Three curves with C equal to minus 20, 0 and 20 break at the line; the curve with C equal to minus 12 is the parabola x squared plus 3x plus 6 and passes straight through.
Check by differentiating the product back
Why: The derivative of the right side of the integrated line is the forcing term.
\[ \frac{d}{dx}\left[x^3 + x^2 + C\right] = 3x^2 + 2x \;\checkmark \]
OpenStax Calculus Volume 2, §4.5 First-order Linear Equations §4.5, p. 413 — Checkpoint 4.16
Running the full method confirms what the previous slide spotted. Standard form has p equal to one over x minus 2; its antiderivative is the log of x minus 2, which is fine because x exceeds 2; and the factor is x minus 2.
Multiplying back gives the original left side, which is the derivative of x minus 2 times y. Integrate, keep the constant, and divide by x minus 2 to get the general solution.
The picture shows something interesting. Most solutions blow up at x equal to 2 because of the denominator. But when C is minus 12, the numerator also vanishes at 2, and the fraction simplifies to x squared plus 3x plus 6, a parabola that passes right through. The check differentiates the integrated line: the derivative of x cubed plus x squared plus C is exactly 3x squared plus 2x.
Worked example
Back to the warm-up equation.
\[ y' = x + y \]
Standard form
Why: Move y to the left.
\[ y' - y = x, \quad p(x) = -1 \]
Integrating factor
Why: The antiderivative of minus 1 is minus x.
\[ \mu = e^{-x} \]
Multiply and collapse
Why: The left side becomes one derivative.
\[ \frac{d}{dx}\left[e^{-x}y\right] = xe^{-x} \]
Integrate by parts
Why: Take u equal to x and dv equal to e to the minus x dx.
\[ e^{-x}y = -xe^{-x} - e^{-x} + C \]
Divide by e to the minus x
Why: Dividing by it multiplies by e to the x.
\[ y = -x - 1 + Ce^{x} \]
Figure (svg): The slope field of y prime equals x plus y for x from minus 3 to 2 and y from minus 3 to 3, with five solution curves. The straight line y equals minus x minus 1 is the solution with C equal to 0; curves above it bend upward and curves below it bend downward as x increases.
Check by substituting
Why: Both sides of the equation come out the same for every C.
\[ y' = -1 + Ce^{x}, \qquad x + y = -1 + Ce^{x} \;\checkmark \]
This is the warm-up equation, and now it takes five short lines. Standard form is y prime minus y equal to x, so p is minus 1 and the factor is e to the minus x.
The integration by parts is the only real work: the integral of x e to the minus x is minus x e to the minus x minus e to the minus x. Dividing by e to the minus x means multiplying by e to the x, which turns the constant into C e to the x.
The slope field shows the family. The solution with C equal to 0 is the straight line y equal to minus x minus 1, and you can check it directly: its slope is minus 1, and x plus y along the line is also minus 1. Every other solution peels away from that line, because C e to the x grows to the right. That exponential is exactly what separation could never have found.
Section
Part 4
Prediction
\[ y' + 3y = 2x - 1 \]
Predict first
Before solving: far to the right, how do different solutions of this equation behave relative to each other?
Correct: They all approach one straight line
Why: The general solution will be a particular solution plus C times one over the integrating factor. Here the factor is e to the 3x, so the C part is C times e to the minus 3x, which dies away. What is left is the same for every C: the line y = 2x/3 − 5/9.
Make a genuine prediction before revealing. You have enough to reason it out: the general solution is always one particular solution plus C divided by the integrating factor.
Here p is 3, so the factor is e to the 3x and one over the factor is e to the minus 3x. That shrinks toward zero very quickly as x increases, so whatever C is, its contribution disappears. What remains is the particular solution, and it is the same for every member of the family.
If you chose that it depends on y of 0, you are right about the start and wrong about the finish. The initial value decides C, and C only matters for a short while.
Worked example
\[ y' + 3y = 2x - 1, \quad y(0) = 3 \]
Read off p and q
Why: Already in standard form.
\[ p(x) = 3, \quad q(x) = 2x - 1 \]
Integrating factor
Why: The antiderivative of 3 is 3x.
\[ \mu = e^{\int 3\,dx} = e^{3x} \]
Multiply and collapse
Why: The left side is the derivative of y times e to the 3x.
\[ \frac{d}{dx}\left[ye^{3x}\right] = (2x-1)e^{3x} \]
Set up integration by parts
Why: Differentiate the polynomial, integrate the exponential.
\[ u = 2x - 1, \quad du = 2\,dx, \quad v = \tfrac13 e^{3x} \]
Apply the formula
Why: uv minus the integral of v du.
\[ ye^{3x} = \frac{(2x-1)e^{3x}}{3} - \int \frac23 e^{3x}\,dx \]
Finish the integral
Why: The remaining integral is two ninths of e to the 3x.
\[ ye^{3x} = \frac{(2x-1)e^{3x}}{3} - \frac{2e^{3x}}{9} + C \]
Check the antiderivative by differentiating
Why: The two e to the 3x terms with coefficient two thirds cancel.
\[ \tfrac23e^{3x} + (2x-1)e^{3x} - \tfrac23e^{3x} = (2x-1)e^{3x} \;\checkmark \]
OpenStax Calculus Volume 2, §4.5 First-order Linear Equations §4.5, p. 413 — Example 4.17
This is the book's first initial-value problem, split over two slides so that each step has room. The equation is already in standard form, so p is 3, q is 2x minus 1, and the factor is e to the 3x.
After multiplying and collapsing, the right side is 2x minus 1 times e to the 3x, and that needs integration by parts. The usual choice is to differentiate the polynomial and integrate the exponential: u is 2x minus 1, v is one third e to the 3x. Then the leftover integral is two thirds of e to the 3x, which integrates to two ninths of e to the 3x.
Before dividing, check the antiderivative by differentiating it. The product rule on the first term gives two thirds e to the 3x plus 2x minus 1 times e to the 3x; the second term gives minus two thirds e to the 3x. The two thirds cancel and exactly the integrand remains.
Worked example
\[ ye^{3x} = \frac{(2x-1)e^{3x}}{3} - \frac{2e^{3x}}{9} + C \]
Divide by e to the 3x
Why: Every term, including C.
\[ y = \frac{2x-1}{3} - \frac29 + Ce^{-3x} \]
Simplify the constants
Why: Minus one third minus two ninths is minus five ninths.
\[ y = \frac23x - \frac59 + Ce^{-3x} \]
Substitute x = 0 and y = 3
Why: e to the 0 is 1.
\[ 3 = 0 - \frac59 + C \]
Solve for C
Why: Add five ninths.
\[ C = 3 + \frac59 = \frac{32}{9} \]
State the solution
Why: Put C back in.
\[ y = \frac23x - \frac59 + \frac{32}{9}e^{-3x} \]
Verify: substitute into the equation
Why: The exponential terms cancel, the rest is 2x minus 1, and at x equal to 0 the value is 3.
\[ y' + 3y = \tfrac23 - \tfrac{32}{3}e^{-3x} + 2x - \tfrac53 + \tfrac{32}{3}e^{-3x} = 2x - 1 \]
OpenStax Calculus Volume 2, §4.5 First-order Linear Equations §4.5, pp. 413-414 — Example 4.17
Divide the integrated line by e to the 3x. The e to the 3x cancels from the first two terms, and C becomes C times e to the minus 3x. Combining minus one third with minus two ninths gives minus five ninths.
Now use the initial condition. At x equal to 0 the line part is minus five ninths and the exponential is 1, so 3 equals minus five ninths plus C, and C is 32 over 9. Always substitute into the final formula, after dividing, to avoid forgetting the factor.
The verification substitutes the solution back into the equation. The derivative of 32 ninths e to the minus 3x is minus 32 thirds e to the minus 3x, and three times the solution contributes plus 32 thirds e to the minus 3x, so the exponentials cancel. The remaining terms give two thirds plus 2x minus five thirds, which is 2x minus 1, exactly the right side. And at 0 the solution equals 3, so both requirements are met.
Concept
Figure (svg): The slope field of y prime equals 2x minus 1 minus 3y with the dashed line y equals two thirds x minus five ninths and four solution curves, including the one through the point (0, 3). Every curve bends onto the dashed line within about one unit of x.
\[ y = \underbrace{\tfrac23x - \tfrac59}_{\text{steady state}} + \underbrace{\tfrac{32}{9}e^{-3x}}_{\text{transient}} \]
The transient is the only part that remembers the initial value, and it decays. The steady state is the same for every solution: it is what the forcing term alone produces.
The slope field makes the prediction visible. Every short segment tilts toward the dashed line, and every solution curve, whatever its starting point, bends onto that line within about one unit of x.
That gives a natural split of the solution into two parts. The transient, 32 ninths e to the minus 3x, carries all the information about the starting value, and it decays. The steady state, two thirds x minus five ninths, is what the forcing term alone produces, and every solution shares it.
This split will appear in every application in this lesson. In the ball problem the steady state is the terminal velocity; in the circuit it is the ongoing oscillating current; in the tank it is the final amount of salt. In each case the physical system forgets where it started.
Tweak it
Parameter explorer
The curve is y = 2x/3 − 5/9 + Ce^(−3x), the general solution of Example 4.17. Slide C from −4 to 4. Where does each curve start, and where does it end up?
\[ y = \tfrac23 x - \tfrac59 + ({C})e^{-3x} \]
Start at the default, which is close to the solution of Example 4.17, and slide C slowly toward negative values. Watch the left end of the curve: only the starting value y of 0 moves, since it equals C minus five ninths.
Now watch the right end. Whatever C you choose, by x equal to 2 the curve is back on the line, because e to the minus 6 is about a quarter of a hundredth, so even C equal to 4 contributes only about a hundredth.
That is what it means for a transient to die. The initial condition matters, but only for a limited time, and how long depends on the exponent. A factor of e to the 3x kills transients three times faster than e to the x would.
Worked example
\[ y' - 2y = 4x + 3, \quad y(0) = -2 \]
Integrating factor
Why: Here p is minus 2.
\[ \mu = e^{\int -2\,dx} = e^{-2x} \]
Multiply and collapse
Why: The left side is the derivative of y times e to the minus 2x.
\[ \frac{d}{dx}\left[ye^{-2x}\right] = (4x+3)e^{-2x} \]
Integrate by parts
Why: u is 4x plus 3, v is minus one half e to the minus 2x.
\[ ye^{-2x} = -\frac{(4x+3)e^{-2x}}{2} - e^{-2x} + C \]
Divide by e to the minus 2x
Why: C becomes C times e to the 2x.
\[ y = -2x - \frac52 + Ce^{2x} \]
Use y(0) = -2
Why: At x equal to 0 the line part is minus five halves.
\[ -2 = -\frac52 + C \;\Longrightarrow\; C = \frac12 \]
Figure (svg): Solutions of y prime minus 2y equals 4x plus 3 for x from minus 1 to 1.5: the dashed line y equals minus 2x minus five halves, and curves for C equal to minus one quarter, one quarter, one half and three quarters. The highlighted curve through (0, minus 2) has C equal to one half; every curve with C not zero leaves the line as x grows.
Check by substituting
Why: The e to the 2x terms cancel and the rest is 4x plus 3.
\[ y' - 2y = (-2 + e^{2x}) - (-4x - 5 + e^{2x}) = 4x + 3 \]
OpenStax Calculus Volume 2, §4.5 First-order Linear Equations §4.5, p. 414 — Checkpoint 4.17
The method runs exactly as before. Here p is minus 2, so the factor is e to the minus 2x, and the integration by parts gives minus one half of 4x plus 3 times e to the minus 2x, minus e to the minus 2x.
Dividing by e to the minus 2x means multiplying by e to the 2x, so the constant becomes C e to the 2x. The initial value gives minus 2 equal to minus five halves plus C, so C is one half.
Now look at the picture, because it is the opposite of Example 4.17. The exponential e to the 2x grows rather than decays, so there is no steady state: every solution with C not zero runs away from the line, and a tiny change in the starting value changes the long-run behaviour completely. Whether a transient dies depends on the sign of p, and here p is negative. The check substitutes back, and the exponentials cancel just as before.
Worked example
\[ y' + y = x, \quad y(0) = 3 \]
Integrating factor
Why: p is 1.
\[ \mu = e^{x} \]
Multiply and collapse
Why: The left side is the derivative of y times e to the x.
\[ \frac{d}{dx}\left[ye^{x}\right] = xe^{x} \]
Integrate by parts
Why: The integral of x e to the x is x minus 1 times e to the x.
\[ ye^{x} = (x-1)e^{x} + C \]
Divide by e to the x
Why: The constant picks up e to the minus x.
\[ y = x - 1 + Ce^{-x} \]
Use y(0) = 3
Why: At 0 the line part is minus 1.
\[ 3 = -1 + C \;\Longrightarrow\; C = 4 \]
Figure (svg): Three curves for x from 0 to 6: the solution y equals x minus 1 plus 4 e to the minus x, starting at 3; the dashed line x minus 1; and the dashed transient 4 e to the minus x decaying from 4 toward 0. The solution merges with the line by about x equal to 4.
Check by substituting
Why: The exponentials cancel and x is left.
\[ y' + y = (1 - 4e^{-x}) + (x - 1 + 4e^{-x}) = x \;\checkmark \]
OpenStax Calculus Volume 2, §4.5 First-order Linear Equations §4.5, p. 420 — Exercise 241
This exercise is a clean example of the split into two parts. The factor is e to the x, the integral of x e to the x is x minus 1 times e to the x, and dividing gives x minus 1 plus C e to the minus x.
At x equal to 0 the line part is minus 1, so C must be 4 to start at 3. The check substitutes back: the derivative is 1 minus 4 e to the minus x, adding the solution cancels the exponentials, and x is left.
The figure separates the pieces. The dashed line x minus 1 is the steady state: it is itself a solution, and it is the one the forcing term produces. The dashed exponential 4 e to the minus x is the transient, the only part that knows the starting value 3. The solution is their sum, and by x equal to 4 it is indistinguishable from the line.
Estimation
\[ y' + 2y = 6 \]
Predict first
Without solving: for large x, what value do all solutions approach?
Correct: 3
Why: A steady value has zero derivative, so set y prime to 0: 2y = 6 and y = 3. The factor is e to the 2x, so the transient is C times e to the minus 2x, which dies; the full solution is y = 3 + Ce^(−2x).
\[ y' = 0 \;\Longrightarrow\; 2y = 6 \;\Longrightarrow\; y = 3, \qquad y = 3 + Ce^{-2x} \]
Commit to an answer before revealing. The quick route does not require solving the equation at all.
If the solutions settle down to a constant value, then at that value the derivative is zero. Putting y prime equal to 0 in the equation leaves 2y equal to 6, so y is 3. That is the steady state, and you can read it off in one line whenever the forcing is constant.
The general solution confirms it: 3 plus C e to the minus 2x. Because p is positive, the transient decays, so every solution really does approach 3. If p had been negative, 3 would still be a solution, but the others would run away from it rather than toward it.
Comparison
Comparison matrix
| equation | p(x) | μ(x) | transient dies out? |
|---|---|---|---|
| y′ + 2y = 6 | 2 | e^(2x) | yes |
| y′ + y = x | 1 | e^x | yes |
| y′ − 2y = 4x + 3 | −2 | e^(−2x) | no |
| xy′ + 3y = 4x² − 3x | 3/x | x^3 | yes, as x grows |
Fill in each blank before checking. The table links three things you have seen separately: the coefficient p, the integrating factor, and whether the transient dies.
The rule behind the last column is simple. The transient is C divided by the factor. If the factor grows, dividing by it makes the transient shrink; if the factor shrinks, the transient grows. For a constant p, that is the same as asking whether p is positive.
The last row is a reminder that factors need not be exponentials. For x y prime plus 3y, the factor is x cubed, and the transient C over x cubed dies as x grows, just more slowly than an exponential would.
Counterexample
\[ y' - y = e^{kt}, \quad y(0) = 0 \quad\Longrightarrow\quad y = \frac{e^{kt} - e^{t}}{k - 1} \]
Figure (svg): Solutions of y prime minus y equals e to the kt with y of 0 equal to 0, for t from 0 to 2.2, with k equal to 0, 0.5 and 0.9, and the limiting solution t e to the t for k equal to 1. As k increases toward 1 the curves rise toward the t e to the t curve.
Discussion prompt
This formula is correct for most k. Find the value of k that breaks it, and solve the equation directly for that k.
OpenStax Calculus Volume 2, §4.5 First-order Linear Equations §4.5, p. 421 — Exercise 261
Try to find the bad value of k yourself before revealing. The formula has k minus 1 in the denominator, so it cannot be used at k equal to 1.
That does not mean there is no solution at k equal to 1. Solve that case directly: the factor is e to the minus t, and the forcing is e to the t, so their product is exactly 1. Integrating 1 gives t, and the solution is t e to the t. This is the only place a factor of t can appear, and it appears because the forcing matches the natural behaviour of the equation exactly.
The figure shows that nothing dramatic happens to the solutions themselves as k approaches 1. The curves for k equal to 0, one half and 0.9 rise steadily toward the t e to the t curve. Only the formula breaks down, which is a good reminder to check every formula for values that make a denominator zero.
Section
Part 5
Intuition
The steady state of the ball equation needs no solving. At terminal velocity the velocity stops changing, so its derivative is zero.
\[ m\frac{dv}{dt} = -kv - mg \]
\[ 0 = -kv - mg \;\Longrightarrow\; v = -\frac{mg}{k} \]
Gravity and drag balance exactly. The minus sign says the ball is then moving downward, and a heavier ball or a smaller drag constant means a faster fall.
\[ \text{racquetball: } -\frac{0.0427(9.8)}{0.5} \approx -0.8369\text{ m/s} \]
You can find the most important number in the ball problem without solving anything. Terminal velocity is the velocity the ball settles to, and once it has settled, the velocity is not changing, so its derivative is zero.
Set the derivative to zero in the equation and you get 0 equal to minus k v minus m g, so v is minus m g over k. It is negative because the ball is falling, with upward counted positive. The formula also matches intuition: a heavier ball falls faster, and a larger drag constant makes it fall more slowly.
For the racquetball, the numbers give about minus 0.837 metres per second. That is very slow, because a racquetball is light and hollow, so the drag is large compared with its weight. The full solution on the next slides will approach exactly this value.
Picture it
Figure (svg): Velocity against time for the racquetball equation dv/dt equals minus 11.7096 v minus 9.8, from four starting velocities: 4, 2, 0 and minus 2 metres per second. All four curves reach the dashed line at minus 0.837 within about 0.3 seconds.
Four balls, four starting velocities, one destination. The transient is C times e to the minus 11.7096 t, which halves every six hundredths of a second, so the steady state takes over almost at once.
The figure shows the racquetball equation started from four different velocities, including the upward 2 metres per second of the book's example and a ball thrown downward at 2 metres per second.
They all end up on the same dashed line. The transient here is C times e to the minus 11.7096 t, which halves about every six hundredths of a second, so within a third of a second the starting velocity has been forgotten.
Notice that the ball thrown downward faster than the terminal speed slows down. That surprises people, but it follows from the equation: when the ball is moving down faster than terminal velocity, drag is stronger than gravity, so the net force points up.
Worked example
Mass 0.0427 kg, drag 0.5v, hit upward at 2 m/s.
\[ 0.0427\,\frac{dv}{dt} = -0.5v - 0.0427(9.8), \quad v(0) = 2 \]
Divide by the mass
Why: 0.5 divided by 0.0427 is about 11.7096.
\[ \frac{dv}{dt} = -11.7096v - 9.8 \]
Standard form
Why: Move the v term to the left.
\[ \frac{dv}{dt} + 11.7096v = -9.8, \quad p = 11.7096, \; q = -9.8 \]
Multiply by the factor and collapse
Why: The factor is e to the 11.7096 t.
\[ \frac{d}{dt}\left[ve^{11.7096t}\right] = -9.8e^{11.7096t} \]
Integrate, then divide
Why: 9.8 over 11.7096 is about 0.8369.
\[ v = -\frac{9.8}{11.7096} + Ce^{-11.7096t} = -0.8369 + Ce^{-11.7096t} \]
Use v(0) = 2
Why: e to the 0 is 1.
\[ 2 = -0.8369 + C \;\Longrightarrow\; v(t) = 2.8369e^{-11.7096t} - 0.8369 \]
Check by substituting
Why: The constant terms cancel because 11.7096 times 0.8369 is 9.800.
\[ v' = -33.219e^{-11.7096t}, \quad -11.7096v - 9.8 = -33.219e^{-11.7096t} + 9.800 - 9.8 \]
OpenStax Calculus Volume 2, §4.5 First-order Linear Equations §4.5, pp. 414-415 — Example 4.18a
Start by substituting the numbers into Newton's law. Dividing by the mass gives the equation with coefficient 11.7096, which is 0.5 divided by 0.0427. Moving that term to the left puts the equation in standard form with a constant p.
A constant p means the factor is simply e to the p t. After multiplying and collapsing, the right side is minus 9.8 times the same exponential, which integrates in one line. Dividing by the factor gives a constant, minus 0.8369, plus C times e to the minus 11.7096 t. That constant is the terminal velocity you found on the previous slides.
The initial velocity 2 gives C equal to 2.8369. For the check, differentiate: the derivative is minus 33.219 times the exponential. The right side of the equation gives the same exponential term plus 11.7096 times 0.8369, which is 9.800, minus 9.8. Those cancel to rounding, so the solution satisfies the equation.
Worked example
The ball is highest when its velocity is zero: positive before, negative after.
\[ 2.8369e^{-11.7096t} - 0.8369 = 0 \]
Isolate the exponential
Why: Divide by 2.8369.
\[ e^{-11.7096t} = \frac{0.8369}{2.8369} \approx 0.2950 \]
Take the natural log
Why: The log of e to a power is the power.
\[ -11.7096t = \ln 0.2950 \approx -1.2208 \]
Solve for t
Why: Divide by minus 11.7096.
\[ t \approx 0.104\text{ s} \]
Check against the drag-free ball
Why: Without drag the ball would rise for 2 over 9.8 seconds; drag should shorten the climb, and it roughly halves it.
\[ t_{\text{no drag}} = \frac{2}{9.8} \approx 0.204\text{ s} > 0.104\text{ s} \]
OpenStax Calculus Volume 2, §4.5 First-order Linear Equations §4.5, p. 415 — Example 4.18b
At the top of its flight the ball is momentarily neither rising nor falling, so its velocity is zero. Setting the velocity formula equal to zero and isolating the exponential gives e to the minus 11.7096 t equal to about 0.295.
Taking the natural log of both sides brings the exponent down. The log of 0.295 is about minus 1.221, and dividing by minus 11.7096 gives t about 0.104 seconds.
The check compares with a world without air. With gravity alone the velocity drops by 9.8 metres per second every second, so a ball launched at 2 would take 2 over 9.8, about 0.204 seconds, to stop. Drag adds to gravity while the ball rises, so it should stop sooner, and indeed it stops in about half the time.
Worked example
Hit from a height of 1 m. Height is the antiderivative of velocity.
\[ h'(t) = 2.8369e^{-11.7096t} - 0.8369, \quad h(0) = 1 \]
Integrate
Why: The exponential's antiderivative divides by minus 11.7096; 2.8369 over 11.7096 is about 0.2423.
\[ h(t) = -0.2423e^{-11.7096t} - 0.8369t + C \]
Use h(0) = 1
Why: At t equal to 0 the exponential is 1.
\[ 1 = -0.2423 + C \;\Longrightarrow\; C = 1.2423 \]
Evaluate at the top, t = 0.104
Why: The printed text labels this h(0.2); the time at the top is 0.104.
\[ h(0.104) = -0.2423(0.2959) - 0.0870 + 1.2423 \approx 1.084\text{ m} \]
Figure (svg): Left: the velocity 2.8369 e to the minus 11.7096 t minus 0.8369 falling from 2 through zero at t about 0.104 and levelling off near minus 0.84. Right: the height, starting at 1 metre, peaking at about 1.084 metres at t about 0.104, then falling along an almost straight line.
Check against the drag-free ball
Why: Without drag the ball would rise v squared over 2g above its start; drag must give less, and it does.
\[ 1 + \frac{2^2}{2(9.8)} \approx 1.204\text{ m} > 1.084\text{ m} \]
OpenStax Calculus Volume 2, §4.5 First-order Linear Equations §4.5, pp. 415-416 — Example 4.18c
Height is the antiderivative of velocity, so this part is a plain integration with an initial condition, not a new differential equation. The exponential integrates to the exponential divided by minus 11.7096, and 2.8369 over 11.7096 is about 0.2423.
The starting height of 1 metre fixes the constant at 1.2423. Then put in the time from part (b). The printed text writes this evaluation as h of 0.2, which is a misprint: the value 1.0836 it reports is the height at 0.104 seconds, the top of the flight. At 0.2 seconds the ball would already be falling, at about 1.052 metres.
The two panels show why the peak is where it is: the velocity crosses zero at exactly the moment the height is highest. The check compares with no drag, where the ball would climb 2 squared over twice 9.8, about 0.204 metres, reaching 1.204. Drag should cost height, and the answer of about 1.084 metres is indeed lower.
Worked example
Mass 2.5 g, drag 0.0025v, dropped from rest, upward positive.
\[ 0.0025\,\frac{dv}{dt} = -0.0025v - 0.0025(9.8), \quad v(0) = 0 \]
Divide by the mass
Why: The mass and the drag constant are equal, so p is 1.
\[ \frac{dv}{dt} + v = -9.8 \]
Multiply by e to the t and collapse
Why: The factor is e to the t.
\[ \frac{d}{dt}\left[ve^{t}\right] = -9.8e^{t} \]
Integrate and divide
Why: Keep C.
\[ v = -9.8 + Ce^{-t} \]
Use v(0) = 0 and let t grow
Why: C is 9.8; the exponential dies, leaving the terminal velocity.
\[ v(t) = -9.8 + 9.8e^{-t} \;\longrightarrow\; -9.8\text{ m/s} \]
Figure (svg): Velocity of a dropped penny for t from 0 to 10 seconds: the curve minus 9.8 plus 9.8 e to the minus t levels off at the dashed line minus 9.8, while the dashed line minus 9.8 t for a penny with no drag keeps falling steeply.
Check by substituting
Why: Minus v minus 9.8 must equal the derivative.
\[ v' = -9.8e^{-t}, \qquad -v - 9.8 = 9.8 - 9.8e^{-t} - 9.8 = -9.8e^{-t} \]
OpenStax Calculus Volume 2, §4.5 First-order Linear Equations §4.5, p. 416 — Checkpoint 4.18
The set-up is the same as the racquetball, with a mass of 2.5 grams, which is 0.0025 kilograms, and a drag constant of 0.0025. Those two numbers are equal, which makes p exactly 1 after dividing by the mass.
The factor is e to the t, the integration is one line, and the starting velocity of 0 gives C equal to 9.8. So the velocity is minus 9.8 plus 9.8 e to the minus t, and as t grows the exponential dies, leaving a terminal velocity of minus 9.8 metres per second.
The picture compares this with the penny in a vacuum, whose velocity would keep growing along the dashed line. With drag the penny reaches its terminal speed in a few seconds. Working out the height, it would take about 38.7 seconds to fall the 369 metres, instead of about 8.7 seconds, and it would land at about 9.8 metres per second instead of about 85. The check substitutes back and both sides equal minus 9.8 e to the minus t.
Trap
Drag points up while falling, so for the falling part:
\[ m\,v' = +kv - mg \]
(WRONG) The sign of v already does this.
With upward positive, a falling ball has v negative, so minus kv is positive: upward, as it should be. One equation covers the whole flight.
\[ m\,v' = -kv - mg \]
With plus kv the drag would push a falling ball down harder and there would be no terminal velocity.
The reasoning behind this error sounds convincing: drag points up when the ball falls, so write plus k v. But the formula minus k v already points up when the ball falls, because v is then negative, and minus a negative number is positive.
The quickest way to see the wrong version fails is to look for the terminal velocity. With plus k v, setting the derivative to zero gives v equal to plus m g over k, a positive, upward velocity for a falling ball, which is nonsense. With the correct minus k v the answer is minus m g over k. Write the force law once, with signs that follow the velocity, and never split the flight into cases.
Tweak it
Parameter explorer
For a 1 kg object dropped from rest, v = −(9.8/k)(1 − e^(−kt)). Slide k. How does the terminal velocity change, and how quickly is it reached?
\[ v = -\frac{9.8}{{k}}\left(1 - e^{-{k}t}\right) \]
Start at k equal to 1 and slide it down toward 0.2. The curve drops much further before it levels off, and it takes much longer to level off. Then slide k up to 3 and watch the curve flatten almost immediately at a small speed.
Two things change together. The terminal speed is 9.8 over k, so it is inversely proportional to the drag constant. The time scale is one over k, the time for the transient to shrink by a factor of e. Doubling k halves both the terminal speed and the time it takes to reach it.
This is why a feather and a stone behave so differently. For the same mass, a large drag constant means a gentle terminal speed reached almost at once, while a small one lets the object keep accelerating for a long time.
Real world
\[ m\,v' = mg - kv, \quad v(0) = 0 \quad (\text{down positive}) \]
Discussion prompt
Exercises 251 to 253: solve for v, find the terminal velocity, and estimate how long a 100 kg object with k equal to 4 takes to fall 5000 m. Compare with no drag.
OpenStax Calculus Volume 2, §4.5 First-order Linear Equations §4.5, p. 421 — Exercises 251 to 253
Here downward is taken as positive, which is often more natural for something that only falls. Then gravity is plus m g and drag is minus k v, and the solution from rest is m g over k times one minus e to the minus k t over m.
With a mass of 100 kilograms and k equal to 4, the terminal speed is 245 metres per second and the time scale is 25 seconds. Integrating the velocity gives the distance fallen, and solving for when it reaches 5000 metres needs a calculator: about 40.5 seconds.
Compare that with about 31.9 seconds with no drag at all. The linear drag model makes a real difference, but 245 metres per second is still far faster than a real skydiver falls. That is because air resistance on a large object grows more like the square of the speed, which is the model Exercise 254 asks you to try. That equation is not linear, so it needs separation instead.
Section
Part 6
Picture it
Figure (svg): A closed circuit drawn as a rectangle: a voltage source E on the left side, a zigzag resistor R and a coiled inductor L along the top, a capacitor C as two parallel plates on the bottom, and an arrow for the current i on the right side. Each element is labelled with its voltage drop: R i, L i prime, and q over C.
A generator drives current round a closed loop through a resistor, an inductor and a capacitor, each of which uses up part of the voltage.
OpenStax Calculus Volume 2, §4.5 First-order Linear Equations §4.5, p. 417 — Figure 4.25
Trace the loop in the figure with your finger. Current leaves the generator, passes through the resistor, the inductor and the capacitor, and returns. Each element takes a share of the voltage, labelled beside it.
Kirchhoff's loop rule says the shares add up to exactly what the generator supplies. The resistor's drop is proportional to the current; the inductor's drop is proportional to the rate of change of the current; the capacitor's drop is proportional to the charge stored on it.
The next slide turns that picture into an equation, and removing one element at a time turns it into the two first-order linear equations this section solves.
Concept
\[ E_L + E_R + E_C = E \]
\[ Li' + Ri + \frac{1}{C}q = E \qquad (i = q') \]
Drop the capacitor and the equation is first order in the current; drop the inductor and it is first order in the charge.
\[ \text{LR: } Li' + Ri = E(t) \qquad \text{RC: } Rq' + \frac{1}{C}q = E(t) \]
Both are linear with constant p: R over L for the first, one over RC for the second. So the integrating factor is always a plain exponential.
OpenStax Calculus Volume 2, §4.5 First-order Linear Equations §4.5, p. 417 — equations 4.24 to 4.26
Substituting the three drops into the loop rule gives equation 4.24: L times the derivative of the current, plus R times the current, plus the charge over C, equals the source voltage. Remember that current is the rate of change of charge, so i is q prime.
With no capacitor, the equation involves only the current and its derivative, and it is first-order linear in i. With no inductor, it involves only the charge and its derivative, and it is first-order linear in q.
In both cases the coefficient p is a constant, R over L or one over R times C, because resistance, inductance and capacitance do not change with time. So the integrating factor is always a plain exponential, and the transient always decays, because p is positive. The only effort goes into integrating the exponential times the source voltage.
Worked example
E = 50 sin 20t volts, R = 5 ohms, L = 0.4 henrys, no current at first.
\[ 0.4i' + 5i = 50\sin 20t, \quad i(0) = 0 \]
Standard form
Why: Divide by 0.4.
\[ i' + 12.5i = 125\sin 20t \]
Multiply by e to the 12.5t and collapse
Why: p is 12.5.
\[ \frac{d}{dt}\left[ie^{12.5t}\right] = 125e^{12.5t}\sin 20t \]
Use the by-parts-twice formula
Why: Here a is 12.5 and b is 20, so a squared plus b squared is 556.25.
\[ \int e^{at}\sin bt\,dt = \frac{e^{at}(a\sin bt - b\cos bt)}{a^2+b^2} \]
Integrate
Why: 125 times 12.5 over 556.25 is 250 over 89; 125 times 20 over 556.25 is 400 over 89.
\[ ie^{12.5t} = \frac{250\sin 20t - 400\cos 20t}{89}e^{12.5t} + C \]
Divide
Why: C picks up e to the minus 12.5t.
\[ i = \frac{250\sin 20t - 400\cos 20t}{89} + Ce^{-12.5t} \]
Check the formula by differentiating
Why: The product rule gives a squared plus b squared times e to the at sine bt, and the cosine terms cancel.
\[ \frac{d}{dt}\left[e^{at}(a\sin bt - b\cos bt)\right] = (a^2+b^2)e^{at}\sin bt \]
OpenStax Calculus Volume 2, §4.5 First-order Linear Equations §4.5, pp. 417-418 — Example 4.19
Substituting the values gives 0.4 times the current's derivative plus 5 times the current equal to 50 sine 20t. Dividing by 0.4 gives the standard form with p equal to 12.5, so the factor is e to the 12.5t.
The hard part is the integral of e to the 12.5t times sine 20t. It takes integration by parts twice, and the result is the formula on the slide, which is worth knowing: e to the a t times a sine b t minus b cosine b t, all over a squared plus b squared. With a equal to 12.5 and b equal to 20, the denominator is 556.25, and the coefficients simplify to 250 over 89 and 400 over 89.
Dividing by the factor gives the general solution. The check verifies the integration formula itself by differentiating it: the product rule produces four terms, the two cosine terms cancel, and the two sine terms combine to a squared plus b squared times e to the a t times sine b t.
Worked example
\[ i = \frac{250\sin 20t - 400\cos 20t}{89} + Ce^{-12.5t} \]
Use i(0) = 0
Why: The printed text writes this step as v(0) = 2; the condition is i(0) = 0.
\[ 0 = -\frac{400}{89} + C \;\Longrightarrow\; C = \frac{400}{89} \]
Find the amplitude
Why: Combine the sine and cosine with the Pythagorean size of their coefficients.
\[ \sqrt{250^2 + 400^2} = 50\sqrt{89} \]
Define the phase
Why: An acute angle with cosine 8 over root 89 and sine 5 over root 89.
\[ \cos\varphi = \frac{8}{\sqrt{89}}, \quad \sin\varphi = \frac{5}{\sqrt{89}}, \quad \varphi \approx 0.559 \]
Rewrite as one cosine
Why: The angle-sum formula for cosine.
\[ i(t) = -\frac{50\sqrt{89}}{89}\cos(20t + \varphi) + \frac{400}{89}e^{-12.5t} \]
Figure (svg): The current i of t for t from 0 to 1.2 seconds, starting at 0, together with the dashed steady-state sinusoid of amplitude 5.30 and the dotted transient 400 over 89 times e to the minus 12.5 t. The current starts off the sinusoid and merges with it after about 0.3 seconds.
Check the start and the size
Why: At t equal to 0 the cosine term is minus 400 over 89 and the transient is plus 400 over 89; the steady amplitude is about 5.30 amperes.
\[ i(0) = -\frac{50\sqrt{89}}{89}\cdot\frac{8}{\sqrt{89}} + \frac{400}{89} = 0, \quad \frac{50}{\sqrt{89}} \approx 5.30 \]
OpenStax Calculus Volume 2, §4.5 First-order Linear Equations §4.5, pp. 418-419 — Example 4.19 and Figure 4.26
The initial current is zero. The printed text writes this step as v of 0 equal to 2, a slip carried over from the ball example; the condition used, and the answer, come from i of 0 equal to 0. At t equal to 0 the sine is zero and the cosine is one, so C is 400 over 89.
The rest rewrites the sine-and-cosine combination as a single cosine, which shows its size and timing at a glance. The size of a combination of sine and cosine is the square root of the sum of the squares of their coefficients, here 50 root 89. Dividing by 89 gives an amplitude of about 5.30 amperes. The phase angle phi, about 0.559 radians, is the acute angle with cosine 8 over root 89.
The figure shows the physics. The current starts at zero, as it must, but the steady oscillation does not start at zero, so the transient fills the gap and then decays. After about 0.3 seconds the transient is under three hundredths of an ampere, and the circuit simply oscillates in step with the generator. The check confirms the rewritten formula still starts at zero.
Worked example
E = 20 sin 5t volts, C = 0.02 farads, R = 8 ohms, initial charge 4 coulombs.
\[ 8q' + \frac{1}{0.02}q = 20\sin 5t, \quad q(0) = 4 \]
Standard form
Why: Divide by 8; one over 0.02 is 50, and 50 over 8 is 6.25.
\[ q' + 6.25q = 2.5\sin 5t \]
Multiply by e to the 6.25t and collapse
Why: p is 6.25.
\[ \frac{d}{dt}\left[qe^{6.25t}\right] = 2.5e^{6.25t}\sin 5t \]
Integrate with the formula
Why: a is 6.25, b is 5, and a squared plus b squared is 64.0625, which turns the coefficients into 10 over 41 and 8 over 41.
\[ q = \frac{10\sin 5t - 8\cos 5t}{41} + Ce^{-6.25t} \]
Use q(0) = 4
Why: At 0 the sine vanishes and the cosine is 1.
\[ 4 = -\frac{8}{41} + C \;\Longrightarrow\; C = \frac{172}{41} \]
Figure (svg): The charge q of t for t from 0 to 3 seconds, starting at 4 coulombs and dropping within about a second onto a small dashed sinusoid of amplitude 0.31; the dotted transient 172 over 41 e to the minus 6.25 t decays from about 4.2 to zero.
Check the steady part in the equation
Why: The transient satisfies q prime plus 6.25q equal to 0 on its own; the sinusoid must produce the forcing.
\[ \frac{50\cos 5t + 40\sin 5t}{41} + \frac{62.5\sin 5t - 50\cos 5t}{41} = 2.5\sin 5t \]
OpenStax Calculus Volume 2, §4.5 First-order Linear Equations §4.5, p. 419 — Checkpoint 4.19
With no inductor, the loop rule gives R times the charge's derivative plus the charge over C equal to the source. With R equal to 8 and C equal to 0.02, dividing by 8 gives p equal to 6.25 and the forcing 2.5 sine 5t.
The same integration formula applies, with a equal to 6.25 and b equal to 5. The numbers simplify neatly: the coefficients become 10 over 41 and 8 over 41. The initial charge of 4 coulombs gives C equal to 4 plus 8 over 41, which is 172 over 41.
The check splits the solution in two. The transient alone satisfies the equation with zero on the right, because it is C over the factor. So the sinusoid alone must produce the forcing: its derivative plus 6.25 times itself adds up to 2.5 sine 5t, with the cosine terms cancelling. The figure shows the large initial charge draining away within a second, leaving a small oscillation of amplitude about 0.31 coulombs.
Concept
Figure (svg): A tank holding 100 litres of salt solution. An inflow pipe at the upper left brings brine at 4 litres per minute with 0.5 kilograms of salt per litre; an outflow pipe at the lower right removes well-mixed solution at 4 litres per minute, carrying A over 100 kilograms per litre.
Let A be the kilograms of salt in the tank. Its rate of change is what flows in per minute minus what flows out per minute.
\[ \frac{dA}{dt} = \underbrace{(4)(0.5)}_{\text{in, kg/min}} - \underbrace{4\cdot\frac{A}{100}}_{\text{out, kg/min}} \]
The outflow carries the tank's current concentration, A over 100, so it depends on A. The equation is linear with constant p, just like the circuits.
Mixing problems are not in this section of the book, but they are one of the most common uses of linear equations, so they are worth adding. The principle is bookkeeping: the salt in the tank changes at the rate salt comes in minus the rate it goes out.
Salt comes in at 4 litres per minute times 0.5 kilograms per litre, which is 2 kilograms per minute, a constant. Salt goes out at 4 litres per minute times the tank's current concentration, which is A kilograms spread through 100 litres. So the outflow is 4A over 100, which is A over 25.
That gives A prime equal to 2 minus A over 25. Because the rate out depends on A, you cannot just integrate; but the equation is linear with constant p equal to one over 25, so the integrating factor handles it at once.
Worked example
The tank starts with pure water, so there is no salt at first.
\[ \frac{dA}{dt} + \frac{A}{25} = 2, \quad A(0) = 0 \]
Integrating factor
Why: p is one over 25.
\[ \mu = e^{t/25} \]
Multiply and collapse
Why: The left side is one derivative.
\[ \frac{d}{dt}\left[Ae^{t/25}\right] = 2e^{t/25} \]
Integrate
Why: The antiderivative of e to the t over 25 is 25 times itself.
\[ Ae^{t/25} = 50e^{t/25} + C \]
Divide and use A(0) = 0
Why: C is minus 50.
\[ A(t) = 50 + Ce^{-t/25} = 50\left(1 - e^{-t/25}\right) \]
Figure (svg): The amount of salt A of t equals 50 times one minus e to the minus t over 25, for t from 0 to 100 minutes, rising from 0 toward a dashed ceiling at 50 kilograms; a dot marks the half-way point, 25 kilograms at t about 17.3 minutes.
Check by substituting
Why: The derivative must equal 2 minus A over 25.
\[ A' = 2e^{-t/25}, \qquad 2 - \frac{A}{25} = 2 - 2 + 2e^{-t/25} = 2e^{-t/25} \]
The equation is in standard form with p equal to one over 25, so the factor is e to the t over 25. Multiplying and collapsing gives the derivative of A times the factor equal to 2 times the factor, and integrating gives 50 times the factor plus C.
Dividing gives 50 plus C times e to the minus t over 25, and starting with no salt forces C to be minus 50. So the salt approaches 50 kilograms, which is exactly the incoming concentration times the tank's volume. That makes sense: eventually the tank is full of liquid just like the incoming brine.
The check substitutes back and both sides equal 2 e to the minus t over 25. The figure also shows how fast it happens. The gap to 50 kilograms halves every 25 ln 2 minutes, about 17.3, so after about an hour the tank holds over 45 kilograms of salt.
Section
Part 7
Pattern
Figure (svg): A flow diagram of the five-step strategy in two rows. Top row: 1, put the equation in standard form; 2, compute the integrating factor mu equals e to the integral of p; 3, multiply so the left side becomes the derivative of mu y. Bottom row, right to left: 4, integrate and divide by mu; 5, use the initial value to fix C. Notes: drop the constant in mu, keep the constant in step 4.
This is the method to carry away, in the order you should use it. The flow diagram shows it as a pipeline, with the two constants of integration marked: the one you may drop and the one you must keep.
Most errors happen at the very first step, so spend your care there. Divide by the coefficient of y prime and move the y term to the left before you read off p, and keep its sign.
Step three has a built-in check: after multiplying, the left side must be the derivative of mu times y. Write the product rule out and compare. If it does not match, stop and fix the factor before integrating anything. And always finish by substituting your answer into the original equation.
Check
Check your understanding
What is an integrating factor for y′ + (2/x)y = x³ on x > 0?
Answer: A
Why: p is 2 over x, whose antiderivative is 2 ln x, and e to the 2 ln x is x squared. Check: the derivative of x squared times y is x squared y prime plus 2x y, which is x squared times the left side.
The coefficient of y is 2 over x, so its antiderivative is 2 ln x, and e to the 2 ln x is x squared. The logarithm shortcut turns an exponential factor into a power of x.
The tempting wrong answers each come from a specific slip: e to the 2x treats p as just 2, 2 ln x forgets the exponential, and x to the minus 2 has the sign flipped. You can always test a candidate factor by multiplying the left side by it and checking whether it becomes the derivative of the factor times y.
Check
Check your understanding
Which of these equations is NOT linear?
Answer: B
Why: In y′ = xy² the unknown is squared, so it cannot be written as a(x)y′ + b(x)y = c(x). It is separable, but not linear.
For each option, look only at how y and y prime appear. In three of them each appears to the first power and is multiplied by a function of x alone, however complicated.
In y prime equals x times y squared, the unknown is squared, which breaks linearity. It is separable, so you could still solve it, just not by this lesson's method. Option C is both linear and separable, which is a reminder that the two tests are independent.
Check
Check your understanding
Which function solves y′ + 2y = 6 with y(0) = 1?
Answer: A
Why: The general solution is y = 3 + Ce^(−2x); at x = 0 this is 3 + C = 1, so C = −2. Check: y′ = 4e^(−2x) and y′ + 2y = 4e^(−2x) + 6 − 4e^(−2x) = 6.
The general solution is 3 plus C e to the minus 2x, with 3 as the steady state and C e to the minus 2x as the transient. Putting in x equal to 0 gives 3 plus C equal to 1, so C is minus 2.
Option D is the instructive distractor: it starts at the right value, but it does not solve the differential equation. Meeting the initial condition is only half the job. The other half is substituting into the equation, and that check rules it out immediately.
Explain it to yourself
Discussion prompt
The method meets two constants of integration: one when you compute the integrating factor and one when you integrate the collapsed equation. In two sentences, explain why the first may be dropped but the second must be kept.
Write your two sentences before revealing. This question gets at why the method works, not just how to run it.
The key word for the first constant is multiplied. A constant multiple of the integrating factor multiplies every term of the equation by the same nonzero number, so the equation is unchanged. The key word for the second is added. It sits beside the antiderivative, gets divided by the factor, and becomes the C over mu term that distinguishes one solution from another. That term is the transient in every application you have seen, and it is the only place the initial condition enters.
Exit ticket
\[ xy' = y - 3x^3, \quad y(1) = 0 \]
Discussion prompt
Exercise 243: solve this initial-value problem with an integrating factor, and check your answer at x = 2.
OpenStax Calculus Volume 2, §4.5 First-order Linear Equations §4.5, p. 420 — Exercise 243
This pulls the lesson together in one problem: standard form, the factor, the collapse, the constant, and a check.
Dividing by x gives p equal to minus one over x, so the factor is e to the minus ln x, which is one over x. The left side collapses to the derivative of y over x, and the right side becomes minus 3x. Integrating gives y over x equal to minus three halves x squared plus C, and multiplying by x gives the general solution.
The initial condition y of 1 equal to 0 gives C equal to three halves. The check at x equal to 2 is worth doing on paper: y is minus 9, y prime is minus 16.5, so x times y prime is minus 33, and y minus 3 x cubed is minus 9 minus 24, also minus 33.
Recap
| step | what you write | what to watch |
|---|---|---|
| standard form | y′ + p(x)y = q(x) | divide by the coefficient of y′; p takes its sign |
| integrating factor | μ = e^(∫p dx) | no constant; e^(k ln x) = xᵏ |
| collapse and integrate | (μy)′ = μq, so μy = ∫μq dx + C | keep C, then divide it by μ too |
| long run | y = steady state + C/μ | if 1/μ decays, the transient dies |
| models | mv′ = −kv − mg, Li′ + Ri = E, A′ = in − out | terminal velocity −mg/k from v′ = 0 |
\[ y = \frac{1}{\mu(x)}\left[\int \mu(x)q(x)\,dx + C\right], \qquad \mu = e^{\int p(x)\,dx} \]
That completes Chapter 4: separation for products, the integrating factor for linear equations. Chapter 5 turns to sequences and series.
Stewart, Calculus: Early Transcendentals 8e, §9.5 Linear Equations §9.5, pp. 620-626 — the same method in Stewart
The whole lesson rests on one idea. Multiply a linear equation by the right factor and its left side becomes the derivative of a single product, which one integration undoes. The factor is e to the integral of p, where p is read from the standard form.
Every answer has the same shape: one particular solution plus C divided by the factor. When one over the factor decays, that second part is a transient and the first part is the steady state that every solution approaches. You can often read the steady state straight from the equation by setting the derivative to zero.
The applications all fit that shape: terminal velocity for a falling object, the steady oscillating current in a circuit, the final amount of salt in a tank. Stewart's Section 9.5 covers the same method if you want more practice.
Want this taught 1-on-1? Alexander tutors Calculus II — $55/session, free consultation.