datarekha

Functions of One Variable

Domain, range, and the handful of standard function shapes you must recognise on sight — the foundation the whole Calculus block stands on.

5 min read Beginner GATE DA Lesson 34 of 122

What you'll learn

  • Domain (legal inputs) vs range (reachable outputs), and how to read them off a rule
  • The shapes you must know on sight: polynomials, eˣ, ln x, sin/cos, and |x|
  • Even vs odd functions, and what composition f(g(x)) does
  • ln x is undefined for x ≤ 0; |x| is continuous everywhere but has a corner at 0

Before you start

Sketch on a scrap of paper. You did not build a table of values or plot points one by one — you just knew the bowl shape and drew it. The same happens with a wave like sin x: the picture arrives before any arithmetic does. That instant of recognition — I know what this thing looks like — is the entire skill this short lesson builds.

The last chapter left you at the door of a curved world, asking how to read the slope of a bending curve and where it bottoms out. Every one of those questions begins by knowing which curve you are looking at. A small family of shapes turns up on every page of calculus, and once you can picture them, half the work of limits, continuity, and derivatives is already done before you pick up a pen.

Think of these shapes as the alphabet of calculus. A fluent reader does not sound out letters one at a time — they take in whole words at a glance, and the meaning follows. Same here: recognise the curve, and its behaviour near any point is half-read already. These same shapes resurface the moment you do real machine learning — and ln x are the guts of the sigmoid and log-loss, and the sharp corner of |x| is exactly where ReLU and L1 regularisation live — so the instinct pays off long past the exam.

Domain and range

A function is just a rule that takes one number in and hands back one number out. Two questions pin any such rule down:

  • Domain — which inputs are legal. A square root cannot take a negative, a logarithm cannot take zero or below, a fraction cannot divide by zero. Everything else is fair game.
  • Range — which outputs are actually reached as the input sweeps across the domain.

Take f(x) = 1/x. Its domain is “all real x except 0,” because dividing by zero is illegal; its range is “all real values except 0,” because no input ever drives the output exactly to zero. Reading these two off the rule, before anything else, is the first reflex GATE expects.

The standard shapes you must know on sight

You will never be asked to memorise exotic curves. You will be expected to know these five instantly, the way you know the bowl of :

  • Polynomials (x, , , …) — defined for every real number; smooth, with no breaks and no corners. Even powers make a U-shaped bowl; odd powers run from bottom-left to top-right.
  • Exponential always positive (it never touches zero), passes through (0, 1), and grows ferociously to the right while flattening toward 0 on the left.
  • Natural log ln x — the mirror of . Defined only for x > 0, crosses zero at x = 1, and plunges to −∞ as x approaches 0 from the right.
  • sin x and cos x — wavy and periodic, forever trapped in [−1, 1]. They never escape that band no matter how large x grows.
  • Absolute value |x| — a V-shape: it equals x for x ≥ 0 and −x for x < 0. Continuous everywhere, yet it carries a sharp corner at x = 0.
eₓ(0,1)always > 0ln x(1,0)only x > 0|x|corner at 0
Three shapes worth memorising: eₓ never dips to zero, ln x lives only on the right half-line, and |x| bends sharply at the origin.

Even, odd, and composition

Two quick structural ideas ride on top of those shapes, and GATE leans on both:

  • Even function: f(−x) = f(x) — the graph is mirror-symmetric across the y-axis. Examples: , cos x, |x|.
  • Odd function: f(−x) = −f(x) — the graph has rotational symmetry about the origin. Examples: x, , sin x.
  • Composition f(g(x)) means “do g first, then feed its result into f.” The inner output must be a legal input for the outer rule — and that single requirement is exactly what fixes the domain of a composition (you will see it bite in the worked example).

How GATE asks this

Functions rarely earn a question of their own. Instead this knowledge sits embedded inside limit, continuity, and differentiability questions as a quiet first step: you must already know that ln x needs a positive argument, that sin x can never exceed 1, or that |x| has a corner — before the real question even begins. The wrapper is usually an MCQ about a function’s domain, boundedness, or behaviour, and the function knowledge is what unlocks it.

Worked example

For f(x) = ln(x − 2), give the domain. Also state the range of sin x, and say where |x| fails to be smooth.

Take the three parts one at a time.

Domain of ln(x − 2). A logarithm needs a strictly positive argument, so the rule forces x − 2 > 0, that is x > 2. The domain is every real number greater than 2; the point x = 2 itself is excluded, since there the argument is 0 and ln 0 is undefined.

Range of sin x. As x sweeps over all reals, sin x oscillates and lands on every value between −1 and 1 inclusive. So the range is [−1, 1] — bounded, never escaping the band.

Smoothness of |x|. The V-shape is continuous everywhere — you can draw it without lifting the pen. Yet at x = 0 it carries a corner: the slope jumps from −1 on the left to +1 on the right. That corner is precisely why |x| is not differentiable at 0, a fact the differentiability lesson will lean on directly.

A question to carry forward

You can now recognise the curves and read off where each one lives. But recognising a shape is not the same as describing how it behaves right next to a particular point — and that is what the slope question from the last chapter really demands. Look again at 1/x near x = 0: the function is not even defined there, yet the curve clearly does something dramatic as you creep toward zero. Here is the thread onward: how do we talk precisely about the value a function is heading toward near a point, even when the function never actually arrives — or never exists there at all?

In one breath

  • A function maps one input to one output; domain = legal inputs, range = outputs actually reached. Read both off the rule first (1/x: all x ≠ 0, all y ≠ 0).
  • Know five shapes on sight: polynomials (smooth), (always > 0, through (0,1)), ln x (only x > 0, zero at 1), sin/cos (bounded in [−1, 1]), |x| (V-shape, corner at 0).
  • Even: f(−x) = f(x) (y-axis mirror). Odd: f(−x) = −f(x) (origin symmetry).
  • Composition f(g(x)): the inner output must be a legal input for the outer rule — that is what constrains the domain.
  • Two traps: ln x is undefined for all x ≤ 0; |x| is continuous but not smooth at 0 (continuity ≠ differentiability).

Practice

Quick check

0/7
Q1Recall: which single function is ALWAYS strictly positive for every real input?
Q2Recall: at which single x-value does |x| fail to be differentiable (has a corner)?numerical answer — type a number
Q3Trace: what is the domain boundary of f(x) = ln(x − 5)? Enter the smallest value of x that is NOT allowed.numerical answer — type a number
Q4Apply: which of these functions are BOUNDED (outputs stay within a fixed finite range)? (select all that apply)select all that apply
Q5Apply: which of these functions are EVEN (satisfy f(−x) = f(x))? (select all that apply)select all that apply
Q6Apply: consider g(x) = sqrt(x). Which statements about g are correct? (select all that apply)select all that apply
Q7Create: for the composition h(x) = ln(cos x), which is its largest domain interval around x = 0? (The inner output must be a legal input for ln.)

Sign in to track your progress

Completed lessons, your XP, level, and streak save to your account — it's free and takes a few seconds.

Practice this in an interview

All questions

Related lessons

Explore further

Skip to content