DifferentialEquations
Chapter 1 · Section 1.2

1.2 What Is a Solution?

In Section 1.1 we learned to recognise and classify differential equations. Now we ask the obvious next question: what does it mean to solve one? The answer is more subtle than "find a formula". A solution is a function, and a function always lives on some set of -values. We will see that the interval matters, that a solution may be given only implicitly, that some "solutions" are fakes, and that an ODE usually has not one solution but a whole family of them.

Explicit solutions

Throughout this section we write an ODE of order in its general form

Roughly, a solution is a function that makes this equation true when we plug it in. The precise definition adds two details: where it must be true, and that all the derivatives must exist there.

Definition 1.2.1 (Explicit solution)

Let be an interval. A function is an explicit solution of the ODE on when can be differentiated times at each point of , and the expression makes sense and equals at each point of .

So plugging in is not enough at a few chosen points: the equation must hold at every of the interval. Checking this is a purely mechanical task.

Method in a nutshell: verifying a solution
  1. Note where the candidate function and the equation are defined.
  2. Compute every derivative the equation needs.
  3. Substitute into the left-hand side and simplify.
  4. Confirm that the result equals the right-hand side for every in the interval.
Example 1.2.1

Show that is an explicit solution of on .

Solution
  1. Domain. The function is defined and infinitely differentiable for every real , and so is the equation. So we may take .
  2. First derivative. By the product rule, with and :
  3. Second derivative. Differentiate each term of separately: Adding,
  4. Substitute. Collect the terms and the terms of : So for every real .

The interval in the definition is not a formality. A formula can satisfy an equation everywhere it makes sense and still fail to be a solution on the whole real line.

Example 1.2.2 (The interval matters)

Show that satisfies . On which intervals is it an explicit solution?

Solution
  1. Derivative. Write . By the chain rule,
  2. Right-hand side. , which is the same expression.
  3. Where? The formula is undefined at and . A solution must be defined (and differentiable) on a whole interval, so the interval cannot contain . The possible intervals are or any subinterval of one of these. The formula is not a solution on . In fact, the three pieces should be thought of as three different solutions that happen to share one formula.
Figure 1.2.1. The formula has three separate pieces, one on each of the intervals , and . Each piece is a solution of on its own interval. No solution can cross the vertical asymptotes .
Why insist on an interval?

An ODE describes how a quantity evolves continuously. If a "solution" blows up at , we cannot follow it from to : the physical system it models would break down at . Restricting to intervals keeps solutions in one connected piece.

Implicit solutions

Many methods in Chapter 2 do not produce as a formula in . Instead they produce a relation connecting and . Sometimes we can solve it for ; often we cannot. Such relations still count as solutions, provided they really do define a function.

Definition 1.2.2 (Implicit solution)

A relation is an implicit solution of an ODE on an interval if we can find a function , defined on , whose graph lies on the curve (that is, for every in ) and which is an explicit solution of the ODE on .

In practice we seldom bother with the adjectives: both kinds are just solutions.

Example 1.2.3 (An ellipse)

Show that the relation is an implicit solution of on the interval .

Solution
  1. Solve the relation for . So the relation defines two functions: (upper half of the ellipse) and (lower half).
  2. Differentiate . For ,
  3. Substitute. The same computation works for (both signs flip, and the product is unchanged).
  4. Why the open interval? At the derivative has a zero denominator: the tangent to the ellipse is vertical there. So and are solutions on but not on .
Figure 1.2.2. The ellipse is not the graph of one function, but it contains the graphs of two: the upper half and the lower half . Both solve on . At the tangent is vertical, so the endpoints are excluded.

In Example 1.2.3 we could solve for . The next example shows a relation that we cannot conveniently solve, yet we can still prove it is a genuine implicit solution.

Example 1.2.4 (A relation we cannot easily solve)

Show that is an implicit solution of on .

Solution
  1. Implicit differentiation. Treat as a function of and differentiate both sides with respect to : This is exactly the ODE. So if the relation defines a differentiable function, that function is a solution.
  2. Does it define a function? Write the relation as with . Since , is strictly increasing. It also goes from to . Therefore, for each real , there is exactly one real with . Call it .
  3. Is differentiable? The partial derivative of with respect to is , which is never zero. By the implicit function theorem from calculus, is differentiable everywhere, and its derivative is the one found in Step 1.
  4. Conclusion. The relation defines a function on that satisfies the ODE, so it is an implicit solution there. For instance, at the relation reads , whose only real root is ; so , even though we never wrote down a formula for .

A warning: formal solutions

Implicit differentiation is a quick test, but passing it is not enough. A relation might satisfy the ODE "on paper" and yet contain no real function at all.

Example 1.2.5 (A fake solution)

Consider the ODE . (a) Show that the relation passes the implicit-differentiation test. (b) Is it an implicit solution? (c) Compare with the relation .

Solution
  1. (a) The test. Differentiate with respect to : Substituting this into the ODE gives , an identity. So the relation formally satisfies the equation.
  2. (b) Does it define a real function? We would need . But for every real , while . There is no real at all, for any . The relation defines no function, so it is not an implicit solution. A relation like this, which passes the differentiation test but describes no real curve, is called a formal solution.
  3. (c) A genuine one. The same differentiation works for . This time we can solve: , so , which is real for . Check directly: and their sum is . So is an implicit solution on .
Common mistake

Do not stop after implicit differentiation. Also make sure the relation actually defines a real, differentiable function on some interval. In routine exercises this step is usually skipped, because the relations our methods produce almost always pass it; when a result will be used for something important, do the check.

Families of solutions

Consider the very simple equation . Integrating, , and every real value of gives a solution. So this ODE has infinitely many solutions, indexed by one constant. This is typical.

Figure 1.2.3. Five members of the family of solutions of . Changing shifts the curve up or down. Above any given all members have the same slope (short black segments at ), and that is all the equation asks for.
Definition 1.2.3 (n-parameter family)

A formula , or a relation , containing arbitrary constants is an -parameter family of solutions of an ODE if it gives a solution for every admissible choice of the constants. The constants are called parameters. A solution obtained by giving the parameters specific values is a particular solution.

Section 1.1 suggested the rule of thumb: an ODE of order usually has an -parameter family of solutions. Each integration step brings in one new constant. For linear equations (Chapter 4) this rule becomes a theorem, and the family contains every solution; it is then called the general solution.

For nonlinear equations two surprises are possible.

  • Extra solutions. Take from Example 1.2.2. Repeating that computation with replaced by any constant shows that is a one-parameter family of solutions. But is also a solution (both sides are zero), and no value of produces it, because is never zero. Solutions that are not members of a family like this are sometimes called singular solutions.
  • No solutions at all. The equation has no real solution: and , so the left side is always positive.
Example 1.2.6 (A three-parameter family)

Show that is a three-parameter family of solutions of on .

Solution
  1. Derivatives.
  2. Substitute. for every and every choice of .
  3. Three genuine parameters. The three constants multiply three different functions , , , so none of them can be absorbed into the others. A third-order equation and three parameters: the rule of thumb holds.
Counting parameters honestly

The formula seems to have two constants, but , which is just . It is really a one-parameter family. When we say " parameters", we mean constants that cannot be merged into fewer.

Example 1.2.7 (Guessing a solution)

Find all values of for which is a solution of on .

Solution
  1. Derivatives. and .
  2. Substitute. Each term becomes a multiple of :
  3. Set to zero. Since for , we need , that is . So or .
  4. Answer. and are solutions on . Because the equation is linear and homogeneous, is then a two-parameter family of solutions on . (You can also check this family on ; only fails at .)

Use the checker below to verify a candidate solution step by step. It starts with the two-parameter family that contains Example 1.2.1. Try your own: type the family from Example 1.2.6, or a deliberately wrong guess, and watch where the check fails.

The geometric picture: direction fields and integral curves

Think of a first-order equation as a rule that hands out slopes: give it a point and it returns the number . Any solution curve passing through that point must have exactly that slope there.

Draw a short line segment with slope at many points of the plane. The picture is called a direction field (or slope field). The graphs of solutions are called integral curves. Each integral curve is tangent, at every one of its points, to the little segment drawn there. Without solving anything, the direction field shows how solutions behave.

Take as an example. We can check that

is a one-parameter family of solutions: and , which agree. Now look at the field.

  • Along any line , every segment has the same slope . Such lines are called isoclines (equal-slope lines).
  • On the isocline the slope is , which equals the slope of the line itself. So this line is an integral curve: it is the member of the family.
  • Curves above this line () bend upward and grow like . Curves below it () bend downward. As , all curves approach the line, because .
Figure 1.2.4. Direction field of with several integral curves . The straight line () separates curves that bend upward () from curves that bend downward (). To the left, all curves crowd onto this line. Along the dashed isocline every segment is horizontal.

Click inside the field below to draw integral curves through points of your choice. Then change to explore other equations, for example from Example 1.2.2.

What does "solving" mean in practice?

Chapters 2 and 4 teach recipes that turn certain types of equations into formulas. Do not be misled by their success: those types were chosen precisely because formulas exist for them. Pick an ODE at random and, almost surely, its solutions cannot be written with the functions you know.

Even a very innocent equation shows this. The solutions of are

by the fundamental theorem of calculus. This is a perfectly good solution, yet the integral cannot be written using polynomials, exponentials, logarithms and trigonometric functions. (It is so useful that it has its own name: .)

So what do we do then? We still learn a lot about the solutions. A direction field, like the one above, shows their shape at a glance. In Chapter 6 we build solutions as power series, term by term. In Chapter 8 we let a computer march along the solution in small steps and produce a table of accurate values; this is what engineering software does every day.

Before trusting any of these tools, it is wise to know that a solution exists and is unique. That is the subject of Section 1.3.

Exercises

  1. Show that is a solution of on .
    Answer , ; then .
  2. Show that every function is a solution of on .
    Answer ; adding gives .
  3. Show that is a solution of on . Why not on ?
    Answer , so . The function is undefined for .
  4. Show that is an implicit solution of . Find the explicit solution through the point and its largest open interval.
    Answer on .
  5. Show that formally satisfies . Is it an implicit solution?
    Answer Implicit differentiation gives , i.e. the ODE. But has no real solution, so it is only a formal solution.
  6. Find all values of for which is a solution of .
    Answer
  7. Find all values of for which is a solution of on .
    Answer
  8. Show that is a two-parameter family of solutions of .
    Answer The trigonometric terms give in , and gives .
  9. Show that satisfies . What is the largest interval containing on which it is a solution?
    Answer ; interval .
  10. Show that is a one-parameter family of solutions of . Then show that and are also solutions, but are not members of the family.
    Answer . Constants give ; but , so no produces them.
  11. Explain why has no real solution.
    Answer The left side is at least , the right side at most .
  12. Show that is a solution of on , and find .
    Answer By the fundamental theorem of calculus ; .