Example 14: Linear:
Find the general solution of the differential equation .
The equation is of the form , where and .
So the solution is given by
Let . Integrating by parts with as the first function,
Again by parts, with as the first function,
Putting the value of in (i),
is the general solution.
Want the reason behind every step, the basics and the checks?
The equation is linear: and appear only to the first power, with coefficients that depend on only. Multiplying it by the integrating factor makes the left side the derivative of one product, . Then one integration solves it; the only real work is the integral , which needs integration by parts twice.
- Given
- , for all real .
- To find
- The general solution (one arbitrary constant).
- Plan
- (1) Match : find and . (2) Find I.F. . (3) Multiply and see the product rule. (4) Integrate: . (5) Find by parts twice. (6) Solve for . (7) Check by substitution.
Basics you need
, where and are constants or functions of only, is linear. Its solution is , where (Section 9.4.3). Lesson: linear equations, the integrating factor
If , then , by the product rule. has . Basics: (y · g)′ = g(y′ + Py)
, with the first function (Section 7.6). Basics: every method ends with an integral
, so ; and . Basics: the function whose rate is k times itself
Solution
Recognise the linear form: ,
Compare with . Here and appear to the first power only, the coefficient of is the constant , and the right side depends on only. So the equation is linear with , . (It is not separable: does not split as a product of a function of and a function of .)Section 9.4.3: first order linear equation, step (i). Lesson: linear equationsThe integrating factor
Any one antiderivative of will do: a constant added to would only multiply the I.F. by a nonzero constant, which cancels later. So no constant of integration is written here; the solution's one constant comes in Step 4.Section 9.4.3, step (ii). Basics: (y · g)′ = g(y′ + Py)Multiply by the I.F.: the left side is one derivative
By the product rule, , which is exactly the left side. This is the whole point of the integrating factor.Product rule (Chapter 5, Section 5.3); Section 9.4.3. Basics: (y · g)′ = g(y′ + Py)Integrate both sides, with one constant
A function whose derivative is is an antiderivative of it, plus an arbitrary constant. This is the one arbitrary constant of the general solution, so when we find the integral in Step 5 we add no further constant.Section 9.4.3, step (iii): . Basics: one constant for order 1Find : by parts twice
Take as the first function and as the second, so :
Again by parts, now with first:
So
Each integration by parts turns cosine into sine or back, and the exponential stays an exponential. After two rounds the original integral reappears with a minus sign, so we can solve for like an ordinary unknown. The first function must be the trigonometric one both times (or the exponential both times); switching halfway just undoes the first step.Section 7.6, integration by parts. Basics: every method ends with an integralSolve for
Putting into (1):
Multiply both sides by (never zero): , and becomes . The answer holds for every real , since and are defined everywhere.Section 9.4.3: the general solution. Basics: exponentialsCheck by substituting back
From :
for every : the terms cancel.
Substituting back proves the answer, and shows the role of each part: solves on its own, and supplies the .A solution makes L.H.S. = R.H.S. (Section 9.3). Lesson: general and particular solutions
The general solution is , where is an arbitrary constant, for all real . (Textbook answer: .)
Take and : , , , so . The equation says .
The curve itself: and , so
- Taking . The standard form has , so means and I.F. .
- Adding a constant inside the I.F. or a second constant when finding ; the general solution has one constant, the of Step 4.
- Changing the first function in the second integration by parts; that only takes you back to where you started.
- Forgetting to multiply by when solving for : the answer is , not .
- Linear equation: write , read off and with their signs, then I.F. .
- The solution is ; the constant appears once, here.
- and : by parts twice, then solve for the integral.
Every fact used, and where it comes from
| Fact | Used in | Source |
|---|---|---|
| Linear equation ; I.F. ; | Steps 1, 2, 4 | Section 9.4.3, steps (i) to (iii) (Lesson) |
| Product rule: | Step 3 | Chapter 5, Section 5.3 (Basics) |
| One arbitrary constant for a first order equation | Step 4 | Chapter Summary (Basics) |
| Integration by parts; | Step 5 | Section 7.6; Section 7.2, formula (xi) with substitution (Basics) |
| , , | Step 7 | Chapter 5, Section 5.4; Class XI (Basics) |
Tell us if something on this page is wrong or unclear, or if you would like a fuller explanation, another method or a new feature. Send feedback on this problem →