Main content

### Course: Differential equations > Unit 2

Lesson 1: Linear homogeneous equations# 2nd order linear homogeneous differential equations 1

Introduction to 2nd order, linear, homogeneous differential equations with constant coefficients. Created by Sal Khan.

## Want to join the conversation?

- The fact that the sum of two solutions to a higher order differential equation is also a solution, is this termed the "superposition principle"?(12 votes)
- Yes, that the sum of arbitrary constant multiples of solutions to a linear homogeneous differential equation is also a solution is called the superposition principle. But if the right hand side of the equation is non-zero, the equation is no longer homogeneous and the superposition principle no longer holds.(27 votes)

- Are there any videos about Partial differential equations? I hear that they are extremely useful in understanding the 'wave equation' thought in Physics better.

Also, out of curiosity, how many solutions can a second-order differential equation have.(4 votes)- Here is a Youtube channel with good PDE videos that I have found helpful in my own studies. https://www.youtube.com/user/commutant . He has several videos on the wave equation that could be beneficial.

Your question is one that mathematicians have struggled with. To prove the existence and uniqueness of solutions to differential equations is still being studied. Only specific kinds of differential equations can be shown to have single solutions, namely, linear, constant coefficient, homogenous equations. Such a proof exists for first order equations and second order equations. I'm not sure what happens higher up. You will have to conduct your own research.

Thumbs up!(9 votes)

- How do you solve equations of inequalities(5 votes)
- Differential equations describe the way things change. Framing that as an inequality is trying to solve how they don't change. The solution space is unbounded, everything except how they do change is a solution. That may sound like it describes a solution in negative terms, but doesn't seem to lend itself to a process to determine it(5 votes)

- At8:57Sal concluded that if g(x) and h(x) are both solutions, adding them together also is a solution. Please let me know if I'm understanding this correctly. So when he says one of those functions "is a solution", in this case, since he's speaking of homogenous equations, he's basically saying "is equal to 0"? So, then, when he's saying "g(x) + h(x) is a solution" he is pretty much saying "0+0=0"? Am I correct in my understanding? Thanks!(6 votes)
- Yes, I think you have it exactly right.

You can see that when you plug solutions in the terms can be easily separated which really simplifies things because you can just sum all your solutions. You'll use this same idea later with non-Homogeneous equations.(2 votes)

- At0:09wat dose he mean 2nd ordeal diferntial equations(2 votes)
- The order of a differential equation is the highest-order derivative that it involves. Thus, a second order differential equation is one in which there is a second derivative but not a third or higher derivative.

Incidentally, unless it has been a long time since you updated your profile, you might be in over your head on this one. I might recommend taking a while to learn differential and integral calculus before you try to tackle differential equations.(7 votes)

- 5/9(10^1+10^2+10^3+.....+10^n-n) = sum ?

How can i get the summation of this series using c program?

please share me this programe..... its urgent

thank u(2 votes)- Order is the highest derivative present in the equation. Degree is the exponent of the highest derivative term.

(y'')^3 + y' + 1 = 0 is second order due to y'' and is 3rd degree since the highest derivative is raised to the 3rd power.(5 votes)

- Will second order homogeneous differential equations always have solutions in terms of e^x?(2 votes)
- No. Only constant coefficient second order homogeneous differential equations where the associated auxiliary equation has two distinct real roots will have
**both**solutions being e^mx, where m is a real number.

Since there are other types of second order homogeneous DEs, like Cauchy Euler as an example, where the solutions are not e^mx, you won't always get e^mx solutions.(4 votes)

- What if d(x) equals a constant? How do we solve ?(3 votes)
- So is a second order linear homogeneous equation a linear subspace of the real numbers? I mean what you described are the rules of a linear subspace of the real numbers (closure under multiplication, closure under addition and I would assume it would contain a 0 vector?)?(2 votes)
- We said if g(x) is a solution and h(x) is a solution for the 2nd order,linear, homogeneous differential equation then their sum is also a solution ! But does that mean that if g(x) and h(x) and say for example j(x) and v(x) are all solutions then their sum is also a solution ? If yes then why are we restricted to only two functions g(x) and h(x) ?? We can say that if we have n numbers of functions are solutions then their sum is also a solution. If that was true then how will I solve for the constants when I have n number of functions that satisfy the D.E this way I need also n initial conditions to get the particular solution . Sorry for the very long question and thank you so much Sal your videos are really helpful :)(1 vote)
- Yes, if there were a j(x) and v(x) as well as a g(x) and a h(x) that are solutions, then any linear combination of these functions will be a solution. However, it turns out that for second order linear homogeneous differential equations, there are only two truly distinct functions that are not already linear combinations of the others.(3 votes)

## Video transcript

We'll now move from the world
of first order differential equations to the world
of second order differential equations. And what does that mean? That means that we're now going
to start involving the second derivative. And the first class that I'm
going to show you-- and this is probably the most useful
class when you're studying classical physics-- are
linear second order differential equations. So what is a linear second order
differential equation? I think I touched on it a little
bit in our very first intro video. But it's something that
looks like this. If I have a of x-- so some
function only of x-- times the second derivative of y, with
respect to x, plus b of x, times the first derivative of
y, with respect to x, plus c of x, times y is equal to some
function that's only a function of x. So just to review our
terminology, y is the second order because the highest
derivative here is the second derivative, so that makes
it second order. And what makes it linear? Well all of the coefficients
on-- and I want to be careful with the term coefficients,
because traditionally we view coefficients as always being
constants-- but here we have functions of x as
coefficients. So in order for this to be a
linear differential equation, a of x, b of x, c of x and d
of x, they all have to be functions only of x, as
I've drawn it here. And now, before we start
trying to solve this generally, we'll do a special
case of this, where a, b, c are constants and d is 0. So what will that look like? So I can just rewrite that as
A-- so now A is not a function anymore, it's just a number-- A
times the second derivative of y, with respect to x, plus B
times the first derivative, plus C times y. And instead of having just a
fourth constant, instead of d of x, I'm just going to
set that equal to 0. And by setting this equal to 0,
I have now introduced you to the other form
of homogeneous differential equation. And this one is called
homogeneous. And I haven't made the
connection yet on how these second order differential
equations are related to the first order ones that I just
introduced-- to these other homogeneous differential
equations I introduced you to. I think they just happen to
have the same name, even though they're not
that related. So the reason why this one is
called homogeneous is because you have it equal to 0. So this is what makes
it homogeneous. And actually, I do see more of a
connection between this type of equation and milk where all
the fat is spread out, because if you think about it, the
solution for all homogeneous equations, when you kind of
solve the equation, they always equal 0. So they're homogenized, I guess
is the best way that I can draw any kind of parallel. So we could call this a second
order linear because A, B, and C definitely are functions just
of-- well, they're not even functions of x or y,
they're just constants. So second order linear
homogeneous-- because they equal 0-- differential
equations. And I think you'll see that
these, in some ways, are the most fun differential
equations to solve. And actually, often the most
useful because in a lot of the applications of classical
mechanics, this is all you need to solve. But they're the most fun to
solve because they all boil down to Algebra II problems.
And I'll touch on that in a second. But let's just think about
this a little bit. Think about what the
properties of these solutions might be. Let me just throw
out something. Let's say that g of
x is a solution. So that means that A times g
prime prime, plus B times g prime, plus C times
g is equal to 0. Right? These mean the same thing. Now, my question to you is,
what if I have some constant times g? Is that still a solution? So my question is, let's say
some constant c1 gx-- c1 times g-- is this a solution? Well, let's try it out. Let's substitute this into
our original equation. So A times the second derivative
of this would just be-- and I'll switch colors
here; let me switch to brown-- so A times the second derivative
of this would be-- the constant, every time you
take a derivative, the constant just carries over-- so
that'll just be A times c1 g prime prime, plus-- the
same thing for the first derivative-- B times c1 g prime,
plus C-- and this C is different than the
c1 c-- times g. And let's see whether
this is equal to 0. So we could factor out that c1
constant, and we get c1 times Ag prime prime, plus
Bg prime, plus Cg. And lo and behold,
we already know. Because we know that g of
x is a solution, we know that this is true. So this is going to
be equal to 0. Because g is a solution. So if this is 0, c1 times 0
is going to be equal to 0. So this expression up here
is also equal to 0. Or another way to view it is
that if g is a solution to this second order linear
homogeneous differential equation, then some constant
times g is also a solution. So this is also a solution to
the differential equation. And then the next property I
want to show you-- and this is all going someplace,
don't worry. The next question I want to ask
you is, OK, we know that g of x is a solution to the
differential equation. What if I were to also
tell you that h of x is also a solution? So my question to you is, is g
of x plus h of x a solution? If you add these two functions
that are both solutions, if you add them together, is that
still a solution of our original differential
equation? Well, let's substitute this
whole thing into our original differential equation, right? So we'll have A times
the second derivative of this thing. Well, that's straightforward
enough. That's just g prime prime, plus
h prime prime, plus B times-- the first derivative of
this thing-- g prime plus h prime, plus C times-- this
function-- g plus h. And now what can we do? Let's distribute all
of these constants. We get A times g prime prime,
plus A times h prime prime, plus B times the first
derivative of g, plus B times the first derivative of
h, plus C times g, plus C times h. And now we can rearrange them. And we get A-- let's take this
one; let's take all the g terms-- A times the second
derivative of g, plus B times the first derivative, plus C
times g-- that's these three terms-- plus A times the second
derivative of h, plus B times the first derivative,
plus C times h. And now we know that both g
and h are solutions of the original differential
equation. So by definition, if g is a
solution of the original differential equation, and this
was the left-hand side of that differential equation, this
is going to be equal to 0, and so is this going
to be equal to 0. So we've shown that this whole
expression is equal to 0. So if g is a solution of the
differential equation-- of this second order linear
homogeneous differential equation-- and h is also a
solution, then if you were to add them together, the sum of
them is also a solution. So in general, if we show that
g is a solution and h is a solution, you can add them. And we showed before that
any constant times them is also a solution. So you could also say that some
constant times g of x plus some constant times h
of x is also a solution. And maybe the constant
in one of the cases is 0 or something. I don't know. But anyway, these are useful
properties to maybe internalize for second order
homogeneous linear differential equations. And in the next video, we're
actually going to apply these properties to figure out the
solutions for these. And you'll see that they're
actually straightforward. I would say a lot easier than
what we did in the previous first order homogeneous
difference equations, or the exact equations. This is much, much easier. I'll see you in the
next video.