Plot Function graphs

You can plot 3 functions, function 1 (in blue), function 2 (in green) and function 3 (in magenta).

Edit your function and then click the "Plot" button.

f1(x) =

f2(x) =

f3(x) =

 –  o  +  ←  ↓  ↑  → 
5
-5
10
-10
5
-5
Copyright (c)2024 CPU.com.cn All Rights Reserved.
cos(x)

Show axes: Show grid:

You can pan the graph (move it up, down, left, right) by holding the Shift key and dragging the graph with the mouse.

OR (slower), you can use the buttons "- o + ← ↑ ↓ →" at the bottom right of the graph to zoom out and in, and to move the viewport left, up, etc.)

Polynomials: (like x^3 + 3x^2 - 5x + 2)

Trigonometric functions: sin(x), cos(x/2), tan(2x), csc(3x), sec(x/4), cot(x)

Sign: returns 1 if the sign of the function value is positive, -1 if the sign of the function is negative. For example, try sign(sin(x)).

ceiling: ceil(x) and round: round(x)

The hyperbolic functions and their inverses: sinh(x), cosh(x), tanh(x), arcsinh(x), arccosh(x), arctanh(x)

Inverse trigonometric functions: arcsin(x), arctan(x), arccos(x), arccsc(x), arcsec(x), arccot(x)

square root: sqrt(x)

Straight lines: (like 3x - 2)

random: random(x);

Absolute value: use "abs" like this: abs(x)

logarithm (ln(x) and Exponential (e^x) for natural log. For log base 10 you need to put ln(x)/ln(10). I'm using Change of Base rule.)

You can also use any combinations of the above, like "ln(abs(x))" (without the quotation marks, of course).

If your graph doesn't work: Try using brackets! For example, "2 tan x" works, but "tan 2x" does not. You have to put "tan(2x)".

The above graph is not an image (that is, it's not a .GIF, .JPG or .PNG). It is a javascript-based graph. That's why we can change it so easily and not wait for an image to be created.

calculator.cpu.com.cn provides you helpful and handy calculator resources.