1. Home
  2. Explore
  3. Mathematics
  4. Introduction to Differential Equations

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Introduction to Differential Equations

Understanding Differential Equations

Differential equations are equations involving an unknown function and one or more of its derivatives. The main goal in this lesson is not to solve differential equations, but to understand what they are, what counts as a solution, and the vocabulary used to classify them.

1. What a Differential Equation Is

A differential equation usually involves:

  • An independent variable, often written as xxx
  • A dependent variable, often written as yyy
  • The function relating them
  • Derivatives of the dependent variable, such as y′y'y′, y′′y''y′′, and so on

Here, y′y'y′ is shorthand for dydx\frac{dy}{dx}dxdy​, and y′′y''y′′ is shorthand for d2ydx2\frac{d^2y}{dx^2}dx2d2y​.

A general differential equation can be written in the form

F(x,y,y′,y′′,…)=0.F(x,y,y',y'',\ldots)=0.F(x,y,y′,y′′,…)=0.

The symbol FFF does not represent one special formula. It simply stands for some expression involving the independent variable, the dependent variable, and its derivatives.

For example, the equation

y′+y=x+2y' + y = x+2y′+y=x+2

can be rewritten by moving everything to one side:

y′+y−x−2=0.y' + y - x - 2 = 0.y′+y−x−2=0.

In this form, the entire expression

y′+y−x−2y' + y - x - 2y′+y−x−2

is the particular function represented by FFF.

The important point is that a differential equation is not merely an equation involving numbers. It is an equation involving a function and information about how that function changes.

A differential equation is a relation involving an independent variable, a dependent variable, and derivatives of the dependent variable.

Think About It

If an equation contains y′y'y′ or y′′y''y′′, what additional information does it contain beyond the value of yyy itself?

It contains information about the function’s rate of change or higher-order change.


2. What It Means to Solve a Differential Equation

A solution to a differential equation is a function that makes the equation true for every relevant value of the independent variable.

Suppose the equation is

y′+y=x+2.y' + y = x+2.y′+y=x+2.

Consider the proposed function

f(x)=x+1.f(x)=x+1.f(x)=x+1.

To test whether this function is a solution, the function and its derivative must be substituted into the differential equation.

First,

f(x)=x+1,f(x)=x+1,f(x)=x+1,

and

f′(x)=1.f'(x)=1.f′(x)=1.

Substituting y=f(x)=x+1y=f(x)=x+1y=f(x)=x+1 and y′=f′(x)=1y'=f'(x)=1y′=f′(x)=1 gives

1+(x+1)=x+2.1+(x+1)=x+2.1+(x+1)=x+2.

Equivalently, using the expression with everything on the left,

1+(x+1)−x−2=0.1+(x+1)-x-2=0.1+(x+1)−x−2=0.

This is true for every value of xxx. Therefore, f(x)=x+1f(x)=x+1f(x)=x+1 is a solution.

The phrase “for every value of xxx” is essential. A solution must make the differential equation true as an identity in xxx. It is not enough for the equation to work at only one point.

A function can be tested using the following process:

  1. Identify the proposed function.
  2. Compute all derivatives required by the differential equation.
  3. Substitute the function and derivatives into the equation.
  4. Simplify the result.
  5. Confirm that the result is true throughout the function’s domain.

The equation may have more than one solution. Showing that one function works does not show that it is the only solution.

Functional Solutions and Relational Solutions

A functional solution explicitly gives the dependent variable as a function of the independent variable. For example,

y=x+1y=x+1y=x+1

is a functional solution.

A relational solution gives a relation between xxx and yyy without necessarily writing yyy explicitly as a function of xxx. For example, a relation might have the general form

G(x,y)=0.G(x,y)=0.G(x,y)=0.

The relation can still be a solution if it satisfies the differential equation.

To test a relational solution, implicit differentiation is used. If yyy is not isolated, differentiating the relation produces expressions for y′y'y′, y′′y''y′′, and higher derivatives. These expressions are then substituted into the differential equation.

The test is again an identity: after substitution, the differential equation must hold for all values of xxx and yyy that satisfy the proposed relation.


3. Initial Value Problems

A single differential equation may have many solutions. An initial value problem adds extra information to identify the particular solution of interest.

For an equation of order kkk, an initial value problem generally specifies the value of the function and its derivatives at one particular input x0x_0x0​:

f(x0)=y0,f(x_0)=y_0,f(x0​)=y0​, f′(x0)=y1,f'(x_0)=y_1,f′(x0​)=y1​, f′′(x0)=y2,f''(x_0)=y_2,f′′(x0​)=y2​,

and so on, up to

f(k−1)(x0)=yk−1.f^{(k-1)}(x_0)=y_{k-1}.f(k−1)(x0​)=yk−1​.

The numbers x0,y0,y1,…,yk−1x_0,y_0,y_1,\ldots,y_{k-1}x0​,y0​,y1​,…,yk−1​ are given numerical data.

Why the Conditions Stop at the (k−1)(k-1)(k−1)st Derivative

If the differential equation has order kkk, then the highest derivative appearing is the kkkth derivative. The initial value conditions usually specify derivatives only through order k−1k-1k−1.

The differential equation itself relates the kkkth derivative to the lower-order quantities. Once the values of xxx, yyy, and the derivatives through order k−1k-1k−1 are known at x0x_0x0​, the equation determines what the kkkth derivative must be at that point.

For example, the equation

y′+y=x+2y'+y=x+2y′+y=x+2

has order 111, because the highest derivative is y′y'y′. An initial value problem for this equation needs only one condition involving the function itself:

f(x_0)=y_0. $$` The function

f(x)=x+1

satisfiesthecondition satisfies the condition satisfiesthecondition

f(1)=2.

Therefore,onepossibleinitialvalueproblemconsistsofthedifferentialequation Therefore, one possible initial value problem consists of the differential equation Therefore,onepossibleinitialvalueproblemconsistsofthedifferentialequation

y'+y=x+2

togetherwiththeinitialcondition together with the initial condition togetherwiththeinitialcondition

f(1)=2.

The function $f(x)=x+1$ is a solution to that initial value problem. An initial condition is not generally written as merely “$x=1,y=2$” without context. More precisely, it states that the solution function has value $2$ when its input is $1$:

f(1)=2.

### Think About It For a second-order differential equation, what kinds of initial information would normally be needed? The function value and the first derivative value at the chosen input would normally be specified:

f(x_0)=y_0,\qquad f'(x_0)=y_1.

--- ## 4. Differential Equations Are Functional Equations A crucial distinction is that a differential equation is not usually being solved for a particular value of $x$ or $y$. It is being solved for an entire function. A regular algebraic equation might ask for a number. For example, an equation may ask which value of $x$ makes a relation true. A differential equation instead asks: > Which function makes the relation true for every value of the independent variable? This makes differential equations a special kind of **functional equation**. A functional equation is an equation in which the unknown object is a function. Differential equations are functional equations because the unknown is a function and its derivatives. However, not every functional equation is a differential equation. A functional equation may involve values of a function at different inputs without involving derivatives. Differential equations have a more specific structure. ### The Single-Point Nature of a Differential Equation In an ordinary differential equation, the function and all its derivatives are evaluated at the same independent-variable value. For example, an expression such as

F\bigl(x,f(x),f'(x),f''(x)\bigr)=0

relates: - The value $x$ - The function value $f(x)$ - The first derivative value $f'(x)$ - The second derivative value $f''(x)$ All of these describe the behavior of the function at the same point $x$. By contrast, an expression such as

x^2=f(x)+f'(1-x)

involves the function at $x$ and the derivative at $1-x$. These are generally two different input locations. In the sense being developed here, this is not an ordinary differential equation because it relates the behavior of the function at different points. Equations of this broader kind can be studied as generalizations, including delayed differential equations, but the usual techniques for ordinary differential equations do not apply directly because the equation connects distinct points. ### A Point Is Not a Solution to a Differential Equation A differential equation is not satisfied by a point alone. A point gives only a value of $x$ and a value of $y$, but a differential equation also involves derivatives. For example, consider

x^2=y+y'.

The point $(2,3)$ tells the values

x=2,\qquad y=3,

but it does not tell the value of $y'$. Therefore, it does not provide enough information to test the equation. The meaningful question is whether a function satisfies the equation. For example: > Does the function $y=g(x)$ satisfy $x^2=y+y'$? That question can be answered by differentiating $g$, substituting $g(x)$ and $g'(x)$, and checking whether the resulting identity holds for all $x$ in the domain. A point can be part of the graph of a solution, particularly through an initial condition, but the point itself is not a solution. > A solution to a differential equation is a function or relation, not an isolated point. ### Think About It Why is checking an equation at one point not enough to establish that a function is a solution? Because a solution must satisfy the differential equation for every relevant input, not merely at one selected value. --- ## 5. Order of a Differential Equation The **order** of a differential equation is the highest derivative that appears in it. For example, consider

y+xy'''+(y'')^2=\sin(y').

The derivatives present are $y'$, $y''$, and $y'''$. The highest derivative is $y'''$, which is the third derivative. Therefore, the equation has order $3$. The powers of lower-order derivatives do not determine the order. The term $(y'')^2$ involves a square, but $y''$ is still only a second derivative. Since $y'''$ appears, the order is $3$. ### How to Find the Order To determine the order: 1. List the derivatives appearing in the equation. 2. Identify the derivative with the greatest derivative index. 3. That index is the order. For example: - An equation involving $y'$ but no higher derivatives has order $1$. - An equation involving $y''$ has order $2$. - An equation involving $y^{(4)}$ has order $4$. The order describes how many levels of change are involved. A first-order equation concerns the first derivative; a second-order equation includes the second derivative; and so forth. --- ## 6. Degree of a Differential Equation The **degree** is defined only when the differential equation is polynomial in its highest-order derivative. If the equation is polynomial in the highest derivative, its degree is the exponent of that derivative in the highest-power term. Consider the general pattern

\text{terms involving lower derivatives}+\bigl(y'''\bigr)^2= \text{other terms}.

If $y'''$ is the highest-order derivative and it appears polynomially with highest power $2$, then the equation has degree $2$. In the earlier example,

y+xy'''+(y'')^2=\sin(y'),

the highest-order derivative is $y'''$, and it appears to the first power. Thus, the degree is $1$. The squared term $(y'')^2$ does not determine the degree because $y''$ is not the highest-order derivative. ### Important Limitation The degree is not defined if the equation is not polynomial in its highest-order derivative. For example, if the highest derivative appears inside a non-polynomial expression such as a sine, exponential, logarithm, or other non-polynomial operation, asking for the degree does not make sense under this definition. ### Why Degree One Is Useful Degree-one differential equations are often especially useful because the highest derivative appears linearly. This usually allows the highest derivative to be isolated in terms of the lower-order quantities. For example, an equation of the form

a(x)y''+b(x)y'+c(x)y=g(x)

is first degree in its highest derivative $y''$. The second derivative can be isolated as

y''=\frac{g(x)-b(x)y'-c(x)y}{a(x)},

provided $a(x)$ is nonzero. This does not automatically make the equation easy to solve, but it gives the equation a structure that is generally more manageable than one in which the highest derivative is squared or appears inside another nonlinear operation. --- ## 7. Autonomous Differential Equations A differential equation is **autonomous** when the independent variable does not appear explicitly in the equation. In the general expression

F(x,y,y',y'',\ldots)=0,

an autonomous equation has no explicit $x$:

F(y,y',y'',\ldots)=0.

For example, an expression involving $y$, $y'$, and $y'''$, such as a relation built from

\cos\bigl(yy'y'''\bigr),

is autonomous if $x$ does not appear explicitly anywhere in the equation. The word “autonomous” reflects the idea that the equation does not depend directly on the location in the independent variable. If the independent variable represents time, the same rule applies regardless of when the system is observed. In that sense, shifting time does not change the form of the equation. An equation can involve the dependent variable and its derivatives in complicated ways and still be autonomous, as long as the independent variable is absent explicitly. ### Autonomous Versus Nonautonomous An equation such as

y'=y^2+1

is autonomous because $x$ does not appear. An equation such as

y'=x+y^2

is not autonomous because $x$ appears explicitly. The distinction concerns the explicit appearance of the independent variable, not whether the equation is simple or difficult. ### Think About It If the independent variable represents time, what does autonomy suggest about the system? It suggests that the governing rule itself does not change merely because time has passed; the equation has the same form after a time translation. --- ## 8. Linear Differential Equations A differential equation is **linear** when the dependent variable and all of its derivatives appear linearly. A general linear differential equation can be written as

a_n(x)y^{(n)}+a_{n-1}(x)y^{(n-1)}+\cdots+a_1(x)y'+a_0(x)y=g(x).

The coefficients $a_0(x),a_1(x),\ldots,a_n(x)$ may be functions of $x$. The equation is still linear because $y$ and its derivatives: - Are not raised to powers other than $1 - Are not multiplied together - Do not appear inside functions such as $\sin(y)$ or $e^y$ For example,

e^x y'''+x^2y''+\sin(x)y'+3y=x^2-2x+5

is linear. Each derivative of $y$ appears only to the first power, and no two such terms are multiplied together. The coefficients may be nonlinear functions of $x$. For example, $e^x$, $x^2$, and $\sin(x)$ are all allowed as coefficients. ### Linear With Constant Coefficients A stricter category is a linear differential equation with **constant coefficients**. In that case, the coefficients multiplying $y$, $y'$, $y''$, and higher derivatives must be actual constants rather than functions of $x$. For example,

3y''-2y'+7y=g(x)

has constant coefficients, even if the right-hand side $g(x)$ depends on $x$. The distinction is: - **Linear:** coefficients may depend on $x$. - **Linear with constant coefficients:** coefficients must be constants. Linearity refers to the way the dependent variable and its derivatives occur, not to whether the equation is linear in the independent variable. --- ## 9. Particular Solutions, Solution Families, and General Solutions Once a differential equation has been introduced, several terms describe collections of solutions. ### Particular Solution A **particular solution** is one specific solution, either functional or relational. For the differential equation

y^2+(y')^2=1,

oneparticularsolutionis one particular solution is oneparticularsolutionis

y=\sin(x).

Indeed, Indeed, Indeed,

y'=\cos(x),

sosubstitutiongives so substitution gives sosubstitutiongives

\sin^2(x)+\cos^2(x)=1.

Because the identity holds for every $x$, this function is a particular solution. ### Solution Family A **solution family** is a collection of solutions described using one or more parameters. For the same equation,

y^2+(y')^2=1,

consider consider consider

y=\sin(x+C),

where $C$ is a parameter. For any fixed value of $C$,

y'=\cos(x+C).

Substitutiongives Substitution gives Substitutiongives

\sin^2(x+C)+\cos^2(x+C)=1.

Thus, every fixed choice of $C$ produces a solution. Different values of $C$ generally produce different solutions, so this is a one-parameter solution family. The parameter must be fixed before a particular function is obtained. For example: - $C=0$ gives $y=\sin(x)$. - A different value of $C$ gives a shifted sine function. ### General Solution A **general solution** is a solution family intended to include all solutions of the differential equation. The phrase “all solutions” is used in the usual practical sense. Some descriptions of a general solution may omit exceptional or singular solutions, but the goal is to capture the full ordinary collection of solutions. For the family

y=\sin(x+C),

theimportantquestioniswhethereveryfunctionalsolutionof the important question is whether every functional solution of theimportantquestioniswhethereveryfunctionalsolutionof

y^2+(y')^2=1

can be represented by some value of $C$. Determining that requires more theory than is developed here. The example illustrates the meaning of a solution family, while the term general solution adds the requirement of covering the solution set. ### Think About It What is the difference between $y=\sin(x)$ and $y=\sin(x+C)$? The first is one particular solution. The second represents a family of solutions, one for each fixed value of the parameter $C$. --- # Comprehensive Review A differential equation is an equation involving an unknown function, its independent variable, and one or more derivatives. It can be written abstractly as

F(x,y,y',y'',\ldots)=0.

To verify a functional solution, the proposed function and all required derivatives are substituted into the equation. The result must be true identically for every relevant value of the independent variable. A relational solution is checked by implicit differentiation. The relation is differentiated to obtain the required derivatives, and the resulting expressions are substituted into the differential equation. An initial value problem combines a differential equation with numerical conditions at one input value. For an equation of order $k$, the usual initial data specify the function and its derivatives through order $k-1$. Differential equations are functional equations because the unknown is a function rather than an isolated number. A point alone cannot satisfy a differential equation, since the derivatives needed by the equation are not determined by a point. The **order** is the highest derivative appearing. The **degree** is the polynomial degree in the highest-order derivative, when the equation is polynomial in that derivative. An equation is **autonomous** when the independent variable does not appear explicitly. It is **linear** when the dependent variable and all its derivatives occur linearly, even if their coefficients are functions of the independent variable. Finally, a particular solution is one solution, a solution family contains solutions depending on parameters, and a general solution is a family intended to represent the complete set of solutions. These ideas establish the basic language needed before methods for solving differential equations are introduced.

Ask anything

We've read this whole study set, so questions about it get the best answers.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent