📘 CodingMarble Learn

Graphs of Basic Functions and Solving Equations with Graphs

A graph shows every point (x, y) with y = f(x). Five shapes come up again and again: the parabola y = x², the cubic y = x³, the half-parabola y = √x, the V-shape y = |x| and the hyperbola y = k/x. Learn each one's domain, range, symmetry, where it rises or falls, and where it crosses the axes. Then use graphs to solve equations (where graphs cross) and inequalities (where one graph is above the other).

🎬 Step-by-step story

  1. A graph is all the points (x, y) with y = f(x). Make a table for y = x², plot the points and join them smoothly. You get a parabola.
  2. y = x² is a mirror image on both sides of the y-axis, and y is never negative. y = x³ turns around the origin and takes every value.
  3. y = √x lives only where x ≥ 0. It is the right half of y = x² reflected in the line y = x.
  4. y = |x| is a V shape. y = k/x is a hyperbola: two branches that get closer and closer to the axes but never touch them.
  5. To solve x² = x + 2, draw both graphs. They cross at x = −1 and x = 2. Between these, the parabola is below the line.
  6. Your turn: pick a function and change a in y = a·f(x). Watch the graph flip and stretch, and read the moving point.

Tip: drag the 3D scene to turn it. Use two fingers to zoom.

🤔 Common doubts, cleared

Why join the points with a curve and not straight lines?

There are points between the table values too, for example x = 0.5 gives 0.25. If you plot many of them, they lie on a smooth curve, not on straight pieces.

Why is y = x² never below the x-axis?

A number times itself is never negative: (−2)² = 4 just like 2² = 4. So the parabola sits on or above the axis and is mirror-symmetric.

Why does √x stop at x = 0?

No real number squared gives a negative number, so √(−4) has no real value. There are simply no points on the left.

Does y = 1/x ever touch the axes if I go far enough?

No. 1/x gets smaller and smaller for big x but never becomes 0, and x = 0 is not allowed. The axes are asymptotes.

Is the answer to x² = x + 2 the point (2, 4) or the number 2?

The equation asks for x, so the answers are x = 2 and x = −1. The y-values 4 and 1 are just the heights where the graphs meet.

What does the number a in y = a·f(x) do?

It multiplies every height by a. Bigger |a| means steeper; a between 0 and 1 means flatter; negative a flips the graph upside down.

What is the graph of a function?

A function gives exactly one output y for each input x. Its graph is the set of all points (x, y) with y = f(x).

To draw a graph by hand:

  1. Make a table with a few x values (include negatives, 0 and fractions if needed).
  2. Work out y for each x.
  3. Plot the points.
  4. Join them with a smooth curve (not a ruler), unless the function is a straight line or has a corner.

A point (a, b) is on the graph if f(a) = b. For example, (3, 9) is on y = x² because 3² = 9.

Properties we read from a graph

The five basic graphs

FunctionShapeDomainRangeSymmetryRises / falls
y = x²parabola (U)all xy ≥ 0evenfalls for x < 0, rises for x > 0; least value 0 at x = 0
y = x³cubic (S)all xall yoddalways rises
y = √xhalf-parabolax ≥ 0y ≥ 0nonealways rises (slower and slower)
y = |x|Vall xy ≥ 0evenfalls for x < 0, rises for x > 0; corner at (0, 0)
y = k/x (k > 0)hyperbolax ≠ 0y ≠ 0oddfalls on each branch; branches in 1st and 3rd quarters

For y = k/x with k < 0 the branches move to the 2nd and 4th quarters and rise on each branch. The axes are asymptotes: lines the graph gets closer and closer to but never touches. y = k/x describes inverse proportion: x·y = k stays the same.

Multiplying by a number a, y = a·f(x), stretches the graph up and down (|a| > 1 steeper, |a| < 1 flatter). A negative a flips it upside down.

Solving equations and systems with graphs

To solve f(x) = g(x): draw y = f(x) and y = g(x) on the same grid. The x-values of the crossing points are the solutions. The number of crossing points tells you the number of solutions.

Worked example (shown in step 5 of the 3D): solve x² = x + 2.

  1. Draw the parabola y = x² and the line y = x + 2.
  2. They cross at (−1, 1) and (2, 4).
  3. Check: (−1)² = 1 and −1 + 2 = 1 ✓; 2² = 4 and 2 + 2 = 4 ✓.
  4. Answer: x = −1 or x = 2.

For a system of two equations in x and y, draw both graphs: each crossing point (x, y) is one solution of the system. Graph answers can be rough, so always check by substituting.

Solving inequalities with graphs

f(x) < g(x) is true where the graph of f is below the graph of g. f(x) > g(x) is true where it is above.

From the example: the parabola is below the line between the crossing points, so x² < x + 2 for −1 < x < 2, and x² > x + 2 for x < −1 or x > 2.

Simple case: √x > 2 where the curve is above the line y = 2, which is x > 4.

Try it: predict, then check

On paper: make a table for y = 4/x with x = 1, 2, 4, 8, and the negatives. Plot and join each branch. Predict: what happens as x gets very large? Very close to 0?

In the 3D: at the last step choose y = x³, set a = −1 and guess the picture before you let go of the slider. Then try y = |x| with a = 0.5.

Key formulas and definitions

Worked examples

1. Is the point (−3, 9) on the graph of y = x²? Is (−2, −8) on y = x³?

(−3)² = 9, so yes. (−2)³ = −8, so yes.

2. Make a table for y = √x with x = 0, 1, 4, 9 and describe the graph.

y = 0, 1, 2, 3. The points are (0,0), (1,1), (4,2), (9,3). The curve starts at the origin and rises, but more and more slowly. There is nothing to the left of x = 0.

3. For y = 6/x find y when x = 2, 3, −1, and say which quarters the graph is in.

y = 3, 2, −6. k = 6 > 0, so the branches are in the 1st quarter (x, y > 0) and the 3rd quarter (x, y < 0).

4. Find the range of y = |x| − 2 and its zeros.

|x| ≥ 0, so y ≥ −2: range y ≥ −2. Zeros: |x| − 2 = 0 → |x| = 2 → x = 2 or x = −2.

5. Solve x² = x + 2 graphically and check.

Draw y = x² and y = x + 2. They cross at (−1, 1) and (2, 4). Check: 1 = −1 + 2 ✓, 4 = 2 + 2 ✓. So x = −1 or x = 2.

6. How many solutions does x³ = x have? Use graphs.

Draw y = x³ and y = x. They cross at (−1, −1), (0, 0) and (1, 1). So 3 solutions: x = −1, 0, 1. Check: (−1)³ = −1, 0³ = 0, 1³ = 1 ✓.

7. Solve the inequality 4/x > x for x > 0 using graphs.

For x > 0, y = 4/x and y = x cross where 4/x = x → x² = 4 → x = 2. To the left of 2 the hyperbola is above the line. So 4/x > x for 0 < x < 2.

Common mistakes

Practice quiz

1. Which function has the domain x ≥ 0?
2. The graph of y = 3/x is called a:
3. Which function is odd?
4. What is the range of y = x²?
5. Graphs of y = f(x) and y = g(x) cross at (1, 5) and (4, 2). The solutions of f(x) = g(x) are:

Practice: answer these yourself

Type or choose your answer, then press Check. Use a hint if you are stuck; the full solution appears after you answer.

Frequently asked questions

What are the basic function graphs?

The line y = x, the parabola y = x², the cubic y = x³, the square-root curve y = √x, the V-shaped y = |x| and the hyperbola y = k/x.

How do you solve an equation graphically?

Draw the graph of each side of the equation on the same axes. The x-coordinates of the points where they cross are the solutions.

What is the difference between an even and an odd function?

An even function has f(−x) = f(x) and is symmetric about the y-axis (like x²). An odd function has f(−x) = −f(x) and is symmetric about the origin (like x³).

Where this is taught

NetherlandsHAVO 4 (bovenbouw, 2e fase)Relationships (part 1)
NetherlandsVWO 4 (bovenbouw, 2e fase)Functions, graphs and equations (part 1)
FranceSecondeFunctions
Russia8 классFunctions
Russia9 классFunctions

Learn first

Learn next

Related lessons

All Maths lessons