Femtobytes
Problem type

First order linear equation with an integrating factor

What it solves
Solve a first order linear differential equation of the form y' + a y = b + c x with a starting value, by the integrating factor method: find the factor, integrate (by parts where needed), fit the starting value, and check the answer in the equation.
Subject
Differential Equations
Topic
First order equations
Also called
integrating factor, first order ODE, linear differential equation
Your problem

Solve this starting value problem.

y′−3y=−3x+6,y(1)=−5y' - 3y = -3 x + 6, \qquad y(1) = -5
Invent a new one:
The problem

Solve this starting value problem.

y′−3y=−3x+6,y(1)=−5y' - 3y = -3 x + 6, \qquad y(1) = -5
The result
y=x−53−133e3(x−1)y = x - \frac{5}{3} - \frac{13}{3} e^{3 \left( x - 1 \right)}

Found with the integrating factor e−3xe^{-3 x} and checked in the original equation.

checked 3 lines of this solution were evaluated with exact arithmetic before it was shown to you. A solution with a false line is never served.
Picture 1 of 2Step 1: See what kind of equation this is, and what would make it easy
-0.500.511.522.533.544.5-3500-3000-2500-2000-1500-1000-50005001000xystart (1, -5)the solution through the starting pointthe line every solution is compared withthe slope the equation demands there
The little strokes show the slope the equation demands at each point, which is -3x + 6 minus -3 times y. A solution is a curve that follows the strokes everywhere. The bright curve is the one that passes through the starting point.
1

See what kind of equation this is, and what would make it easy

Why this step

The unknown here is a whole function y(x)y(x), and the equation ties its slope y′y' to its own value. We cannot simply integrate both sides, because yy is tangled up on the left with its own derivative. The idea that unlocks it: the left side ALMOST looks like the result of the product rule. If it were exactly the derivative of a product, one integration would finish the job. So we ask what we could multiply by to make it so.

y′−3y=−3x+6,y(1)=−5y' - 3y = -3 x + 6, \qquad y(1) = -5
y′y' means the derivative of yy with respect to xx: the slope of the graph of yy. The second statement is the starting value, which will single out one solution from a whole family.
2

Find the integrating factor

Why this step

Multiply the equation by an unknown function μ(x)\mu(x) (the Greek letter mu). The left side becomes μy′−3μy\mu y' - 3 \mu y. The product rule says (μy)′=μy′+μ′y(\mu y)' = \mu y' + \mu' y. These two match exactly when μ′=−3μ\mu' = -3 \mu: a function whose derivative is −3-3 times itself. Exponentials are the functions that do that.

μ(x)=e−3x\mu(x) = e^{-3 x}
The derivative of ekxe^{kx} is kekxk e^{kx}, so this μ\mu satisfies μ′=−3μ\mu' = -3 \mu. In general the integrating factor is e∫p(x) dxe^{\int p(x) \, dx}, and here ∫−3 dx=−3x\int -3 \, dx = -3 x.
3

Multiply through and recognise a product rule

4

Integrate both sides

5

Divide by the integrating factor

6

Use the starting value to find the constant

7

Check the answer in the original equation