← Back to Math 055

2.2 Separable Equations: Class Notes

2.2a

Definition

A differential equation (DE) is an equation containing the derivatives of one or more unknown functions (dependent variables) with respect to one or more independent variables.

Examples: dydx+5y=ex, y″−y′+6y=0, and dxdt+dydt=2x+y are ordinary differential equations (ODEs); ∂2u∂x2+∂2u∂y2=0 is an example of a partial differential equation (PDE). In this course, we will only work with ODEs.

In the first example, x is the independent variable and y is the dependent variable.

Definition

The order of a DE is the order of the highest derivative in the equation.

Definition

A first-order separable DE has the form dydx=g(x)h(y).

To solve, we separate variables and integrate. Dividing by h(y) gives

1h(y)dy=g(x)dxorp(y)dy=g(x)dx,

where p(y)=1h(y). Then integrate both sides:

∫p(y)dy=∫g(x)dx

Example

Solve the given differential equation by separation of variables.

dy−(y−1)2dx=0

Note: This is a nonlinear DE because the equation contains a nonlinear function of y (the dependent variable).

Solution

Move the dx term to the right side, separate the variables, and integrate:

dy=(y−1)2dx∫(y−1)−2dy=∫dx−1y−1=x+C1

Tip: We only need one constant of integration: constants from both sides combine into one.

Multiply both sides by −1 and rename the constant C=−C1:

1y−1=−x−C1=C−xy−1=1C−x

Answer: y=1+1C−x

This is a one-parameter family of solutions: each value of C gives one solution.

Tip: Dividing by (y−1)2 assumed y≠1. But y=1 is also a solution (then dy=0 and both terms are zero), and it is not in the family for any value of C. This is a singular solution.

Definition

Any function ϕ, defined on an interval I and possessing at least n derivatives that are continuous on I, which when substituted into an nth-order ODE reduces the equation to an identity, is said to be a solution of the equation on the interval.

2.2b

Example

sin⁡3xdx+2ycos3⁡3xdy=0

Solution

Separate the variables (the form is dydx=g(x)h(y)) and integrate:

∫2ydy=∫−sin⁡3xcos3⁡3xdx

For the right side, substitute u=cos⁡3x, so du=−3sin⁡3xdx:

∫−sin⁡3xcos3⁡3xdx=13∫u−3du=−16u−2+C

y2=−16cos−2⁡3x+C

Answer: y2=−16sec2⁡3x+C

Example

dNdt+N=Ntet+2

Note: This is a linear DE because all instances of N (the dependent variable) are linear.

Solution

Solve for dNdt and factor out N to see that the equation is separable:

dNdt=Ntet+2−N=N(tet+2−1)dNN=(tet+2−1)dt

Integrate. For ∫tet+2dt, use integration by parts with u=t, dv=et+2dt, du=dt, v=et+2:

ln⁡|N|=tet+2−et+2−t+C1

Exponentiate both sides (raise e to each side):

|N|=eC1e(t−1)et+2−t

Tip: This uses ex+y=exey: the constant C1 in the exponent becomes the factor eC1.

Drop the absolute value by letting C=±eC1:

Answer: N(t)=Ce(t−1)et+2−t

2.2c

Definition

Information such as y(x0)=y0 is called an initial condition. A DE, together with an initial condition is called an initial-value problem (IVP).

Example

Find an explicit solution of the given initial-value problem. Determine the exact interval I of definition by analytical methods. Use a graphing utility to plot the graph of the function.

(2y−2)dydx=3x2+4x+2,y(1)=−2

Solution

An explicit solution means we isolate y. Separate and integrate:

∫2(y−1)dy=∫(3x2+4x+2)dx(y−1)2=x3+2x2+2x+C

Tip: Integrating 2y−2 term by term gives y2−2y instead. Adding 1 to both sides completes the square: y2−2y+1=x3+2x2+2x+C+1, which is the same equation once the constants are combined.

Use the initial condition: when x=1, y=−2:

(−2−1)2=1+2+2+C⇒9=5+C⇒C=4

(y−1)2=x3+2x2+2x+4y−1=±x3+2x2+2x+4y=1±x3+2x2+2x+4

Choose the sign that matches the initial condition: y(1)=−2<1, so we need the minus sign (1−9=−2).

Answer: y=1−x3+2x2+2x+4

Interval: the derivative must be defined. Since dydx=3x2+4x+22(y−1) and y−1=−x3+2x2+2x+4, we need the expression under the root to be strictly positive, not just nonnegative:

x3+2x2+2x+4>0x2(x+2)+2(x+2)>0(x2+2)(x+2)>0

Since x2+2 is always positive, this holds exactly when x+2>0, that is, x>−2.

Answer: I=(−2,∞)

Graph of y = 1 minus the square root of (x cubed + 2x squared + 2x + 4) for x greater than minus 2

Graph of y=1−x3+2x2+2x+4 on (−2,∞). The curve starts at an open circle at (−2,1) with a vertical tangent, crosses the y-axis at y=−1, passes through the initial point (1,−2), and decreases ever more steeply to the right (y is about −6.4 at x=3).

Theorem: Existence of a Unique Solution

Consider the first-order initial-value problem

Solve dydx=f(x,y), subject to y(x0)=y0

Let R be a rectangular region in the xy-plane defined by a≤x≤b, c≤y≤d that contains the point (x0,y0) in its interior. If f(x,y) and ∂f∂y are continuous on R, then there exists some interval I0: (x0−h,x0+h), h>0, contained in [a,b], and a unique function y(x), defined on I0, that is a solution of the initial-value problem.

Rectangle R containing the point (x0, y0), with a solution curve defined on the interval from x0 minus h to x0 plus h

A rectangle R with a≤x≤b and c≤y≤d contains the point (x0,y0) in its interior. A solution curve passes through (x0,y0). On the x-axis, the interval (x0−h,x0+h) is marked inside [a,b].

We will consider higher-order DEs later in the course.

Example

Find an explicit solution of the given initial-value problem. Give the solution using a definite integral.

dydx=y2sin⁡x2,y(−2)=13

Solution

Separate the variables:

∫y−2dy=∫sin⁡x2dx

The integral on the right has no elementary antiderivative (just like ∫e−x2dx), so instead we create definite integrals, starting at the initial x-value −2:

∫−2xy−2dy=∫−2xsin⁡t2dt

Tip: t is a dummy variable: the letter x is already used as the upper limit of integration.

−1y(t)|−2x=∫−2xsin⁡t2dt−1y(x)+1y(−2)=∫−2xsin⁡t2dt−1y(x)+3=∫−2xsin⁡t2dt

Here 1y(−2)=11/3=3. Solve for y(x):

Answer: y(x)=(3−∫−2xsin⁡t2dt)−1