Toolvito

Works on this device

Function Graphing Calculator

Type one or more functions and see them drawn in a window that you set. Under the graph, the same functions are worked out in words and numbers: a table of values, intercepts and roots, domain and range, asymptotes, the inverse and more.

Functions and window

Type the formula with x. You can use numbers, the variable, + − × ÷ (also * and /), powers with ^, brackets, the functions sin, cos, tan, asin, acos, atan, sqrt, abs, ln, log, log2, logb and exp, the factorial sign ! after a whole number, and the constants pi and e. Angles are in radians. ln is the natural logarithm, log is the logarithm to base 10, log2 is the logarithm to base 2, and logb(b, x) is the logarithm of x to the base b. For a function in pieces, write a condition after each piece and put ; between the pieces: x^2 for x < 0; x + 1 for x >= 0.

Curve f
Curve g
Window: the part of the plane that the graph shows

Ready. Your formulas are worked out in this browser tab.

Graph

Keyboard: when the graph has focus, the arrow keys move the window, the plus and minus keys zoom, and 0 resets the window. You can also drag the graph, and turn the mouse wheel over it while it has focus.

    This picture is a sampled drawing: each curve is worked out at 601 points and joined by straight lines, and it is broken where the function has no value. The results below are worked out from the formulas.

    Results in words and numbers

    The first x. The same three numbers are used for t of a parametric or polar curve.

    A number such as 2, 3/4 or pi/4.

    Leave it empty if you only want the inverse formula.

    Leave it empty if you only want the formulas.

    The new function is a × f(b(x - h)) + k.

    A number below 0 shifts left.

    A number below 0 shifts down.

    How to use the graphing calculator

    1. Type a function of x, such as x^2 - 4 or sin(x)/x. Choose Add a curve for more functions; the page draws up to six at once.
    2. Set the window: the smallest and largest x and y that the graph shows. Then choose Draw graph.
    3. Use Zoom in, Zoom out and the four Move buttons to look at another part of the graph. Reset window goes back to the window of your last Draw graph.
    4. Under the graph, choose what you want to work out, enter the few values it needs, and choose Work out.
    5. Choose Download CSV or Copy results to keep the numbers.

    What you can type

    You can use numbers, the variable, + − × ÷ (also * and /), powers with ^, brackets, the functions sin, cos, tan, asin, acos, atan, sqrt, abs, ln, log, log2, logb and exp, the factorial sign ! after a whole number, and the constants pi and e. Angles are in radians. ln is the natural logarithm, log is the logarithm to base 10, log2 is the logarithm to base 2, and logb(b, x) is the logarithm of x to the base b.

    You can leave out the multiplication sign: 2x, 3(x + 1) and 2sin(x) are read as products. A power has one value after ^, so write e^(2x) with brackets.

    Kinds of curve and how to type them
    Kind of curve What to type Example
    Function of x Only the right side of y = ... x^3 - 3x
    Function in pieces Each piece as a formula, the word for, and a condition, with ; between the pieces x^2 for x < 0; x + 1 for 0 <= x < 3; 4 for x >= 3
    One function on a part of the x-axis A formula, the word for, and a condition sqrt(x) for 1 <= x <= 9
    Parametric curve x(t) and y(t), and where t starts and ends 4cos(t) and 3sin(t), t from 0 to 2pi
    Polar curve r as a formula of theta (you can also type t), and where theta starts and ends 4cos(2theta), theta from 0 to 2pi

    How the graph is drawn

    The picture is a sampled drawing. Each function of x is worked out at 601 evenly spaced x values across the window, and each parametric or polar curve at 601 evenly spaced values of t. Straight lines join neighbouring points.

    The line is broken where the function has no value, so the page does not join the two sides of a pole. There are three rules:

    • A sample point with no value ends the line. The edge of the domain is then closed in by halving the gap, so a curve such as sqrt(x) starts exactly at its first point.
    • Between two samples, the page looks at the conditions that the formula itself gives: a division needs a bottom part that is not 0, an even root needs a number that is 0 or more, a logarithm needs a number above 0, and tan needs a cosine that is not 0. Where one of these fails between two samples, the line is broken at that x. This is how the poles of tan(x) and of 1/x^2 are found.
    • Two neighbouring points that are more than one twentieth of the window diagonal apart are tested: the gap between them is halved 12 times. If the two sides stay far apart, it is a jump and the line is broken.

    Each curve has its own line pattern and its own entry in the key, so you do not need colour to tell them apart. Vertical asymptotes can be marked with thin dotted lines and holes with open circles. A piece of a function that ends at a point shows a filled dot when the point belongs to the piece and an open circle when it does not. Nothing on the graph moves by itself.

    Zoom and move the window

    • Buttons: Zoom in, Zoom out, Move left, Move right, Move up, Move down, Fit height and Reset window. Fit height sets the y range from the values of the functions between the left and right edge.
    • Keyboard: press Tab until the graph has the focus ring. Then the arrow keys move the window, the plus key and the minus key zoom, and the 0 key resets the window. These keys work only while the graph has focus.
    • Mouse or touch: drag the graph to move it. On a touch screen, drag sideways; an up or down drag scrolls the page as usual. The mouse wheel zooms while the graph has focus (select it first).
    • You can always type the four window numbers yourself. They may use pi, for example -2pi.

    Results in words and numbers

    Everything under the graph is worked out from the formulas, not read from the picture. A person who cannot see the graph gets the same facts.

    • Table of values: the value of every function at x from a start to an end in steps that you choose. The CSV file has the same numbers.
    • Intercepts, roots, turning points and crossings: the y-intercept is the value at x = 0. A root is found where the value changes sign between two samples; the gap is then halved until it cannot shrink. A simple fraction is shown as exact when putting it into the formula gives exactly 0. Local highest and lowest points come from the samples and are closed in with the exact derivative. Crossings of two functions are the roots of their difference.
    • Value and slope at one point: the value, the exact derivative, the slope and the tangent line.
    • Domain and range: the conditions that the formula needs, where they hold inside the window in interval notation and as inequalities, and the lowest and highest value in the window.
    • Asymptotes and holes: vertical asymptotes and holes inside the window. For a ratio of polynomials the horizontal or slant asymptote is exact; for other functions it is an estimate from values at very large x.
    • Inverse function: a formula with its steps when x is used once in the formula, and for a ratio of two straight lines or a quadratic. The page checks the formula with numbers, draws the mirror image in the line y = x, finds x for a value of y, and tests whether two functions undo each other.
    • Combine and compose: f(g(x)), g(f(x)), the sum, difference, product and quotient, their values at an x, and the domain of the two compositions inside the window.
    • Stretch, flip and shift: the function a × f(b(x - h)) + k, what each number does to the graph, and where points move.
    • Exact facts for a polynomial: degree, coefficients and intercepts with exact fractions. For a line: slope and its forms. For a quadratic: vertex, axis, discriminant, roots, and the standard, vertex and intercept forms. For any polynomial: the possible rational roots and which of them are roots.

    Worked example

    Type x^2 - 4 as f and x + 2 as g, and keep the window from -10 to 10. The page draws a parabola and a line. Intercepts, roots, turning points and crossings gives for f: y-intercept (0, -4), roots x = -2 and x = 2, and a local lowest point (0, -4). For g it gives y-intercept (0, 2) and the root x = -2. The two curves cross at (-2, 0) and (3, 5): at x = 3 both have the value 5.

    For sqrt(x - 2)/(x - 5) the domain inside the same window is [2, 5) ∪ (5, 10]: the square root needs x - 2 to be 0 or more, and the division needs x - 5 not to be 0.

    For (x^2 + 1)/(x - 1) the page finds a vertical asymptote at x = 1 and the slant asymptote y = x + 1, because x^2 + 1 divided by x - 1 is x + 1 with a remainder of 2.

    Limits you should know

    • The graph and the numerical results come from samples. A detail narrower than the gap between two samples, such as a very thin spike, can be missed. Zoom in to look closer.
    • A root with no change of sign, such as a double root, is looked for with a second test and can still be missed. A bottom part that only comes very close to 0 can be read as reaching 0.
    • Domain, range, roots and vertical asymptotes are found inside the window only. What a function does outside the window is not examined, except for the exact results that say so.
    • The page draws y as a function of x, parametric curves and polar curves. It does not draw an equation that mixes x and y, such as x^2 + y^2 = 9, an inequality, a function of two variables, a 3D graph or a function of a complex number.
    • The reader has no floor, ceiling, sign, hyperbolic or gamma function. A factorial of x has a value only at whole numbers, so its graph is single points.
    • An inverse formula is found only for the kinds of formula named above. For other functions the page still draws the mirror image and finds inverse values by numbers.
    • Angles are in radians. Numbers are shown with up to 10 significant digits; very large values can be too big for the page to work out.
    • This page is a study aid. Check important results with your own working.

    Related tools