# Sliders

### Overview

Any time you have free variables in an expression, the calculator will offer to let you define them with sliders. You will see the option to add sliders appear in the expression bar once you finish typing in your equation.

You can also use the same variables in several expressions to plot curves that will change together.

In this example, the value of c defines two parallel lines that move up and down together.

In this example, the two lines stay perpendicular to each other for any value of m.

To adjust the limits and interval of your slider, click either of the values at the ends of the slider bar. Input your values and click "set to complete the adjustment.

### More Resources

#### Learn Sliders

0 out of 5 found this helpful
Have more questions? Submit a request

• Wojciech Gościcki

It would be great if the slider's limits could be set by another variable (for example: from 0 to n, or from a to b step c).

• Team Desmos

The ability to add variables to slider limits is on our list - stay tuned :)

• Gillian Parkes

Is there a way to play a few different sliders all at exactly the same time so they move together?

• xtravisage

Is there any way to just make a variable increase indefinitely?

• skylord a52

Is it possible to make the slider go only a certain direction? (ie go right until it hits 10, change to -10, keep going right)

• Flame M.

It would be nice if there was a way to define an exact time for how long a slider will take to go from it's lower to upper limit.

• Sgsmathck

It would be nice (for example with trig functions) to be able to make sliders have their limits and intervals defined in terms of pi, without having to copy/paste those values in.

• Nick Z

Any update on using variables as limits? I saw you responded back in 2016, but nothing's happening yet. Desmos is a great tool, keep up the good work. I enjoy using it for schoolwork and for fun.

• 349137230

Would it be possible to have the limits of a slider set by another variable? Say P is the orbital period and t is the time since periapsis, have a slider that sets 0>t>P. This would make certain points seem to have a continuous motion when the slider resets. Thanks.

• Pecooper 2021

Eric Roch already said it - if there was a button that replaces all variables with the current slider number and deletes the slider.

• Thomas Collier

Is there a way to restrict students from editing the limits/step of the sliders?

• Parth Dodiya

Hey,

I want to know the speed of slider, When we play slider at various pace (ex 2x,4x).

• Edwin Szeto

How many sliders can we add in 1 graph? it seems to max out at 6?

• Alec Timmerman

Thanks

• Alec Timmerman

It would be nice is the function displayed changes as the sliders changed, and then displayed the actual function of whatever sliders it landed on.

For example f(x) =a(x-h)^2+k .     would show up as 2(x-3)^2+5 when a = 2 h=3 and k=5 instead of just always showing the generic function. Any way to do this?

• Michael Fenton

Flame: I'll pass your comment along to the team. In the meantime, this might help: At 1x speed, the slider takes 4 seconds to run through one cycle. Speed up or slow down to adjust accordingly. (Although, admittedly, this won't allow you to hit certain slider durations.)

• Jake Lowry

Is it possibe to change the bounds of the graph wondow using a variable defined with a slider. Ex. As a in the function ax^3 gets larger have the left and right bounds of the graph window shift to stay fixed on te graph of ax^3.

• Joshua Luke Himmelsbach

I have created a linear regression exploration that uses lots of data points that can be dragged around. I would like to be able to 'reset' the points to their initial position. In other words, a way to define a 'default' value for any slider variable, and make it easy (one-click) to return that slider to its default without having to actually slide it. Is there a way to do this for a single slider? How about for all sliders at once?

• Render Ford

Is there a way to make it so that the slider animation or movement has only a certain amount of repetitions? For example I am making a smiley face with eyebrows and I only want the eyebrows to move up and down 2 times, like he is looking at a girl or something. Is that possible? I think that would be helpful for people doing desmos art.

• 701878

Hey could you guys hurry up and make a slider that can be set to whatever speed desired? Thanks guys great tool

• Michael Fenton

Alec, while it's not possible to do that in the expression list, you can add a dynamic graph label to the coordinate plane. Here's one example: https://www.desmos.com/calculator/s7jnensymg

• Seth Thomason

701878 If in every place the variable determined by the slider occurs, you run it through the speed function you want, and run the endpoints of the slider through the inverse function, it should work the same

• Flame M.

Alex: Hey I though I'd save the Desmos team some time on this one being that I'm on this mailing list. For one, you can easily hide the functions by putting them in a folder which you can make by hitting add item. As for editing values in full screen you can crate movable points and use these to create on-graph sliders. Here is a link to a sample graph that demo's all of these. https://www.desmos.com/calculator/tk8bstp7rz

The letter A is just for effect, but it does make it look nicer

• deafdumnblind

Changing the slider bounds and step rarely works

• Eric Roch

It would also be cool if sliders had a "Submit" button (the word on the buttons not important) that would replace all instances of that slider variable with its current value. This would be very useful for projects where sliders are used to tweak equations (i.e. to match a picture) when you want to save the values in the equation(s). Another option would be to put a button on equations that use sliders to accept the values on an equation-by-equation basis rather than by slider.

• Seth Thomason

Dylan, you should see an arrow loop looking thing, click that once to get it to do that

• Tom Kenyon

I like that the play button moves the sliders forward and backward.   And, I like that you can click the --> <--- button to change it to ---> --->  (above one another) so that the slider only plays forward.   But, I make a lot of physics models.  My most common slider is for time.   I wish there was a way for it to simply play once, and not repeat.  (Is there?)

• Bryan Dickinson

Hi all,

It would be cool if you could restrict your sliders to fractions, meaning if I have y = mx + b, my slider would show m = 1/2 rather than 0.5. This could make for some more effective exploration activities around equations. This isn't already an option is it?

• Michael Fenton

Hi Bryan. That's not currently possible, but I'll pass your request along to the rest of the team. Thanks for sharing!

• Pgarcia

I would really appreciate a backwards only option for sliders. It would me much more effective for demonstrating limits.