Main content

### Course: Differential equations > Unit 1

Lesson 7: Exact equations and integrating factors# Exact equations example 2

Some more exact equation examples. Created by Sal Khan.

## Want to join the conversation?

- Is there a way to turn an equation, which is not exact, into an exact differential equation?(10 votes)
- Yes. That will be the subject of the next batch of videos when Sal starts talking about integrating factors.(11 votes)

- What year in college does an engineering major study differential equations? I am currently in ninth grade.(4 votes)
- Usually their 2nd or 3rd year of college. If you're taking AP calculus and do well on the AP exams you might take it your first year. Most engineering majors take Diff. Eqns. after they take 2 or 3 semesters of Calculus.(16 votes)

- Do all separable differential equations have My=Nx=0 ?(4 votes)
- Yes. The separable equation is in the form of

A(x) dx = B(y) dy

let's try to make it look like exact. (subtract B(y) dy from both sides)

A(x) dx - B(y) dy = 0

let's now check if My = Nx, or dA(x)/dy = -dB(y) / dx

derivative of a function of x with respect to y is equal to zero, or vice versa. So,

My = 0, Nx = 0 thus My = Nx so yes, all separable differential equations have My=Nx,

or in other words separable differential equations are a subset of exact equations, or every separable equation is also an exact differential equation but not every exact differential equation is necessarily separable differential equation.(6 votes)

- In the first example of this video (when he started solving at about1:00), the differential equation is a separable differential equation. So, how is the name of this equation, should I say 'separable' or 'exact'?

Thank you!!(4 votes)- You say, that this is an exact equation, because My=Nx, and separable, because you can algebraically sweep x and y to different sides of the equation. Two different definitions of two properties, and both match.(3 votes)

- Why is this kind of differential equation called "
**exact**?" Is there some significance to that term that might apply elsewhere, or is it just a term that was coined to describe this particular situation?(3 votes)- The equation is called Exact since it is the exact differential of a function. This function (Psi) can be obtained by the process taught in the videos.(1 vote)

- Are people confused by the fact that the TOTAL derivative notation looks like the PARTIAL derivative notation?(3 votes)
- With respect to the topic "Exact Equations Example 2" I tried a different approach. Instead of choosing M(x,y) I started with N(x,y). So:

ᶴΨydy = ᶴN(x,y)dy = Ψ(x,y)

Then I differentiated the result with respect to x. The new expression should be equal to M(x,y), so is possible to define d/dxf(x) and after f(x). Finally I got the same result Mr. Sal had achieved in his video class.

Ney(2 votes) - Around7:00, Sal's second question (2x + 4y) + (2x - 2y)y' = 0.

So it's not an exact equation. Can you solve by separation?

Mainly I don't know what to do with (2x - 2y)y'.(2 votes)- this is a homogenous equation. use the substitution y=vx.

Sal addresses this kind of equation in the next section(1 vote)

- What if there were some kind of "Implicit anti-differentiation" ? Things would be way easier....(2 votes)
- Does it have to My and Nx - or could you have done Mx and Ny?(2 votes)

## Video transcript

Let's do some more examples
with exact differential equations. And I'm getting these problems
from page 80 of my old college differential equations books. This is the fifth edition of
Elementary Differential Equations by William Boyce
and Richard DiPrima. I want to make sure they get
credit, that I'm not making up these problems. I'm getting
it from their book. Anyway, so I'm just going to
give a bunch of equations. We have to figure out if they're
exact, and if they are exact, we'll use what we know
about exact differential equations to figure out
their solutions. So the first one they have is,
2x plus 3, plus 2y minus 2, times y prime is equal to 0. So this is our M of x and y--
although, this is only a function of x-- and then
this is our N, right? You could say that's
M, or that's N. You could also say that, if this
is exact-- well, first let's [? test ?] this exact, before we start
talking about psi. So what's the partial of this,
with respect to y? The partial of M, with
respect to y. Well, there's no y
here, so it's 0. The rate of change that
this changes with respect to y is 0. And what's the rate of
change this changes, with respect to x? The partial of N, with respect
to x is equal to-- well, there's no x here, right? So these are just constants from
an x point of view, so this is all going to be 0. But we do see that
they're both 0. So M sub y, or the partial with
respect to y, is equal to the partial with respect to x. So this is exact. And actually, we don't have to
use exact equations here. We'll do it, just so that
we get used to it. But if you look here, you
actually could have figured out that this is actually
a separable equation. But anyway, this is exact. So knowing that it's exact, it
tells us that there's some function psi, where psi is
a function of x and y. Where psi sub x is equal to this
function, is equal to 2x plus 3, and psi-- I shouldn't
say sub x. I say the partial of psi,
with respect to x. And the partial of psi, with
respect to y, is equal to this, 2y minus 2. And if we can find our psi, we
know that this is just the derivative of psi. Because we know that the
derivative, with respect to x of psi, is equal to the partial
of psi, with respect to x, plus the partial
of psi, with respect to y, times y prime. So this is this just the
same form as that. So if we can figure out y,
then we can rewrite this equation as dx, the derivative
of psi, with respect to x, is equal to 0. Let me switch colors, or it's
going to get monotonous. This right here, if we can find
a psi, where the partial with respect to x, is this, the
partial with respect to y, is this, then this can
be rewritten as this. And how do we know that? Because the derivative of psi,
with respect to x, using the partial derivative chain
rules, is this. This partial with respect
to x, that's this. This partial with respect to
y, is this, times y prime. So this is the whole point
of exact equations. But anyway, so let's figure
out what our psi is. Actually, before we figure out,
if the derivative of psi, with respect to x, is 0, then
if you integrate both sides, you just-- the solution
of this equation is psi is equal to c. So using this information, if we
can solve for psi, then we know that the solution of this
differential equation is psi is equal to c. And then if we have some initial
conditions, we could solve for c. So let's solve for psi. So let's integrate both sides
of this equation, with respect to x. And then we get psi is equal
to x squared plus 3x, plus some function of y. Let's call it h of y. And remember, normally when you
take an antiderivative, you have just a plus
c here, right? But you can kind of say we
took an anti-partial derivative. So when you took a partial
derivative, with respect to x, not only do you lose constants--
that's why we have a plus c, normally-- but you
also lose anything that's a function of just y, and not x. So for example, take the partial
derivative of this with respect to x, you're going
to get this, right? Because the partial derivative
of a function, purely of y, with respect to x,
is going to be 0. So it will disappear. So anyway, we take the
antiderivative of this, we get this. Now, we use this information. Well, we use this information. We take the partial of this
expression, and we say, well, the partial of this expression,
with respect to y, has to equal this, and then we
can solve for h of y, then we'll be done. So let's do that. So the partial of psi, with
respect to y, is equal to-- well, that's going
to be 0, 0, 0. This part is a function of x. If you take the partial with
respect to y, it's 0, because these are constants, from
a y point of view. So you're left with
h prime of y. So we know that h prime of y,
which is the partial of psi, with respect to y,
is equal to this. So h prime of y is equal
to 2y minus 2. And then if we wanted to figure
out what h of y is, we get h of y-- just integrate both
sides, with respect to y-- is equal to y squared
plus-- sorry-- y squared minus 2y. Now, you could have a plus c
there, but if you watched the previous example, you'll see
that that c kind of merges with the other c, so you
don't have to worry about it right now. So what is our psi function,
as we know it now, not worrying about the plus c? It is psi of x and y is equal
to x squared plus 3x, plus h of y-- which we figured
out is this-- plus y squared, minus 2y. And we know a solution of our
original differential equation is psi is equal to c. So the solution of our
differential equation is this is equal to c. x squared plus 3x, plus
y squared, minus 2y is equal to c. If you had some additional
conditions, you could test it. And I encourage you to test
this out on this original equation, or I encourage you to
take the derivative of psi, and prove to yourself that if
you took the derivative of psi, with respect to x, here,
implicitly, that you would get this differential equation. Anyway, let's do another one. Let's clear image. So the more examples you
see, the better. So let's see, this one says 2x
plus 4y, plus 2x minus 2y, y prime is equal to 0. So what's the partial of
this with respect to y? So M, the partial of M, with
respect to y-- this is 0-- so it's equal to 4. What's the partial of this, with
respect to x, just this part right here? The partial of N, with
respect to x, is 2. This is 0. So the partial of this, with
respect to y, is different than the partial of N,
with respect to x. So this is not exact. So we can't solve this using
our exact methodology. So that was a fairly
straightforward problem. Let's do another one. Let's see. I'm running out of time, so I
want to do one that's not too complicated. Let's see, 3x squared minus
2xy-- actually, let me do this in the next problem. I don't want to rush
these things. I will continue this
in the next video. See you soon.