Skip to content
Programming

Function Graph Plotter

Plot up to three functions of x, such as sin(x), x^2 or sqrt(16-x^2). Drag to move, zoom in and out, and try ready-made examples.

  • Free
  • No sign-up
  • Runs in your browser

Function Graph Plotter

runs on your device
Examples:

Drag the graph to move around. Use + and − to zoom.

What you can type

  • Operators: + - * / ^ and brackets. 2x and 3sin(x) work without the *.
  • Functions: sin cos tan asin acos atan sinh cosh tanh sqrt abs exp ln log floor ceil round sign.
  • Constants: pi and e.

Drawing shapes that are not functions

A circle or an ellipse has two y values for each x, so draw it as two halves. For the ellipse x²/25 + y²/9 = 1 enter 3sqrt(1-x^2/25) and -3sqrt(1-x^2/25). The same trick draws a parabola that opens sideways: sqrt(4x) and -sqrt(4x).

Drawing graphs in code

To draw these curves onto an image in PHP with the GD library, see the related tutorials below. They use the same idea as this tool: step through x, work out y, and turn each pair into a pixel.

Go deeper

Programming

Draw sine function with PHP code on an image.

Now we learn how to draw a sine function in PHP. It is very simple and easy to draw sine function in PHP language. This function will generate a sine wave on image. Watch…

Programming

PHP code to draw a parabola and create image

Hello Friends today i will discuss how to draw a parabola with PHP code and create an image. We will draw this parabola with standard equation. <?php $x = 400; $y = 400;…

Programming

PHP code to draw cos function on image

Today i will tell you how to draw cos function in PHP. This is very simple task to draw a cosine function with PHP code. These are functions of Mathematics and used in Nu…

Programming

PHP code to draw ellipse with Standard equation on an image

In this tutorial you will learn how to draw an Ellipse on an image with PHP code. This is mostly used in Numerical Computing and Mathematics to draw graphs from algebraic…