ThisCalculator

Everyday

How to Put f(x) in a Calculator: Step-by-Step

Updated · Standard formula, shown below

How to Put f(x) in a Calculator: Step-by-Step

This guide shows you how to type a function like f(x) = 2x + 3 into a calculator so it can evaluate it for different x values, plot it, or build a table. You’ll learn the exact keystrokes for graphing calculators (like the TI-84 family), scientific calculators, and online tools like Desmos. No prior calculator programming knowledge is needed—just follow the steps for your device.

What You’ll Need

  • A graphing calculator (TI-83, TI-84, Casio fx-9750GII, etc.) or a scientific calculator with a function entry mode
  • Alternatively, a computer or phone with internet access for Desmos or GeoGebra
  • The function you want to enter, written in standard math notation (e.g., f(x) = x² − 4x + 5)
  • Familiarity with your calculator’s basic keys (numbers, +, −, ×, ÷, and the variable key usually labeled x)

Step-by-Step

The exact steps differ by calculator type. Choose the section that matches your device.

On a TI-84 or Similar Graphing Calculator

  1. Turn on the calculator and press the Y= key (top-left, usually yellow or blue). This opens the function list, showing Y1, Y2, Y3, etc.
  2. Select the first empty slot (Y1) by pressing the corresponding number key (1) or scrolling to it and pressing ENTER.
  3. Type your function using the x key (located next to the ALPHA key, usually labeled “X,T,θ,n�). For example, to enter f(x) = 2x + 3, press: 2, ×, X,T,θ,n, +, 3.
  4. Use parentheses for clarity. For fractions or exponents, use the ^ key for powers (e.g., x² is X,T,θ,n, ^, 2) and the ÷ key for division (e.g., (x+1)÷2 is (, X,T,θ,n, +, 1, ), ÷, 2).
  5. Press GRAPH (top-right) to see the curve. If the screen is blank, press ZOOM then 6 (ZStandard) to reset the view to the default window.
  6. To evaluate f(x) at a specific number, press 2nd then TRACE (this opens CALC), choose 1:value, type the x-value, and press ENTER. The calculator shows the y-coordinate.
  7. To build a table of values, press 2nd then WINDOW (this opens TBLSET), set TblStart and ΔTbl (step), then press 2nd then GRAPH (TABLE) to see x and y columns.

On a Casio Graphing Calculator (fx-9750GII, fx-CG50)

  1. Press MENU, then select GRAPH (usually option 5) and press EXE.
  2. You’ll see a list of functions (Y1, Y2, …). Highlight Y1 and press EXE.
  3. Type the function using the X key (labeled X,θ,T). For 2x+3, press 2, ×, X,θ,T, +, 3.
  4. Press EXE to confirm the function, then press F6 (DRAW) to graph it.
  5. For a value, press F5 (G-Solv) then F1 (Y-CAL), type the x, and press EXE.
  6. For a table, press MENU, select TABLE, enter the function, set the start/end/step, and press EXE.

On a Scientific Calculator (Non-Graphing)

  1. Look for a “f(x)� or “TABLE� mode. Many scientific calculators (Casio fx-991EX, Sharp EL-W531) have a dedicated key. Press MODE and select TABLE if available.
  2. Enter the function using the x variable key (often labeled x or X). For example, for f(x)=x²−1, press X, ^, 2, −, 1.
  3. Press EXE or = to confirm. The calculator may ask for Start, End, and Step values for the table.
  4. Enter a start value (e.g., 0), press =, enter an end value (e.g., 10), press =, then a step (e.g., 1), and press =.
  5. The table appears with x and f(x) columns. Use the arrow keys to scroll.
  6. If your calculator lacks a TABLE mode, you can still evaluate f(x) by typing the expression with a specific number in place of x. For example, to find f(3) for 2x+3, type 2×3+3 and press =.

On Desmos or GeoGebra (Online)

  1. Open Desmos (desmos.com/calculator) or GeoGebra Graphing Calculator in a browser.
  2. Click on the input box (usually at the top).
  3. Type “f(x)=� followed by your expression, e.g., f(x)=2x+3. Use ^ for powers, / for division, and * for multiplication (you can also just write 2x).
  4. Press Enter. The graph appears instantly.
  5. To evaluate at a point, click on the graph line and a point will appear; drag it, or type f(3) in a new input line and press Enter—Desmos shows the value.
  6. To make a table, type (x, f(x)) in a new line, or use the table tool (click the + icon and choose Table).

Common Mistakes

  • Forgetting the multiplication sign between a number and x. On most calculators, “2x� is not recognized—you must type 2*x or 2×x.
  • Using the wrong minus sign. Use the subtraction key (−), not the negative key (often labeled (−) or “neg�). For negative numbers inside a function, use parentheses: f(x)=x²−(−3) is fine, but f(x)=x²−−3 will error.
  • Missing parentheses for denominators. If f(x)=1/(x+2), typing 1/x+2 evaluates as (1/x)+2. Always wrap the entire denominator in parentheses.
  • Not clearing old functions from the Y= list. If Y1 already has something, your new function may overwrite or the graph may show both. Press CLEAR on the Y1 line first.
  • Using the letter “x� from the alpha keyboard on a TI calculator instead of the X,T,θ,n key. The alpha “x� is a different variable and won’t graph correctly.
  • Setting the wrong window. If the graph is invisible, the x or y range may not include your function’s values. Use ZStandard (ZOOM 6) to reset.

Tips

  • Test with a simple value. After entering f(x)=2x+3, check f(1) by hand (it’s 5) and see if the calculator gives 5. This verifies you typed it correctly.
  • Use parentheses liberally. Even if not strictly needed, they prevent ambiguity and make the expression easier to read on screen.
  • For fractions, use the division key with parentheses. For example, (x+1)/(x−1) is safer than x+1/x−1.
  • Learn the “ANS� key on scientific calculators. After evaluating, you can use ANS in the next calculation to chain results.
  • On graphing calculators, use the “TABLE� setup to see many values quickly—set a small step like 0.5 to get a good sense of the function’s behavior.
  • If you’re entering a piecewise function, most graphing calculators support it via the “when(� or “piecewise� command, but it’s easier to graph each piece separately on the same axes.

Troubleshooting

  • “Syntax Error� or “Error� message: Check for missing parentheses, a missing multiplication sign, or an extra operator (like two plus signs). Press 2nd + QUIT to exit the error screen and review the line.
  • Graph shows nothing: Press ZOOM then 6 (ZStandard) to reset the window. If still blank, check that the function is actually in Y1 (not Y2) and that you didn’t accidentally turn off the plot (the “=� sign next to Y1 should be black, not highlighted).
  • Table shows “ERROR� for some x values: This happens when the function is undefined at that point (e.g., division by zero). It’s normal—skip those rows.
  • Calculator evaluates but gives a weird decimal: You may be in RADIAN mode when you expected degrees. Press MODE and switch to DEGREE if your function uses degrees (e.g., sin(30) should be 0.5).
  • Online tool won’t graph: Refresh the page, check your internet connection, and make sure you typed the equals sign after f(x).
  • Scientific calculator has no “x� key: Some basic models only allow numbers. In that case, you must manually replace x with the value each time—there’s no way to store a function.

Frequently Asked Questions

How do I enter f(x) = x² on a TI-84?

Press Y=, then press the X,T,θ,n key, then press the ^ key, then 2. It should display “X²�. Press GRAPH to see the parabola.

Why does my calculator say “Invalid Dim� when I try to graph?

This usually means a list (like L1 or L2) has a different number of elements than the stat plot expects. Press 2nd, then Y= (STAT PLOT), and turn off any plots by selecting 4:PlotsOff.

Can I type f(x) with a space, like “f (x)�?

No. On all calculators, you only type the expression after the equals sign. The “f(x)=� part is implied by the Y1 slot or the TABLE mode. Just type the right-hand side.

What if my function has a square root?

Use the square root key (usually 2nd then x²). For example, √(x+1) is entered as 2nd, x², (, x, +, 1, ). Always close the parenthesis after the radicand.

How do I graph a function with an absolute value?

Press MATH, scroll to NUM, choose 1:abs(, then type the expression inside. For example, abs(x−3) is MATH, NUM, 1:abs(, X, −, 3, ).

My scientific calculator only has a “CALC� button—can I still use functions?

Yes. The CALC button often lets you define a function temporarily. Press CALC, then type the expression using the x variable, then press EXE. It will prompt you for x. If that doesn’t work, just substitute the number manually each time.

Related

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.