Basic concepts · Definition
Solution of a differential equation
Before you start you need to know
Solving a differential equation is not isolating a numerical unknown: it is finding functions, and checking them matters as much as finding them.
Definition
A solution \(\varphi\) of a differential equation \(F=0\) is a function that, substituted together with its derivatives, makes the equation a true identity on a whole interval.
Checking a solution is a mechanical computation: differentiate the candidate function, substitute it into the equation and verify that both sides agree for every \(x\) in the interval. For instance, \(y=e^{3x}\) solves \(y'=3y\) because \(y'=3e^{3x}\) is exactly \(3y\). One substitution suffices; you need not know how the function was found.
There is rarely a single solution. Since solving a first-order equation essentially amounts to integrating once, an arbitrary constant appears: \(y=x^2+C\) solves \(y'=2x\) for every \(C\). The whole family is called the general solution, and each member, obtained by fixing the constants, a particular solution. For an equation of order \(n\) the family usually carries \(n\) constants.
The word interval matters. A solution is required on an interval where the function and its derivatives exist: \(y=1/(1-x)\) satisfies \(y'=y^2\) but is undefined at \(x=1\), so it is a solution on \((-\infty,1)\) or on \((1,\infty)\), never on all of \(\mathbb{R}\). Even with perfectly regular coefficients, a solution may cease to exist at a finite distance.
Some equations have no real solutions, such as \((y')^2+1=0\), and some have solutions that fit in no family. A common mistake is to believe every differential equation has an explicit formula; in practice many can only be approximated. To pick one specific solution out of the family, extra conditions are needed, which is the topic of the next concept.
Think about it
Is \(y=0\) a solution of \(y'=y^2\)? Does it belong to the family \(y=1/(C-x)\)?
Yes, it is a solution: \(0=0\). It belongs to that family for no \(C\); it is a solution outside the family.
Exercises 10
- Which of these functions is a solution of \(y'=3y\)?
- Which is a solution of \(y''+y=0\)?
- The function \(y=x^3\) is a solution of \(xy'=ky\). What is \(k\)?
- What can be said about \(y=x^2+C\) with respect to \(y'=2x\)?
- For which value of \(k\) is \(y=e^{kx}\) a solution of \(y''-5y'+6y=0\)?
- For which value of \(k\) is \(y=\sin(kx)\) a solution of \(y''+9y=0\)?
- For which value of \(a\) is \(y=ax^2\) a solution of \(y'=x\)?
- Which equation does \(y=x\ln x\) (with \(x>0\)) satisfy?
- The function \(y=\frac{1}{1-x}\) satisfies \(y'=y^2\). On which interval is it a solution?
- How many real solutions does \((y')^2+1=0\) have?
References
- William E. Boyce, Richard C. DiPrima, Douglas B. Meade, Elementary Differential Equations and Boundary Value Problems, 12th edition, Wiley, 2021. §1.2
- Dennis G. Zill, A First Course in Differential Equations with Modeling Applications, 11th edition, Cengage, 2018. §1.1