Skip to content

Graphing Calculator

How to Enter Mathematical Functions in a Graphing Calculator

Most graphing errors begin in the input field. The mathematics may be correct on paper, but missing parentheses or an ambiguous fraction can change the expression that the calculator reads.

Best practice: use explicit multiplication, group numerators and denominators with parentheses, and check the preview before drawing the graph.

Common input patterns

Mathematics Suggested input
x^2
1/(x-2) 1/(x-2)
√(x+1) sqrt(x+1)
|x-3| abs(x-3)
e^x e^x or exp(x)
ln(x) ln(x)
sin(x) sin(x)
π/6 pi/6

1. Group fractions clearly

Compare 1/x-2 with 1/(x-2). The first means (1/x)-2; the second means the reciprocal of x-2. Their graphs, domains, and asymptotes are completely different.

For a larger fraction such as (x^2+1)/(x-3), place parentheses around both the numerator and denominator.

2. Use parentheses inside functions

Function names should be followed by parentheses. Write sin(2x), sqrt(4-x^2), and ln(x+5). Parentheses show exactly which expression belongs to the function.

3. Distinguish multiplication from function notation

Enter multiplication explicitly when the expression could be misunderstood. For example, 2*x is unambiguous. The formula editor may display it as ordinary mathematical notation after parsing.

4. Respect the domain

An expression can be entered correctly and still be undefined for part of the real line. The function sqrt(x-2) is real only when x≥2. The function ln(x) requires x>0. The function 1/(x-1) is undefined at x=1.

Gaps or missing portions of the graph are often correct domain behavior rather than drawing errors.

5. Enter equations and inequalities in the right mode

A relation such as x^2+y^2=9 is not a single-valued y=f(x) function, so use Equation / Inequality mode. The same mode is suitable for relations such as x^2+y^2≤9 when you want a filled disk.

6. Use exact constants where possible

Inputs such as 1/3, sqrt(2), pi/6, and e/2 preserve exact mathematical meaning. Decimal approximations are useful when the original quantity is measured or already approximate.

7. Test a complicated expression in stages

When a long formula does not draw as expected, simplify the troubleshooting process:

  1. Graph the inner expression.
  2. Add one operation at a time.
  3. Check every opening parenthesis has a closing parenthesis.
  4. Inspect the domain and current viewing window.

Practice examples

  • sqrt(4-x^2) — the upper semicircle of radius 2.
  • abs(x-1)-2 — a translated absolute-value graph.
  • sin(2*x) — a sine wave with a shorter period than sin(x).
  • (x^2-1)/(x-1) — a line with a removable hole at x=1.

Open the Graphing Calculator and test these inputs →

For interpretation after the graph is drawn, continue with finding domain and range from a graph.