How do I write this basic recursive formula into Desmos?

$\begingroup$

I want to graph a simple equation $f(x)$ which begins at $(0,1)$, then for every increasing $x$ integer increment, $f(x) = f(x-1) - (c * f(x-1))$.

So in other words each time you go up by one $x$ integer you take the previous $x$ value's $y$ output and subtract from it its value multiplied by a constant $c$.

It should output a stepwise graph with changes in $y$ value for every $x$ integer.

How do I do this in Desmos? Can you perhaps post a link to illustrate?

How would it also work differently if you wanted it to do the multiplication/subtraction every $5x$ integers to create a stepwise change for every $5x$ integers?

I don't need it to graph to $x=infinity$. Even if it can graph to $x=20$ or so this will help me solve my problem.

$\endgroup$ 2 Reset to default

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like