Skip to main content
Logo image

Section 4.4 Additional Examples

The following problems go beyond the basics and require more advanced algebraic manipulations or integration techniques to solve. Each example will deepen your understanding of the separation of variables method (SOV) and its application to more complex differential equations.

Example 10.

Solve the differential equations using the SOV method. A.  dydx=cosxy
Solution 1. Solution
The equation is separable since it can be written as:
dydx=(cosx)(1y).
Now we apply the separation of variables method.
Step 1: Separatey dy=cos(x) dxStep 2: Integratey dy=cos(x) dxStep 3: Isolatey22+c1=sin(x)+c2y2=2sin(x)+2cy=±2sin(x)+c
y dy= cos(x) dxy dy= cos(x) dxy22+c1= sin(x)+c2y22= sin(x)+c2c1cy2= 2sin(x)+2cy(x)= ±2sin(x)+c.
B.  y2y1=6x2
Solution 2. Solution
This differential equation is separable as it can be written as:
y2y1= 6x2y= 6x2+1y2dydx= (6x2+1)(1y2)
Therefore, we can apply the separation of variables method.
Step 1: Separatey dy=cos(x) dxStep 2: Integratey dy=cos(x) dxStep 3: Isolatey22+c1=sin(x)+c2y2=2sin(x)+2cy=±2sin(x)+c
y2 dy= (6x2+1) dxy2 dy= (6x2+1) dxy33+c1= 2x3+x+c2y33= 2x3+x+c2c1cy3= 6x3+3x+3cy= 6x3+3x+c3.

Note 11. Common Pitfall: Don’t Split Square Roots!

In the first example, we found the general solution to
dydx=cosxy
as y(x)=±2sin(x)+c. Some students are tempted to simplify this incorrectly, like so:
y(x)= ±2sin(x)+cy(x)= ±2sin(x)+cErrory(x)= ±2sin(x)+cIncorrect
The constant c must remain inside the square root, as this separation over addition or subtraction violates the square root’s mathematical properties.
The following problems introduce initial conditions, allowing you to solve for specific solutions using the SOV method.

Example 12.

Solve the initial-value problems using the SOV method. A.  dydx=cosxy,y(0)=5
Solution 1. Solution
From previous example, the general solution is
y(x)=±2sin(x)+c.
where the ± sign means that the general solution includes both the positive and negative square roots. However, when finding a particular solution, only one applies. In this case, the initial condition y(0)=5 indicates that y is negative when x=0. Therefore, the particular solution must come from the form containing the negative sign. Substituting the initial condition:
5=2sin(0)+c=0+c=c5=cc=25
Therefore, the solution to the initial-value problem is:
y(x)=2sin(x)+25
B.  z1=z2,z(4)=9
Solution 2. Solution
This differential equation is first order and separable since
z1= z2z= z2+1z= (1)(z2+1)
Therefore, we can apply the separation of variables method.
Separate1z2Integrate1z2IsolatearctanzarctanzGeneral Solutionc2c1c
1z2+1dz= 1dt1z2+1 dz= 1 dtarctanz+c1= t+c2arctanz= t+c2c1cz= tan(t+c).
Substituting, z(4)=9, into the general solution, we get
9=tan(4+c)arctan(9)=4+cc=arctan(9)4
Therefore, the solution to the intial-valued problem is
z=tan(t+arctan(9)4)
In the previous examples, we were able to explicitly solve for the dependent variable in terms of the independent variable. However, in some cases, we may only be able to provide an implicit solution, as shown in the next example.

Example 13.

Solve the initial-value problem using the SOV method.
QQ+eQQ=t,Q(0)=0
Solution. Solution
Since all the Q terms are on the left and all the t terms are on the right, we can just factor out Q on the left to separate the equation.
Separate(Q+eQ)Integrate(Q+eQ)Isolate12
(Q+eQ)dQ= tdt(Q+eQ)dQ= tdt12Q2+eQ= 12t2+c1Q2+2eQ= t2+2c1c
So, the general solution is
Q2+2eQ=t2+c.
Note that there is no nice way to find Q explicitly. In these cases, it is ok to leave the general solution in this implicit form. We can still find c using initial condition. Recall, that Q(0)=0 means that when t=0, Q=0. Substituting these values in, we get
02+2e0=02+c2=c
Therefore, the solution to the initial-valued problem is
Q2+2eQ=t2+2.
The final example highlights some of the subtle details of combining constants and dealing with absolute values that arise when solving differential equations.

Example 14.

Solve the differential equation using the SOV method.
xdydx+10x2y=6x2
Solution. Solution
This differential equation is first order and separable since
xdydx+10x2y= 6x2dydx= 6x2x(6x210x2y)dydx= 6x10xy=(2x)(35y)
Therefore, we can apply the separation of variables method.
135ydyu=35y,du=5dx  15ln|5y|ye5ye5c2=±e5c1±e5c1  
135ydy= 2x dx135ydy= 2x dx15ln|35y|= x2+c1ln|35y|= 5x25c1|35y|= e5x25c135y= ±e5x25c135y= ±e5c1e5x25y= c2e5x2+3y= c25ce5x2+35.
Finally, the general solution is
y=ce5x2+35
These examples demonstrate a range of techniques and complexities involved in solving separable differential equations. Depending on the form of the equation, the solution might be explicit or implicit, but the method of separation of variables remains a powerful tool for finding solutions to many types of differential equations.

Reading Questions Check-Point Questions

1. What is the first step to solve y2y1=6x2, using the separation of variables method?

    In the equation y2y1=6x2, what is the first step to solve it using the separation of variables method?
  • Integrate both sides.
  • Incorrect. You need to separate the variables before integrating.
  • Isolate y, if possible.
  • Incorrect. You should first separate the variables.
  • Divide both sides by y2
  • Incorrect. You should first separate the variables.
  • Show it is separable.
  • Correct! This rearrangement allows us to apply separation of variables.

2. Which of the following are valid ways to combine constants in a differential equation?

    Which of the following are valid ways to combine constants in a differential equation? Select ALL that apply.
  • y22y=e2x+c1  y=c2e2x  where  c2=ec1
  • Correct!
  • y22=sin(x)+c1  y2=2sin(x)+c2  where  c2=2c1
  • Correct!
  • y22y=2sin(x)+c1  y=2sin(x)+c2  where  c2=c1
  • Incorrect. A+BA+B
  • y22y=ln(3y+c1)  y=ln(3y)+c2  where  c2=ln(c1)
  • Incorrect. ln(A+B)ln(A)+ln(B)
  • y22y=c1e3x  y=c2(e3x)2  where  c2=c12
  • Correct!

3. Solve  dydxycos(x)=y  using separation of variables.

Complete each step below to solve the differential equation
dydxycos(x)=y.
Verify that the differential equation is separable.
order:
.
separable form: dydx= () ()
f(x) g(y)
Separate and integrate. Give the integrals and antiderivatives.
dy = dx
+c1 = +c2
Don’t forget the absolute value on the left antiderivative.
Isolate. Give the general solution. Use c for the combined constant.
y(x)=
You have attempted 1 of 4 activities on this page.