Equation of a linear function

Task
Create a linear function with sliders and visualize its parameters. [br][br]Explore the construction and learn how to visualize the slope and y-intercept of a linear function with [i][url=https://www.geogebra.org/graphing]GeoGebra Graphing Calculator[/url][/i]. Then follow the instructions below that show you, how to do the same construction steps using the Algebra View.
Explore the construction...
Instructions
[table][tr][td]1.[/td][td][/td][td]Enter the linear function [math]f(x)=a\cdot x+b[/math] into the [i]Input Bar[/i]. Sliders for variables [i]a[/i] and [i]b[/i] will be created automatically.[/td][/tr][tr][td]2.[/td][td][/td][td]Create points [math]A=\left(0,f\left(0\right)\right)[/math] and [math]B=\left(1,f\left(0\right)\right)[/math].[/td][/tr][tr][td]3.[/td][td][/td][td]Connect the created points with a segment by using the command [math]Segment\left(A,B\right)[/math].[/td][/tr][tr][td]4.[/td][td][/td][td]Create point [math]C=\left(1,f\left(1\right)\right)[/math] and connect point C with point B using the command [math]Segment\left(B,C\right)[/math].[/td][/tr][tr][td]5.[/td][td][/td][td]Use the command [math]Segment\left(\left(0,0\right),A\right)[/math] visualize the y-intercept.[/td][/tr][tr][td]6.[/td][td][/td][td]Disable the [img]https://wiki.geogebra.org/uploads/thumb/3/34/Algebra_hidden.svg/16px-Algebra_hidden.svg.png[/img] [i]Visibility [/i]button next to the points [i]A, B [/i]and [i]C[/i] to hide them. [/td][/tr][tr][td]7.[/td][td][/td][td]Select the segment [i]AB[/i] and deselect [i]Show Label. [/i][/td][/tr][tr][td]8.[/td][td][/td][td]Select the segment of the y-intercept, choose the [img width=20,height=20]https://lh5.googleusercontent.com/m4JJV-BBHdJBfdjRUsylYIuAaCroguwoVEWij8b4Y7X7OjDbyt-wRNegS8oERyKiujYH5_DaJikRPCfwmR-9Xkls8F0FsM8ibx6wiUkL0Bd4HnBOjYLWKi0JIDWLj7WblgWGdnuM[/img] [i]More [/i]button and select [i]Settings. [/i]Change the caption of the segment to [i]b. [/i]Repeat this for segment BC and change its caption to [i]a. [/i][i][br][/i][/td][/tr][tr][td]9.[/td][td][/td][td]Enable the [img]https://wiki.geogebra.org/uploads/thumb/3/34/Algebra_hidden.svg/16px-Algebra_hidden.svg.png[/img] [i]Visibility [/i]button next to the sliders to show them in the [i]Graphics View.[/i][/td][/tr][tr][td]10.[/td][td][/td][td]Change the color of the segments using the [i]Style Bar[/i] to enhance your construction.[/td][/tr][/table]
Try it yourself...

Information: Equation of a linear function