Home / Learn / Maths / Linear function explorerTool #L154 (formerly #1273)

Linear function explorer: y = mx + c with sliders, slope as rise over run, and the zero of the line

Slide m and c, or drag the line itself, and see y = mx + c drawn with its slope triangle (rise over run), the point where it cuts the y-axis and the zero where it meets the x-axis, all worked with your numbers. A Class 11 level adds the angle of the line and its other forms.

Keep it one tap away for everyday use.

Bookmark Linear function explorer?

Press Ctrl + D now. Your browser opens its own bookmark box, where you choose the name and folder.

  1. Set m and c
  2. See the line
  3. Rise ÷ run
  4. Practise
Nothing is uploadedWorks offline once open

The line

Drag the round handles: the one on the y-axis moves c, the other turns the line (changes m).

m
c

With your numbers

    Try this

    • Keep c and change m. Every line passes through the same point (0, c). Which way does it tip when m is negative?
    • Set m = 0. The line is flat, and (unless c = 0) it never meets the x-axis: there is no zero.
    • Look at the table: each time x goes up by 1, y goes up by m. That is what slope means.
    • Find m and c so that the line passes through (2, 1) and (4, 5).

    Check yourself

    Fresh questions every time. Fractions like 3/2 are fine. Nothing is saved.

    What it does

    A linear polynomial such as p(x) = 2x − 3 has a graph that is a straight line. This page draws y = mx + c and shows the three things every straight line is built from:

    • the slope m, drawn as a little triangle: go a run of 2 to the right and the line goes up (or down) a rise of 2m, so m = rise ÷ run;
    • the y-intercept c, where the line cuts the y-axis at (0, c);
    • the zero, where the line meets the x-axis: solve mx + c = 0 to get x = −c/m.

    A table of values shows that each step of 1 in x adds m to y. It fits the Class 9 Maths chapter introducing linear polynomials, and the straight lines chapter of Class 11, where the Class 11 level adds the angle the line makes with the x-axis and the point-slope, intercept and general forms.

    Higher powers and their zeros are in polynomial zeros, two lines meeting are in the linear pairs, and the slope of a curve, not just a line, is the derivative slope.

    How to use it

    1. Move the m and c sliders, or type values (the boxes take any number, beyond the sliders too).
    2. Or drag the handles on the graph: the one on the y-axis moves the line up and down (changes c); the other one turns it (changes m).
    3. Read the steps under the graph: slope, y-intercept and the zero, with your numbers.
    4. Switch the Level to Class 11 for the angle of inclination and the other ways of writing the same line.

    A worked example

    The page starts with m = 2 and c = −3, so p(x) = 2x − 3.

    • The slope triangle has run 2 and rise 4: m = 4 ÷ 2 = 2.
    • The line cuts the y-axis at (0, −3).
    • Zero: 2x − 3 = 0, so x = 3 ÷ 2 = 1.5. The red dot sits at (1.5, 0).
    • In the Class 11 level: θ = tan⁻¹(2) = 63.43°, and the intercept form is x/1.5 + y/(−3) = 1.

    Tips

    • A positive slope climbs from left to right; a negative slope falls.
    • Lines with the same m are parallel; lines with the same c all pass through (0, c).
    • A flat line (m = 0) has no zero unless it is the x-axis itself.

    Check yourself

    Four fresh questions: the zero of a linear polynomial, the slope between two points, a y-value from the equation, and where a line in the form ax + by = c cuts the y-axis. Nothing is saved.

    FAQ

    Why m and c? It is a convention in Indian and British books. Other countries write y = mx + b or y = ax + b; the ideas are the same.

    What about a vertical line? x = 3 is a line, but it is not the graph of a function y = mx + c: its run is 0, so its slope is undefined.

    Is this from the NCERT book? It covers the same topic with fibub’s own examples. fibub is not part of NCERT.

    Where the numbers come from

    • Standard results for straight lines: slope m = rise ÷ run, y-intercept c, zero x = −c/m of the linear polynomial mx + c, angle of inclination θ = tan⁻¹ m, and the point-slope, intercept and general forms. Written for fibub.
    • Checked against hand-worked lines (y = 2x − 3: zero 3/2, angle 63.43°; y = −x + 4: zero 4, angle 135°), Python math.atan for 1,000 random slopes, and the two-point slope for random point pairs.

    Standard scientific values, such as constants, atomic weights and melting points, are facts found in every textbook; we name where ours were checked. If you are an author or publisher and want a value, a credit or a table changed or removed, tell us and we will act quickly.

    Last updated 2026-11-09.

    Change log for Linear function explorer

    1. Add #1273 Linear function explorer Details on GitHub

    Every change to fibub

    Related tools

    Polynomial zeros #L73 Slide the coefficients of a linear, quadratic or cubic polynomial and see its zeros where the graph meets the x axis. Drag a zero and the polynomial rebuilds itself. The sum and product of zeros are checked against the coefficients live. Linear pairs #L74 Type two equations and see their lines cross, run parallel or lie on top of each other. The ratio test says how many solutions there are, and the substitution and elimination methods are worked step by step with exact fractions. Derivative slope #L84 Drag two points on a curve and shrink the gap h: the secant line turns into the tangent and its slope settles on f′(x). See the slope graph f′(x) drawn under f(x), a table of slopes from both sides, first-principles working for xⁿ and sin x, corners where there is no derivative, and fresh practice questions. Coordinate treasure hunt #L153 Four quick games on the coordinate plane: tap a point from its coordinates, read the coordinates of a point, hunt buried treasure using distance clues, and sink three hidden ships. Learn the quadrants, the signs of x and y, and the distance formula as you play. Quadratic explorer #L68 Slide a, b and c and watch the parabola move: vertex, roots and the discriminant update live, completing the square is drawn with tiles, and the middle term is split for you. With fresh practice questions. Pythagoras proof playground #L69 Drag a right triangle and watch the squares on its sides add up. Slide through four visual proofs (rearrangement, Bhaskara, similar triangles, Baudhayana) with your own side lengths, and list Pythagorean triples.