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

Solar Wings Breeze Design and development Specifications (Breeze) References Navigation menu1368-485X"Hang glider: Breeze (Solar Wings)"e

Kathakali Contents Etymology and nomenclature History Repertoire Songs and musical instruments Traditional plays Styles: Sampradayam Training centers and awards Relationship to other dance forms See also Notes References External links Navigation menueThe Illustrated Encyclopedia of Hinduism: A-MSouth Asian Folklore: An EncyclopediaRoutledge International Encyclopedia of Women: Global Women's Issues and KnowledgeKathakali Dance-drama: Where Gods and Demons Come to PlayKathakali Dance-drama: Where Gods and Demons Come to PlayKathakali Dance-drama: Where Gods and Demons Come to Play10.1353/atj.2005.0004The Illustrated Encyclopedia of Hinduism: A-MEncyclopedia of HinduismKathakali Dance-drama: Where Gods and Demons Come to PlaySonic Liturgy: Ritual and Music in Hindu Tradition"The Mirror of Gesture"Kathakali Dance-drama: Where Gods and Demons Come to Play"Kathakali"Indian Theatre: Traditions of PerformanceIndian Theatre: Traditions of PerformanceIndian Theatre: Traditions of PerformanceIndian Theatre: Traditions of PerformanceMedieval Indian Literature: An AnthologyThe Oxford Companion to Indian TheatreSouth Asian Folklore: An Encyclopedia : Afghanistan, Bangladesh, India, Nepal, Pakistan, Sri LankaThe Rise of Performance Studies: Rethinking Richard Schechner's Broad SpectrumIndian Theatre: Traditions of PerformanceModern Asian Theatre and Performance 1900-2000Critical Theory and PerformanceBetween Theater and AnthropologyKathakali603847011Indian Theatre: Traditions of PerformanceIndian Theatre: Traditions of PerformanceIndian Theatre: Traditions of PerformanceBetween Theater and AnthropologyBetween Theater and AnthropologyNambeesan Smaraka AwardsArchivedThe Cambridge Guide to TheatreRoutledge International Encyclopedia of Women: Global Women's Issues and KnowledgeThe Garland Encyclopedia of World Music: South Asia : the Indian subcontinentThe Ethos of Noh: Actors and Their Art10.2307/1145740By Means of Performance: Intercultural Studies of Theatre and Ritual10.1017/s204912550000100xReconceiving the Renaissance: A Critical ReaderPerformance TheoryListening to Theatre: The Aural Dimension of Beijing Opera10.2307/1146013Kathakali: The Art of the Non-WorldlyOn KathakaliKathakali, the dance theatreThe Kathakali Complex: Performance & StructureKathakali Dance-Drama: Where Gods and Demons Come to Play10.1093/obo/9780195399318-0071Drama and Ritual of Early Hinduism"In the Shadow of Hollywood Orientalism: Authentic East Indian Dancing"10.1080/08949460490274013Sanskrit Play Production in Ancient IndiaIndian Music: History and StructureBharata, the Nāṭyaśāstra233639306Table of Contents2238067286469807Dance In Indian Painting10.2307/32047833204783Kathakali Dance-Theatre: A Visual Narrative of Sacred Indian MimeIndian Classical Dance: The Renaissance and BeyondKathakali: an indigenous art-form of Keralaeee

Method to test if a number is a perfect power? Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 00:00UTC (8:00pm US/Eastern)Detecting perfect squares faster than by extracting square rooteffective way to get the integer sequence A181392 from oeisA rarely mentioned fact about perfect powersHow many numbers such $n$ are there that $n<100,lfloorsqrtn rfloor mid n$Check perfect squareness by modulo division against multiple basesFor what pair of integers $(a,b)$ is $3^a + 7^b$ a perfect square.Do there exist any positive integers $n$ such that $lfloore^nrfloor$ is a perfect power? What is the probability that one exists?finding perfect power factors of an integerProve that the sequence contains a perfect square for any natural number $m $ in the domain of $f$ .Counting Perfect Powers