Solve for A_n as n→∞: Difference Equation

Click For Summary

Discussion Overview

The discussion revolves around the behavior of the difference equation A_n = nA_{n-2} + nA_{n-3} as n approaches infinity. Participants explore potential solutions and methods for analyzing the equation, including the use of Z-transforms, while considering the implications of variable coefficients and the nature of the solutions.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested
  • Mathematical reasoning

Main Points Raised

  • Some participants propose that the Z-transform could be a viable method for solving the equation, suggesting that it might lead to a solution despite the equation being nonlinear.
  • Others argue that the Z-transform is typically used for linear systems, questioning its applicability to this nonlinear difference equation.
  • A participant mentions rewriting the equation in a form suitable for the Z-transform and presents a derived expression for the homogeneous solution.
  • Concerns are raised about the divergence of the Z-transform in the context of factorially-divergent solutions, particularly regarding the inversion process.
  • Some participants express uncertainty about the validity of treating the equation as linear in the limit as n approaches infinity and emphasize the need for a clear argument supporting this approach.
  • There is acknowledgment of the complexity introduced by variable coefficients and the potential challenges in applying frequency transforms to such equations.
  • One participant reflects on their learning experience regarding the use of transforms and expresses gratitude for the clarification provided by others in the discussion.
  • Another participant notes a discrepancy in the derived expressions related to the Z-transform, indicating a possible error in their calculations.

Areas of Agreement / Disagreement

Participants do not reach a consensus on the applicability of the Z-transform to the given difference equation, with multiple competing views remaining regarding its use and the nature of the solutions.

Contextual Notes

Participants highlight limitations in their understanding of applying Z-transforms to equations with variable coefficients and factorially-divergent solutions, indicating that further exploration is needed to clarify these aspects.

rsq_a
Messages
103
Reaction score
1
This is a bit of a shot in the dark, but has anybody ever encountered a theory which can tell me what the solution of this equation:

[tex]A_n = nA_{n-2} + nA_{n-3}[/tex]

behaves like, as [tex]n\to\infty[/tex]? For convenience, you can set [tex]A_n = 1[/tex] for [tex]n = 0, \ldots, 3[/tex]. Without the term on the right, it goes something like [tex]A_n \sim \Gamma(n/2)[/tex].
 
Last edited:
Physics news on Phys.org
I'm curious where this equation popped up. It is actually pretty interesting.

I think you might be able to use the Z transform to tackle this, which assumes that the Z transform of the solution exists! I rewrote your equation so that it holds for [tex]n\geq0[/tex]:
[tex]A_{n+3}=(n+3)\left(A_{n+1}+A_n \right).[/tex]
Then using the standard unilateral Z transform:
[tex]Z(A_n) = \tilde{A}(z) = \sum_{n=0}^{\infty}A_n z^{-n}[/tex]
I get
[tex] \left(z^2 - 2 z - 3 \right) \tilde{A}(z) + \left( z + z^2 \right) \frac{d\tilde{A}(z)}{dz} = A_0 z^3 + A_1 z^2 + \left(3 A_0 + A_2 \right) z.[/tex]
For the homogeneous solution I get
[tex] \tilde{A}_h (z) = \gamma \left( \frac{z^3}{(z+1)^2} \right) e^{z-z^2/2},[/tex]
where [tex]\gamma[/tex] is a constant to be determined.

For the particular solution I try variation of parameters,
[tex] \tilde{A}_p (z) = f(z) \tilde{A}_h (z),[/tex]
and get,
[tex] f = \int \, dz \, \frac{\left(A_0 z^2 + A_1 z + (3 A_0 + A_2) \right) (z+1)}{z^3} e^{-z+z^2/2}[/tex]
where I will let you determine the constant of integration. I was unable to get Mathematica to do the integral if [tex]A_0=A_1=A_2=1[/tex]. However, if
[tex]A_0=0[/tex] and [tex]A_1=A_2=1[/tex] then mathematica gives me
[tex] f = \frac{1}{4} \left[3 \sqrt{\frac{2 \pi}{e}} erfi \left(\frac{z-1}{\sqrt{2}} \right) - \frac{2(3z+1)e^{-z+z^2/2}}{z^2}\right]+C[/tex]
where C is a constant to be determined and Mathematica defines
[tex] erfi(z)=\frac{erf(iz)}{i}[/tex]
where [tex]erf[/tex] is the error function and [tex]i=\sqrt{-1}[/tex].

This isn't the solution to your problem, as you still have to do the inverse Z transform of [tex]\tilde{A}=\tilde{A}_h+\tilde{A}_p[/tex] and determine a couple of constants I left floating around. But I think this approach is likely to lead to the solution. Please let us all know if you get further than this.

jason
 
Last edited:
It's not clear to me how the Z-transform can be used here. This equation is obviously nonlinear, and generally the Z-transform approach is for linear systems. If there is a way to treat the equation as linear in the limit as n goes to infinity, then this should be the first step and a clear argument would need to be presented as to why this is valid.
 
Last edited:
elect_eng said:
It's not clear to me how the Z-transform can be used here. This equation is obviously nonlinear, and generally the Z-transform approach is for linear systems. If there is a way to treat the equation as linear in the limit as n goes to infinity, then this should be the first step and a clear argument would need to be presented as to why this is valid.

While the equation has variable coefficients, it is certainly linear.

The approach I outlined is very similar to using Laplace or Fourier transforms to solve ODEs with variable coefficients - it will not always help, but sometimes it can yield an easier path to the solution.
 
jasonRF said:
While the equation has variable coefficients, it is certainly linear.

OK, I understand the terminology and interpretation of the equation now. This equation is classified as linear with variable coefficients. To me this is a type of equation that does not directly yield to frequency transforms. However, perhaps my knowledge is limited here. I'll look at your approach in more detail.

jasonRF said:
The approach I outlined is very similar to using Laplace or Fourier transforms to solve ODEs with variable coefficients - it will not always help, but sometimes it can yield an easier path to the solution.

I'm very familiar with using Z-transforms to solve linear difference equations with constant coefficients. It's just that I have not solved an equation with variable coefficients with this technique. But, again my training may be limited, and I would certainly like to know how to apply frequency transforms to differential and difference equations with variable coefficients.
 
Last edited:
Jason,

Thanks for your help. The Z-Transform is new to me, so I had to read up a little bit on it. For the moment, ignoring all the interesting work you did on the problem, my only question is what is the applicability of the Z-Transform to problems with factorially-divergent solutions?

In this case, we expect [tex]A_n \sim \Gamma(n/2 + \ldots)[/tex]. This has the effect that the Z-Transform is divergent everywhere in the complex plane. This is particularly troubling for the inversion process.

Suppose we have something simpler, say
[tex]A_{n+1} = n A_n[/tex]

Then the inversion of the Z-Transform gives something like
[tex]A_n = \frac{1}{2\pi i} \int Ce^{-z} z^{n-1} \ dz[/tex]

and we can see the [tex]\Gamma(n)[/tex] function somewhere in there.

Suppose we take your homogeneous Z-Transform:

[tex] \frac{1}{2\pi i} \int \left( \frac{z^3}{(z+1)^2} \right) e^{z-z^2/2} z^{n-1} \ dz[/tex]

I don't quite see how the inversion will be done, or how useful it'd be. There are poles at [tex]z = \pm 1[/tex], but residue contributions certainly aren't going to get you that Gamma function behaviour as [tex]n \to ]\infty[/tex].
 
Last edited:
jasonRF said:
While the equation has variable coefficients, it is certainly linear.

The approach I outlined is very similar to using Laplace or Fourier transforms to solve ODEs with variable coefficients - it will not always help, but sometimes it can yield an easier path to the solution.

I don't mean to detract from this thread since it is not my thread and not my problem to solve. However, I find this very interesting and have learned quite a bit here.

I wanted to say thanks for setting me straight on this approach. My confusion came from the fact that all my previous training with transforms has been restricted to linear time-invariant systems, which are the most typical cases in engineering. Now that I understand this approach, I feel I have a new and useful tool in my bag of tricks. :approve:

One comment I can make is that when I did out the calculation, I came up with the following:

[tex] <br /> \left(z^2 - 2 z - 3 \right) \tilde{A}(z) + \left( z + z^2 \right) \frac{d\tilde{A}(z)}{dz} = A_0 z^3 + A_1 z^2 + \left(-2 A_0 + A_2 \right) z[/tex]

This is slightly different from your expression. I think it is more likely that I made a mistake, but when I look at my work, I don't see where it is. Anyway, I thought I would just mention it in case the OP comes up with this answer also.
 
Last edited:
rsq_a said:
Jason,

Thanks for your help. The Z-Transform is new to me, so I had to read up a little bit on it. For the moment, ignoring all the interesting work you did on the problem, my only question is what is the applicability of the Z-Transform to problems with factorially-divergent solutions?
.

You are absolutely correct. I was assuming a solution with a Z transform exists, and didn't follow through that one extra step to see that I was in trouble. Sorry about that!

Sorry for hte late reply - I've been out of town working 24/7.

Cheers!

jason
 

Similar threads

  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
4K
  • · Replies 6 ·
Replies
6
Views
4K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 0 ·
Replies
0
Views
4K
  • · Replies 3 ·
Replies
3
Views
2K