Functions
Functions
How to Use
- Type a mathematical expression in the input field (e.g.,
sin(x)) - The graph updates in real-time as you type
- Click + Add Function to plot multiple functions simultaneously
- Drag to pan, scroll to zoom, or pinch on mobile
- Use the color picker to change curve colors
- Toggle visibility with the eye icon
Supported Functions
Basic
x^2 + 3x - 1— polynomials2x + 5— linear functionsabs(x)— absolute valuesqrt(x)— square root
Trigonometric
sin(x),cos(x),tan(x)asin(x),acos(x),atan(x)2*sin(3x)— amplitude and frequency
Exponential & Log
e^x— natural exponential2^x— exponential with base 2log(x)— natural logarithmlog(x, 10)— log base 10
Constants
pi—e—1/x— reciprocal
Example Functions
x^2 - 4Opens upward, crosses x-axis at x = -2 and x = 2
2*sin(3x)Amplitude 2, period 2π/3
e^(-x^2)Bell curve centered at origin
Tips
- Use
*for multiplication:2*xnot2x(though both work in most cases) - Use
^for exponents:x^2means x squared - Parentheses matter:
sin(2*x)is different fromsin(2)*x - Zoom in near roots and extrema to see more detail
- Share your graph by copying the URL — it encodes all your functions
Frequently Asked Questions
What types of functions can I graph?
You can graph polynomials, trigonometric functions (, , and their inverses), exponential functions (, ), logarithms (, ), absolute value, square root, and compositions of all of these.
How many functions can I plot at once?
You can plot up to 10 functions simultaneously, each with a distinct color. Use the + Add Function button to add additional curves.
Why does my graph show gaps or discontinuities?
Some functions are undefined for certain values of . For example, is undefined for , and has vertical asymptotes at odd multiples of . The grapher correctly omits these undefined regions.
How do I share my graph with someone?
Your expressions are automatically encoded in the page URL. Simply copy the URL from your browser's address bar and share it. The recipient will see the same functions when they open the link.
What is the difference between roots and x-intercepts?
They are the same thing. A root (or zero) of a function is any value where . Geometrically, these are the points where the graph crosses or touches the x-axis.
How accurate are the root and extrema detections?
The calculator uses numerical methods (sign-change bisection for roots, three-point comparison for extrema) with high resolution sampling. Results are typically accurate to 4+ decimal places within the visible viewport. For exact analytical solutions, use a computer algebra system.
Disclaimer
This graphing calculator is provided for educational and exploratory purposes only. While the underlying math engine (mathjs) is well-tested, numerical methods for root-finding and extrema detection are approximate and may miss features in certain edge cases (e.g., very narrow roots, functions with high-frequency oscillations, or near-tangent x-axis crossings). Results should not be used as the sole basis for academic submissions, engineering decisions, or professional work without independent verification.
Related Calculators
6 CalculatorsMore Math calculators