# Question Video: Solving Differential Equations

Find the solution for the following differential equation for 𝑦(0) = 1: (d𝑦/d𝑥) − 𝑥 − 𝑥² = 1.

01:57

### Video Transcript

Find the solution for the following differential equation for 𝑦 of zero equals one. d𝑦 by d𝑥 minus 𝑥 minus 𝑥 squared equals zero.

In this question, we have a differential equation and an initial value. That is, when 𝑥 is equal to zero, 𝑦 is equal to one. Now, before we can look to solve this differential equation, we’re going to need to perform an intermediate step. We’re going to rearrange and make d𝑦 by d𝑥 the subject. Now, it’s not particularly difficult to achieve this. We add 𝑥 and 𝑥 squared to both sides of our differential equation to find that d𝑦 by d𝑥 equals 𝑥 squared plus 𝑥. Now, remember, we can find a general solution for the differential equation d𝑦 by d𝑥 equals 𝑥 squared plus 𝑥 by performing the reverse process to differentiation. We’re going to integrate with respect to 𝑥. So 𝑦 will be equal to the integral of d𝑦 by d𝑥 with respect to 𝑥 or the integral of 𝑥 squared plus 𝑥 with respect to 𝑥.

Remember, to integrate a polynomial term, we add one to the exponent and then divide by that new value. So the integral of 𝑥 squared is 𝑥 cubed over three. We then see that the integral of 𝑥 is 𝑥 squared over two. And since we’re working with indefinite integrals, we know we need that constant of integration 𝑐. So 𝑦 is equal to 𝑥 cubed over three plus 𝑥 squared over two plus 𝑐. So we have the general solution to our differential equation. But we haven’t yet used the information that 𝑦 of zero equals one. We’re going to substitute 𝑥 equals zero and 𝑦 equals one into this general solution. When we do, we see that one equals zero cubed over three plus zero squared over two plus 𝑐. And this whole equation simplifies to one equals 𝑐. So we found that 𝑐 equals one. And the particular solution to our differential equation is 𝑦 equals 𝑥 cubed over three plus 𝑥 squared over two plus one.