SOLVING SECOND ORDER LINEAR DIFFERENCE EQUATION
Quadratic by square root method,how to calculate greatest common divisor,Uniqueness of forcing terms in linear partial differential equations,finding the least common denominator for two rational expressions
Thank you for visiting our site! You landed on this page because you entered a search term similar to this: solving second order linear difference equation, here's the result:

First-Order Homogeneous Linear Differential Equations

A differential equation that can be written in the form

is called a first-order homogeneous linear differential equation.  It's homogeneous because after placing all terms that include the unknown equation and its derivative on the left-hand side, the right-hand side is identically zero for all t.  It's linear because y(t) and its derivative both appear "alone", that is, they are not part of any composed function such as , , , or .  Any differential equation that includes terms like these is nonlinear.   The above equation is first-order because the highest derivative of the unknown function is its first derivative.  A second-order differential equation would include a term like

The expression a(t) represents any arbitrary continuous function of t, and it could be just a constant that is multiplied by y(t); in such a case think of it as a constant function of t.

What follows is the general solution of a first-order homogeneous linear differential equation.  It might seem quite involved, but it is nothing more than one simple step after another.  If you don't move on to a next step until you understand the current one, you will have no problem understanding the solution process.  The fact that the process is somewhat involved is actually a good thing in our context; once you know how its done, and then see how long Maple takes to do it, you'll be convinced that Maple provides you with tools that really save a lot of time and brain power.

Then

and

Remembering the derivative of the ln function, and using the chain rule,

Thus, by substitution,

Note that we have transformed the original equation into the form discussed at the end of the introduction to differential equations.

So at this point we simply need to integrate both sides of the equation.

Integration and differentiation being inverses of each other, this equation is the same as

The constant comes from the constant produced by the integration of the left side of the equation, and then moving it to the right.

Now we need to solve a logarithmic equation, and that involves taking exponents of both sides of the equation.

This equation is the same as

The factor is a constant, so substitute into the equation.

We have now found an equation that yields y as a function of t, and it would be nice to say that we are finished.  But a problem still exists, perhaps even two problems, depending on how you feel about the expression .  You might feel that looks "unfinished", and this is reasonable because to develop an easily useable form for , you might need to do a painful and difficult integration.  So, if it puts you at ease, assume that we did the integration, and that , with .  We now have

The bigger problem is that rather than knowing something about the absolute value of the unknown function, we want to say that

Top

(Note: The section designated by the above horizontal line and the next one is provided for completeness.  The above equation, with , is the general solution of a first-order homogeneous linear differential equation.

While the following material is essential to justify the removal of the absolute value function, it is not essential to understanding how to execute the solution steps.  However, there is one key point that you should know if you skip this section, and that is that the assumption that y(t) is a continuous function is essential to the justification for removing the absolute value function.   Also, know that if you skip this section you are missing out on a good example of the use of some basic theorems of calculus to make an interesting argument.

to skip the justification and continue with the rest of this introduction to first-order homogeneous linear differential equations.)

To justify this step, first make the following change (for reasons you'll see in a second, let's revert back to ).

Now .  Thus, by definition of the absolute value function,

A property of the absolute value function says that .  Hence,

By assumption, a(t) is a continuous function of t.  A theorem of calculus tells us that if a(t) is continuous, then is also a continuous function of t.  Next, a continuity theorem says that the composition of two continuous functions is itself a continuous function.  Thus, is a continuous function of t.  And still yet another continuity theorem assures us that the product of two continuous functions is also continuous.  Since the function we're looking for, y(t), is assumed to be continuous, this implies that is a continuous function of t.

Now the equation

says that the absolute value of the function is a constant function of t.  But if the absolute value of a continuous function is a constant function, then the function itself must be a constant function.  Thus, it is either the case that

or that

(Note that this conclusion is not necessarily true if the function inside the absolute value function is not continuous.  Why?  Hint: Define the function f to equal 5 for all , and to equal -5 for all .  Now take the absolute value of this function.  This is why it is important to know that is continuous.)

In either case, it is certainly true that we can write

where or , depending on which of the above is the case.  Moving back to the other side of the equation yields the desired result.

Finally, this is the general solution of the homogeneous linear differential equation.  Note that c is an ancestor of , which is an arbitrary constant that can take on infinitely many values.  This implies that the homogeneous linear differential equation has infinitely many solutions; one for each choice of c.

Top

An example:

Solve for y(t).

Solution:

becomes

with

Thus, by the formula we just developed,

Which evaluates to

or

As a check, substitute y(t) into the equation and evaluate it.

Which evaluates to

Top

Another example:

Solve for y(t).

Solution:

has

Now

And,

Thus,

This simplifies to

Checking our work,

Top

These two examples illustrate how to find the general solution of a homogeneous linear differential equation.  However, in most real world situations you generally want one specific solution that depends on certain initial conditions.  In these cases you know, or are given, a value at some initial time, . The initial-value, , enables you to narrow down the general solution to a single specific solution.  Basically, it causes the replacement of the arbitrary constant, c, with a specific value, and it tailors the solution, y(t), to specific conditions in which y(t) has the initial value at time . The general form of an initial-value problem for a homogeneous first-order linear differential equation looks like

Its solution is as follows.  After transforming it into a form that we can integrate, integrate both sides between and t.

becomes

And this becomes

Now take the exponential of both sides.

Following a processes similar to the earlier solution of the absolute value enigma, either

or

To decide this one, note that we already know the value of y(t) for one value of t, namely .  Plug this value of t into the left-hand side of either of the above equations and evaluate it.  It turns out that

Thus, the second option is not possible, and this implies that

Isolate y(t) in this equation to find the general solution of an initial value problem involving a homogeneous first-order linear differential equation.

Top

A couple of examples:

Solve

Solution:

According to the formula,

This evaluates to

As a check,

Which of course simplifies to

Top

Here's another way to solve this kind of initial-value problem.

Solve

Solution: First solve the equation without concern for the initial condition.

Now solve for c by inserting the known values and y(4) = 5.

Thus,

For this initial condition y(t) is

This simplifies to

A check,

becomes

which simplifies to

The last section that you'll want to read before returning to any polite comments, suggestions, or corrections.