Linear functions and slope triangles
About this app
Adjust slope and intercept, or drag two points. See how a slope triangle connects horizontal steps with vertical change.
Slope and intercept
A linear function has the form y = m·x + b. The slope m tells how much y changes when x increases by 1: with m = 2 the line rises 2 for every step to the right, with negative m it falls, and with m = 0 it is horizontal. The y-intercept b is where the line crosses the y-axis, the point (0 | b).
What the app shows
The line is drawn in a coordinate system together with a slope triangle where Δx = 1 and Δy = m. A marker sits at (0 | b) and can be dragged along the y-axis. In two-point mode you drag P₁ and P₂, and the app computes m = Δy/Δx and b = y₁ − m·x₁. Scroll to zoom and drag empty space to pan.
Try it yourself
Change only m and the line rotates about (0 | b). Change only b and it shifts up or down while its steepness stays the same. This makes it easy to check the common mix-up that m tells how high the line is or that b is the slope. In two-point mode you can verify your own calculation for the line through two given points.
Frequently asked questions
- How do you find the slope of a line through two points?
- For P₁(x₁ | y₁) and P₂(x₂ | y₂), the slope is m = (y₂ − y₁) / (x₂ − x₁), rise over run. The y-intercept then follows from b = y₁ − m·x₁. If x₁ = x₂, the line is vertical and not a function.
- What is a slope triangle?
- A slope triangle is a right triangle drawn on the line with a horizontal leg Δx and a vertical leg Δy. The ratio Δy/Δx is the slope m. With Δx = 1, you can read m directly as the height of the triangle.
- What does b mean in y = mx + b?
- b is the y-intercept, the value of y at x = 0. Changing b shifts the line up or down in parallel without changing its slope.
- What can I do in this app?
- You set m and b with sliders or drag two points from which m and b are calculated. The slope triangle and the marker at (0 | b) show what each parameter does.
Subject: School mathematics (Gymnasium)
More from School mathematics (Gymnasium)
- Tree diagram & path rules
- Binomial identities through geometry
- The number π
- Unit circle & sine curve
- Exponential growth & decay
- Ulm’s glass pyramid
- Equation balance
- Half-life & decay
A VisuApp by heyprof: interactive, free in your browser, no sign-up. What is a VisuApp? · All apps