y to the first power
dy/dx + Py = Q, with P and Q functions of x only.
A special shape
In dy/dx + y = sin x, both y and dy/dx appear only to the first power, and what multiplies them depends on x only.
Does dy/dx + y² = x have the same shape?
What this lesson covers
The idea
An equation of the form dy/dx + Py = Q, where P and Q are constants or functions of x only, is a first order linear differential equation; dx/dy + P₁x = Q₁ (P₁, Q₁ functions of y) is the other form.
A special shape
In dy/dx + y = sin x, both y and dy/dx appear only to the first power, and what multiplies them depends on x only.
Does dy/dx + y² = x have the same shape?
- no: y is squared
- yes
- only when x > 0
Sort by form
Can the equation be written as dy/dx + Py = Q (P, Q in x only) or dx/dy + P₁x = Q₁ (P₁, Q₁ in y only)? Rearrange in your head first.
First order linear equations
An equation of the form dy/dx + Py = Q, where P and Q are constants or functions of x only, is a first order linear differential equation. The other form is dx/dy + P₁x = Q₁, where P₁ and Q₁ are constants or functions of y only.
Example 15: x dy/dx + 2y = x². Divide by x: dy/dx + (2/x) y = x, so P = 2/x and Q = x.
Example 16: y dx − (x + 2y²) dy = 0 becomes dx/dy − x/y = 2y, so P₁ = −1/y and Q₁ = 2y.
Notes
dy/dx + Py = Q, P and Q constants or functions of x only. Or dx/dy + P₁x = Q₁, P₁ and Q₁ constants or functions of y only. Rearrange first: divide through so that dy/dx (or dx/dy) stands alone.
Check yourself
Example 14: dy/dx − y = cos x. Here P and Q are …
Example 18: dy/dx = x + xy. In linear form this is …
Which of these is not a first order linear equation?
- P = 1, Q = cos x. dy/dx − y means P = −1.
- P = −1, Q = cos x — correct. Yes! dy/dx + (−1) y = cos x.
- P = −1, Q = −cos x. Q stays as it is on the right side: cos x.
- dy/dx − xy = x, with P = −x, Q = x — correct. Yes! Move xy to the left.
- dy/dx + xy = x, with P = x, Q = x. Moving xy to the left changes its sign.
- not linear, because x and y are multiplied. xy is (x) × y: y appears to the first power with a coefficient in x, so it is linear.
- dy/dx + 2y = sin x. P = 2, Q = sin x: linear (Exercise 9.5, Q1).
- dy/dx + 3y = e⁻²ˣ. P = 3, Q = e⁻²ˣ: linear (Exercise 9.5, Q2).
- dy/dx + y² = x — correct. Right. y² is not a first power of y, so it is not linear.