Video Transcript
Solve the differential equation d𝑦 by d𝑥 plus three 𝑥 squared 𝑦 equals six 𝑥 squared.
This is a separable differential equation. This is so called because the function 𝑓 of 𝑥 and 𝑦 can be factored into the product of two functions of 𝑥 and 𝑦, that is, 𝑔 of 𝑥 times ℎ of 𝑦, where 𝑔 of 𝑥 and ℎ of 𝑦 are continuous functions. Now, it doesn’t quite look like it’s in that form at the moment, so let’s rearrange a little. We begin by subtracting three 𝑥 squared 𝑦 from both sides. And we get the equation d𝑦 by d𝑥 equals six 𝑥 squared minus three 𝑥 squared 𝑦. We want it to be of this form, some function of 𝑥 times some function of 𝑦.
So we factor the right-hand side. The highest common factor of each term is three 𝑥 squared. And therefore, we get the equation d𝑦 by d𝑥 equals three 𝑥 squared times two minus 𝑦. And then this next step is a little bit strange. We consider our derivative as the ratio of two differentials, d𝑦 and d𝑥. We then move the d𝑥 to the right-hand side and divide both sides of our equation by two minus 𝑦. And we get one over two minus 𝑦 d𝑦 equals three 𝑥 squared d𝑥.
Our next step is to integrate both sides of our equation with respect to their individual variables. So we’re going to integrate one over two minus 𝑦 with respect to 𝑦 and three 𝑥 squared with respect to 𝑥. Now, the integral of three 𝑥 squared is fairly straightforward. We add one to the exponent and then divide by that new value. So we get three 𝑥 cubed over three plus some constant of integration 𝐴.
But how do we integrate one over two minus 𝑦 with respect to 𝑦? Well, we introduce a new variable; it’s 𝑢. We let 𝑢 be equal to two minus 𝑦. Then we know that differentiating 𝑢 with respect to 𝑦 gives us negative one. d𝑢 by d𝑦 isn’t a fraction, but we treat it a little like one. And we rearrange to write negative d𝑢 equals d𝑦. And then the integral of one over two minus 𝑦 with respect to 𝑦 becomes the integral of one over 𝑢 negative d𝑢 or simply the integral of negative one over 𝑢 with respect to 𝑢.
Now, the integral of one over 𝑢 is the natural log of 𝑢. So we get the negative natural log of 𝑢 plus some constant of integration 𝐶. And in fact, it’s really the absolute value of this 𝑢. So we replace 𝑢 with two minus 𝑦. And we see that the negative natural log of the absolute value of two minus 𝑦 plus some constant of integration 𝐵 must be equal to three 𝑥 cubed over three plus 𝐴. And then that right-hand side simplifies to 𝑥 cubed plus 𝐴.
Next, we multiply through by negative one and combine our constants. And we find that the natural log of the absolute value of two minus 𝑦 is equal to negative 𝑥 cubed plus 𝐶. We really want to make 𝑦 the subject. So we’re going to raise both sides of our equation as a power of 𝑒. 𝑒 to the power of the natural log of the absolute value of two minus 𝑦 is the absolute value of two minus 𝑦. And on the right-hand side, we have 𝑒 to the power of negative 𝑥 cubed plus 𝐶.
Now, in fact, 𝑒 to the power of negative 𝑥 cubed plus 𝐶 can’t be negative. So we really don’t need these absolute value signs. And we can write 𝑒 to the power of negative 𝑥 cubed plus 𝐶 as 𝑒 to the power of 𝑥 cubed times 𝑒 to the power of 𝐶, which is a new constant 𝐶 one. By multiplying through again by negative one and then adding two to both sides, we find that 𝑦 is equal to two plus 𝐶 two 𝑒 to the power of negative 𝑥 cubed. And that’s because, once again, we’ve done something to our constant. So it’s changed. And it’s usual to write our constant simply as 𝐶. So we finish. We’ve solved our differential equation and we got 𝑦 equals two plus 𝐶 times 𝑒 to the power of negative 𝑥 cubed.