Classifying differential equations by order, linearity, and homogeneity

 
 
 
 
 

Partial vs. ordinary differential equations

Let’s start by clarifying the difference between partial derivatives and ordinary derivatives.

Krista King Math.jpg

Hi! I'm krista.

I create online courses to help you rock your math class. Read more.

 

Partial derivatives

The partial derivative of a function is the derivative of that function with respect to one of the multiple variables in which the function is defined. For instance, given a function ff defined in terms of two variables xx and yy, f(x,y)f(x,y), we know that ff has two partial derivatives:

The partial derivative of ff with respect to xx:fx\frac{\partial f}{\partial x}

The partial derivative of ff with respect to yy:fy\frac{\partial f}{\partial y}

We can’t name only one derivative for ff, since ff is defined in two variables. Instead, we find one partial derivative of ff for each of its variables, which is why, for f(x,y)f(x,y), we end up with two partial derivatives.

When we define equations using partial derivatives like these ones, we call them partial differential equations (PDEs). We usually study partial derivatives and their equations in a multivariable/multivariate calculus course, which is often Calculus III or Calculus IV.

That being said, these aren’t the kinds of differential equations we’ll focus on in this course. We’ll spend the vast majority of our time focusing on ordinary differential equations, and we’ll only touch briefly on partial differential equations at the very end of the course.

Ordinary derivatives

Whereas partial derivatives are indicated with the “partial symbol” \partial, we never see this notation when we’re dealing with ordinary derivatives. That’s because an ordinary derivative is the derivative of a function in a single variable. Because there’s only one variable, there’s no need to indicate the partial derivative for one variable versus another.

For example, given a function for yy in terms of xx, which we could write as y(x)y(x), its first derivative can be written as y(x)y'(x), or as just yy', or in Leibniz notation as

dydx\frac{dy}{dx}

So an equation like

dydxsinxcosx=2x\frac{dy}{dx}-\sin{x}\cos{x}=2x

is an ordinary differential equation because it includes the ordinary derivative dy/dxdy/dx.

Order of the differential equation

The order of a differential equation is equivalent to the degree of the highest-degree derivative that appears in the equation. For example, if the equation contains only a first derivative, we call it a first order differential equation. Here are some more examples:

In this differential equations course, we’ll be focusing primarily on first and second order differential equations. We’re starting with first order equations now, and we’ll get into second order equations later.

Linear differential equations

When it comes to classifying first order differential equations, we put them into two categories: linear and separable. We’ll talk much more about each of these types later. For now, we only want to say that linear differential equations are equations given in the form

pn(x)y(n)(x)+pn1(x)y(n1)(x)+...+p1(x)y(x)+p0(x)y(x)=q(x)p_n(x)y^{(n)}(x)+p_{n-1}(x)y^{(n-1)}(x)+...+p_1(x)y'(x)+p_0(x)y(x)=q(x)

where pi(x)p_i(x) and q(x)q(x) are functions of xx. If a first order ordinary differential equation doesn’t match this form, we say that it’s a non-linear equation.

What we want to take away from this definition of linear equations is that

  1. all of the pi(x)p_i(x) coefficients are functions in terms of only xx,

  2. a(x)a(x) is also a function in terms of only xx,

  3. the function yy is never defined to a higher power than 11 (we should only see yy and its derivatives yy', yy'', yy''', etc., never something y2y^2, siny\sin{y}, eye^y, etc.

Let’s add a linear/non-linear classification to our table from earlier.

The first equation in this table is non-linear because q(x)=xcosyq(x)=x\cos{y}, which means q(x)q(x) is a function defined in terms of both xx and yy, not just xx alone.

These second and third equations are linear equations because they meet the three conditions we outlined. Notice that, in both linear equations, q(x)=0q(x)=0. When this is the case, we say that the linear equation is homogeneous. As you might suspect, when q(x)0q(x)\ne0 we call the linear equation non-homogeneous.

 
 

How to determine the order, linearity, and homogeneity of a differential equation


 
Krista King Math Signup.png
 
Differential Equations course.png

Take the course

Want to learn more about Differential Equations? I have a step-by-step course for that. :)

 
 

 
 

Six examples of classifying differential equations

Let’s work through some more examples so that we get comfortable classifying differential equations.

Example

Identify the order and linearity of each differential equation, then say whether or not each linear equation is homogeneous.

1. 8y+2y+cosy=ex8y'''+2y'+\cos{y}=e^x

2. 2y+5y=xy2y''+5y'=xy

3. exyex+y=e2xe^xy'-e^{x+y}=e^{2x}

4. y+5y=ycosxy'''+5y'=y\cos{x}

5. y3y=sinxy''-3y=\sin{x}

6. xy+2y=x2x+1xy'+2y=x^2-x+1

In this differential equations course, we’ll be focusing primarily on first and second order differential equations. We’re starting with first order equations now, and we’ll get into second order equations later.

  1. The equation 8y+2y+cosy=ex8y'''+2y'+\cos{y}=e^x contains a third derivative, so it’s a third order equation. Because the equation contains cosy\cos{y}, it’s non-linear.

  2. The equation 2y+5y=xy2y''+5y'=xy contains a second derivative, so it’s a second order equation. We can rewrite it as 2y+5yxy=02y''+5y'-xy=0, which allows us to see that the equation is linear and homogeneous.

  3. The equation exyex+y=e2xe^xy'-e^{x+y}=e^{2x} contains a first derivative, so it’s a first order equation. Because the equation contains eye^y, it’s non-linear.

  4. The equation y+5y=ycosxy'''+5y'=y\cos{x} contains a third derivative, so it’s a third order equation. We can rewrite it as y+5yycosx=0y'''+5y'-y\cos{x}=0, which allows us to see that the equation is linear and homogeneous.

  5. The equation y3y=sinxy''-3y=\sin{x} contains a second derivative, so it’s a second order equation. The equation is already in the form of a linear equation, but q(x)=sinx0q(x)=\sin{x}\neq0, so it’s non-homogeneous.

  6. The equation xy+2y=x2x+1xy'+2y=x^2-x+1 contains a first derivative, so it’s a first order equation. The equation is already in the form of a linear equation, but q(x)=x2x+10q(x)=x^2-x+1\neq0, so it’s non-homogeneous.

We can summarize our findings in a table.


 
Krista King.png
 

Get access to the complete Differential Equations course