Type a command or search the notes. Tab cycles completions. Up and down recall history when blank. Escape dismisses, then leaves the prompt.
MATH
[1251]

ODE fundamentals

Differential-equation vocabulary, solution families and the data that select a solution.

This page sets up the vocabulary for the chapter. An equation involving derivatives does not usually specify one function: integration introduces constants and initial or boundary data select a member of the resulting family, or several members, or none.

Before choosing a method, identify the independent variable, the order, the linearity and the domain. First-order methods and second-order constant-coefficient equations each need a matching structure.

Differential equations and notation

[DEFINITION]

Ordinary differential equation

An ordinary differential equation (ODE) is a relation involving one unknown function of one independent variable and its ordinary derivatives. A general nnth-order ODE can be written as

F(x,y(x),y′(x),…,y(n)(x))=0.F\bigl(x,y(x),y'(x),\ldots,y^{(n)}(x)\bigr)=0.

The independent variable may be xx or tt and the dependent function may be written yy, uu, PP or another letter. Renaming the variables does not change the structure. Primes such as y′y' mean differentiation with respect to the current independent variable; when that variable is time, dots such as x˙\dot{x} and x¨\ddot{x} are another common notation.

A partial differential equation (PDE) has two or more independent variables and uses partial derivatives. Newton's law for a falling point mass,

d2ydt2=−g,\frac{d^2y}{dt^2}=-g,

is an ODE, whereas the heat equation for a temperature u(x,t)u(x,t),

∂u∂t=κ∂2u∂x2,κ>0,\frac{\partial u}{\partial t}=\kappa\frac{\partial^2u}{\partial x^2},\qquad \kappa>0,

is a PDE because uu depends on both position and time.

[DEFINITION]

Linear ordinary differential equation

An nnth-order ODE is linear when the dependent function and each of its derivatives occur only to the first power, are not multiplied together and have coefficients depending only on the independent variable. Its general form is

an(x)y(n)+an−1(x)y(n−1)+⋯+a1(x)y′+a0(x)y=f(x).a_n(x)y^{(n)}+a_{n-1}(x)y^{(n-1)}+\cdots+a_1(x)y'+a_0(x)y=f(x).

Here ana_n is not identically zero; on an interval where an(x)≠0a_n(x)\ne0 the equation can be divided into normal form.

The order is the order of the highest derivative present. The degree (when defined) is the exponent of that derivative after the equation is expressed as a polynomial in derivatives: (y′′)3+y=0(y'')^3+y=0 has order 22 and degree 33.

A linear equation is homogeneous when f(x)≡0f(x)\equiv0 and non-homogeneous, or inhomogeneous, otherwise. This use of homogeneous concerns the right-hand side; the homogeneous functions of first-order substitutions refer instead to a scaling property.

Terms such as y2y^2, yy′yy', (y′)2(y')^2 and sin⁡y\sin y make an equation nonlinear. For example,

u′′(t)=u′(t)+tu(t)2+t3,y′′=y′+xy2+x3,d2ydx2=dydx+xy2+x3u''(t)=u'(t)+tu(t)^2+t^3,\qquad y''=y'+xy^2+x^3,\qquad \frac{d^2y}{dx^2}=\frac{dy}{dx}+xy^2+x^3

are the same nonlinear second-order structure after the variables are renamed. The logistic population model, with growth parameter α\alpha and carrying capacity KK,

dPdt=αP(1−PK)\frac{dP}{dt}=\alpha P\left(1-\frac{P}{K}\right)

is a first-order nonlinear ODE.

Solutions and solution families

[DEFINITION]

Solution of an ODE

A solution of an ODE is a function that, after substitution into the equation, makes the equation an identity on its domain. The solution may be given explicitly as y=y(x)y=y(x) or implicitly as a relation between xx and yy.

An implicit relation is a solution only on a domain where it defines a differentiable function and satisfies the original equation. Differentiating the relation is often the quickest check. In the example below, y+tan⁡−1yy+\tan^{-1}y is strictly increasing in yy, so the relation defines one differentiable yy for each xx.

The stated domain is part of the solution. If an implicit relation splits into separate connected pieces, each piece on which it defines a valid solution is a branch. Division, logarithms and real roots can restrict the domain or branch, as the first-order methods examples show.

[EXAMPLE]

An implicit solution

The relation

y+tan⁡−1y=x22y+\tan^{-1}y=\frac{x^2}{2}

defines a solution of

y′=x(1+y2)2+y2.y'=\frac{x(1+y^2)}{2+y^2}.

Differentiating implicitly gives

y′+y′1+y2=x.y'+\frac{y'}{1+y^2}=x.

Collecting the terms containing y′y',

y′2+y21+y2=x,y'\frac{2+y^2}{1+y^2}=x,

so

y′=x(1+y2)2+y2.y'=\frac{x(1+y^2)}{2+y^2}.

[routine]

  1. [1]:Solution of an ODE
[DEFINITION]

General and particular solutions

The general solution of an ODE is the family containing the arbitrary constants introduced during the solution process. A particular solution is obtained by assigning specific values to those constants.

An nnth-order equation normally produces nn arbitrary constants. Singular solutions, restrictions from division and degenerate equations can change how a family is represented.

[EXAMPLE]

Constants from direct integration

For a first-order equation,

y′=sin⁡(3x)y'=\sin(3x)

gives

y=−13cos⁡(3x)+C.y=-\frac13\cos(3x)+C.

For a third-order equation,

y′′′=0y'''=0

gives

y=Ax2+Bx+C.y=Ax^2+Bx+C.

For

y′′=x+5,y''=x+5,

integrating twice gives

y=x36+5x22+C1x+C2.y=\frac{x^3}{6}+\frac{5x^2}{2}+C_1x+C_2.

Initial and boundary data

[DEFINITION]

Initial value problem

An initial value problem (IVP) consists of an ODE together with the value of the function and enough derivatives at one point. For an nnth-order equation, the usual data are

y(x0)=C0,y′(x0)=C1,…,y(n−1)(x0)=Cn−1.y(x_0)=C_0,\qquad y'(x_0)=C_1,\qquad \ldots,\qquad y^{(n-1)}(x_0)=C_{n-1}.

When the problem is well posed, the data determine the arbitrary constants. They may instead reveal that no solution exists or that more than one solution satisfies the same data.

[DEFINITION]

Boundary value problem

A boundary value problem (BVP) prescribes conditions at different points of the independent-variable interval, rather than prescribing all data at one initial point.

For a second-order equation, values of yy at two endpoints may determine the two constants just as values of yy and y′y' at one endpoint can. As with an IVP, check existence and uniqueness rather than assuming them.

[EXAMPLE]

Selecting solutions with data

For the IVP

y′=sin⁡(3x),y(0)=4,y'=\sin(3x),\qquad y(0)=4,

the general solution gives

−13+C=4.-\frac13+C=4.

Thus

y=4+1−cos⁡(3x)3.y=4+\frac{1-\cos(3x)}{3}.

For the BVP

y′′+6y′+9y=0,y(0)=1,y(2)=0,y''+6y'+9y=0,\qquad y(0)=1,\qquad y(2)=0,

the repeated-root solution is

y=(A+Bx)e−3x.y=(A+Bx)e^{-3x}.

The first condition gives A=1A=1. The second gives

(1+2B)e−6=0,(1+2B)e^{-6}=0,

so B=−12B=-\frac12. The BVP solution is therefore

y=(1−x2)e−3x.y=\left(1-\frac{x}{2}\right)e^{-3x}.
[EXAMPLE]

Different outcomes for initial data

The instruction "solve the IVP" can have different outcomes:

  • y′=xy'=x, y(0)=1y(0)=1 has the unique solution y=1+x2/2y=1+x^2/2.
  • y′=3y2/3y'=3y^{2/3}, y(0)=0y(0)=0 has at least the two solutions y=0y=0 and y=x3y=x^3, so uniqueness can fail. The Lipschitz condition explains why.
  • xy′=y−1xy'=y-1, y(0)=1y(0)=1 has the family y=1+Cxy=1+Cx; the coefficient of y′y' vanishes at the initial point, so the usual normal form is singular there.
  • ∣y′∣+∣y∣=0|y'|+|y|=0, y(0)=1y(0)=1 has no solution, because the equation forces y=0y=0 everywhere while the initial value requires y(0)=1y(0)=1.

[challenge]

  1. [1]:Initial value problem

Existence, uniqueness and linear operators gives hypotheses that guarantee a unique IVP solution. When they hold but no elementary formula is available, numerical solutions follow the slope field.

On this page