Periodic or non periodic function plottingPeriodic expansion of functionDerivates of periodic parametric cubic splinesMaximum period-length in decimal chain-addition?How to find a stable periodic solution of a nonlinear non-autonomous second-order dynamical system?Integral to periodic function.Periodic Function?Is $cos(alpha x + cos(x))$ periodic?Can the sum of two periodic functions with non-commensurate periods be a periodic function?Is this function periodic function?On multivariable functions and graphs

Why doesn't H₄O²⁺ exist?

Font hinting is lost in Chrome-like browsers (for some languages )

What's the output of a record cartridge playing an out-of-speed record

Is it important to consider tone, melody, and musical form while writing a song?

What are these boxed doors outside store fronts in New York?

Why "Having chlorophyll without photosynthesis is actually very dangerous" and "like living with a bomb"?

How to format long polynomial?

Today is the Center

Which models of the Boeing 737 are still in production?

Can an x86 CPU running in real mode be considered to be basically an 8086 CPU?

Have astronauts in space suits ever taken selfies? If so, how?

Accidentally leaked the solution to an assignment, what to do now? (I'm the prof)

TGV timetables / schedules?

Why, historically, did Gödel think CH was false?

Why did Neo believe he could trust the machine when he asked for peace?

How did the USSR manage to innovate in an environment characterized by government censorship and high bureaucracy?

Can a Warlock become Neutral Good?

Smoothness of finite-dimensional functional calculus

Arthur Somervell: 1000 Exercises - Meaning of this notation

What do you call a Matrix-like slowdown and camera movement effect?

How much RAM could one put in a typical 80386 setup?

A newer friend of my brother's gave him a load of baseball cards that are supposedly extremely valuable. Is this a scam?

Is it tax fraud for an individual to declare non-taxable revenue as taxable income? (US tax laws)

How is the claim "I am in New York only if I am in America" the same as "If I am in New York, then I am in America?



Periodic or non periodic function plotting


Periodic expansion of functionDerivates of periodic parametric cubic splinesMaximum period-length in decimal chain-addition?How to find a stable periodic solution of a nonlinear non-autonomous second-order dynamical system?Integral to periodic function.Periodic Function?Is $cos(alpha x + cos(x))$ periodic?Can the sum of two periodic functions with non-commensurate periods be a periodic function?Is this function periodic function?On multivariable functions and graphs













1












$begingroup$


I am currently working on plotting a function and figuring out if its periodic or not. The function is as follows:



$$x_n = betacdot x_n-1+alpha gammacdot mathrmsgn(x_n-3)+alpha(1-gamma)cdot mathrmsgn(x_n-2)$$



I know $beta$ is between $0$ and $1$, $alpha>0$, $gamma>0$. Note that $mathrm sgn$ is the sign function.



I am having a hard time knowing where to start. For example, if I take
$beta=0.5$, $alpha=10$, and $gamma=3$, how would I find my $x_1$, $x_2$, and $x_3$?



For example:



$x_1$$=$$1$



$x_2$$=$$2$



$x_3$$=$$3$



$x_4$ $ = 0.5(3)+30+10(-2)=11.5$



Also I am saying that $sgn(x_1)=1$ since $x_1=1$
and $sgn(x_2)=1$ since $x_2=2$



Would this be the correct way to start plotting?



Now let's say for the three initial values that function is not periodic, would some other three different initial values make it periodic? and if so how would one go about finding those initial values to make it period? (keep guess values)



Lastly, I promise, why would someone come up with this specific function to figure out periodic or non-periodic?



New Edit:



I have been thinking what would happen if we take $0<gamma<1$?
Would it be the same or would it change?
Also, what about taking $alpha<0$?



Should I ask another question or just leave the new Edit.










share|cite|improve this question











$endgroup$







  • 3




    $begingroup$
    Your question throws up a lot of questions in my mind, but I think I can answer your last question: you can't. This is a recursive definition of a sequence, so you'll need to choose some initial values (two of them). If you nominate some values for $x_1$ and $x_2$, then you can compute $x_3$ from them, then $x_4$, $x_5$, etc. Without specifying initial values, there will typically be infinitely many sequences that satisfy a given recurrence relation.
    $endgroup$
    – Theo Bendit
    Mar 22 at 1:38






  • 1




    $begingroup$
    @TheoBendit what about $x_n-3$? Does it not need three initial values? How do i nominate $x_1$ and $x_2$ to compute $x_3$?
    $endgroup$
    – Hidaw
    Mar 22 at 17:27







  • 2




    $begingroup$
    Oh, sorry, I missed $x_n-3$. You do indeed need to nominate three initial values.
    $endgroup$
    – Theo Bendit
    Mar 23 at 0:09






  • 2




    $begingroup$
    Yes, that's how you do it.
    $endgroup$
    – Theo Bendit
    Mar 24 at 2:40






  • 1




    $begingroup$
    It's no bother. :-)
    $endgroup$
    – Theo Bendit
    Mar 24 at 17:57















1












$begingroup$


I am currently working on plotting a function and figuring out if its periodic or not. The function is as follows:



$$x_n = betacdot x_n-1+alpha gammacdot mathrmsgn(x_n-3)+alpha(1-gamma)cdot mathrmsgn(x_n-2)$$



I know $beta$ is between $0$ and $1$, $alpha>0$, $gamma>0$. Note that $mathrm sgn$ is the sign function.



I am having a hard time knowing where to start. For example, if I take
$beta=0.5$, $alpha=10$, and $gamma=3$, how would I find my $x_1$, $x_2$, and $x_3$?



For example:



$x_1$$=$$1$



$x_2$$=$$2$



$x_3$$=$$3$



$x_4$ $ = 0.5(3)+30+10(-2)=11.5$



Also I am saying that $sgn(x_1)=1$ since $x_1=1$
and $sgn(x_2)=1$ since $x_2=2$



Would this be the correct way to start plotting?



Now let's say for the three initial values that function is not periodic, would some other three different initial values make it periodic? and if so how would one go about finding those initial values to make it period? (keep guess values)



Lastly, I promise, why would someone come up with this specific function to figure out periodic or non-periodic?



New Edit:



I have been thinking what would happen if we take $0<gamma<1$?
Would it be the same or would it change?
Also, what about taking $alpha<0$?



Should I ask another question or just leave the new Edit.










share|cite|improve this question











$endgroup$







  • 3




    $begingroup$
    Your question throws up a lot of questions in my mind, but I think I can answer your last question: you can't. This is a recursive definition of a sequence, so you'll need to choose some initial values (two of them). If you nominate some values for $x_1$ and $x_2$, then you can compute $x_3$ from them, then $x_4$, $x_5$, etc. Without specifying initial values, there will typically be infinitely many sequences that satisfy a given recurrence relation.
    $endgroup$
    – Theo Bendit
    Mar 22 at 1:38






  • 1




    $begingroup$
    @TheoBendit what about $x_n-3$? Does it not need three initial values? How do i nominate $x_1$ and $x_2$ to compute $x_3$?
    $endgroup$
    – Hidaw
    Mar 22 at 17:27







  • 2




    $begingroup$
    Oh, sorry, I missed $x_n-3$. You do indeed need to nominate three initial values.
    $endgroup$
    – Theo Bendit
    Mar 23 at 0:09






  • 2




    $begingroup$
    Yes, that's how you do it.
    $endgroup$
    – Theo Bendit
    Mar 24 at 2:40






  • 1




    $begingroup$
    It's no bother. :-)
    $endgroup$
    – Theo Bendit
    Mar 24 at 17:57













1












1








1





$begingroup$


I am currently working on plotting a function and figuring out if its periodic or not. The function is as follows:



$$x_n = betacdot x_n-1+alpha gammacdot mathrmsgn(x_n-3)+alpha(1-gamma)cdot mathrmsgn(x_n-2)$$



I know $beta$ is between $0$ and $1$, $alpha>0$, $gamma>0$. Note that $mathrm sgn$ is the sign function.



I am having a hard time knowing where to start. For example, if I take
$beta=0.5$, $alpha=10$, and $gamma=3$, how would I find my $x_1$, $x_2$, and $x_3$?



For example:



$x_1$$=$$1$



$x_2$$=$$2$



$x_3$$=$$3$



$x_4$ $ = 0.5(3)+30+10(-2)=11.5$



Also I am saying that $sgn(x_1)=1$ since $x_1=1$
and $sgn(x_2)=1$ since $x_2=2$



Would this be the correct way to start plotting?



Now let's say for the three initial values that function is not periodic, would some other three different initial values make it periodic? and if so how would one go about finding those initial values to make it period? (keep guess values)



Lastly, I promise, why would someone come up with this specific function to figure out periodic or non-periodic?



New Edit:



I have been thinking what would happen if we take $0<gamma<1$?
Would it be the same or would it change?
Also, what about taking $alpha<0$?



Should I ask another question or just leave the new Edit.










share|cite|improve this question











$endgroup$




I am currently working on plotting a function and figuring out if its periodic or not. The function is as follows:



$$x_n = betacdot x_n-1+alpha gammacdot mathrmsgn(x_n-3)+alpha(1-gamma)cdot mathrmsgn(x_n-2)$$



I know $beta$ is between $0$ and $1$, $alpha>0$, $gamma>0$. Note that $mathrm sgn$ is the sign function.



I am having a hard time knowing where to start. For example, if I take
$beta=0.5$, $alpha=10$, and $gamma=3$, how would I find my $x_1$, $x_2$, and $x_3$?



For example:



$x_1$$=$$1$



$x_2$$=$$2$



$x_3$$=$$3$



$x_4$ $ = 0.5(3)+30+10(-2)=11.5$



Also I am saying that $sgn(x_1)=1$ since $x_1=1$
and $sgn(x_2)=1$ since $x_2=2$



Would this be the correct way to start plotting?



Now let's say for the three initial values that function is not periodic, would some other three different initial values make it periodic? and if so how would one go about finding those initial values to make it period? (keep guess values)



Lastly, I promise, why would someone come up with this specific function to figure out periodic or non-periodic?



New Edit:



I have been thinking what would happen if we take $0<gamma<1$?
Would it be the same or would it change?
Also, what about taking $alpha<0$?



Should I ask another question or just leave the new Edit.







graphing-functions periodic-functions






share|cite|improve this question















share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








edited Apr 1 at 23:28







Hidaw

















asked Mar 22 at 1:33









HidawHidaw

465625




465625







  • 3




    $begingroup$
    Your question throws up a lot of questions in my mind, but I think I can answer your last question: you can't. This is a recursive definition of a sequence, so you'll need to choose some initial values (two of them). If you nominate some values for $x_1$ and $x_2$, then you can compute $x_3$ from them, then $x_4$, $x_5$, etc. Without specifying initial values, there will typically be infinitely many sequences that satisfy a given recurrence relation.
    $endgroup$
    – Theo Bendit
    Mar 22 at 1:38






  • 1




    $begingroup$
    @TheoBendit what about $x_n-3$? Does it not need three initial values? How do i nominate $x_1$ and $x_2$ to compute $x_3$?
    $endgroup$
    – Hidaw
    Mar 22 at 17:27







  • 2




    $begingroup$
    Oh, sorry, I missed $x_n-3$. You do indeed need to nominate three initial values.
    $endgroup$
    – Theo Bendit
    Mar 23 at 0:09






  • 2




    $begingroup$
    Yes, that's how you do it.
    $endgroup$
    – Theo Bendit
    Mar 24 at 2:40






  • 1




    $begingroup$
    It's no bother. :-)
    $endgroup$
    – Theo Bendit
    Mar 24 at 17:57












  • 3




    $begingroup$
    Your question throws up a lot of questions in my mind, but I think I can answer your last question: you can't. This is a recursive definition of a sequence, so you'll need to choose some initial values (two of them). If you nominate some values for $x_1$ and $x_2$, then you can compute $x_3$ from them, then $x_4$, $x_5$, etc. Without specifying initial values, there will typically be infinitely many sequences that satisfy a given recurrence relation.
    $endgroup$
    – Theo Bendit
    Mar 22 at 1:38






  • 1




    $begingroup$
    @TheoBendit what about $x_n-3$? Does it not need three initial values? How do i nominate $x_1$ and $x_2$ to compute $x_3$?
    $endgroup$
    – Hidaw
    Mar 22 at 17:27







  • 2




    $begingroup$
    Oh, sorry, I missed $x_n-3$. You do indeed need to nominate three initial values.
    $endgroup$
    – Theo Bendit
    Mar 23 at 0:09






  • 2




    $begingroup$
    Yes, that's how you do it.
    $endgroup$
    – Theo Bendit
    Mar 24 at 2:40






  • 1




    $begingroup$
    It's no bother. :-)
    $endgroup$
    – Theo Bendit
    Mar 24 at 17:57







3




3




$begingroup$
Your question throws up a lot of questions in my mind, but I think I can answer your last question: you can't. This is a recursive definition of a sequence, so you'll need to choose some initial values (two of them). If you nominate some values for $x_1$ and $x_2$, then you can compute $x_3$ from them, then $x_4$, $x_5$, etc. Without specifying initial values, there will typically be infinitely many sequences that satisfy a given recurrence relation.
$endgroup$
– Theo Bendit
Mar 22 at 1:38




$begingroup$
Your question throws up a lot of questions in my mind, but I think I can answer your last question: you can't. This is a recursive definition of a sequence, so you'll need to choose some initial values (two of them). If you nominate some values for $x_1$ and $x_2$, then you can compute $x_3$ from them, then $x_4$, $x_5$, etc. Without specifying initial values, there will typically be infinitely many sequences that satisfy a given recurrence relation.
$endgroup$
– Theo Bendit
Mar 22 at 1:38




1




1




$begingroup$
@TheoBendit what about $x_n-3$? Does it not need three initial values? How do i nominate $x_1$ and $x_2$ to compute $x_3$?
$endgroup$
– Hidaw
Mar 22 at 17:27





$begingroup$
@TheoBendit what about $x_n-3$? Does it not need three initial values? How do i nominate $x_1$ and $x_2$ to compute $x_3$?
$endgroup$
– Hidaw
Mar 22 at 17:27





2




2




$begingroup$
Oh, sorry, I missed $x_n-3$. You do indeed need to nominate three initial values.
$endgroup$
– Theo Bendit
Mar 23 at 0:09




$begingroup$
Oh, sorry, I missed $x_n-3$. You do indeed need to nominate three initial values.
$endgroup$
– Theo Bendit
Mar 23 at 0:09




2




2




$begingroup$
Yes, that's how you do it.
$endgroup$
– Theo Bendit
Mar 24 at 2:40




$begingroup$
Yes, that's how you do it.
$endgroup$
– Theo Bendit
Mar 24 at 2:40




1




1




$begingroup$
It's no bother. :-)
$endgroup$
– Theo Bendit
Mar 24 at 17:57




$begingroup$
It's no bother. :-)
$endgroup$
– Theo Bendit
Mar 24 at 17:57










1 Answer
1






active

oldest

votes


















1





+50







$begingroup$

With proper values for $alpha,beta,gamma, x_1, x_2$ ($x_1,x_2$ are assumed to be positive ) ---(*)



$$
-alpha(1-gamma)-alphagamma le alpha(1-gamma)mboxsign(x_n-2)+alphagamma mboxsign(x_n-3)le alpha(1-gamma)+alphagamma
$$



and the recurrences



$$
x_n^i = beta x_n-1^i-alpha(1-gamma)-alphagamma\
x_n^s = beta x_n-1^s+alpha(1-gamma)+alphagamma\
$$



have the solutions



$$
x_n^i = C_0 beta^n-1-fracalpha(1-beta^n)beta-1\
x_n^s = C_0 beta^n-1+fracalpha(1-beta^n)beta-1\
$$



and



$$
x_n^i le x_nle x_n^s
$$



Attached the plot for $x_n^i, x_n^s$ in red and $x_n$ in blue. Note that the recurrences $x_n^i, x_n^s$ should begin at $x_3$.



enter image description here



NOTE



Due to the structure



$$
x_n = beta x_n-1+cdots
$$



there is an exponential component all along $ntoinfty$ which eliminates the periodic behavior possibility.



To solve



$$
z_n = beta z_n-1+alpha(1-gamma)+alphagamma
$$



which is a linear recurrence we use the fact



$$
z_n = z_n^h+z_n^p\
z_n^h -beta z_n-1^h = 0\
z_n^p -beta z_n-1^p=alpha(1-gamma)+alphagamma
$$



then easily we find $z_n^h = Cbeta^n-1$. Now considering $z_n^p = C_nbeta^n-1$ and substituting into the particular we can find also the recurrence for $C_n$ which is



$$
C_n-C_n-1 = alphabeta^1-n
$$



with solution



$$
C_n = fracalpha beta left(1-beta ^-nright)beta -1
$$



and finally



$$
z_n = Cbeta^n-1+ fracalpha beta left(1-beta ^-nright)beta -1beta^n-1=C beta^n-1+fracalpha(1-beta^n)beta-1
$$



The general solution can be computed with the help of the following MATHEMATICA script



x2 = 2; x3 = 3; x1 = 1;
path = x1, x2, x3;
beta = 0.5; alpha = 10; gamma = 3;
For[i = 1, i <= 30, i++, x4 = beta x3 + alpha (1 - gamma) Sign[x2] + alpha gamma Sign[x1];
AppendTo[path, x4]; x1 = x2; x2 = x3; x3 = x4]

ListPlot[path, PlotRange -> All]


Regarding --- (*) the most general boundaries can be calculated with the optimization problem



$$
min_u,v(max_u,v)alpha(1-gamma)sin u+alphagamma sin v
$$



or



$$
min(max)-alpha (1-gamma )-alpha gamma ,alpha gamma -alpha (1-gamma ),alpha (1-gamma )-alpha gamma ,alpha (1-gamma )+alpha
gamma
$$






share|cite|improve this answer











$endgroup$












  • $begingroup$
    If you do not mind can you please explain how you came to the solutions?
    $endgroup$
    – Hidaw
    Mar 28 at 16:08






  • 1




    $begingroup$
    @Hidaw Please. See attached note.
    $endgroup$
    – Cesareo
    Mar 28 at 16:37










  • $begingroup$
    I am sorry to bother you again, I have started looking at your solution again and I am a little confused what the role of the exponents are? Also $z_n^h -beta z_n-1^h = 0$ should it be $z_n^h -beta z_n-1^h = alpha$ ?
    $endgroup$
    – Hidaw
    Mar 29 at 2:54











  • $begingroup$
    @Hidaw $z^h$ indicates the homogeneous solution and $z^p$ indicates a particular solution. This is a property of linear recurrences.
    $endgroup$
    – Cesareo
    Mar 29 at 5:06










  • $begingroup$
    and is it the same thing for $$ x_n^i = beta x_n-1^i-alpha(1-gamma)-alphagamma\ x_n^s = beta x_n-1^s+alpha(1-gamma)+alphagamma\ $$?
    $endgroup$
    – Hidaw
    Mar 29 at 14:04











Your Answer





StackExchange.ifUsing("editor", function ()
return StackExchange.using("mathjaxEditing", function ()
StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix)
StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
);
);
, "mathjax-editing");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "69"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
noCode: true, onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3157620%2fperiodic-or-non-periodic-function-plotting%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









1





+50







$begingroup$

With proper values for $alpha,beta,gamma, x_1, x_2$ ($x_1,x_2$ are assumed to be positive ) ---(*)



$$
-alpha(1-gamma)-alphagamma le alpha(1-gamma)mboxsign(x_n-2)+alphagamma mboxsign(x_n-3)le alpha(1-gamma)+alphagamma
$$



and the recurrences



$$
x_n^i = beta x_n-1^i-alpha(1-gamma)-alphagamma\
x_n^s = beta x_n-1^s+alpha(1-gamma)+alphagamma\
$$



have the solutions



$$
x_n^i = C_0 beta^n-1-fracalpha(1-beta^n)beta-1\
x_n^s = C_0 beta^n-1+fracalpha(1-beta^n)beta-1\
$$



and



$$
x_n^i le x_nle x_n^s
$$



Attached the plot for $x_n^i, x_n^s$ in red and $x_n$ in blue. Note that the recurrences $x_n^i, x_n^s$ should begin at $x_3$.



enter image description here



NOTE



Due to the structure



$$
x_n = beta x_n-1+cdots
$$



there is an exponential component all along $ntoinfty$ which eliminates the periodic behavior possibility.



To solve



$$
z_n = beta z_n-1+alpha(1-gamma)+alphagamma
$$



which is a linear recurrence we use the fact



$$
z_n = z_n^h+z_n^p\
z_n^h -beta z_n-1^h = 0\
z_n^p -beta z_n-1^p=alpha(1-gamma)+alphagamma
$$



then easily we find $z_n^h = Cbeta^n-1$. Now considering $z_n^p = C_nbeta^n-1$ and substituting into the particular we can find also the recurrence for $C_n$ which is



$$
C_n-C_n-1 = alphabeta^1-n
$$



with solution



$$
C_n = fracalpha beta left(1-beta ^-nright)beta -1
$$



and finally



$$
z_n = Cbeta^n-1+ fracalpha beta left(1-beta ^-nright)beta -1beta^n-1=C beta^n-1+fracalpha(1-beta^n)beta-1
$$



The general solution can be computed with the help of the following MATHEMATICA script



x2 = 2; x3 = 3; x1 = 1;
path = x1, x2, x3;
beta = 0.5; alpha = 10; gamma = 3;
For[i = 1, i <= 30, i++, x4 = beta x3 + alpha (1 - gamma) Sign[x2] + alpha gamma Sign[x1];
AppendTo[path, x4]; x1 = x2; x2 = x3; x3 = x4]

ListPlot[path, PlotRange -> All]


Regarding --- (*) the most general boundaries can be calculated with the optimization problem



$$
min_u,v(max_u,v)alpha(1-gamma)sin u+alphagamma sin v
$$



or



$$
min(max)-alpha (1-gamma )-alpha gamma ,alpha gamma -alpha (1-gamma ),alpha (1-gamma )-alpha gamma ,alpha (1-gamma )+alpha
gamma
$$






share|cite|improve this answer











$endgroup$












  • $begingroup$
    If you do not mind can you please explain how you came to the solutions?
    $endgroup$
    – Hidaw
    Mar 28 at 16:08






  • 1




    $begingroup$
    @Hidaw Please. See attached note.
    $endgroup$
    – Cesareo
    Mar 28 at 16:37










  • $begingroup$
    I am sorry to bother you again, I have started looking at your solution again and I am a little confused what the role of the exponents are? Also $z_n^h -beta z_n-1^h = 0$ should it be $z_n^h -beta z_n-1^h = alpha$ ?
    $endgroup$
    – Hidaw
    Mar 29 at 2:54











  • $begingroup$
    @Hidaw $z^h$ indicates the homogeneous solution and $z^p$ indicates a particular solution. This is a property of linear recurrences.
    $endgroup$
    – Cesareo
    Mar 29 at 5:06










  • $begingroup$
    and is it the same thing for $$ x_n^i = beta x_n-1^i-alpha(1-gamma)-alphagamma\ x_n^s = beta x_n-1^s+alpha(1-gamma)+alphagamma\ $$?
    $endgroup$
    – Hidaw
    Mar 29 at 14:04















1





+50







$begingroup$

With proper values for $alpha,beta,gamma, x_1, x_2$ ($x_1,x_2$ are assumed to be positive ) ---(*)



$$
-alpha(1-gamma)-alphagamma le alpha(1-gamma)mboxsign(x_n-2)+alphagamma mboxsign(x_n-3)le alpha(1-gamma)+alphagamma
$$



and the recurrences



$$
x_n^i = beta x_n-1^i-alpha(1-gamma)-alphagamma\
x_n^s = beta x_n-1^s+alpha(1-gamma)+alphagamma\
$$



have the solutions



$$
x_n^i = C_0 beta^n-1-fracalpha(1-beta^n)beta-1\
x_n^s = C_0 beta^n-1+fracalpha(1-beta^n)beta-1\
$$



and



$$
x_n^i le x_nle x_n^s
$$



Attached the plot for $x_n^i, x_n^s$ in red and $x_n$ in blue. Note that the recurrences $x_n^i, x_n^s$ should begin at $x_3$.



enter image description here



NOTE



Due to the structure



$$
x_n = beta x_n-1+cdots
$$



there is an exponential component all along $ntoinfty$ which eliminates the periodic behavior possibility.



To solve



$$
z_n = beta z_n-1+alpha(1-gamma)+alphagamma
$$



which is a linear recurrence we use the fact



$$
z_n = z_n^h+z_n^p\
z_n^h -beta z_n-1^h = 0\
z_n^p -beta z_n-1^p=alpha(1-gamma)+alphagamma
$$



then easily we find $z_n^h = Cbeta^n-1$. Now considering $z_n^p = C_nbeta^n-1$ and substituting into the particular we can find also the recurrence for $C_n$ which is



$$
C_n-C_n-1 = alphabeta^1-n
$$



with solution



$$
C_n = fracalpha beta left(1-beta ^-nright)beta -1
$$



and finally



$$
z_n = Cbeta^n-1+ fracalpha beta left(1-beta ^-nright)beta -1beta^n-1=C beta^n-1+fracalpha(1-beta^n)beta-1
$$



The general solution can be computed with the help of the following MATHEMATICA script



x2 = 2; x3 = 3; x1 = 1;
path = x1, x2, x3;
beta = 0.5; alpha = 10; gamma = 3;
For[i = 1, i <= 30, i++, x4 = beta x3 + alpha (1 - gamma) Sign[x2] + alpha gamma Sign[x1];
AppendTo[path, x4]; x1 = x2; x2 = x3; x3 = x4]

ListPlot[path, PlotRange -> All]


Regarding --- (*) the most general boundaries can be calculated with the optimization problem



$$
min_u,v(max_u,v)alpha(1-gamma)sin u+alphagamma sin v
$$



or



$$
min(max)-alpha (1-gamma )-alpha gamma ,alpha gamma -alpha (1-gamma ),alpha (1-gamma )-alpha gamma ,alpha (1-gamma )+alpha
gamma
$$






share|cite|improve this answer











$endgroup$












  • $begingroup$
    If you do not mind can you please explain how you came to the solutions?
    $endgroup$
    – Hidaw
    Mar 28 at 16:08






  • 1




    $begingroup$
    @Hidaw Please. See attached note.
    $endgroup$
    – Cesareo
    Mar 28 at 16:37










  • $begingroup$
    I am sorry to bother you again, I have started looking at your solution again and I am a little confused what the role of the exponents are? Also $z_n^h -beta z_n-1^h = 0$ should it be $z_n^h -beta z_n-1^h = alpha$ ?
    $endgroup$
    – Hidaw
    Mar 29 at 2:54











  • $begingroup$
    @Hidaw $z^h$ indicates the homogeneous solution and $z^p$ indicates a particular solution. This is a property of linear recurrences.
    $endgroup$
    – Cesareo
    Mar 29 at 5:06










  • $begingroup$
    and is it the same thing for $$ x_n^i = beta x_n-1^i-alpha(1-gamma)-alphagamma\ x_n^s = beta x_n-1^s+alpha(1-gamma)+alphagamma\ $$?
    $endgroup$
    – Hidaw
    Mar 29 at 14:04













1





+50







1





+50



1




+50



$begingroup$

With proper values for $alpha,beta,gamma, x_1, x_2$ ($x_1,x_2$ are assumed to be positive ) ---(*)



$$
-alpha(1-gamma)-alphagamma le alpha(1-gamma)mboxsign(x_n-2)+alphagamma mboxsign(x_n-3)le alpha(1-gamma)+alphagamma
$$



and the recurrences



$$
x_n^i = beta x_n-1^i-alpha(1-gamma)-alphagamma\
x_n^s = beta x_n-1^s+alpha(1-gamma)+alphagamma\
$$



have the solutions



$$
x_n^i = C_0 beta^n-1-fracalpha(1-beta^n)beta-1\
x_n^s = C_0 beta^n-1+fracalpha(1-beta^n)beta-1\
$$



and



$$
x_n^i le x_nle x_n^s
$$



Attached the plot for $x_n^i, x_n^s$ in red and $x_n$ in blue. Note that the recurrences $x_n^i, x_n^s$ should begin at $x_3$.



enter image description here



NOTE



Due to the structure



$$
x_n = beta x_n-1+cdots
$$



there is an exponential component all along $ntoinfty$ which eliminates the periodic behavior possibility.



To solve



$$
z_n = beta z_n-1+alpha(1-gamma)+alphagamma
$$



which is a linear recurrence we use the fact



$$
z_n = z_n^h+z_n^p\
z_n^h -beta z_n-1^h = 0\
z_n^p -beta z_n-1^p=alpha(1-gamma)+alphagamma
$$



then easily we find $z_n^h = Cbeta^n-1$. Now considering $z_n^p = C_nbeta^n-1$ and substituting into the particular we can find also the recurrence for $C_n$ which is



$$
C_n-C_n-1 = alphabeta^1-n
$$



with solution



$$
C_n = fracalpha beta left(1-beta ^-nright)beta -1
$$



and finally



$$
z_n = Cbeta^n-1+ fracalpha beta left(1-beta ^-nright)beta -1beta^n-1=C beta^n-1+fracalpha(1-beta^n)beta-1
$$



The general solution can be computed with the help of the following MATHEMATICA script



x2 = 2; x3 = 3; x1 = 1;
path = x1, x2, x3;
beta = 0.5; alpha = 10; gamma = 3;
For[i = 1, i <= 30, i++, x4 = beta x3 + alpha (1 - gamma) Sign[x2] + alpha gamma Sign[x1];
AppendTo[path, x4]; x1 = x2; x2 = x3; x3 = x4]

ListPlot[path, PlotRange -> All]


Regarding --- (*) the most general boundaries can be calculated with the optimization problem



$$
min_u,v(max_u,v)alpha(1-gamma)sin u+alphagamma sin v
$$



or



$$
min(max)-alpha (1-gamma )-alpha gamma ,alpha gamma -alpha (1-gamma ),alpha (1-gamma )-alpha gamma ,alpha (1-gamma )+alpha
gamma
$$






share|cite|improve this answer











$endgroup$



With proper values for $alpha,beta,gamma, x_1, x_2$ ($x_1,x_2$ are assumed to be positive ) ---(*)



$$
-alpha(1-gamma)-alphagamma le alpha(1-gamma)mboxsign(x_n-2)+alphagamma mboxsign(x_n-3)le alpha(1-gamma)+alphagamma
$$



and the recurrences



$$
x_n^i = beta x_n-1^i-alpha(1-gamma)-alphagamma\
x_n^s = beta x_n-1^s+alpha(1-gamma)+alphagamma\
$$



have the solutions



$$
x_n^i = C_0 beta^n-1-fracalpha(1-beta^n)beta-1\
x_n^s = C_0 beta^n-1+fracalpha(1-beta^n)beta-1\
$$



and



$$
x_n^i le x_nle x_n^s
$$



Attached the plot for $x_n^i, x_n^s$ in red and $x_n$ in blue. Note that the recurrences $x_n^i, x_n^s$ should begin at $x_3$.



enter image description here



NOTE



Due to the structure



$$
x_n = beta x_n-1+cdots
$$



there is an exponential component all along $ntoinfty$ which eliminates the periodic behavior possibility.



To solve



$$
z_n = beta z_n-1+alpha(1-gamma)+alphagamma
$$



which is a linear recurrence we use the fact



$$
z_n = z_n^h+z_n^p\
z_n^h -beta z_n-1^h = 0\
z_n^p -beta z_n-1^p=alpha(1-gamma)+alphagamma
$$



then easily we find $z_n^h = Cbeta^n-1$. Now considering $z_n^p = C_nbeta^n-1$ and substituting into the particular we can find also the recurrence for $C_n$ which is



$$
C_n-C_n-1 = alphabeta^1-n
$$



with solution



$$
C_n = fracalpha beta left(1-beta ^-nright)beta -1
$$



and finally



$$
z_n = Cbeta^n-1+ fracalpha beta left(1-beta ^-nright)beta -1beta^n-1=C beta^n-1+fracalpha(1-beta^n)beta-1
$$



The general solution can be computed with the help of the following MATHEMATICA script



x2 = 2; x3 = 3; x1 = 1;
path = x1, x2, x3;
beta = 0.5; alpha = 10; gamma = 3;
For[i = 1, i <= 30, i++, x4 = beta x3 + alpha (1 - gamma) Sign[x2] + alpha gamma Sign[x1];
AppendTo[path, x4]; x1 = x2; x2 = x3; x3 = x4]

ListPlot[path, PlotRange -> All]


Regarding --- (*) the most general boundaries can be calculated with the optimization problem



$$
min_u,v(max_u,v)alpha(1-gamma)sin u+alphagamma sin v
$$



or



$$
min(max)-alpha (1-gamma )-alpha gamma ,alpha gamma -alpha (1-gamma ),alpha (1-gamma )-alpha gamma ,alpha (1-gamma )+alpha
gamma
$$







share|cite|improve this answer














share|cite|improve this answer



share|cite|improve this answer








edited Mar 29 at 5:56

























answered Mar 27 at 20:41









CesareoCesareo

9,7263517




9,7263517











  • $begingroup$
    If you do not mind can you please explain how you came to the solutions?
    $endgroup$
    – Hidaw
    Mar 28 at 16:08






  • 1




    $begingroup$
    @Hidaw Please. See attached note.
    $endgroup$
    – Cesareo
    Mar 28 at 16:37










  • $begingroup$
    I am sorry to bother you again, I have started looking at your solution again and I am a little confused what the role of the exponents are? Also $z_n^h -beta z_n-1^h = 0$ should it be $z_n^h -beta z_n-1^h = alpha$ ?
    $endgroup$
    – Hidaw
    Mar 29 at 2:54











  • $begingroup$
    @Hidaw $z^h$ indicates the homogeneous solution and $z^p$ indicates a particular solution. This is a property of linear recurrences.
    $endgroup$
    – Cesareo
    Mar 29 at 5:06










  • $begingroup$
    and is it the same thing for $$ x_n^i = beta x_n-1^i-alpha(1-gamma)-alphagamma\ x_n^s = beta x_n-1^s+alpha(1-gamma)+alphagamma\ $$?
    $endgroup$
    – Hidaw
    Mar 29 at 14:04
















  • $begingroup$
    If you do not mind can you please explain how you came to the solutions?
    $endgroup$
    – Hidaw
    Mar 28 at 16:08






  • 1




    $begingroup$
    @Hidaw Please. See attached note.
    $endgroup$
    – Cesareo
    Mar 28 at 16:37










  • $begingroup$
    I am sorry to bother you again, I have started looking at your solution again and I am a little confused what the role of the exponents are? Also $z_n^h -beta z_n-1^h = 0$ should it be $z_n^h -beta z_n-1^h = alpha$ ?
    $endgroup$
    – Hidaw
    Mar 29 at 2:54











  • $begingroup$
    @Hidaw $z^h$ indicates the homogeneous solution and $z^p$ indicates a particular solution. This is a property of linear recurrences.
    $endgroup$
    – Cesareo
    Mar 29 at 5:06










  • $begingroup$
    and is it the same thing for $$ x_n^i = beta x_n-1^i-alpha(1-gamma)-alphagamma\ x_n^s = beta x_n-1^s+alpha(1-gamma)+alphagamma\ $$?
    $endgroup$
    – Hidaw
    Mar 29 at 14:04















$begingroup$
If you do not mind can you please explain how you came to the solutions?
$endgroup$
– Hidaw
Mar 28 at 16:08




$begingroup$
If you do not mind can you please explain how you came to the solutions?
$endgroup$
– Hidaw
Mar 28 at 16:08




1




1




$begingroup$
@Hidaw Please. See attached note.
$endgroup$
– Cesareo
Mar 28 at 16:37




$begingroup$
@Hidaw Please. See attached note.
$endgroup$
– Cesareo
Mar 28 at 16:37












$begingroup$
I am sorry to bother you again, I have started looking at your solution again and I am a little confused what the role of the exponents are? Also $z_n^h -beta z_n-1^h = 0$ should it be $z_n^h -beta z_n-1^h = alpha$ ?
$endgroup$
– Hidaw
Mar 29 at 2:54





$begingroup$
I am sorry to bother you again, I have started looking at your solution again and I am a little confused what the role of the exponents are? Also $z_n^h -beta z_n-1^h = 0$ should it be $z_n^h -beta z_n-1^h = alpha$ ?
$endgroup$
– Hidaw
Mar 29 at 2:54













$begingroup$
@Hidaw $z^h$ indicates the homogeneous solution and $z^p$ indicates a particular solution. This is a property of linear recurrences.
$endgroup$
– Cesareo
Mar 29 at 5:06




$begingroup$
@Hidaw $z^h$ indicates the homogeneous solution and $z^p$ indicates a particular solution. This is a property of linear recurrences.
$endgroup$
– Cesareo
Mar 29 at 5:06












$begingroup$
and is it the same thing for $$ x_n^i = beta x_n-1^i-alpha(1-gamma)-alphagamma\ x_n^s = beta x_n-1^s+alpha(1-gamma)+alphagamma\ $$?
$endgroup$
– Hidaw
Mar 29 at 14:04




$begingroup$
and is it the same thing for $$ x_n^i = beta x_n-1^i-alpha(1-gamma)-alphagamma\ x_n^s = beta x_n-1^s+alpha(1-gamma)+alphagamma\ $$?
$endgroup$
– Hidaw
Mar 29 at 14:04

















draft saved

draft discarded
















































Thanks for contributing an answer to Mathematics Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

Use MathJax to format equations. MathJax reference.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3157620%2fperiodic-or-non-periodic-function-plotting%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Lowndes Grove History Architecture References Navigation menu32°48′6″N 79°57′58″W / 32.80167°N 79.96611°W / 32.80167; -79.9661132°48′6″N 79°57′58″W / 32.80167°N 79.96611°W / 32.80167; -79.9661178002500"National Register Information System"Historic houses of South Carolina"Lowndes Grove""+32° 48' 6.00", −79° 57' 58.00""Lowndes Grove, Charleston County (260 St. Margaret St., Charleston)""Lowndes Grove"The Charleston ExpositionIt Happened in South Carolina"Lowndes Grove (House), Saint Margaret Street & Sixth Avenue, Charleston, Charleston County, SC(Photographs)"Plantations of the Carolina Low Countrye

random experiment with two different functions on unit interval Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 00:00UTC (8:00pm US/Eastern)Random variable and probability space notionsRandom Walk with EdgesFinding functions where the increase over a random interval is Poisson distributedNumber of days until dayCan an observed event in fact be of zero probability?Unit random processmodels of coins and uniform distributionHow to get the number of successes given $n$ trials , probability $P$ and a random variable $X$Absorbing Markov chain in a computer. Is “almost every” turned into always convergence in computer executions?Stopped random walk is not uniformly integrable

How should I support this large drywall patch? Planned maintenance scheduled April 23, 2019 at 00:00UTC (8:00pm US/Eastern) Announcing the arrival of Valued Associate #679: Cesar Manara Unicorn Meta Zoo #1: Why another podcast?How do I cover large gaps in drywall?How do I keep drywall around a patch from crumbling?Can I glue a second layer of drywall?How to patch long strip on drywall?Large drywall patch: how to avoid bulging seams?Drywall Mesh Patch vs. Bulge? To remove or not to remove?How to fix this drywall job?Prep drywall before backsplashWhat's the best way to fix this horrible drywall patch job?Drywall patching using 3M Patch Plus Primer