Solving Differential Equations: Variable Separable Form
First-Order, First-Degree Differential Equations
In this section, we begin solving differential equations. We will focus specifically on first-order, first-degree differential equations. These are equations where the highest derivative is dxdy and its power is 1.
The general form of such an equation can be written as:
dxdy=F(x,y)
There is no single universal method to solve all first-order, first-degree equations. Instead, we classify them into different types and use specific techniques for each. The simplest and most fundamental of these types is the Variable Separable form.
The Variable Separable Method
A differential equation dxdy=F(x,y) is said to be in variable separable form if the function F(x,y) can be expressed as a product of two distinct functions, one solely of x and the other solely of y.
Mathematically, it looks like this:
dxdy=f(x)⋅g(y)
The Working Algorithm
Separate: Algebraically rearrange the equation so that all terms containing y (including dy) are on one side of the equation, and all terms containing x (including dx) are on the other side.
g(y)1dy=f(x)dx
If we write h(y)=g(y)1, then this becomes
h(y)dy=f(x)dx
Integrate: Apply the integral sign to both sides of the separated equation.
∫h(y)dy=∫f(x)dx
Add the Constant: Evaluate the integrals and include the constant of integration.
H(y)=G(x)+C
This resulting relation is the general solution of the differential equation.
Handling the Constant of Integration
When you integrate both sides, technically you get two constants: H(y)+C1=G(x)+C2. These are combined into a single arbitrary constant C=C2−C1.
Pro-Tip for Simplification
The constant C is arbitrary, so we are free to rewrite it in a more convenient form.
If logarithms appear on both sides, for example ln∣y∣=ln∣x∣+C, it is often better to write C=ln∣C1∣.
Then,
ln∣y∣−ln∣x∣=ln∣C1∣lnxy=ln∣C1∣xy=C1
so the final form becomes
y=Cx
which is simpler and cleaner.
Example 1: Basic Variable Separation
Find the general solution of the differential equation: dxdy=yx.
Solution:
Step 1: Separate the variables.
Multiply both sides by y and by dx:
ydy=xdx
Step 2: Integrate both sides.
∫ydy=∫xdx
Step 3: Evaluate the integrals.
2y2=2x2+C1
Step 4: Simplify.
Multiply throughout by 2:
y2=x2+2C1
Let 2C1=C. Then,
y2−x2=C
Answer:y2−x2=C
Example 2: Separation involving Exponentials
Solve the differential equation: dxdy=ex−y.
Solution:
Step 1: Rewrite the right side using exponent laws.
dxdy=exe−y
Step 2: Separate the variables.
Multiply both sides by ey and by dx:
eydy=exdx
Step 3: Integrate both sides.
∫eydy=∫exdx
Step 4: Evaluate the integrals.
ey=ex+C
Answer:ey=ex+C
Example 3: Finding a Particular Solution
Find the particular solution of the differential equation dxdy=−4xy2, given that y=1 when x=0.
Solution:
Step 1: Separate the variables.
y2dy=−4xdxy−2dy=−4xdx
Step 2: Integrate both sides.
∫y−2dy=−4∫xdx−1y−1=−4(2x2)+C−y1=−2x2+C
This is the general solution.
Example 8: Equation Reducible to Variable Separable (Substitution)
Solve: dxdy=(x+y)2.
Solution:
Step 1: This is not directly separable, so use the substitution
v=x+y
Step 2: Differentiate with respect to x.
dxdv=1+dxdy
Hence,
dxdy=dxdv−1
Step 3: Substitute into the original equation.
dxdv−1=v2dxdv=v2+1
Step 4: Separate variables.
1+v2dv=dx
Step 5: Integrate both sides.
∫1+v2dv=∫dxtan−1v=x+C
Step 6: Replace v by x+y.
tan−1(x+y)=x+C
Answer:tan−1(x+y)=x+C
Example 9: Application (Population Growth)
In a certain culture, the bacteria count is 100,000. The number increases by 10% in 2 hours. Assuming the rate of growth is proportional to the number present, formulate the differential equation and solve it.
Solution:
Step 1: Let P be the population at time t.
Given that rate of growth is proportional to population,
dtdP=kP
where k is a constant.
Step 2: Separate the variables.
PdP=kdt
Step 3: Integrate both sides.
∫P1dP=∫kdtlnP=kt+C
Since population is positive, we may write directly
P=ekt+C=eCekt=P0ekt
where P0 is a positive constant.
Step 4: Use the initial condition P(0)=100000.
100000=P0e0P0=100000
So,
P(t)=100000ekt
Step 5: Use the second condition: after 2 hours, population becomes 110000.
110000=100000e2k1.1=e2k
Taking logarithm,
2k=ln(1.1)k=21ln(1.1)