Skip to content

How does your function look?

Plot up to three functions of x, move the parameters a, b and c with sliders and read the roots, turning points and crossings.

Graph

  • f₁(x) = a·sin(b·x) + c
  • f₂(x) = x^2/4 − 3
Key values as a table
Pointxy
Root−9.424780
Root−6.283190
Root−3.141590
Root00
Root3.141590
Root6.283190
Root9.424780
Minimum−7.85398−2
Maximum−4.712392
Minimum−1.5708−2
Maximum1.57082
Minimum4.71239−2
Maximum7.853982
y-intercept00
f₁ = f₂−4.438731.92558
f₁ = f₂3.28952−0.29477
Window

f₁(1)

1.68294

Between x = −10 and 10, f₁ is zero 7 times.

Key points of f₁

Roots (y = 0)
−9.42478, −6.28319, −3.14159, 0, 3.14159, 6.28319, 9.42478
Local maxima
(−4.71239, 2) (1.5708, 2) (7.85398, 2)
Local minima
(−7.85398, −2) (−1.5708, −2) (4.71239, −2)
y-intercept
(0, 0)
Where f₁ meets f₂
(−4.43873, 1.92558) (3.28952, −0.29477)

Plot up to three functions of x, move the parameters a, b and c with sliders and read the roots, turning points and crossings.

How to use

  1. Type a function of x, such as x^2 − 4 or a·sin(b·x) + c. Add a second or third function to compare them.
  2. Move the sliders for a, b and c and watch the curves change; drag the point on f₁ along the curve to trace its values.
  3. Zoom, pan or type the window edges to see another part of the graph. Read the roots, turning points and crossings of f₁ under the graph.

How it works

A graph draws every point (x, y) where y = f(x). The plotter works out f at many points across the window and joins them, adding more points where the curve bends. Where a function jumps or is undefined, such as tan x at x = π/2 or 1/x at 0, the curve breaks into separate pieces instead of drawing a false vertical line.

A root is where the curve crosses the x-axis, f(x) = 0. The plotter finds each one by spotting where f changes sign between two neighbouring points and narrowing in on the crossing (Brent's method). A local maximum or minimum is where the curve turns, so its slope f′(x) is zero there; the same search runs on the slope. For f(x) = x² − 4 the roots are x = −2 and x = 2 and the minimum is (0, −4).

The parameters a, b and c let you see what each part of a formula does: in a·sin(b·x) + c, a stretches the wave up and down, b squeezes it sideways and c lifts it. Only points inside the window are found, roots where the curve only touches the axis without crossing it can be missed, and the values are numerical, accurate to many digits but not exact symbols. Angles are in radians. See OpenStax Precalculus 2e, chapters 1 and 3, for functions and their graphs.

Worked example

Where does y = x^2/4 − 3 cross the axes, and where is its lowest point?

  1. The y-axis: at x = 0, y = −3.
  2. The x-axis: set y = 0 and solve for x; the positive root is x = 3.46, and the negative one is its mirror image.
  3. The lowest point is at x = 0, where y = −3.

Roots at x = ±3.46, y-intercept −3, minimum at (0, −3).

Method

No outside data is used: the tool works only with what you enter, in your browser.

Sources and methods

Frequently asked questions

How do I type powers, roots and π?

Use ^ for powers (x^3), sqrt(x) or √x for square roots, and pi or π. A number before a letter multiplies it: 2x means 2·x and 3sin x means 3·sin(x).

Can I plot a circle such as x² + y² = 1?

Not as an implicit equation. Plot sqrt(1-x^2) and -sqrt(1-x^2) as separate functions to draw its upper and lower halves.

Are the angles in degrees or radians?

Radians, as in mathematics: sin x has its first root after 0 at x = π ≈ 3.14159. Write sin(x·pi/180) to work in degrees.

How do I find where two graphs intersect?

Enter one function as f₁ and the other as f₂. The points where they meet inside the window are listed under the graph and marked on it.

Can I share my graph?

Yes. The address holds the functions, parameters and window, so copying the link opens the same graph.

Send feedback