How to solve y' + P(x)y = Q(x) with an integrating factor or by variation of the parameter, and why every such problem with continuous coefficients has exactly one solution on the whole interval.
A tank that drains in proportion to how full it is while being refilled at a varying rate, a body that cools toward a changing room temperature, a current pushed by a time dependent voltage. All of these lead to the same kind of equation, where the unknown appears only to the first power. For this class there is a complete recipe that always works.
Key terms
Linear equation in standard form
Definition A first order linear differential equation is one that can be written in the standard form
y′+P(x)y=Q(x),
where P and Q are functions of x alone. Throughout, P and Q are assumed continuous on an open interval I. An equation a(x)y′+b(x)y=c(x) is put in standard form by dividing by a(x), which is allowed only on intervals where a(x)=0.
In plain words The unknown y and its derivative appear on their own, never squared, never inside a function like siny and never multiplied together.
Example The equation xy′+2y=4x2 is linear. Dividing by x gives y′+x2y=4x, with P(x)=x2 and Q(x)=4x, valid on (0,∞) or on (−∞,0) but not across x=0. The equation y′+y2=x is not linear.
Homogeneous and nonhomogeneous equations
Definition The equation y′+P(x)y=Q(x) is homogeneous if Q(x)=0 for all x in I and nonhomogeneous otherwise. The homogeneous equation y′+P(x)y=0 has general solution
yh=Ce−∫P(x)dx.
If yp is any one solution of the nonhomogeneous equation, then every solution is y=yp+yh.
In plain words First solve the problem with no forcing. Then any single solution of the full problem, plus all the solutions of the unforced one, gives you everything.
Example For y′+3y=6, the constant yp=2 works, since 0+6=6. The homogeneous equation y′+3y=0 gives yh=Ce−3x. So the general solution is y=2+Ce−3x. The difference of any two solutions solves y′+3y=0, which is why nothing else can occur.
Reverse product rule
Definition By the product rule, for differentiable functions μ and y,
(μy)′=μy′+μ′y.
If the left side of an equation already has the form μy′+μ′y, it can be integrated at once.
In plain words Sometimes the left side of an equation is secretly the derivative of a product. Spotting that turns the problem into a single integration.
Example For x2y′+2xy=cosx, the left side is (x2y)′. So x2y=sinx+C, and on (0,∞) or on (−∞,0)
y=x2sinx+C.
Integrating factor
Definition For y′+P(x)y=Q(x) with P continuous on I, the function
μ(x)=e∫P(x)dx
(any fixed antiderivative will do) is an integrating factor. It is positive and satisfies μ′=Pμ, so multiplying the equation by μ gives (μy)′=μQ. Hence
y=μ(x)1(∫μ(x)Q(x)dx+C).
In plain words Multiply by a cleverly chosen function so that the left side becomes the derivative of μy, then integrate both sides.
Example Solve y′−2xy=x. Here P(x)=−2x, so μ=e−x2 and
(e−x2y)′=xe−x2⟹e−x2y=−21e−x2+C⟹y=−21+Cex2.
As a check, y′=2Cxex2 and
y′−2xy=2Cxex2+x−2Cxex2=x.
Variation of the parameter
Definition Let yh be a nowhere zero solution of the homogeneous equation on I, for example
yh(x)=e−∫P(x)dx.
Look for a solution of the form y=u(x)yh(x). Substituting and using yh′+Pyh=0 leaves
u′(x)yh(x)=Q(x),sou(x)=∫yh(x)Q(x)dx+C.
For the choice above yh1=μ, so this gives the same formula as the integrating factor.
In plain words Take the homogeneous solution Cyh and let the constant C become a function. The equation then tells you exactly which function.
Example Solve y′+y=ex. Here yh=e−x, so u′e−x=ex, which means u′=e2x and u=21e2x+C. Then
y=(21e2x+C)e−x=21ex+Ce−x.
Initial conditions and the existence theorem
Definition If P and Q are continuous on an open interval I, x0 is in I and y0 is any real number, then the problem
y′+P(x)y=Q(x),y(x0)=y0
has exactly one solution, and it is defined on all of I. That solution is
In plain words Linear equations never blow up on their own. The solution lasts as long as the coefficients stay continuous, and the starting value fixes the constant.
Example Solve xy′+2y=4x2, y(1)=2. On I=(0,∞) the standard form is y′+x2y=4x, and μ=e2lnx=x2. Then (x2y)′=4x3, so x2y=x4+C and y=x2+x2C. From y(1)=1+C=2 we get C=1, so
y=x2+x21,x>0.
The interval is (0,∞) because it is the largest interval containing x0=1 on which P(x)=x2 is continuous.
Check yourself
Solve y′+2y=4 with y(0)=5.
Show the answer
The integrating factor μ=e2x gives (e2xy)′=4e2x, so e2xy=2e2x+C and y=2+Ce−2x. Then y(0)=2+C=5, so y=2+3e−2x.
Solve y′+x1y=3x for x>0.
Show the answer
The integrating factor is μ=x, so (xy)′=3x2 and xy=x3+C. The general solution is y=x2+xC on (0,∞).
On what interval is the solution of (x−3)y′+y=sinx, y(1)=0 guaranteed to exist?
Show the answer
In standard form P(x)=x−31 and Q(x)=x−3sinx, both continuous except at x=3. The interval containing x0=1 is (−∞,3).
May we count page visits to understand which courses and learning features are useful? Cloudflare collects visit and performance statistics, without your account details or answers. Your choice does not affect access. Details