Discrete Math: Linear Inhomogeneous Recurrence

In summary: It's very similar, except that there is no differentiation involved which actually makes it simpler. I would begin by arranging the difference equation as follows:a_{n}-6a_{n−2}-8a_{n−3}-3a_{n−4}=64\cdot3^{n-4}Now, it we assume that $a_n=An3^n$, then by substitution, we obtain:An3^n-6A(n-2)3^{n-2}-8A(n-3)3^{n-3}-3A(n-4)3^{n-4}=64\cdot3^{
  • #1
stanyeo1984
13
0
How do I solve this

1. (a) Solve the recurrence relation
an =6an−2 +8an−3 +3an−4 +64·3^n−4, n􏰀>=4
where a0 =0,a1 =1,a2 =4 and a3 =33.
(b) Write down a closed form of the generating function of the sequence an.
 
Last edited:
Physics news on Phys.org
  • #2
Hello, stanyeo1984! :D

I have given your thread a title briefly describing the problem. A title like "Discrete Math" posts in the "Discrete Mathematics, Set Theory, and Logic" forum adds no further information. This was, our members can see the nature of the problem at a glance when viewing the thread listing.

What does the following mean:

n􏰀>=4 ?

For part a) can you identify:

i) The characteristic roots.

ii) The form of the particular solution?
 
  • #3
MarkFL said:
Hello, stanyeo1984! :D

I have given your thread a title briefly describing the problem. A title like "Discrete Math" posts in the "Discrete Mathematics, Set Theory, and Logic" forum adds no further information. This was, our members can see the nature of the problem at a glance when viewing the thread listing.

What does the following mean:

n􏰀>=4 ?

For part a) can you identify:

i) The characteristic roots.

ii) The form of the particular solution?

hello, n>=4 just means greater than or equal to 4,

I think i got the characteristic roots as (x-3)(x+1)3

But I got stuck after that
 
  • #4
stanyeo1984 said:
hello, n>=4 just means greater than or equal to 4,

I think i got the characteristic roots as (x-3)(x+1)3

But I got stuck after that

Yes, I understand n >= 4, I just had trouble with n􏰀>=4.

Yes, the characteristic equation is:

\(\displaystyle r^3-6r^2 -8r-3=(r-3)(r+1)^3=0\)

So, you have the root $r=3$ and the root $r=-1$ of multiplicity 3...what's the general form of the homogeneous solution then?
 
  • #5
MarkFL said:
Yes, I understand n >= 4, I just had trouble with n􏰀>=4.

Yes, the characteristic equation is:

\(\displaystyle r^3-6r^2 -8r-3=(r-3)(r+1)^3=0\)

So, you have the root $r=3$ and the root $r=-1$ of multiplicity 3...what's the general form of the homogeneous solution then?

Is the general form C13n+C2(-1)n+C2(-1)n+C2(-1)n

Otherwise, I don't know how to deduce the general solution:/
 
  • #6
stanyeo1984 said:
Is the general form C13n+C2(-1)n+C2(-1)n+C2(-1)n

Otherwise, I don't know how to deduce the general solution:/

No, we require each term to be linearly independent of one another, and so the homogeneous solution would be:

\(\displaystyle h_n=c_1(3)^n+c_2(-1)^n+c_3n(-1)^n+c_4n^2(-1)^n\)

Now, bearing in mind all of the terms of the homogeneous solution, what must the form for the particular solution $p_n$ be?
 
  • #7
MarkFL said:
No, repeated roots require each term to be linearly independent of one another, and so the homogeneous solution would be:

\(\displaystyle h_n=c_1(3)^n+c_2(-1)^n+c_3n(-1)^n+c_4n^2(-1)^n\)

Now, bearing in mind all of the terms of the homogeneous solution, what must the form for the particular solution $p_n$ be?

I'm thinking that the particular solution pn would be 64.C53n-4
 
  • #8
stanyeo1984 said:
I'm thinking that the particular solution pn would be 64.C53n-4

No, that's a constant time $3^n$, which we already have as a term in the homogenous solution...so we need to add a factor as we did to two of the terms in the homogeneous solution because we had a repeated characteristic root. We don't need to use the constant $64\cdot3^{-4}$ in the particular solution...so I would state:

\(\displaystyle p_n=An3^n\)

Now, can you use the method of undetermined coefficients to find $A$?
 
  • #9
MarkFL said:
No, that's a constant time $3^n$, which we already have as a term in the homogenous solution...so we need to add a factor as we did to two of the terms in the homogeneous solution because we had a repeated characteristic root. We don't need to use the constant $64\cdot3^{-4}$ in the particular solution...so I would state:

\(\displaystyle p_n=An3^n\)

Now, can you use the method of undetermined coefficients to find $A$?

I'm only familiar for the method of undetermined coefficients for DE not so much for this, is it possible for you to explain?
 
  • #10
stanyeo1984 said:
I'm only familiar for the method of undetermined coefficients for DE not so much for this, is it possible for you to explain?

It's very similar, except that there is no differentiation involved which actually makes it simpler. I would begin by arranging the difference equation as follows:

\(\displaystyle a_{n}-6a_{n−2}-8a_{n−3}-3a_{n−4}=64\cdot3^{n-4}\)

Now, it we assume that $a_n=An3^n$, then by substitution, we obtain:

\(\displaystyle An3^n-6A(n-2)3^{n-2}-8A(n-3)3^{n-3}-3A(n-4)3^{n-4}=64\cdot3^{n-4}\)

Next, let's multiply through by \(\displaystyle 3^{4-n}\ne0\) to get:

\(\displaystyle An3^4-6A(n-2)3^{2}-8A(n-3)3-3A(n-4)=64\)

Now, distribute, combine like terms and solve for $A$...what do you find?
 
  • #11
MarkFL said:
It's very similar, except that there is no differentiation involved which actually makes it simpler. I would begin by arranging the difference equation as follows:

\(\displaystyle a_{n}-6a_{n−2}-8a_{n−3}-3a_{n−4}=64\cdot3^{n-4}\)

Now, it we assume that $a_n=An3^n$, then by substitution, we obtain:

\(\displaystyle An3^n-6A(n-2)3^{n-2}-8A(n-3)3^{n-3}-3A(n-4)3^{n-4}=64\cdot3^{n-4}\)

Next, let's multiply through by \(\displaystyle 3^{4-n}\ne0\) to get:

\(\displaystyle An3^4-6A(n-2)3^{2}-8A(n-3)3-3A(n-4)=64\)

Now, distribute, combine like terms and solve for $A$...what do you find?

I solve for A=1/3 and therefore, pn= 1/3n3n
 
  • #12
stanyeo1984 said:
I solve for A=1/3 and therefore, pn= 1/3n3n

Good! :D

So, using the principle of superposition, what is the general solution? And from here we can use the given initial values to determine the parameters $c_i$.
 
  • #13
MarkFL said:
It's very similar, except that there is no differentiation involved which actually makes it simpler. I would begin by arranging the difference equation as follows:

\(\displaystyle a_{n}-6a_{n−2}-8a_{n−3}-3a_{n−4}=64\cdot3^{n-4}\)

Now, it we assume that $a_n=An3^n$, then by substitution, we obtain:

\(\displaystyle An3^n-6A(n-2)3^{n-2}-8A(n-3)3^{n-3}-3A(n-4)3^{n-4}=64\cdot3^{n-4}\)

Next, let's multiply through by \(\displaystyle 3^{4-n}\ne0\) to get:

\(\displaystyle An3^4-6A(n-2)3^{2}-8A(n-3)3-3A(n-4)=64\)

Now, distribute, combine like terms and solve for $A$...what do you find?

And now I add that to the end of the characteristic solution and solve for C1 and the other constants?
 
  • #14
stanyeo1984 said:
And now I add that to the end of the characteristic solution and solve for C1 and the other constants?

Yes, by the principle of superposition, we know:

\(\displaystyle a_n=h_n+p_n=c_13^n+c_2(-1)^n+c_3n(-1)^n+c_4n^2(-1)^n+\frac{1}{3}n3^n\)

We have 4 parameters to determine, and fortunately we were given the 4 initial values:

\(\displaystyle a_{0}=0,\,a_{1}=1,\,a_{2}=4,\,a_{3}=33\)

So, what we will get is a 4X4 system of linear equations we must solve. Can you set up the system?
 
  • #15
MarkFL said:
Yes, by the principle of superposition, we know:

\(\displaystyle a_n=h_n+p_n=c_13^n+c_2(-1)^n+c_3n(-1)^n+c_4n^2(-1)^n+\frac{1}{3}n3^n\)

We have 4 parameters to determine, and fortunately we were given the 4 initial values:

\(\displaystyle a_{0}=0,\,a_{1}=1,\,a_{2}=4,\,a_{3}=33\)

So, what we will get is a 4X4 system of linear equations we must solve. Can you set up the system?

From here we get, C1=0, C2=0, C3=1 and C4=1
 
  • #16
stanyeo1984 said:
From here we get, C1=0, C2=0, C3=1 and C4=1

I get:

\(\displaystyle \left(c_1,c_2,c_3,c_4\right)=(0,0,1,-1)\)
 
  • #17
MarkFL said:
I get:

\(\displaystyle \left(c_1,c_2,c_3,c_4\right)=(0,0,1,-1)\)

Sorry yes, missed the - sign, but if i place these in the place of the variable in the general solution, won't i get a closed formula?

And if that's correct, what do I do when the question asks me to solve?
 
  • #18
This means the closed form satisfying all of the given conditions is:

\(\displaystyle a_n=n(-1)^n-n^2(-1)^n+\frac{1}{3}n3^n=n\left((-1)^n\left(1-n\right)+3^{n-1}\right)\)
 
  • #19
MarkFL said:
This means the closed form satisfying all of the given conditions is:

\(\displaystyle a_n=n(-1)^n-n^2(-1)^n+\frac{1}{3}n3^n=n\left((-1)^n\left(1-n\right)+3^{n-1}\right)\)

Managed to work that one out:D, but what do they mean when they ask me to solve the recurrence relation?
 
  • #20
stanyeo1984 said:
Managed to work that one out:D, but what do they mean when they ask me to solve the recurrence relation?

Solving a recurrence relation (or difference equation) is what we just did. :D
 
  • #21
MarkFL said:
Solving a recurrence relation (or difference equation) is what we just did. :D

Oh, so finding the constants and placing them back in the general equation constitutes as solving the equation?

- - - Updated - - -

MarkFL said:
Solving a recurrence relation (or difference equation) is what we just did. :D

Or does question b ask for something else?
 
  • #22
stanyeo1984 said:
Oh, so finding the constants and placing them back in the general equation constitutes as solving the equation?

It is the entire process:

  • Find the characteristic roots, and from those determine $h_n$
  • Determine the form of $p_n$ and use the method of undetermined coefficients to get $p_n$
  • Use the principle of superposition to state the general solution $y_n=h_n+p_n$
  • Use the initial values with the general solution $y_n$ to determine the parameters
Part b) asks for the generating function, which is related to the closed form, but I have to run now to work on a coding project. Post what progress you have made with the generating function, and perhaps someone else can help with that. :D
 
  • #23
hmm. So would you guys please give clear answer of the part a?
also is "an=n(−1)n−n2(−1)n+13n3n=n((−1)n(1−n)+3n−1)" the answer of the part b?
 
  • #24
scott1204 said:
hmm. So would you guys please give clear answer of the part a?
also is "an=n(−1)n−n2(−1)n+13n3n=n((−1)n(1−n)+3n−1)" the answer of the part b?

For part a), I wrote:

\(\displaystyle a_n=n\left((-1)^n\left(1-n\right)+3^{n-1}\right)\)

As far as part b), I would invite anyone with a better understand of generating functions to provide help. It's been so long for me that I would have to do research as a refresher, and I simply don't have time. :D
 
  • #25
MarkFL said:
For part a), I wrote:

\(\displaystyle a_n=n\left((-1)^n\left(1-n\right)+3^{n-1}\right)\)

As far as part b), I would invite anyone with a better understand of generating functions to provide help. It's been so long for me that I would have to do research as a refresher, and I simply don't have time. :D
I really appreciate you for part a.
\(\displaystyle a_n=n(-1)^n-n^2(-1)^n+\frac{1}{3}n3^n=n\left((-1)^n\left(1-n\right)+3^{n-1}\right)\)[/QUOTE]
isn't it the answer of part b?

I really thankful with your prompt reply :)
 
  • #26
Discrete Math(recurrence relations)

1. (a) Solve the recurrence relation \(\displaystyle a_{n}=6a_{n−2}+8a_{n−3}+3a_{n−4}+64\cdot3^{n-4}\)
where a0 =0,a1 =1,a2 =4 and a3 =33.
(b) Write down a closed form of the generating function of the sequence an.

please some one note that the clear answers of (a) and (b)!
All arguments and working must be shown


it is pretty tough...!
 
  • #27
This question has already been posted...and you have even posted in that thread so I know you are aware of its existence...why are you re-posting it? (Wondering)

edit: I went ahead and merged the newer duplicate with the older thread. Please note that part a) has already been answered, and be patient and wait for someone to post help with part b), OR post what progress you have made with it.
 
  • #29
scott1204 said:
any one can get a closed form of the generating function of the sequence \(\displaystyle a_n\)
Is this a question/request or a statement? If the former, have you tried doing it yourself as per rule #11 http://mathhelpboards.com/rules/?
 
  • #30
Evgeny.Makarov said:
Is this a question/request or a statement? If the former, have you tried doing it yourself as per rule #11 http://mathhelpboards.com/rules/?

I tried to solve over 4hrs but I couldn't get it...
I also tried to find how to make generating function through the online, it does not work...
 
  • #31
I have again merged threads...please post questions pertaining to this problem in this thread. :D
 
  • #32
Unfortunately, I am also not very good with generating functions and have little time. I can only recommend the following formulas.
\begin{align}
(x^{n+1})'&=nx^n+x^n&&\text{to find }\sum(-1)^nnx^n\\
(x^{n+2})''&=n^2x^n+3nx^n+2x^n&&\text{to find }\sum(-1)^nn^2x^n\\
\sum n(3x)^n&=\sum n(3^nx^n)
\end{align}
 
  • #33
The calculation of a closed form for the generating function G(z) is straight forward. This is a rational function in z. If you're really ambitious (I'm not), you can apply partial fraction decomposition to G(z), use the geometric series and it's derivatives and find the closed form solution for $a_n$.

jph07t.png
 

What is Discrete Math: Linear Inhomogeneous Recurrence?

Discrete Math: Linear Inhomogeneous Recurrence is a branch of mathematics that deals with the study of discrete structures and their properties, particularly in the context of linear equations and recurrence relations. It involves the use of mathematical tools and techniques to solve problems related to sequences, series, and discrete systems.

What is a linear inhomogeneous recurrence relation?

A linear inhomogeneous recurrence relation is a mathematical equation that describes the relationship between terms in a sequence or series, where the terms are determined by a linear combination of previous terms and a non-zero constant. In other words, it is a recurrence relation that is not homogeneous, meaning it includes a non-zero constant term.

What are the applications of discrete math: linear inhomogeneous recurrence?

Discrete math: linear inhomogeneous recurrence has various applications in computer science, engineering, and physics. It is used to model and analyze discrete systems, such as computer algorithms, electrical circuits, and population dynamics. It also has applications in cryptography, coding theory, and signal processing.

What are the key concepts in discrete math: linear inhomogeneous recurrence?

The key concepts in discrete math: linear inhomogeneous recurrence include sequences, series, recurrence relations, linear equations, and non-homogeneous equations. Other important concepts include initial conditions, closed-form solutions, and generating functions.

How is discrete math: linear inhomogeneous recurrence different from other branches of math?

Discrete math: linear inhomogeneous recurrence is different from other branches of math, such as calculus and algebra, because it focuses on discrete structures and their properties. This means it deals with objects that can only take on distinct, separate values, rather than continuous values. It also involves the use of algorithms and computational methods to solve problems, rather than analytical methods.

Similar threads

  • Set Theory, Logic, Probability, Statistics
Replies
18
Views
2K
  • Set Theory, Logic, Probability, Statistics
Replies
4
Views
2K
  • Set Theory, Logic, Probability, Statistics
Replies
2
Views
2K
  • Calculus and Beyond Homework Help
Replies
12
Views
1K
  • Set Theory, Logic, Probability, Statistics
Replies
2
Views
1K
  • Set Theory, Logic, Probability, Statistics
2
Replies
57
Views
5K
  • Set Theory, Logic, Probability, Statistics
Replies
1
Views
1K
  • General Math
Replies
1
Views
1K
  • Engineering and Comp Sci Homework Help
Replies
4
Views
3K
  • Engineering and Comp Sci Homework Help
Replies
7
Views
888
Back
Top