### Video Transcript

Solve the following differential equation, π to the power π¦ minus five multiplied by π¦ prime equals two add cos of π₯.

Weβre going to solve this first-order differential equation by separating the variables. We firstly remember that π¦ prime is the same as dπ¦ by dπ₯. So, letβs write out our differential equation with this in mind. And our aim when weβre separating the variables is to have functions of π¦ and dπ¦ on one side of the equals and functions of π₯ and dπ₯ on the other side.

Although dπ¦ by dπ₯ isnβt a fraction, we do treat it a little bit like a fraction when weβre trying to separate variables to solve a differential equation. So, we can rewrite our differential equation as π to the power π¦ minus five dπ¦ equals two add cos of π₯ dπ₯. And now, we have our function of π¦ and dπ¦ on one side of the equals and our function of π₯ and dπ₯ on the other side.

Our next step is to integrate both sides of this equation. To integrate the left-hand side, letβs recall the general rule that when we integrate π to the ππ₯ power with respect to π₯, we get one over π multiplied by π to the ππ₯ power plus a constant of integration, π. We also recall that to integrate a constant with respect to π₯, we get ππ₯ add a constant of integration. And so, applying both these rules, we find that π to the power π¦ minus five integrates to π to the power π¦ minus five π¦. And Iβll come to the constants of integration in a moment.

But for now, letβs integrate the right-hand side of this equation, two add cos of π₯, with respect to π₯. Weβve already seen how to integrate constants. So, two integrates to two π₯. And to integrate cos of π₯, we recall a useful cycle. We can see here what each of these functions differentiates to. And if we reverse the arrows, we see what each of these functions integrates to.

So, cos of π₯ integrates to sin of π₯. And if youβre wondering why I havenβt added a constant of integration for any of the terms yet, itβs because we donβt need a constant of integration for each term. We just need one constant of integration, which we can call π. And that gives us our final answer, π to the power π¦ minus five π¦ equals two π₯ add sin of π₯ add π.