How to plot a function
- Type your function in the f(x) field, for example
x^2 - 4. - Optionally add a second function g(x) to compare two curves (in purple).
- Zoom with the mouse wheel or the buttons, and drag to move the axes.
- Hover over the curve to read coordinates and check the table of values.
Syntax to use
| Write | Meaning | Example |
|---|---|---|
^ | Power | x^3 |
* and / | Multiplication and division | 2*x/3 |
sqrt( ) | Square root | sqrt(x) |
sin cos tan | Trigonometry (radians) | sin(x) |
log( ) / ln( ) | Common / natural logarithm | ln(x) |
exp( ) | Exponential | exp(-x) |
abs( ) | Absolute value | abs(x-2) |
Always write the multiplication sign: 2*x, not 2x.
Reading a graph: what to look for
- Roots: the points where the curve crosses the horizontal axis (f(x) = 0). For
x^2 - 4: x = −2 and x = 2. - y-intercept: the value of f(0), where the curve crosses the vertical axis.
- Intersection points: with f and g shown, the shared points are the solutions of f(x) = g(x).
- Variation: the curve rises (increasing function) or falls (decreasing).
Example: solving an equation graphically
To solve x² = x + 2, plot f(x) = x^2 and g(x) = x + 2. The curves cross at x = −1 and x = 2: these are the solutions. Check: (−1)² = 1 = −1 + 2 and 2² = 4 = 2 + 2.
For a single calculation (sine of an angle in degrees, a logarithm…), use the scientific calculator.
Frequently asked questions
How do I write x squared?
Type x^2. For x cubed, x^3. For a square root, sqrt(x).
Can I plot two functions at once?
Yes: enter the first in f(x) and the second in g(x). Both curves appear in different colours on the same axes.
Are trigonometric functions in degrees?
No, on the graph sin, cos and tan use radians, as in calculus. One period of sin(x) is therefore 2π ≈ 6.28.
How do I find a function's roots?
Look for the points where the curve crosses the horizontal axis, then zoom in for a more precise reading or check the table of values.