Example 21:
Solve the differential equation
The equation can be written as
Replacing by and by (so that is unchanged),
So the equation is homogeneous. Dividing the numerator and the denominator by ,
Put . Then .
Separating the variables,
Integrating both sides,
Putting and writing ,
is the general solution.
Want the reason behind every step, the basics and the checks?
Once the terms and the terms are collected, every term outside the trigonometric functions has degree 2 (, , ), and inside them and appear only as . So is a function of alone: the equation is homogeneous, and separates it. The -integral splits into , and writing the constant as lets all the logs combine.
- Given
- , with .
- To find
- The general solution.
- Plan
- (1) Collect the and terms. (2) Write . (3) Show . (4) Write as a function of . (5) Put and simplify. (6) Separate. (7) Integrate. (8) Remove the logs. (9) Put back. (10) Look at the cases set aside. (11) Check.
Basics you need
with ; equivalently . Put , (Section 9.4.2). Lesson: homogeneous equations, put y = vx
, so and do not change when , are scaled together. Basics: scale x and y together
and (Section 7.3.1; Section 7.2, formula (xii)). Basics: every method ends with an integral
, ; a constant written is still one arbitrary constant. Basics: one constant for order 1
Solution
Collect the terms and the terms
Expand both sides:
so
Multiply out, then move every term to the left and every term to the right. This is the step that makes the structure visible.Rearranging a differential form. Basics: dy = y′ dxWrite
Divide by and by the bracket on the left, where it is not 0. (At points where a solution curve has a vertical tangent; the formula is used away from them.)Section 9.4.2: the form . Lesson: homogeneous equationsShow that it is homogeneous:
For , , and each of , , picks up :
So is homogeneous of degree zero, and the equation is homogeneous.
The book divides by and says this is "clear"; the line above is the definition checked directly. Both show the same thing.Section 9.4.2: homogeneous function of degree . Basics: scale x and y togetherWrite as a function of
Divide the numerator and the denominator by :
, , . Now every piece is a function of , the form .Section 9.4.2, equation (1): . Lesson: homogeneous equationsSubstitute and simplify
With , , and (1) becomes
Subtract : the terms cancel and the terms add.Section 9.4.2, equations (2) to (4). Lesson: put y = vxSeparate and
Dividing by needs and (Step 10 looks at these cases). Then split the fraction: and .Separating, Section 9.4.1. Basics: dy = y′ dxIntegrate, writing the constant as
where is an arbitrary constant.
. Every real constant is for some ; this form lets the logs combine. One constant, as order 1 requires.Section 7.3.1 (); Section 7.2, formula (xii). Basics: every method ends with an integralRemove the logs
, and . Equal logs mean equal absolute values, so the two sides are equal or opposite: hence .Laws of logarithms (Chapter 5, Section 5.4). Basics: one constant for order 1Put back
; multiply both sides by . is one arbitrary nonzero constant.Section 9.4.2: replace to get the general solution. Lesson: Examples 19 to 22The cases set aside in Step 6
If , the curve is ; if , it is a line with . In both cases along the line (since ), so the left side of the given equation is 0; and the right side is 0 too ( and in the first case, in the second). So these lines also satisfy the given equation.
They are not members of the family (on it would read ; on the secant is undefined). The general solution with its one constant is the family found in Step 9, as the book gives it; these lines are extra solutions that the division in Step 6 set aside. The book does not discuss them.Check the zeros of anything you divide by. Lesson: general and particular solutionsCheck by differentiating back
From , differentiate with respect to :
Put (from the curve), cancel , and multiply by :
that is,
which is the equation of Step 1.
Eliminating between the curve and its derivative brings back the differential equation, so every curve of the family is a solution. The first line is also the given equation itself divided by : .Implicit differentiation, chain and quotient rules (Chapter 5, Sections 5.3.1 and 5.3.2). Basics: a rule for slopes
The equation is homogeneous, and its general solution is , where is an arbitrary constant (, , ). The lines and with also satisfy the equation. (Textbook answer: .)
Take the curve through : , , so . With and , equation (1) gives the slope .
The curve itself (solving near ): and , so
- Collecting the terms wrongly: the bracket is , the bracket . Expand slowly.
- Subtracting wrongly in : the terms cancel, and the result is .
- or ; it is .
- Losing the when removing the logs, or not explaining the new constant .
- With and mixed on both sides, first collect the and terms.
- inside the functions and the same degree outside: homogeneous, put .
- Split into before integrating.
- Dividing by an expression can set aside some solutions; look at its zeros.
Every fact used, and where it comes from
| Fact | Used in | Source |
|---|---|---|
| Homogeneous function of degree zero; | Steps 3, 4 | Section 9.4.2 (Basics) |
| , | Step 5 | Section 9.4.2, equations (2) to (4) (Lesson) |
| Separating the variables | Step 6 | Section 9.4.1 (Basics) |
| ; | Step 7 | Section 7.3.1; Section 7.2, formula (xii) (Basics) |
| Laws of logarithms; the constant as | Steps 7, 8 | Chapter 5, Section 5.4 (Basics) |
| Zeros of a divisor checked separately | Step 10 | Section 9.4.1 (separating needs ); Section 9.3, what a solution is (Lesson) |
| Implicit differentiation; chain and quotient rules | Step 11 | Chapter 5, Sections 5.3.1 and 5.3.2 (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 →