📚

 > 

♾️ 

 > 

💎

7.6 Finding General Solutions Using Separation of Variables

3 min readjune 18, 2024

7.6 Finding General Solutions Using Separation of Variables

Welcome back to AP Calculus with Fiveable! This topic focuses on separation of variables in differential equations. We’ve worked through modeling differential equations with slope fields and verifying solutions, so lets take the final step and learn how to find the solution to a differential equation. 🙌


🎯 Solving Differential Equations

The solution to a differential equation is any continuous function that satisfies the differential equation. This solution set can include many equations! We learned how to go from solutions to equations in a previous lesson. To brush up on verifying solutions, check out this Fiveable guide: Verifying Solutions to Differential Equations.

But how can we go from an equation to a solution? Many differential equations, such as 2xy+y=3x22xy' + y = 3x^2 are in fact difficult to solve complex, and are out of the scope of this course. You’ll likely encounter them again in college! But we can solve other types of differential equations: separable differential equations.


👐 Separable Differential Equations

Separable differential equations are first-order differential equations characterized by having two variables, the independent and dependent variables, that can be integrated separately to give a solution to the differential equation.

They are usually written in the form dydx=g(x)h(y)\frac{dy}{dx}​=g(x)h(y), where g(x)g(x) is a function of xx and h(y)h(y) is a function of yy.

🪜 The general approach to solving a separable differential equation involves integrating both sides of the equation to eliminate the derivative. Here are the steps:

  1. 👐 Separate Variables: Express the equation in the form dydx=g(x)h(y)\frac{dy}{dx}​=g(x)h(y)
  2. 📏 Integrate: Move terms involving yy to one side and terms involving xx to the other side. Integrate both sides with respect to their respective variables. Don’t forget the constant of integration!
  3. ✏️ Solve for y: If needed, solve the equation for yy explicitly.
  4. 🧠 Include Initial Conditions (if given): If initial conditions are provided, use them to determine any constants of integration.

We won’t be tackling this last step in this key topic, 7.6, so check out the next guide to get some practice for this level: Finding Particular Solutions Using Initial Conditions.


📝 Practice Problems

Let’s do some practice with solving differential equations and finding general solutions, or sets of families of functions that satisfy the conditions specified by the equation.

Practice Problem #1

dydx=2xy\frac{dy}{dx} = \frac{2x}{y}

To solve the differential equation dydx=2xy\frac{dy}{dx} = \frac{2x}{y} , we'll use separation of variables. Buckle up! 🚘

We start by separating the variables:

ydy=2xdxy \, dy = 2x \, dx

Now, we can integrate both sides:

ydy=2xdx\int y \, dy = \int 2x \, dx

After integrating, we get the following equation, where CC is the constant of integration.

12y2=x2+C \frac{1}{2}y^2 = x^2 + C

Our next step is to explicitly solve for yy:

y2=2x2+2Cy^2 = 2x^2 + 2C
y=±2x2+2Cy = \pm \sqrt{2x^2 + 2C}

Therefore, the general solution to the differential equation dydx=2xy\frac{dy}{dx} = \frac{2x}{y} is

y=±2x2+2Cy = \pm \sqrt{2x^2 + 2C}

The constant CC can be determined later if an initial condition is provided, which will be covered in the next guide: Finding Particular Solutions Using Initial Conditions.

Practice Problem #2

dydx+xy=y2\frac{dy}{dx} + xy = y^2

We can start by moving the term xyxy to the right side of the equation. That gives us:

dydx=y2xy\frac{dy}{dx} = y^2 - xy

However, we cannot separate this differential equation! There is no way to solve this one using the methods we just learned. Nice try, let's move on to the next question! 🙌

Practice Problem #3

dydx=x2y\frac{dy}{dx} = x^2y

To solve the differential equation dydx=x2y\frac{dy}{dx} = x^2y we can use the method of separation of variables. The idea is to rearrange the equation so that all terms involving dydy and yy are on one side, and all terms involving dxdx and xx are on the other side. Let’s get to work!

To begin to solve this differential equation, we use the algebra to separate our variables:

dyy=x2dx\frac{dy}{y} = x^2 \,dx

Then we can integrate both sides:

1ydy=x2dx\int \frac{1}{y} \,dy = \int x^2 \,dx

This gives us:

lny=13x3+C\ln|y| = \frac{1}{3}x^3 + C

Next, we need to solve for yy.

y=e13x3+C=eCe13x3|y| = e^{\frac{1}{3}x^3 + C} = e^{C}\cdot e^{\frac{1}{3}x^3}

Since eC\,e^C is just another constant, we can rewrite the term as just CC to get:

y=Ce13x3|y| = Ce^{\frac{1}{3}x^3}

Considering the absolute value, we now have two solutions where CC is an arbitrary constant.

y=Ce13x3ory=Ce13x3y = Ce^{\frac{1}{3}x^3} \quad \text{or} \quad y = -Ce^{\frac{1}{3}x^3}

These two are the general solutions to the given differential equation. The constant CC can be determined afterward with an initial condition to give a specific answer.

Therefore, the solution to the differential equation dydx=x2y\frac{dy}{dx} = x^2y is:

y=±Ce13x3y = \pm \,Ce^{\frac{1}{3}x^3}

Amazing work! This is actually an exponential function, which is recognizable by the fact that the derivative is based on the dependent variable, just like exe^x.


🌟 Closing

Congratulations! You've made a great start to tackling separable differential equations. These equations often model various real-world scenarios, making them a powerful tool in calculus. You can expect to see these types problems on the AP Calculus exam in both the Free Response and Multiple Choice sections.

Now, go tackle those practice problems to solidify your knowledge. Happy studying! 🎉

image.gif

Image Courtesy of Giphy

<< Hide Menu

📚

 > 

♾️ 

 > 

💎

7.6 Finding General Solutions Using Separation of Variables

3 min readjune 18, 2024

7.6 Finding General Solutions Using Separation of Variables

Welcome back to AP Calculus with Fiveable! This topic focuses on separation of variables in differential equations. We’ve worked through modeling differential equations with slope fields and verifying solutions, so lets take the final step and learn how to find the solution to a differential equation. 🙌


🎯 Solving Differential Equations

The solution to a differential equation is any continuous function that satisfies the differential equation. This solution set can include many equations! We learned how to go from solutions to equations in a previous lesson. To brush up on verifying solutions, check out this Fiveable guide: Verifying Solutions to Differential Equations.

But how can we go from an equation to a solution? Many differential equations, such as 2xy+y=3x22xy' + y = 3x^2 are in fact difficult to solve complex, and are out of the scope of this course. You’ll likely encounter them again in college! But we can solve other types of differential equations: separable differential equations.


👐 Separable Differential Equations

Separable differential equations are first-order differential equations characterized by having two variables, the independent and dependent variables, that can be integrated separately to give a solution to the differential equation.

They are usually written in the form dydx=g(x)h(y)\frac{dy}{dx}​=g(x)h(y), where g(x)g(x) is a function of xx and h(y)h(y) is a function of yy.

🪜 The general approach to solving a separable differential equation involves integrating both sides of the equation to eliminate the derivative. Here are the steps:

  1. 👐 Separate Variables: Express the equation in the form dydx=g(x)h(y)\frac{dy}{dx}​=g(x)h(y)
  2. 📏 Integrate: Move terms involving yy to one side and terms involving xx to the other side. Integrate both sides with respect to their respective variables. Don’t forget the constant of integration!
  3. ✏️ Solve for y: If needed, solve the equation for yy explicitly.
  4. 🧠 Include Initial Conditions (if given): If initial conditions are provided, use them to determine any constants of integration.

We won’t be tackling this last step in this key topic, 7.6, so check out the next guide to get some practice for this level: Finding Particular Solutions Using Initial Conditions.


📝 Practice Problems

Let’s do some practice with solving differential equations and finding general solutions, or sets of families of functions that satisfy the conditions specified by the equation.

Practice Problem #1

dydx=2xy\frac{dy}{dx} = \frac{2x}{y}

To solve the differential equation dydx=2xy\frac{dy}{dx} = \frac{2x}{y} , we'll use separation of variables. Buckle up! 🚘

We start by separating the variables:

ydy=2xdxy \, dy = 2x \, dx

Now, we can integrate both sides:

ydy=2xdx\int y \, dy = \int 2x \, dx

After integrating, we get the following equation, where CC is the constant of integration.

12y2=x2+C \frac{1}{2}y^2 = x^2 + C

Our next step is to explicitly solve for yy:

y2=2x2+2Cy^2 = 2x^2 + 2C
y=±2x2+2Cy = \pm \sqrt{2x^2 + 2C}

Therefore, the general solution to the differential equation dydx=2xy\frac{dy}{dx} = \frac{2x}{y} is

y=±2x2+2Cy = \pm \sqrt{2x^2 + 2C}

The constant CC can be determined later if an initial condition is provided, which will be covered in the next guide: Finding Particular Solutions Using Initial Conditions.

Practice Problem #2

dydx+xy=y2\frac{dy}{dx} + xy = y^2

We can start by moving the term xyxy to the right side of the equation. That gives us:

dydx=y2xy\frac{dy}{dx} = y^2 - xy

However, we cannot separate this differential equation! There is no way to solve this one using the methods we just learned. Nice try, let's move on to the next question! 🙌

Practice Problem #3

dydx=x2y\frac{dy}{dx} = x^2y

To solve the differential equation dydx=x2y\frac{dy}{dx} = x^2y we can use the method of separation of variables. The idea is to rearrange the equation so that all terms involving dydy and yy are on one side, and all terms involving dxdx and xx are on the other side. Let’s get to work!

To begin to solve this differential equation, we use the algebra to separate our variables:

dyy=x2dx\frac{dy}{y} = x^2 \,dx

Then we can integrate both sides:

1ydy=x2dx\int \frac{1}{y} \,dy = \int x^2 \,dx

This gives us:

lny=13x3+C\ln|y| = \frac{1}{3}x^3 + C

Next, we need to solve for yy.

y=e13x3+C=eCe13x3|y| = e^{\frac{1}{3}x^3 + C} = e^{C}\cdot e^{\frac{1}{3}x^3}

Since eC\,e^C is just another constant, we can rewrite the term as just CC to get:

y=Ce13x3|y| = Ce^{\frac{1}{3}x^3}

Considering the absolute value, we now have two solutions where CC is an arbitrary constant.

y=Ce13x3ory=Ce13x3y = Ce^{\frac{1}{3}x^3} \quad \text{or} \quad y = -Ce^{\frac{1}{3}x^3}

These two are the general solutions to the given differential equation. The constant CC can be determined afterward with an initial condition to give a specific answer.

Therefore, the solution to the differential equation dydx=x2y\frac{dy}{dx} = x^2y is:

y=±Ce13x3y = \pm \,Ce^{\frac{1}{3}x^3}

Amazing work! This is actually an exponential function, which is recognizable by the fact that the derivative is based on the dependent variable, just like exe^x.


🌟 Closing

Congratulations! You've made a great start to tackling separable differential equations. These equations often model various real-world scenarios, making them a powerful tool in calculus. You can expect to see these types problems on the AP Calculus exam in both the Free Response and Multiple Choice sections.

Now, go tackle those practice problems to solidify your knowledge. Happy studying! 🎉

image.gif

Image Courtesy of Giphy