Function Grapher — Plot y = f(x) Online (Free)

AlgebraFreeNo sign-up

To graph y = f(x), find a few points, mark the intercepts, turning points and asymptotes, then join them with a smooth curve. For f(x) = x³ − 3x, the graph crosses the x-axis at x = −√3, 0 and √3, has a local maximum at (−1, 2) and a local minimum at (1, −2). The function grapher below plots any function and lists these features for you.

Graph y = f(x) and read its key features
Reads asReads asf(x) = x3 − 3x
Type x^2 for x², 3x for 3·x, sqrt(x), (x+1)/(x-2), |x|, e^x, ln(x), sin(x) (radians). Brackets are fine: 2(x-1)^2.
Try:
Graph of y = f(x)
y =x3 − 3x
−4−224−4−224max (−1, 2)min (1, −2)
y = x³ − 3x
Move over the graph (or tap it) to read points.
Domain(−∞, ∞)
x-intercepts (zeros)x = −√3, 0, √3
y-intercept(0, 0)
Local maximum(−1, 2)
Local minimum(1, −2)
Vertical asymptotesnone
Horizontal / slant asymptotenone
End behavioras x → ∞, f(x) → ∞; as x → −∞, f(x) → −∞
Symmetryodd: f(−x) = −f(x), symmetric about the origin
How each feature is found
  1. DomainThere is no denominator, even root or logarithm with x, so f is defined for all real numbers.
  2. x-interceptsSolve f(x) = 0. Factor out x: this gives x = 0. Quadratic formula for x² − 3 = 0: x = (−b ± √(b² − 4ac))/(2a) with a = 1, b = 0, c = −3. The discriminant is b² − 4ac = 12. √12 is irrational, so the exact roots are x = −√3 ≈ −1.73205 and x = √3 ≈ 1.73205. Result: −√3, 0, √3.
  3. y-interceptPut x = 0: f(0) = 0.
  4. Turning pointsThe derivative is f′(x) = 3x² − 3. Solve f′(x) = 0 (the numerator): Divide 3x² − 3 = 0 by 3: x² − 1 = 0. Quadratic formula for x² − 1 = 0: x = (−b ± √(b² − 4ac))/(2a) with a = 1, b = 0, c = −1. The discriminant is b² − 4ac = 4. √4 = 2, so x = −1 or x = 1. Where f′ changes from + to − there is a local maximum, from − to + a local minimum.
  5. AsymptotesThere is no variable denominator, so there are no vertical asymptotes. The leading term x³ controls the ends: degree 3 (odd), leading coefficient positive.
  6. Symmetryf(−x) = −x³ + 3x. This equals −f(x), so f is odd.
Table of values
x f(x)
−5 −110
−4 −52
−3 −18
−2 −2
−1 2
0 0
1 −2
2 2
3 18
4 52
5 110

Next: graph several functions with sliders, zoom and trace · domain and range · derivative with steps

Function Grapher — Plot y = f(x) Online (Free)
Embed this calculator on your site

Free to use on class pages, blogs and course pages. Copy the code below and paste it into your page:

How to use the function grapher

  1. Type your function after f(x) =, for example x^2 – 3, 2x + 1, sqrt(x – 1), (x^2 – 4)/(x – 1) or sin(x). The “Reads as” line shows how it was understood.
  2. Set the x range (“x from” and “x to”), or use the + and − buttons to zoom. The y range adjusts itself so the important points stay in view.
  3. Optionally add a second function g(x) to compare. The grapher draws it dashed and lists where the two graphs meet.
  4. Read the key features under the graph. Move over the graph or tap it to read any point, and open Table of values or How each feature is found for the working.

This page is for one function at a time. To graph several functions together, use sliders or trace intersections of many curves, open the full graphing calculator.

Reading the graph: key features

Feature What it means How to find it
Domain The x values where f is defined Exclude zeros of denominators, negative inputs of even roots and non-positive inputs of logarithms
x-intercepts (zeros) Where the graph meets the x-axis Solve f(x) = 0
y-intercept Where the graph meets the y-axis Compute f(0)
Local maximum and minimum Peaks and valleys, the turning points Solve f′(x) = 0 and check where f′ changes sign
Vertical asymptote A line x = a the graph shoots up or down along Zeros of the denominator after cancelling common factors
Horizontal or slant asymptote The line the graph approaches far to the left or right Compare the degrees of the numerator and denominator
Hole A single missing point A factor that cancels from the top and bottom
Symmetry Even: mirror image in the y-axis. Odd: unchanged by a half turn about the origin Even if f(−x) = f(x); odd if f(−x) = −f(x)
End behavior What f(x) does as x → ∞ and x → −∞ The leading term of a polynomial; the asymptote of a rational function

Worked example: a cubic, f(x) = x³ − 3x

Intercepts. Factor: x³ − 3x = x(x² − 3) = 0, so x = 0 or x = ±√3 ≈ ±1.732. The y-intercept is f(0) = 0.

Turning points. f′(x) = 3x² − 3 = 0 gives x = ±1. f(−1) = −1 + 3 = 2 and f(1) = 1 − 3 = −2. The derivative is positive left of −1, negative between −1 and 1 and positive again after 1, so (−1, 2) is a local maximum and (1, −2) is a local minimum.

Symmetry and ends. f(−x) = −x³ + 3x = −f(x), so the function is odd and the graph is symmetric about the origin. The leading term x³ has odd degree and a positive coefficient: the graph falls to −∞ on the left and rises to ∞ on the right.

Worked example: a rational function, f(x) = (x² − 4)/(x − 1)

The domain excludes x = 1, and nothing cancels, so x = 1 is a vertical asymptote. The zeros come from the numerator: x² − 4 = 0 gives x = −2 and x = 2. The y-intercept is f(0) = −4/−1 = 4. The numerator has degree one more than the denominator, so divide: x² − 4 = (x − 1)(x + 1) − 3, and the quotient x + 1 gives the slant asymptote y = x + 1. The function is neither even nor odd.

Compare (x² − 4)/(x − 2). Here the factor x − 2 cancels, leaving x + 2, so the graph is the line y = x + 2 with a hole at (2, 4) instead of an asymptote.

Graphing by a table of values

For a quick sketch, pick x values, compute y and plot the points. For f(x) = 2x + 1, the x values −1, 0 and 2 give y = −1, 1 and 5. The points lie on a straight line with slope 2 and y-intercept 1. For f(x) = x² − 3, the points (−2, 1), (0, −3) and (2, 1) lie on a U-shaped parabola with its lowest point at (0, −3).

Function transformations

  • f(x) + k moves the graph up k units (down if k is negative).
  • f(x − h) moves it right h units; f(x + h) moves it left.
  • −f(x) reflects it across the x-axis; f(−x) reflects it across the y-axis.
  • a·f(x) stretches it vertically when a > 1 and compresses it when 0 < a < 1.

Example: y = (x − 2)² + 1 is y = x² moved 2 units right and 1 unit up, so its vertex is (2, 1). Type both into the grapher (the second one as g(x)) to see the shift.

Common mistakes to avoid

  • Connecting across an asymptote. 1/x has two separate branches; the graph never crosses x = 0.
  • Calling every critical point a maximum or minimum. For x³, f′(0) = 0 but the graph keeps rising, so there is no turning point.
  • Using degrees for trig functions. The grapher uses radians, so sin(x) has zeros at multiples of π ≈ 3.14159, not at 180.
  • Trusting a window too much. Features outside the x range are not visible. Zoom out if the graph seems to stop changing.

Graphing functions practice quiz: 10 questions

Test yourself with 10 multiple-choice questions. Choose an answer and press Submit to see if you are right and why. Your score appears at the end.

Question 1 of 10
1. What are the x-intercepts of f(x) = x² − 9?

Found a mistake? Let us know!

2. What is the y-intercept of f(x) = 2x² − 5x + 7?

Found a mistake? Let us know!

3. Where is the vertical asymptote of f(x) = (x + 3)/(x − 4)?

Found a mistake? Let us know!

4. What is the horizontal asymptote of f(x) = (6x² + 1)/(2x² − 5)?

Found a mistake? Let us know!

5. Which function is even?

Found a mistake? Let us know!

6. Where does f(x) = x² − 6x + 5 have its minimum?

Found a mistake? Let us know!

7. What is the domain of f(x) = √(x + 2)?

Found a mistake? Let us know!

8. The graph of f(x) = (x² − 1)/(x − 1) has what at x = 1?

Found a mistake? Let us know!

9. How does y = (x + 4)² − 1 compare with y = x²?

Found a mistake? Let us know!

10. What is the end behavior of f(x) = −2x³ + x?

Found a mistake? Let us know!

Frequently asked questions

What is a function graph?

It is the set of all points (x, f(x)). For f(x) = x² − 3, the points (−2, 1), (0, −3) and (2, 1) are on the graph, which is a U-shaped parabola.

How do you graph a function?

Find the domain, the intercepts and any asymptotes, make a short table of values, plot the points and join them smoothly. For f(x) = 2x + 1, the x values −1, 0 and 2 give y = −1, 1 and 5, which lie on a straight line.

How do you graph function transformations?

Start from the basic graph and apply the shifts, reflections and stretches. y = (x − 2)² + 1 is the parabola y = x² moved 2 right and 1 up.

How can you tell if a graph is a function?

Use the vertical line test: if any vertical line meets the graph more than once, it is not the graph of a function. y = x² passes. The circle x² + y² = 9 fails, because the line x = 0 meets it at y = 3 and y = −3.

How do you find the domain and range of a function from its graph?

The domain is the set of x values the graph covers from left to right; the range is the set of y values from bottom to top. For y = x² − 3, the domain is all real numbers and the range is y ≥ −3, because the lowest point is (0, −3). The domain and range calculator works this out with steps.

How do you graph a function with a square root?

Find where the expression under the root is at least 0, then plot points from there. For y = √(x − 1), the domain is x ≥ 1. The graph starts at (1, 0) and passes through (2, 1) and (5, 2), rising more and more slowly.

Related calculators

More algebra calculators

Browse all 206 calculators

Related to This Article

What people say about "Function Grapher: Online Graphing Calculator for Functions"?

No one replied yet.

Leave a Reply