Skip to main content
Logo image

Section 3.2 Solutions by Direct Integration

As seen in the previous example, if a differential equation can be written in the form:
ddx[y]=f(x),
then the solution can be found by integrating both sides. This principle extends to more complex equations of the form:
ddx[g(x,y)]=f(x).
Here, f(x) is a placeholder that indicates that only x variables can appear on the right-hand side of this equation. Similarly, g(x,y) indicates that only x or y variables can appear inside the derivative.
This leads us to our first method for solving first-order differential equations—direct integration.

Method 1. Direct Integration.

The general solution of a differential equation in the form
(13)ddx[g(x,y)]=f(x),
can be determined by integrating both sides with respect to x.
Consider the following examples to see how the same approach applies to these more interesting problems.

Example 3.

  
ddx[5xy]=1x2,y(1)=4.
Solution. Solution
To solve for y, we need to eliminate the derivative by integrating both sides as before.
ddx[5xy] dx=x2 dx5xy+c1=x1+c2y=15x(1x+c2c1= c)y=15x(1x+c)
Finally, we use the condition, y(1)=4, to find the particular solution.
4=15(1+c)20=1+cc=19
Therefore, the particular solution is y=15x(1x19).

Example 4.

  
ddx[ysin(2x)]=cosx
Solution. Solution
To solve the differential equation
ddx[ysin(2x)]=cosx,
we integrate both sides with respect to x to get
ddx[ysin(2x)]dx=cosx dxysin(2x)+c1=sinx+c2
Finally, we isolate y and combine constants.
ysin(2x)=sinx+c2c1= cy=sinx+csin(2x)

Reading Questions Check-Point Questions

1. Solving a differential equation by direct integration involves computing a derivative.

    Solving a differential equation by direct integration involves computing a derivative.
  • True
  • Incorrect, direct integration involves integrating both sides of the equation.
  • False
  • Correct! Direct integration involves integrating both sides of the equation.

2. Direct integration could be used to solve the equation ddx[y2+x3]=x.

    Direct integration could be used to solve the equation
    ddx[y2+x3]=x.
  • True
  • Correct!
  • False
  • Incorrect. This equation is in the form (13).

3. Why shouldn’t direct integration be applied to ddx[xy2]=sin(x+y).

    Why shouldn’t direct integration be applied to the equation
    ddx[xy2]=sin(x+y).
  • The equation is not linear.
  • Incorrect, direct integration can handle this.
  • The y term is squared.
  • Incorrect, direct integration can handle this.
  • The y term cannot be in the denominator.
  • Incorrect, direct integration can handle this.
  • The right-hand side contains y.
  • Correct! Direct integration only works when the right-hand side contains only x.

4. In the equation ddx[5xy]=1x2, what is the first step in solving for y?

    In the differential equation
    ddx[5xy]=1x2,
    what is the first step in solving for y?
  • Integrate both sides with respect to x.
  • Correct! Integrating both sides is the first step in solving for y.
  • Differentiate both sides with respect to x.
  • Incorrect. Differentiating would not help solve the equation; integration is the correct approach.
  • Factor the expression 5xy.
  • Incorrect. Factoring is not necessary here; integration is the correct step.
  • Substitute a new variable for 5xy.
  • Incorrect. Substitution is not needed; direct integration is the correct step.

5. Solve  y=e2x5x  using direct integration.

Complete each step below to solve the differential equation
y=e2x4x.
  1. The dependent variable is ,
    The independent variable is ,
  2. Give the general solution. Don’t forget the constant of integration.
    y(x)=
You have attempted 1 of 6 activities on this page.