Mathematics · Ordinary differential equations · 07

Implicit Solutions and Solution Intervals

Writing down a formula is not enough. You still have to say where it is a solution.

Picking up from separation of variables, this page looks closely at the absolute value inside a logarithm, choosing a branch, and singular points. One implicit curve can contain several function branches, and one formula can describe solutions on pieces that don’t connect.

Series · 07 / 09

Does the other piece of the curve meet the original starting value?

Guess whether the two pieces can be joined, then tick the box to show the other one. In the half-circle example, change the sign of the starting value and see which branch is chosen.

Exact solution for the starting valueOther piece / branch (dashed)Excluded point / singularity
The solution 1/(1−x) of y′=y², y(0)=1 continues this starting value only on (−∞,1). For y′=−x/y, the relation x²+y²=4 with y(0)=±2 picks the upper or lower half circle, both on (−2,2).
One unit may take up a different length on screen along each axis, so read a slope from the change in coordinates. The plot shows only a finite window; leaving it does not mean the solution ends.
Current starting value
Largest interval

Explicit and implicit: two ways to write a solution

An answer can’t always be written as y = ⋯. Sometimes you can only give a relation between x and y first, and then pick out a piece of the curve that works as a function.

An explicit solution puts y alone on one side, such as y=√(4−x²). An implicit solution gives a relation between x and y, such as x²+y²=4. The relation describes a curve; you still have to pick out a differentiable function y(x) from it before you have the kind of solution we use for an ODE.

So “some equation holds” is not where checking a solution ends. The upper and lower halves of the circle both satisfy the same relation, yet the whole circle is not a single-valued function y(x): one x usually corresponds to two heights.

The variables on this page are dimensionless. The interval attached to an initial value problem is a connected open interval containing the starting position, on which the function is differentiable and the equation is defined and holds. “Largest” means the same solution cannot be extended any further. It has nothing to do with how big the plot window is.

Worked implicit example: a half circle from an equation

One relation can hold several pieces of solution. The initial condition decides which piece you are on, and the endpoints have to be stated too.

y′ = −x/y,   y(0)=2The equation itself requires y≠0.
  1. Keep the original restriction, then multiply by y

    y y′ = −x, y≠0

    After multiplying, remember that the original equation is undefined at y=0. Multiplying does not turn it into a different problem.

  2. Recognize the chain rule, then integrate

    d(y²/2)/dx=−x ⇒ y²/2=−x²/2+C

    The right side integrates to −x²/2; y is a function that changes with x.

  3. Use the starting value to fix the constant

    x²+y²=C₂; 0²+2²=4 ⇒ C₂=4

    This gives the implicit relation x²+y²=4.

  4. Let the starting value choose the branch

    y=+√(4−x²), −2<x<2

    y(0)=2 chooses the plus sign; the minus sign gives −2, which does not meet the starting value. On the chosen interval y>0, so it cannot suddenly change sign.

  5. Check with implicit differentiation

    2x+2y y′=0 ⇒ y′=−x/y

    This step still uses y≠0. You can also differentiate the positive square root directly to get −x/√(4−x²).

  6. Check both endpoints

    x=±2 ⇒ y=0

    There the denominator of the equation is zero, and the explicit curve no longer has a finite slope. Neither endpoint can be included, so the largest interval is (−2,2).

If the starting value is y(0)=−2 instead, the constant is still 4, but the negative square root is chosen. The two branches cannot loop around at the endpoints to form one solution y(x): besides not being single-valued, the original equation is undefined where they would meet.

For a general relation F(x,y)=C that is continuously differentiable near a point satisfying it, with Fy≠0 there, the implicit function theorem picks out a differentiable y(x) nearby. Here Fy=2y. The condition fails at the endpoints, but that failure on its own does not always prove there is no solution; in this example, the division by zero in the original equation settles it directly.

Keep the absolute value in the logarithm

Integrating 1/y gives ln|y|, and the absolute value matters: it handles the positive branch and the negative branch separately.

For y≠0, an antiderivative is ∫dy/y=ln|y|+C. Check it on each branch:

y>0: d ln(y)/dy = 1/yy<0: d ln(−y)/dy = (−1)/(−y) = 1/y

ln y allows only y>0 and would miss the negative solutions; ln|y| works on each side but still excludes y=0. Taking exponentials gives |y|=eCeF(x), where the right side is always positive: eC can never equal zero. For nonzero solutions the sign can be absorbed into A=±eC, but the zero solution has to be put back from the original equation. You can’t claim it comes from some finite C.

On the previous page, A∈ℝ for y′=2xy combines three parts: positive solutions, negative solutions, and the zero solution checked separately. That every A gives a solution on the whole real line is special to that example, not true of every separable equation.

Worked interval example: y′=y², y(0)=1

The plot window does not decide where a solution holds. This solution really does end at x = 1; the plot is not just running out of room.

  1. Keep the equilibrium solution first

    y=0

    It satisfies the equation but not the starting value 1. Near this starting value we can separate where y≠0.

  2. Separate and integrate

    y′/y²=1 ⇒ −1/y=x+C

    Differentiating −1/y with respect to y gives 1/y², so no ln|y| appears here.

  3. Put in the starting value

    −1/1=0+C ⇒ C=−1

    So −1/y=x−1, which gives y=1/(1−x).

  4. Check the equation and the starting value

    y′=1/(1−x)²=y²; y(0)=1

    Valid for x≠1; the starting point lies to the left of the singularity.

  5. Choose the connected interval containing 0

    I=(−∞,1)

    You can’t stop at “all x≠1,” because that set is two pieces that don’t connect.

  6. Show it cannot be extended to the right

    x→1⁻ ⇒ y→+∞

    Any differentiable extension would have to be continuous, and so have a finite value y(1); blowing up rules that out.

On (1,∞) the same formula also satisfies the equation, but it is a separate, negative solution, apart from the one with y(0)=1. Calling the two pieces together the solution of this initial value problem would hide the fact that it cannot cross x=1.

With y(0)=−1 instead, the calculation gives y=−1/(1+x), whose largest interval is (−1,∞). Where the singularity lies is not fixed by the equation alone; it also depends on the starting value. y(0)=0 gives the zero solution, valid on the whole real line.

Check the equation, not just the last line

To check an answer, go back to the original equation. It is not enough that the last line is a true equation.

1. y′=−x/y with y(0)=1: what are the implicit relation, the branch and the interval?

See the full reasoning

Integrating gives x²+y²=C, and the starting value gives C=1. Choose the positive branch, y=√(1−x²), on I=(−1,1). Differentiating gives y′=−x/y, and the starting value is right. At both ends y=0, where the equation is undefined, so they cannot be included.

2. y′=y² with y(2)=−1: can the same formula 1/(1−x) be used?

See the full reasoning

Yes, but this starting point lies to the right of the singularity. Putting in x=2 gives −1, and the derivative equals y²; the largest interval is (1,∞). It is not the interval on the left chosen by y(0)=1.

3. From ln|y|=x+C, can you get y=0 by taking eᶜ=0?

See the full reasoning

No: the exponential of any finite real C is greater than 0. Check the zero function against the equation this came from. If that equation contains 1/y, zero may not be a solution at all. So “putting back the zero solution” is not something to do blindly either.

From intervals to overall behavior

A complete answer has four parts: the equation, the starting value, the branch chosen, and the interval where it holds.

From now on, every answer should come with the equation, the starting value, the branch and the interval of validity. On the next page, when the slope depends only on y, we will first use a phase line to see where solutions go, and then check with a formula.

Sources and scope

Definitions and the conditions of theorems were checked against the authors and university materials below. The explanations, worked examples and interactive plots here are written independently. Decimals on the plots are rounded displays; the mathematical conclusions rest on derivation and substitution. This page does not prove the general existence and uniqueness theorems it cites.