Graphs of elementary functions

A function's formula tells you what it does; its graph tells you what it looks like — and once you can see it, the domain and range fall out almost for free. This section covers the graphs of the simplest functions on the ISC Class 11 list: constant, identity, polynomial, and rational functions. Each shape has a signature — a flat line, a 45°45° line, a smooth curve with no gaps, or two separated branches hugging invisible walls called asymptotes. The habit worth building here is the same for every graph: find where the curve crosses each axis, find any value of xx it cannot take, and track what happens as xx runs off to +∞+\infty and −∞-\infty. Those three checks, applied consistently, let you sketch a confident graph and read off domain and range without plotting dozens of points. (Modulus, signum, exponential, logarithmic, and greatest-integer graphs — with their own quirks — belong to the companion node "Graphs of special functions.")

The core insight

A function's domain is the set of xx-values its graph actually reaches, its range is the set of yy-values it actually attains, and both are read directly off the sketch once you know the shape a constant, identity, polynomial, or rational function produces.

The core idea

Constant function. For f(x)=cf(x) = c, every input gives the same output, so the graph is a horizontal line sitting at height cc. There is no restriction on which xx you can plug in, so the domain is all of R\mathbb{R}, but only one yy-value ever comes out, so the range is the single-point set {c}\{c\}.

Identity function. For f(x)=xf(x) = x, the output always equals the input, so the graph is the straight line through the origin tilted at exactly 45°45°. Here both domain and range are the whole of R\mathbb{R} — nothing is excluded on either axis.

Polynomial functions. A polynomial f(x)=anxn+an−1xn−1+⋯+a1x+a0f(x) = a_nx^n + a_{n-1}x^{n-1} + \dots + a_1x + a_0 only ever adds, subtracts, and multiplies its input — operations that never fail for any real number — so its domain is always R\mathbb{R}, regardless of degree. The shape of the graph, though, depends heavily on the degree: A linear function f(x)=mx+cf(x) = mx + c draws a straight line of slope mm; its range is R\mathbb{R} unless m=0m = 0, which reduces it to the constant case above. A quadratic function f(x)=ax2+bx+cf(x) = ax^2 + bx + c draws a parabola, opening upward when a>0a > 0 and downward when a<0a < 0. Its turning point, the vertex, sits at

x=−b2ax = -\frac{b}{2a}

where: aa and bb are the quadratic's leading and linear coefficients. Substituting this xx back into ff gives the vertex's yy-coordinate, which is the minimum of the range if a>0a>0 or the maximum if a<0a<0 — this single point fixes the range of the entire parabola. Higher-degree polynomials produce smooth, unbroken curves with up to n−1n-1 turning points, but at Class 11 level the expectation is only to confirm the domain is R\mathbb{R} and to read the range qualitatively from the sketch's overall shape.

Rational functions. A rational function f(x)=p(x)q(x)f(x) = \dfrac{p(x)}{q(x)} is a ratio of two polynomials, and division breaks down wherever the denominator is zero — so the domain excludes every root of q(x)q(x). The simplest case, f(x)=1xf(x) = \dfrac{1}{x}, has domain R−{0}\mathbb{R} - \{0\}; its graph is a hyperbola sitting in the first and third quadrants, curving in toward both axes but never touching them. Those two lines the curve approaches but never reaches — here x=0x=0 and y=0y=0 — are called asymptotes, and its range is R−{0}\mathbb{R} - \{0\} for the same reason: the equation 1x=0\dfrac{1}{x}=0 has no solution.

Figure
Four small graph panels side by side showing a flat constant line a diagonal identity line an upward parabola with marked vertex and a two branch hyperbola with dashed asymptotes
Four elementary shapes: constant, identity, quadratic, rational f(x) = c f(x) = x quadratic, vertex marked rational, dashed asymptote
Derivation ALocating a parabola's vertex from its coefficients

Every quadratic f(x)=ax2+bx+cf(x) = ax^2+bx+c can be forced into a form that exposes its vertex directly, and doing so once shows exactly why the formula x=−b2ax=-\frac{b}{2a} works rather than asking you to memorise it — the goal of this derivation is to complete the square on the general quadratic and confirm that the resulting vertex coordinates match the standard formula used throughout this section.

Step 1. Factor aa out of the first two terms: f(x)=a(x2+bax)+cf(x) = a\left(x^2 + \dfrac{b}{a}x\right) + c.

Step 2. Complete the square inside the bracket. Half of ba\dfrac{b}{a} is b2a\dfrac{b}{2a}, and its square is b24a2\dfrac{b^2}{4a^2}, so add and subtract it:

f(x)=a(x2+bax+b24a2−b24a2)+cf(x) = a\left(x^2 + \frac{b}{a}x + \frac{b^2}{4a^2} - \frac{b^2}{4a^2}\right) + c

Step 3. The first three terms inside the bracket form a perfect square, (x+b2a)2\left(x+\dfrac{b}{2a}\right)^2. Distributing the outer aa across the subtracted term gives

f(x)=a(x+b2a)2−b24a+cf(x) = a\left(x + \frac{b}{2a}\right)^2 - \frac{b^2}{4a} + c

Step 4. This is now vertex form. Since a square is never negative, the term a(x+b2a)2a\left(x+\frac{b}{2a}\right)^2 is zero exactly when x=−b2ax = -\dfrac{b}{2a}, and that is the single xx-value where ff takes its smallest value (if a>0a>0) or largest value (if a<0a<0) — confirming the vertex sits at x=−b2ax=-\dfrac{b}{2a}, with yy-coordinate c−b24ac-\dfrac{b^2}{4a}, matching the formula used to sketch every parabola in this section.

Worked example

Problem. Sketch f(x)=x2−4x+3f(x) = x^2-4x+3 and g(x)=2x−1g(x) = \dfrac{2}{x-1}, and state the domain and range of each. (This reuses the two functions from the Pass-1 article, now solved back to back to compare a polynomial and a rational function directly.)

Step 1. For f(x)=x2−4x+3f(x)=x^2-4x+3: since a=1>0a=1>0, the parabola opens upward. Its vertex is at x=−−42(1)=2x=-\frac{-4}{2(1)}=2, and f(2)=4−8+3=−1f(2)=4-8+3=-1, so the vertex is (2,−1)(2,-1).

Step 2. Factor to find the xx-intercepts: x2−4x+3=(x−1)(x−3)x^2-4x+3=(x-1)(x-3), giving roots x=1x=1 and x=3x=3; the yy-intercept is f(0)=3f(0)=3. Plotting the vertex and these three points and drawing the symmetric upward curve through them gives the sketch.

Step 3. Since ff is a polynomial, its domain is R\mathbb{R}; since the vertex (2,−1)(2,-1) is the lowest point on an upward parabola, every y≥−1y \geq -1 is attained, so Range(f)=[−1,∞)\text{Range}(f) = [-1,\infty).

Step 4. For g(x)=2x−1g(x)=\dfrac{2}{x-1}: the denominator is zero at x=1x=1, so Domain(g)=R−{1}\text{Domain}(g)=\mathbb{R}-\{1\}, and x=1x=1 is a vertical asymptote. As x→±∞x\to\pm\infty, g(x)→0g(x)\to 0, so y=0y=0 is a horizontal asymptote — and since g(x)=0g(x)=0 has no solution, Range(g)=R−{0}\text{Range}(g)=\mathbb{R}-\{0\}.

Step 5. Plotting a few guide points — g(2)=2g(2)=2, g(0)=−2g(0)=-2, g(3)=1g(3)=1, g(−1)=−1g(-1)=-1 — shows two separate branches, one for x>1x>1 and one for x<1x<1, each hugging the asymptotes without touching them.

Final answer. ff: domain R\mathbb{R}, range [−1,∞)[-1,\infty), vertex (2,−1)(2,-1). gg: domain R−{1}\mathbb{R}-\{1\}, range R−{0}\mathbb{R}-\{0\}, asymptotes x=1x=1 and y=0y=0.

Competitive stretch

For h(x)=3x+2−1h(x) = \dfrac{3}{x+2} - 1, the same reasoning gives domain R−{−2}\mathbb{R}-\{-2\} (denominator zero at x=−2x=-2) and, since h(x)=−1h(x)=-1 can never be reached (it would need 3x+2=0\frac{3}{x+2}=0), range R−{−1}\mathbb{R}-\{-1\} — the vertical asymptote shifts to x=−2x=-2 and the horizontal asymptote shifts to y=−1y=-1, exactly tracking the shift added to 1x\frac{1}{x}.

Common traps

  • Assuming a polynomial has some domain restriction — it never does; domain R\mathbb{R} holds for every polynomial regardless of degree.
  • Sketching a parabola opening the wrong way — always read the sign of aa first: positive means upward, negative means downward.
  • Drawing a rational function's two branches as one continuous curve across the vertical asymptote — the branches on either side never connect.
  • Reading a parabola's range off the yy-intercept instead of the vertex — only the vertex's yy-value bounds the range.

Ask the tutor: Give me a fresh quadratic or rational function to sketch and check my vertex and asymptotes.

Why does a polynomial never have a restricted domain, while a rational function often does?

A polynomial only ever adds, subtracts, and multiplies powers of xx by fixed numbers — none of those operations can fail for any real input, so you can always evaluate it. A rational function additionally divides by another polynomial, and division breaks down whenever that denominator equals zero, so those specific xx-values must be excluded from the domain.

How do I tell the range of a parabola without plotting lots of points?

Find the vertex using x=−b2ax=-\dfrac{b}{2a}, then substitute it back to get the vertex's yy-value. If the parabola opens upward (a>0a>0), that yy-value is the smallest output the function ever produces, so the range is everything from there upward, written [ yvertex,∞)[\,y_{\text{vertex}},\infty). If it opens downward, flip the inequality: the range is (−∞,yvertex](-\infty, y_{\text{vertex}}].

Why do the two branches of y = 1/x never touch the axes?

Touching the xx-axis would mean 1x=0\frac{1}{x}=0 for some xx, and no real number satisfies that equation, so the curve can approach y=0y=0 arbitrarily closely but never actually land on it. Similarly x=0x=0 is excluded from the domain outright, so the curve can never cross that vertical line either — it can only approach it as ∣f(x)∣|f(x)| grows without bound. Both axes are asymptotes precisely because the function gets arbitrarily close without ever reaching them.

Before this

Where this leads