Graphing Calculator
This graphing calculator plots up to three functions of x on the same graph and lists where each one crosses the axes. Type a function like x^2 - 4 or sin(x), adjust the viewing window, and the graph updates as you type.
Graph
Result
2 functions plotted
| f(x) x-intercepts | -2, 2 |
|---|---|
| f(x) y-intercept | -4 |
| g(x) x-intercepts | -9.4248, -6.2832, -3.1416, 0, 3.1416, 6.2832, 9.4248 |
| g(x) y-intercept | 0 |
Results update as you type.
How to Use the Graphing Calculator
- Type a function in the f(x) box using x as the variable.
- Add more functions in g(x) and h(x) to compare them. Each has its own color.
- Adjust the view with Zoom in, Zoom out, or by typing x min, x max, y min and y max.
- Read the key points in the result panel: where each function crosses the x-axis and the y-axis.
Writing Functions the Calculator Understands
| You want | Type |
|---|---|
| x squared | x^2 |
| 3 times x | 3x or 3*x |
| Square root | sqrt(x) |
| Cube root | cbrt(x) |
| Sine, cosine, tangent (radians) | sin(x), cos(x), tan(x) |
| e to the x | exp(x) or e^x |
| Natural log | log(x) |
| Absolute value | abs(x) |
| Fractions | (x + 1)/(x - 2) |
Use brackets generously. 1/2x is read as (1/2)·x. If you mean 1/(2x), type 1/(2x).
Reading a Graph: A Worked Example
Take the two default functions, f(x) = x² − 4 and g(x) = sin(x), on a window from −10 to 10.
- f(x) = x² − 4 is a parabola opening upwards. Setting x² − 4 = 0 gives x = ±2, so it crosses the x-axis at −2 and 2. At x = 0 it equals −4, its y-intercept and lowest point.
- g(x) = sin(x) is a wave between −1 and 1. It crosses the x-axis at every multiple of π, so between −10 and 10 the calculator lists −9.4248, −6.2832, −3.1416, 0, 3.1416, 6.2832 and 9.4248.
Where the two graphs cross, x² − 4 = sin(x). There’s no neat formula for that, but zooming in on the crossing points shows they are close to x ≈ −1.74 and x ≈ 2.19.
Choosing a Good Viewing Window
Start wide, then zoom
If you don’t know what a function looks like, start with −10 to 10 on both axes, then zoom in on the interesting part. Zoom in halves the window around its center; Zoom out doubles it.
Match the scale to the numbers
A function like 500x + 2000 needs a y range in the thousands. Set y min to −1000 and y max to 10000, and the line becomes visible instead of shooting off the top of the screen.
Trig functions use radians
sin, cos and tan expect radians, so one full wave of sin(x) is 2π ≈ 6.28 units wide. To work in degrees, type sin(x * pi / 180) and set the x range to −360 to 360.
Common Mistakes
- Forgetting the multiplication sign between brackets.
(x+1)(x-1)works, but2(x+1)and2*(x+1)are safest. - Using a variable other than x. The grapher only plots functions of x. Use the algebra calculator to solve equations in other variables.
- Expecting exact roots. Intercepts are numerical, to about four decimal places. For an exact answer such as (5 ± √13)/2, solve the equation in the algebra calculator.
- Looking for asymptotes as lines. Functions like 1/x jump at x = 0. The calculator breaks the line there rather than drawing a false vertical line.
To find the slope of a curve at any point, use the derivative calculator.
Frequently Asked Questions
How do I graph a function online?
Type the function into the f(x) box using x as the variable, for example 2x + 1, x^2 - 4 or sin(x). The graph updates as you type. Add up to two more functions in the g(x) and h(x) boxes to compare them on the same axes.
How do I type powers, roots and other functions?
Use ^ for powers (x^3), sqrt(x) for square roots, and sin, cos, tan, exp, log (natural log), log10 and abs for the usual functions. Multiplication can be written with * or left out between a number and x, so 3x and 3*x both work. Use pi for π.
How do I find where a graph crosses the x-axis?
The result panel lists every x-intercept in the current view, found where the function changes sign. The y-intercept is the value at x = 0 when 0 is inside the window. To get exact roots of a polynomial, use the algebra calculator.
Why does my graph look empty?
The function may be outside the viewing window. Try Zoom out or widen the y min and y max values. Functions like sqrt(x) or log(x) are only defined for some x values, so part of the window will stay blank.
Is this like the Desmos graphing calculator?
It covers the same everyday job of plotting functions in y = form and reading off intercepts, with nothing to install. Dedicated tools such as Desmos go further, with sliders, inequalities, tables and saved graphs. For quick homework checks and comparing a few functions, this calculator is enough.
Can I graph equations like y = 2x + 1?
Yes. You can type y = 2x + 1, f(x) = 2x + 1 or just 2x + 1. Equations that can't be written as y in terms of x, such as circles, need to be split into two functions, for example sqrt(9 - x^2) and -sqrt(9 - x^2).
Related Calculators
Sources & Assumptions
- OpenStax, Precalculus 2e — graphs of functions, intercepts and transformations
- Functions are evaluated with the open-source math.js library. Each function is sampled at 600 points across the window; lines are broken at vertical asymptotes.
- x-intercepts are found where the function changes sign between samples and refined numerically, so a root that touches the axis without crossing it (like x² at 0) may not be listed.
Last reviewed: