Many problems in mathematics, science, engineering, and economics are posed in terms of an equation involving derivatives of an unknown function. An equation that involves derivatives of an unknown function is called a differential equation.
| Term | Meaning |
|---|---|
| Differential equation | An equation involving derivatives of an unknown function |
| General solution | The family satisfying the differential equation |
| Initial condition | The value of the unknown function at a specific point, e.g., |
| Particular solution | The unique solution satisfying both the equation and the initial condition |
| Initial-value problem | A differential equation together with an initial condition |
| Separation of variables | A technique: rearrange so all -terms are on one side and all -terms on the other, then integrate both sides |
Differential Equations
For example, f'(x) = 3x^2 - 2x or f'(x) = -x/f(x) are two differential equations. They are often written as
\begin{aligned} y' &= 3x^2 - 2x, \\ \text{and}\quad y' &= -\frac{x}{y}. \end{aligned}Notice the difference between the two. In the first, the right-hand side involves only , so the unknown function can be recovered by integrating directly. In the second, the unknown appears on the right as well, and a little more work is needed.
General and Particular Solutions
We know that every function that satisfies f'(x) = 3x^2 - 2x (or y' = 3x^2 - 2x) is of the form
This is called the general solution of the given differential equation.
The general solution of a differential equation involves an arbitrary constant (or constants).
If we know the value of for one value of , then we can determine a particular solution. For example, if we know , then we obtain
This is called a particular solution and the extra information is called an initial condition.
If this differential equation is written as y' = 3x^2 - 2x, it is common practice to write the given initial condition as . The initial condition specifies only one curve in the family of curves that passes through the point .
Initial-Value Problems
The problem of solving a differential equation subject to an initial condition is called an initial-value problem.
Therefore
y' = 3x^2 - 2x, \quad y(1) = 2is an initial-value problem.
An initial-value problem always has two parts, and both are needed: the differential equation narrows the answer down to a family of curves, and the initial condition selects one member of that family.
Separation of Variables
Recall that y' can be regarded as divided by . Therefore, the problem y' = 3x^2 - 2x is equivalent to
or
Now we can integrate each side:
We can combine and and simply write
where . This technique, called separation of variables, can help us solve some differential equations.
The Method Step by Step
Separation of Variables
- Separate. Rewrite the equation so that every sits with on one side and every sits with on the other.
- Integrate each side with respect to its own variable, and combine the two constants of integration into a single constant .
- Apply the initial condition to determine , which turns the general solution into the particular solution.
In words: because each side of the separated equation contains only one variable, each integral becomes an ordinary one-variable integral of the kind studied in the previous sections. The method only works when the equation can actually be split this way.
Worked Example: Finding a Curve from Its Slope
Determine the equation of a curve such that the slope of the tangent to the curve at any point is the negative ratio of the -value to the -value (the abscissa to the ordinate) and it passes through the point .
Solution
This is an initial-value problem which can be mathematically expressed as
Step 1: separate the variables. We can solve the differential equation by separation of variables. That is, we multiply both sides by , obtaining
Step 2: integrate each side. Integrating each side gives us
or
x^2 + y^2 = C, \tag{i}where . Equation (i) is the general solution of y' = -x/y. Several curves of the form are shown in the figure below.
Step 3: apply the initial condition. If we impose the initial condition that the curve must pass through the point or , we obtain
Hence, the particular solution satisfying the differential equation and the initial condition is the equation of the circle .

Exercises
Verify that each equation is a general solution of the differential equation beside it:
(a) for y\,y' = x
(b) for x\,y' = y
(c) Which member of the family in part (b) passes through ?
Answer
(a) Differentiating implicitly gives 2y\,y' = 2x, that is y\,y' = x.
(b) y' = C, so x\,y' = Cx = y.
(c)
Solution
To check that a family is a general solution, differentiate it and confirm that the arbitrary constant disappears, leaving exactly the given differential equation.
(a) Differentiate with respect to , treating as a function of : 2y\,\frac{dy}{dx} = 2x \quad\Longrightarrow\quad y\,y' = x.
The constant vanishes on differentiation, which is why a single family covers every solution.
(b) From we get y' = C. Substituting into the left side, x\,y' = x\cdot C = Cx = y,
so the equation is satisfied for every value of . Geometrically this family is all straight lines through the origin.
(c) Substituting , into : \begin{aligned} -6 &= 2C \\ C &= -3, \end{aligned}
so the particular solution is .
Solve each initial-value problem by direct integration:
(a) y' = 6x^{2}-4,
(b) ,
(c) ,
Answer
(a)
(b)
(c)
Solution
When the right-hand side involves alone, no separation is needed: integrate directly to get the general solution, then use the initial condition to pick out the particular solution.
(a) Integrating,
Imposing :
\begin{aligned} 2-4+C &= 2 \\ C &= 4, \end{aligned}so .
(b) Since ,
Because , the condition gives , so .
(c) Write the integrand as powers: . Then \begin{aligned} y &= \frac{x^{3/2}}{3/2}+\frac{x^{1/2}}{1/2}+C \\ &= \frac{2}{3}x^{3/2}+2\sqrt{x}+C. \end{aligned}
Imposing :
\begin{aligned} \frac{2}{3}+2+C &= 0 \\ C &= -\frac{8}{3}, \end{aligned}so .
Solve the initial-value problem
by separation of variables.
Answer
, that is .
Solution
Step 1: separate the variables. Multiply both sides by so that every sits with and every with :
Step 2: integrate each side. \begin{aligned} \int y^{2}\,dy &= \int x^{2}\,dx \\ \frac{y^{3}}{3}+C_1 &= \frac{x^{3}}{3}+C_2. \end{aligned}
Multiplying by and absorbing the two constants into one, , gives the general solution
Step 3: apply the initial condition. Substituting , :
Hence , or explicitly .
Check. Differentiating implicitly gives 3y^{2}y' = 3x^{2}, so y' = x^{2}/y^{2} as required, and .
Solve the initial-value problem
Answer
Solution
Step 1: separate. Divide by and multiply by :
Step 2: integrate. The left side is a power with exponent : \begin{aligned} \int y^{-2}\,dy &= \int 3x^{2}\,dx \\ -\frac{1}{y} &= x^{3}+C. \end{aligned}
Step 3: apply the initial condition. Substituting , :
Therefore , and solving for ,
Notice that this solution blows up as . A perfectly ordinary differential equation can have a solution that exists only on a limited interval, here , the interval containing the initial point .
Solve the initial-value problem
Answer
Solution
Step 1: separate. Here both variables appear, so send each to its own side:
Step 2: integrate. Both sides are of the logarithmic form :
Exponentiating, and writing ,
Allowing the constant to take either sign, the general solution is , the same family verified in Exercise 1(b).
Step 3: apply the initial condition. From ,
so .
Check. If then y' = -3, while . The two agree.
Determine the equation of the curve whose slope at any point is the negative ratio of the ordinate to the abscissa, and which passes through the point . Compare the family you obtain with the family of circles found in the worked example of this section.
Answer
, one member of the family of rectangular hyperbolas .
Solution
The ordinate is and the abscissa is , so "the negative ratio of the ordinate to the abscissa" is . The initial-value problem is
Step 1: separate and integrate. \begin{aligned} \frac{dy}{y} &= -\frac{dx}{x} \\ \ln|y| &= -\ln|x|+C_1 \\ \ln|y|+\ln|x| &= C_1. \end{aligned}
Using , this is , so
Step 2: apply the initial condition. Substituting ,
so the required curve is , or .
Comparison. In the worked example the slope was and the solutions were the circles . Here the slope is and the solutions are the rectangular hyperbolas . Exchanging the roles of and in the differential equation changes the family completely, which is a useful reminder that in the placement of each variable matters.
Two questions about the worked example, with :
(a) A student integrates both sides with respect to and writes . What went wrong?
(b) In the general solution , which values of give an actual curve? Given the initial condition, on what portion of the circle does the solution actually live?
Answer
(a) The right side contains the unknown , so cannot be evaluated as if were constant. The variables must be separated first.
(b) Only gives a circle; gives the single point at the origin and gives nothing real. The solution is the upper semicircle on .
Solution
(a) Writing treats as a constant while integrating, but is precisely the unknown function of that we are looking for. Pulling it out of the integral assumes the answer. This is exactly the situation that separation of variables is designed for: multiply through by first,
so that each side contains only one variable and each integral is a genuine one-variable integral. The correct general solution is , not .
(b) Since for all real and , the equation has real points only when . For it is a circle of radius centered at the origin, for it collapses to the single point , and for there are no points at all. So only produces a curve.
The initial condition gives , the circle of radius . But a solution of a differential equation must be a function, and the full circle fails the vertical line test. Moreover is undefined where , which rules out the two endpoints . Since the initial point has , the solution is the upper semicircle
Differentiating confirms it: y' = \dfrac{-x}{\sqrt{25-x^{2}}} = -\dfrac{x}{y}.