Function Grapher
Visualize algebraic functions on an interactive coordinate system, identify intercepts, asymptotes, and analyze function behavior with our free online function grapher.
The Function Grapher lets you visualize up to three algebraic functions simultaneously on an interactive coordinate system. Plot polynomial, trigonometric, exponential, logarithmic, and rational functions, then analyze key features such as $x$-intercepts, $y$-intercepts, derivatives, and approximate vertical asymptotes. This free online tool is perfect for students studying algebra and calculus, teachers creating visual aids, and professionals analyzing mathematical relationships.
Key Features of Our Function Grapher
- Plot Multiple Functions: Graph up to three functions simultaneously on the same coordinate system with distinct colors for easy comparison
- Adjustable Viewing Window: Set custom $X$ and $Y$ ranges to zoom in on specific regions of interest
- Feature Analysis: Automatically identifies $y$-intercepts, approximate $x$-intercepts (zeros), derivatives, and approximate vertical asymptotes
- Derivative Display: Each function's derivative is computed and displayed in the analysis panel
- Multi-Function Comparison: Plot original functions alongside their derivatives or compare different function types
- Responsive Design: Works seamlessly on desktop and mobile devices
Supported Functions and Operations
Basic Operations
- Addition and Subtraction: $x + 2$, $x - 3$
- Multiplication: $2x$ (implicit) or $2*x$ (explicit)
- Division: $1/x$
- Exponents: $x^2$ or $x^{**}2$
Polynomial Functions
- Linear: $f(x) = mx + b$
- Quadratic: $f(x) = ax^2 + bx + c$
- Cubic: $f(x) = ax^3 + bx^2 + cx + d$
- Higher degree: $x^4$, $x^5$, etc.
Trigonometric Functions
- Basic: $\sin(x)$, $\cos(x)$, $\tan(x)$
- Reciprocal: $\csc(x)$, $\sec(x)$, $\cot(x)$
- Inverse: $\arcsin(x)$, $\arccos(x)$, $\arctan(x)$
Exponential and Logarithmic Functions
- Exponential: $e^x$ (write as
exp(x)ore^x) - Natural Logarithm: $\ln(x)$ (write as
log(x)orln(x)) - General Logarithm: $\log_{10}(x)$, $\log_2(x)$
Other Functions
- Square Root: $\sqrt{x}$ — write as
sqrt(x) - Absolute Value: $|x|$ — write as
abs(x) - Hyperbolic: $\sinh(x)$, $\cosh(x)$, $\tanh(x)$
Understanding Key Features of Functions
Intercepts
The $y$-intercept is where the function crosses the $y$-axis, found by evaluating $f(0)$. The $x$-intercepts (also called zeros or roots) are where the function crosses the $x$-axis, found by solving $f(x) = 0$. Our analyzer detects both automatically within the visible range.
Asymptotes
Vertical asymptotes occur where a function approaches $\pm\infty$, typically where the denominator of a rational function equals zero. Horizontal asymptotes describe the end behavior of a function as $x \to \pm\infty$. The grapher detects vertical asymptotes within the viewing window.
Derivatives
The derivative $f'(x)$ represents the instantaneous rate of change or the slope of the tangent line at any point on the curve. Our tool computes the derivative symbolically using mathematical rules and displays it in the analysis panel. For more calculus tools, try our Single Variable Derivative Calculator.
Critical Points
Critical points occur where the derivative equals zero or is undefined. These often correspond to local maxima, local minima, or inflection points on the graph. By examining the derivative plot alongside the original function, you can identify these important features.
How to Use the Function Grapher
- Enter Your Function: Type your first function in the $f(x)$ input using $x$ as the variable (e.g.,
x^2 - 4orsin(x)) - Add More Functions (Optional): Enter up to two additional functions in the $g(x)$ and $h(x)$ fields to compare them on the same graph
- Adjust the Viewing Window: Set X Min, X Max, Y Min, and Y Max to focus on the region of interest — default range is $[-10, 10]$ for both axes
- Review the Graph: The graph updates automatically as you type. Each function is plotted in a distinct color
- Analyze the Features: Scroll down to the analysis panel to see $y$-intercepts, approximate $x$-intercepts, derivatives, and approximate vertical asymptotes
Common Function Types to Explore
- Parabola: $x^2$ — Standard upward-opening parabola with vertex at $(0,0)$
- Cubic: $x^3$ — S-shaped curve passing through the origin
- Hyperbola: $1/x$ — Two branches approaching axes asymptotically
- Exponential Growth: $e^x$ — Rapid increase for positive $x$
- Logarithm: $\ln(x)$ — Slow growth, defined only for $x > 0$
- Sine Wave: $\sin(x)$ — Periodic oscillation between $-1$ and $1$
- Rational Functions: $x/(x^2 - 1)$ — Functions with asymptotes and interesting behavior
Applications of Function Graphing
- Algebra: Visualize polynomial and rational functions to understand their behavior, end behavior, and symmetry
- Calculus: Analyze functions before computing derivatives, integrals, and limits
- Physics: Model motion, waves, and other physical phenomena
- Engineering: Analyze system responses and transfer functions
- Economics: Visualize cost, revenue, and profit functions
- Biology: Graph population growth and decay models
Tips for Effective Graphing
- Start with Default Window: Begin with $[-10, 10]$ for both axes, then adjust as needed to see details
- Zoom for Details: Narrow the window to see fine details near interesting points like intercepts
- Compare Functions: Plot the original function and its derivative together to understand rate of change visually
- Watch for Discontinuities: Rational functions may have gaps at vertical asymptotes
- Use Parentheses: When in doubt, add parentheses to ensure correct order of operations (e.g.,
sin(x^2)rather thansin x^2)
For exploring function composition and combining functions, try our Function Composition Calculator. To check whether a function is even, odd, or neither, use our Function Odd Even Neither Checker. For visualizing equations in polar coordinates, try our Polar Equation Plotter.
Frequently Asked Questions
How many functions can I plot at once?
You can plot up to three functions simultaneously on the same coordinate system. Each function is displayed in a distinct color — $f(x)$ in blue, $g(x)$ in green, and $h(x)$ in amber. This makes it easy to compare different functions and their behaviors.
How do I enter a square root function?
Use sqrt(x) for the square root function. For example, $f(x) = \sqrt{x + 4}$ should be
entered as sqrt(x + 4). Cube roots and higher roots can be expressed using fractional
exponents: $\sqrt[3]{x}$ is x^(1/3).
How accurate are the $x$-intercepts shown in the analysis?
The $x$-intercepts are computed using numerical approximation (scanning and linear interpolation) within the visible $x$ range. They are approximate values rounded to 6 decimal places. For exact algebraic solutions, use our Polynomial Roots Calculator.
Why do some parts of my graph appear disconnected or show vertical lines?
Vertical asymptotes or discontinuities can sometimes appear as near-vertical connecting lines in the graph. This is a common artifact of plotting discrete sample points. Our grapher attempts to minimize this, but for best results around asymptotic behavior, adjust the $Y$ range to a narrower window (e.g., $[-5, 5]$) to better visualize the curve near the asymptote.
Can I plot trigonometric functions in degrees instead of radians?
Our grapher uses radians, which is the standard in mathematics and calculus. All trigonometric functions ($\sin$, $\cos$, $\tan$) expect their arguments in radians. For example, $\sin(\pi) = 0$, $\cos(0) = 1$, and $\tan(\pi/4) = 1$.
Why is the derivative not showing for my function?
The derivative computation relies on the mathjs symbolic differentiation engine. While it handles most standard functions (polynomials, trig, exponential, logarithmic), some complex composite functions or very unusual expressions may not produce a derivative. In such cases, the analysis panel will display "Unable to compute" for the derivative.