Skip to main content

Welcome to a Grasp lesson

Create a free account to keep studying and create your own study path.

Lesson 51

Solving Separable Differential Equations

Recommended resources

Introduction

In our last lesson, we established the crucial groundwork of classifying ordinary differential equations by their order and linearity. This process of identification is the first step in any analysis, telling us which tools from our mathematical toolbox are appropriate for the job. Now, we move from classifying equations to solving them.

Today, we will tackle the first and most fundamental type of ODE you'll encounter: first-order separable equations. You'll learn the systematic method for solving them, a process that leverages your past experience with integration from Calculus 2. We'll explore how to find both a general solution, which represents a whole family of functions, and a particular solution that meets a specific initial condition. Crucially, we will see how these equations arise when modeling physical phenomena relevant to chemical engineering, such as the change in concentration in a mixing tank.


What Makes an Equation "Separable"?

As the name suggests, a separable differential equation is one in which we can algebraically separate the dependent and independent variables, placing all terms involving the dependent variable on one side of the equation and all terms involving the independent variable on the other.

A first-order ODE is separable if it can be written in the form:

This means the derivative can be expressed as a product of a function of only and a function of only.

Once in this form, we can perform the "separation of variables." We treat the derivative as if it were a fraction (a common and powerful technique in applied mathematics) and rearrange the equation so that all terms are with and all terms are with .

As this image illustrates, the core idea is to algebraically rearrange the equation to group all \(x\) terms with the differential \(dx\) and all \(y\) terms with \(dy\).

The equation then takes the form . From here, the path to a solution opens up: we can integrate both sides.

For a concise and clear introduction to this concept, let's watch a short video.

Separable First-Order Differential Equations

This video from the channel Professor Dave Explains provides an excellent conceptual overview of what a separable differential equation is and how to perform the initial separation.

Watch the first minute of the video, from the beginning to the point where the equation is separated and ready for integration. Pay close attention to how he uses cross-multiplication to isolate the variables.


The Solution Process: From Separation to Solution

Solving a separable ODE follows a clear, step-by-step procedure. Let's outline it and then see it in action.

  1. Separate the variables: Rewrite the equation so that all and terms are on one side, and all and terms are on the other.
  2. Integrate both sides: Perform integration on each side of the equation independently. Remember to add a constant of integration, , to one side.
  3. Solve for y (if possible): Algebraically solve the resulting equation for the dependent variable to find the general solution. This solution will contain the constant and represents a family of functions that all satisfy the ODE.
  4. Apply initial conditions (if given): If the problem provides an initial condition (e.g., ), substitute these values into the general solution to solve for the constant . This yields the particular solution, which is the unique function that satisfies both the ODE and the initial condition.

This process is best understood through examples. The following video walks through several common cases you will encounter.

Separable First Order Differential Equations - Basic Introduction

This video from The Organic Chemistry Tutor provides clear, step-by-step solutions for typical separable ODEs. We'll focus on the first two examples.

First, watch the solution for \frac{dy}{dx} = \frac{x^2}{y^2} from the beginning. This is a straightforward example using the power rule for integration. Notice how the constant 3C is simplified to just C, as any arbitrary constant multiplied by another constant is still just an arbitrary constant. Next, watch the solution for y' = xy from the second example. This is a very important case, as it requires using natural logarithms and exponential functions, which frequently appear in models of growth, decay, and reaction kinetics. In both examples, pay attention to the distinction between the general solution (with C) and the particular solution (where C is found using an initial condition).


Implicit and Explicit Solutions

As you saw in the videos, our goal is often to find an explicit solution, where is given as a function of , like . However, sometimes it is difficult or impossible to algebraically isolate . In such cases, we are content with an implicit solution, an equation that relates and , such as . Both are valid solutions to the differential equation.

Let's now turn to a written resource that formalizes this process into a five-step strategy and provides more detailed examples.

8.3: Separable Differential Equations

This text from Mathematics LibreTexts provides a structured problem-solving strategy and detailed worked examples for both general and initial-value problems.

Start by reading the introductory paragraphs, from the definition of a separable equation to the five-step problem-solving strategy. Next, carefully work through Example \PageIndex{1}, from this example. Pay close attention to the handling of the constant of integration (C, C_1, C_2) as it's manipulated algebraically. Finally, study Example \PageIndex{2}, an initial-value problem. This example is more complex, requiring partial fraction decomposition for the integration—a technique from your Calculus 2 studies. Focus on Step 5, where the initial condition y(0)=-1 is used to find the specific value of the constant.


Application: Modeling a Mixing Tank

Now that we have the mechanics down, let's apply it to a problem that is central to chemical engineering: a mixing tank. These problems involve mass balances, where the rate of change of a substance in a system is equal to the rate it enters minus the rate it leaves. This is a perfect scenario for a differential equation.

Consider a tank containing a salt solution. A solution with a different concentration flows in, the tank is well-mixed, and the mixture flows out. We want to find a function that describes the amount of salt in the tank at any given time.

The rate of change of salt, , can be modeled by the equation:

This setup almost always leads to a first-order separable (or linear) ODE. Let's see how.

8.3: Separable Differential Equations

This section of the same LibreTexts article provides an excellent, detailed walkthrough of a classic mixing tank problem.

Read the subsection on Solution concentrations, focusing on Example \PageIndex{3}. Pay close attention to how the differential equation \frac{du}{dt} = 1 - \frac{u}{50} is derived from the physical description of the problem. Follow the steps as they solve this separable ODE to find the amount of salt u(t) as a function of time. This is a direct application of the skills you've just learned to a core engineering problem.

This example shows the power of differential equations. By modeling the physical rates, we derived an equation that, once solved, allows us to predict the state of the system at any point in the future.


Conclusion

In this lesson, we moved from identifying differential equations to actively solving them. We focused on first-order separable ODEs, a common and important class of equations. You learned the core technique of separating variables and integrating, a method that directly builds on your existing calculus skills.

Key Takeaways:

  • A separable ODE can be written in the form .
  • The solution method is to separate the variables, integrate both sides, and solve for the dependent variable.
  • Integrating introduces an arbitrary constant , leading to a general solution that represents a family of functions.
  • An initial condition allows us to find a specific value for , yielding a unique particular solution.
  • This method is not just a mathematical exercise; it's a tool for modeling real-world phenomena like the changing concentration in a mixing tank.

Not all first-order differential equations can be separated this neatly. In our next lesson, we will explore another powerful technique for a different class of equations: solving first-order linear ODEs using an integrating factor. This will expand our ability to model even more complex systems.