Unit 1, lesson 2

Solutions, Initial Conditions, and Boundary Conditions

What explicit, implicit, general and particular solutions are, how to verify a solution against its equation, data and domain, and how initial-value and boundary-value problems select solutions.

  • Video 2
  • Equations, Solutions and Calculus Tools

Which function has derivative 2x2x? Every function of the form x2+Cx^2 + C does, one for each value of the constant, so the equation y′=2xy' = 2x with y′=dy/dxy' = dy/dx describes a whole family of curves rather than a single one. Picking one member takes extra data, given either at one point or at the two ends of an interval, and the two kinds of data behave very differently. This lesson sorts out the kinds of solutions, shows how to verify a solution completely, and explains why every solution comes with an interval.

Key terms

Explicit and implicit solutions

Definition Let y′=dy/dxy' = dy/dx. An explicit solution of an equation of order nn on an open interval II is a function y=φ(x)y = \varphi(x) that is nn times differentiable on II and satisfies the equation at every xx in II. A relation G(x,y)=0G(x, y) = 0 is an implicit solution on II if it defines at least one explicit solution on II, that is, a function φ\varphi with G(x,φ(x))=0G(x, \varphi(x)) = 0 for every xx in II that solves the equation there. A relation is checked by implicit differentiation, treating yy as a function of xx, so the chain rule brings in a factor y′y'.

In plain words An explicit solution hands you yy as a formula in xx. An implicit one hands you a curve, and the solutions are the pieces of that curve that are graphs of differentiable functions.

Example The circle x2+y2=25x^2 + y^2 = 25 is an implicit solution of y′=−x/yy' = -x/y on (−5,5)(-5, 5). Differentiating the relation gives 2x+2yy′=02x + 2yy' = 0, so y′=−x/yy' = -x/y wherever y≠0y \ne 0. The full circle is not the graph of a function, because each xx in (−5,5)(-5, 5) is the first coordinate of two points of the circle. It splits into two explicit solutions on (−5,5)(-5, 5), the upper and the lower half,

y=25−x2,y=−25−x2.\begin{gathered} y = \sqrt{25 - x^2}, \\[0.4em] y = -\sqrt{25 - x^2}. \end{gathered}

For the upper half the derivative is −x/25−x2-x/\sqrt{25 - x^2}, which equals −x/y-x/y, and the lower half checks the same way.

General and particular solutions

Definition A general solution of an equation on an interval II is a formula with arbitrary constants that produces every solution on II as the constants vary. For a linear equation of order nn whose coefficients and forcing term are continuous on II, with a leading coefficient that never vanishes on II, it contains exactly nn constants. A particular solution is one member of the family, with every constant fixed.

In a nonhomogeneous linear equation the phrase has a second use. There a particular solution ypy_p is any one solution of the forced equation, chosen without regard to initial data, and the general solution is ypy_p plus the general solution of the homogeneous equation with the same left side.

In plain words The general solution is the whole collection of answers, with its constants still free. A particular solution is one curve from that collection. The surrounding problem tells you whether a particular solution means the member selected by the data or just some solution of a forced equation.

Example Every solution of y′=2xy' = 2x on R\mathbb{R} has the form x2+Cx^2 + C, because two functions with the same derivative on an interval differ by a constant. So y=x2+Cy = x^2 + C is the general solution, and y=x2+3y = x^2 + 3 is a particular solution. For y′′+y=0y'' + y = 0 the general solution is y=C1cos⁡x+C2sin⁡xy = C_1\cos x + C_2\sin x, with two constants for a second-order equation. For the forced equation y′′+y=xy'' + y = x, the function yp=xy_p = x is a particular solution, since yp′′+yp=0+xy_p'' + y_p = 0 + x, and the general solution is y=x+C1cos⁡x+C2sin⁡xy = x + C_1\cos x + C_2\sin x.

A family found by a calculation can miss solutions. The family y=1/(C−x)y = 1/(C - x) solves y′=y2y' = y^2, and so does the zero function, which no choice of CC produces, so that family alone is not the general solution.

Solution verification

Definition To verify that a function φ\varphi solves a problem on an interval II, check three things separately. First, φ\varphi is defined on II and has there every derivative the equation needs. Second, substituting φ\varphi and its derivatives into the equation gives an identity, true for every xx in II. Third, φ\varphi meets each initial or boundary condition. Passing one check says nothing about the others.

In plain words You never have to solve an equation to test an answer. Substitute and simplify, then check the data and the interval.

Example Test y=x2+3y = x^2 + 3 against y′=2xy' = 2x with y(1)=4y(1) = 4. Its derivative is 2x2x for every real xx, and y(1)=1+3=4y(1) = 1 + 3 = 4, so it passes every check on R\mathbb{R}. The function y=x2+5y = x^2 + 5 has the right derivative but gives y(1)=6y(1) = 6. The function y=4xy = 4x passes through (1,4)(1, 4), yet its derivative 44 equals 2x2x only at x=2x = 2, so it does not satisfy the equation on any interval. Each wrong candidate fails exactly one of the checks.

Domain of a solution

Definition The domain of a solution is the interval II on which it is claimed to solve the equation. It must be an interval. It must leave out every point where the function or one of its needed derivatives fails to exist and every point where the equation itself is undefined. For an initial-value problem it must contain the initial point. The set where a formula makes sense can be larger than this interval, or not an interval at all.

In plain words A solution is a formula together with an interval. The same formula on two separate intervals counts as two different solutions.

Example The function y=1/xy = 1/x solves y′=−y2y' = -y^2, since y′=−1/x2=−y2y' = -1/x^2 = -y^2. Its formula makes sense for every x≠0x \ne 0, which is not an interval, so it gives one solution on (0,∞)(0, \infty) and another on (−∞,0)(-\infty, 0). With the condition y(1)=1y(1) = 1, the solution is y=1/xy = 1/x on (0,∞)(0, \infty) only. In the same way, the upper half y=25−x2y = \sqrt{25 - x^2} of the circle is continuous on [−5,5][-5, 5], but at x=±5x = \pm 5 it has vertical tangents and the equation y′=−x/yy' = -x/y would divide by zero. Its domain as a solution is the open interval (−5,5)(-5, 5).

Initial-value problem

Definition An initial-value problem for an equation of order nn consists of the equation together with the values of y,y′,…,y(n−1)y, y', \ldots, y^{(n-1)} at one point x0x_0. For a first-order equation it reads

y′=f(x,y),y(x0)=y0.y' = f(x, y), \qquad y(x_0) = y_0.

A solution is a function on an open interval containing x0x_0 that solves the equation there and meets every condition. For a linear equation of order nn whose coefficients and forcing term are continuous on an open interval II, with a leading coefficient that never vanishes on II, every initial-value problem with x0x_0 in II has exactly one solution, and that solution exists on all of II.

In plain words Initial data describe the state at one moment, a height for a first-order equation, and a height and a slope for a second-order one. For linear equations that meet these conditions, that is exactly enough information to pick out one solution.

Example Solve y′′+y=0y'' + y = 0 with y(0)=2y(0) = 2 and y′(0)=−1y'(0) = -1. Start from y=C1cos⁡x+C2sin⁡xy = C_1\cos x + C_2\sin x, so y(0)=C1=2y(0) = C_1 = 2. The derivative is y′=−C1sin⁡x+C2cos⁡xy' = -C_1\sin x + C_2\cos x, so y′(0)=C2=−1y'(0) = C_2 = -1. The solution is

y=2cos⁡x−sin⁡xy = 2\cos x - \sin x

on all of R\mathbb{R}. As a check, y′′=−2cos⁡x+sin⁡x=−yy'' = -2\cos x + \sin x = -y, the value at 00 is 22, and the slope at 00 is −1-1.

Boundary-value problem

Definition A boundary-value problem imposes conditions at two or more different points, usually the endpoints a<ba < b of an interval, for example y(a)=αy(a) = \alpha and y(b)=βy(b) = \beta for a second-order equation. Other boundary conditions prescribe y′y', or a combination of yy and y′y', at an endpoint. A solution satisfies the equation on the interval from aa to bb and every boundary condition. Even for a linear equation with continuous coefficients and forcing term and a leading coefficient that never vanishes, where every initial-value problem has exactly one solution, a boundary-value problem can have exactly one solution, infinitely many or none, and which case occurs is decided by solving the boundary equations for the constants.

In plain words The data are split between two ends. The equation fixes how the curve bends, and the question is whether that bending can be made to hit both targets.

Example Take y′′+y=0y'' + y = 0 with general solution y=C1cos⁡x+C2sin⁡xy = C_1\cos x + C_2\sin x. The condition y(0)=0y(0) = 0 forces C1=0C_1 = 0 and leaves y=C2sin⁡xy = C_2\sin x. Each of the three cases then occurs.

  • With y(π/2)=1y(\pi/2) = 1 on [0,π/2][0, \pi/2], the second condition gives C2=1C_2 = 1, so the only solution is y=sin⁡xy = \sin x.
  • With y(π)=0y(\pi) = 0 on [0,π][0, \pi], every C2C_2 works, because sin⁡π=0\sin\pi = 0, so there are infinitely many solutions.
  • With y(π)=1y(\pi) = 1 on [0,π][0, \pi], the second condition reads 0=10 = 1 for every C2C_2, so there is no solution.

Check yourself

  1. Find the solution of y′=3x2y' = 3x^2 with y(2)=5y(2) = 5, and verify it.
Show the answer

Every solution on R\mathbb{R} has the form y=x3+Cy = x^3 + C. The condition gives 8+C=58 + C = 5, so C=−3C = -3 and y=x3−3y = x^3 - 3. To verify it, note that the derivative of x3−3x^3 - 3 is 3x23x^2 for every real xx and that y(2)=8−3=5y(2) = 8 - 3 = 5. The solution is valid on all of R\mathbb{R}.

  1. A classmate solves y′′+y=0y'' + y = 0 with y(0)=1y(0) = 1 and y(π)=−1y(\pi) = -1, finds y=cos⁡xy = \cos x, and calls it the solution. What is wrong with that conclusion? What changes if the second condition is y(π)=1y(\pi) = 1 instead?
Show the answer

Start from y=C1cos⁡x+C2sin⁡xy = C_1\cos x + C_2\sin x. The first condition gives C1=1C_1 = 1. The second gives y(π)=−C1=−1y(\pi) = -C_1 = -1, which then holds automatically and puts no restriction on C2C_2. So every function y=cos⁡x+C2sin⁡xy = \cos x + C_2\sin x solves the problem, and cos⁡x\cos x is only the case C2=0C_2 = 0. The boundary-value problem has infinitely many solutions.

With y(π)=1y(\pi) = 1 the second condition demands −C1=1-C_1 = 1, which contradicts C1=1C_1 = 1, so there is no solution at all.

  1. Show that the relation y2=xy^2 = x is an implicit solution of y′=1/(2y)y' = 1/(2y). Find the explicit solution through the point (4,−2)(4, -2) and give its interval.
Show the answer

Differentiating y2=xy^2 = x with respect to xx gives 2yy′=12yy' = 1, so y′=1/(2y)y' = 1/(2y) wherever y≠0y \ne 0. The point (4,−2)(4, -2) lies on the lower branch, so the explicit solution is y=−xy = -\sqrt{x}. Its derivative is

y′=−12x=12y,y' = -\frac{1}{2\sqrt{x}} = \frac{1}{2y},

since 2y=−2x2y = -2\sqrt{x}. The interval is (0,∞)(0, \infty). At x=0x = 0 the branch reaches y=0y = 0, where the equation would divide by zero and −x-\sqrt{x} is not differentiable, and for x<0x < 0 no real yy satisfies y2=xy^2 = x.

How this lesson connects

It also uses implicit differentiation.