First-order equations · Definition
First-order linear equation
Before you start you need to know
It appears when modeling mixtures, circuits and cooling, and its simple structure means it can always be solved with one general method.
Definition
A first-order linear equation is a differential equation in which \(y\) and \(y'\) appear to the first power, with a coefficient \(p\) and a free term \(q\) that depend only on \(x\).
To recognize it, write it in standard form: the coefficient of \(y'\) must be 1. So \(x\,y'+2y=x^2\) is divided by \(x\) and becomes \(y'+(2/x)\,y=x\), with \(p=2/x\) and \(q=x\). Moving terms across changes the sign: \(y'=3y+x^2\) is equivalent to \(y'-3y=x^2\), with \(p=-3\).
If \(q=0\) the equation is called homogeneous, \(y'+p(x)\,y=0\), and it is separable: its solution is \(y=Ce^{-\int p\,dx}\). For example, \(y'+2xy=0\) gives \(y=Ce^{-x^2}\). If \(q\ne0\), the equation is non-homogeneous and its general solution has the form "one particular solution plus the homogeneous solution". For \(y'+y=x\) the particular solution is \(x-1\), and the general one is \(x-1+Ce^{-x}\).
Linearity has a key consequence: solutions of the homogeneous equation can be added and multiplied by constants and remain solutions. In the non-homogeneous case this fails: if \(y_p\) solves \(y'+y=1\), then \(2y_p\) solves \(y'+y=2\), not the same equation. The difference of two solutions of the non-homogeneous equation is a solution of the homogeneous one.
When \(p\) and \(q\) are continuous on an interval, the existence and uniqueness theorem guarantees a single solution for each initial condition, defined on the whole interval. That sets linear equations apart from nonlinear ones such as \(y'=y^2\). A nonzero \(q\) is not handled by separating variables: the general method for that case is the integrating factor.
Think about it
Is \(y'+y^2=0\) linear? And \(y'+x^2y=0\)?
The first is not, because it contains \(y^2\). The second is: it is homogeneous with \(p=x^2\) and \(q=0\), and its solution is \(y=Ce^{-x^3/3}\).
Exercises 10
- Which of these equations is a first-order linear equation?
- Write \(y'=3y+x^2\) in the form \(y'+p(x)\,y=q(x)\). What is \(p\)?
- Find the general solution of \(y'+y=0\).
- The equation \(x\,y'+2y=x^2\), with \(x>0\), is brought to standard form by dividing by \(x\). What is \(p(x)\)?
- The equation \(y'+2y=4\) has a constant solution. Which one?
- Find the general solution of \(y'+2xy=0\).
- Solve \(y'+y=0\), \(y(0)=5\).
- Which of these functions is a solution of \(y'+y=x\)?
- The general solution of \(y'+y=x\) is \(y=x-1+Ce^{-x}\). Which is the solution with \(y(0)=0\)?
- If \(y=1\) solves \(y'+y=1\), which equation does \(y=2\) solve?
What comes next
Related
References
- William E. Boyce, Richard C. DiPrima, Douglas B. Meade, Elementary Differential Equations and Boundary Value Problems, 12th edition, Wiley, 2021. §2.1
- Dennis G. Zill, A First Course in Differential Equations with Modeling Applications, 11th edition, Cengage, 2018. §2.3