A large part of JEE Mathematics can be solved by drawing a rough picture and reading it. How many real roots does an equation with a modulus have? What is the minimum of a sum of absolute values? Over what interval is a greatest-integer expression constant? What is the area enclosed by two curves that you can sketch in half a minute? In each case the algebra is possible but long, and the graph is short. The skill is not artistic. It is knowing a small library of standard curves and four or five moves that turn one curve into another, so that you can sketch $y = |x^2 - 4x + 3|$ or $y = x - [x]$ from memory and read off what you need.
This post is a complete study guide to graph transformations as the JEE Main syllabus uses them, within the chapter on relations and functions. It covers the standard graphs, shifts, reflections and stretches, the three different things a modulus can do to a graph, the greatest-integer and fractional-part functions, counting solutions of an equation by intersecting graphs, and the symmetry and periodicity you can read from a picture. There are nine worked examples in JEE style, each checked by computation before it was written down, a list of common traps, a one-page recap and a practice plan. The algebra of domain, range and composition is in our post on sets, relations and functions, and the overview of the whole block is in the cluster post on sets, functions, complex numbers and quadratics.
What the syllabus asks
All of the following is in the JEE Main syllabus under relations and functions, with the graph skills used again in calculus. In our JEE Main mock blueprint the relations-and-functions chapter gets about 1.0 of the 25 questions in the Mathematics section, which is our design and not an official weightage.
| Sub-topic | What you should be able to do |
|---|---|
| Standard graphs | Sketch lines, parabolas, cubics, reciprocal, exponential, logarithm, modulus and trigonometric graphs |
| Transformations | Apply shifts, reflections and stretches to a given graph |
| Modulus | Sketch $|f(x)|$, $f(|x|)$ and sums of modulus terms |
| Greatest integer and fractional part | Sketch $[x]$ and $\{x\}$ and combinations, find where they are constant |
| Counting solutions | Count real roots of an equation by intersecting two graphs |
| Properties from graphs | Even, odd and periodic functions; one-one and onto from a picture |
The library of standard graphs
Before any transformation, you need the base curves in your head. Spend time on these until each one can be drawn in five seconds with its key features marked.
| Function | Shape and features |
|---|---|
| $y = x$, $y = x^2$, $y = x^3$ | Line through the origin; parabola with vertex at the origin; odd cubic with a flat point at the origin |
| $y = 1/x$ | Two branches in the first and third quadrants, asymptotes the axes, odd |
| $y = |x|$ | V with vertex at the origin, slopes $-1$ and $+1$, even |
| $y = a^x$, $a > 1$ | Passes through $(0,1)$, increasing, asymptote $y = 0$ on the left |
| $y = \log_a x$, $a>1$ | Passes through $(1,0)$, increasing, asymptote $x = 0$, defined for $x>0$ |
| $y = \sin x$, $\cos x$ | Waves between $-1$ and $1$, period $2\pi$ |
| $y = [x]$ | Staircase: constant $n$ on $[n, n+1)$ |
| $y = \{x\}$ | Saw-tooth: rises from 0 to nearly 1 on each unit interval, then drops back |
The graph of $f^{-1}$ is the reflection of the graph of $f$ in $y = x$, as the exponential and the logarithm are for each other.
Also read: Trigonometric Identities for JEE: Transformations
The four basic moves
Given the graph of $y = f(x)$, each of the following changes the picture in a fixed way.
$$y = f(x) + c \;:\; \text{shift up by } c \qquad\qquad y = f(x - c) \;:\; \text{shift right by } c$$
$$y = -f(x) \;:\; \text{reflect in the } x\text{-axis} \qquad\qquad y = f(-x) \;:\; \text{reflect in the } y\text{-axis}$$
$$y = a\,f(x) \;:\; \text{stretch vertically by } a \qquad\qquad y = f(bx) \;:\; \text{compress horizontally by } b$$
The pattern to hold on to is that changes applied to $x$, inside the function, act on the horizontal direction and act "backwards": $f(x - 2)$ moves right, $f(2x)$ compresses to half the width. Changes applied to the whole function, outside, act on the vertical direction and act as you expect: $f(x) + 2$ moves up, $2f(x)$ stretches to twice the height.
When several moves are combined, the order matters, and the safe method is to track a single point. Suppose $(2, 3)$ is on $y = f(x)$. Then on $y = 2f(x - 1) + 1$, the point with $x - 1 = 2$, that is $x = 3$, has height $2\cdot 3 + 1 = 7$, so $(3, 7)$ lies on the new graph. This is the fastest way to answer "which point lies on the transformed graph", and it is also the way to check any sketch.
What a modulus does to a graph
A modulus can sit in three different places, and each has a different effect. Students who treat them as the same make the most mistakes in this chapter.
$y = |f(x)|$: reflect the part below the $x$-axis upwards. Wherever $f(x) < 0$ the graph is flipped above the axis, and wherever $f(x) \ge 0$ it is unchanged. The result never goes below the axis. The sketch of $y = |x^2 - 4x + 3|$ starts with the parabola $y = (x-1)(x-3)$, which dips below the axis between 1 and 3 with minimum $-1$ at $x = 2$. After the modulus, that dip becomes a hump of height 1 at $x = 2$, and the graph has sharp corners at $x = 1$ and $x = 3$.
$y = f(|x|)$: keep the right half, mirror it on the left. The part of the graph for $x < 0$ is thrown away, and the part for $x \ge 0$ is reflected in the $y$-axis. The result is always even. For $y = x^2 - 4|x| + 3$ the right half is $y = x^2 - 4x + 3$ for $x \ge 0$ (vertex $(2,-1)$, value 3 at $x = 0$), and the left half is its mirror image. The graph has two minima, at $(\pm 2, -1)$, and a local maximum $y = 3$ at the origin.
$|y| = f(x)$: keep the part above the axis, mirror it below. Only the points with $f(x) \ge 0$ appear, and the graph is symmetric about the $x$-axis.
Combining them, $|x| + |y| = a$ is a square with vertices $(\pm a, 0)$, $(0, \pm a)$ and area $2a^2$.
Sums of modulus terms. The graph of $y = |x - a_1| + |x - a_2| + \dots + |x - a_n|$ is piecewise linear, with a corner at each $a_i$. On the far left the slope is $-n$ and on the far right it is $+n$, and each corner raises the slope by 2. The minimum lies at the median of the points: at the middle point when $n$ is odd, and anywhere on the interval between the two middle points when $n$ is even. For two points, $|x - a| + |x - b|$ has minimum $|a - b|$, attained on the whole segment between them. These results settle questions on minimum value, number of solutions and range without calculus.
For a sum like $|x - 1| + |x - 3| = k$, the graph is flat at height 2 between $x = 1$ and $x = 3$, with slope $-2$ to the left and $+2$ to the right. So it has no solution for $k < 2$, infinitely many (the whole interval $[1,3]$) for $k = 2$, and exactly two for $k > 2$.
Greatest integer and fractional part
The greatest integer function $[x]$ gives the largest integer not exceeding $x$. So $[3.7] = 3$, $[-3.7] = -4$ and $[5] = 5$. The fractional part is $\{x\} = x - [x]$, so $\{3.7\} = 0.7$ and $\{-3.7\} = 0.3$. The negative case is where most errors begin, because $[-3.7]$ is not $-3$.
Properties and results worth owning:
$$[x] \le x < [x] + 1, \qquad 0 \le \{x\} < 1, \qquad [x + n] = [x] + n \ \text{ for integer } n$$
$$[x] + [-x] = \begin{cases} 0, & x \in \mathbb{Z} \\ -1, & x \notin \mathbb{Z} \end{cases} \qquad\qquad \{x\} + \{-x\} = \begin{cases} 0, & x \in \mathbb{Z} \\ 1, & x \notin \mathbb{Z} \end{cases}$$
$$[x] = n \iff n \le x < n+1, \qquad [x] \ge n \iff x \ge n, \qquad [x] > n \iff x \ge n + 1, \qquad [x] \le n \iff x < n+1$$
The last line converts inequalities involving $[x]$ into inequalities on $x$ itself, and is used in every "solve" question. Memorise it in the form: for "less than or equal" the bound moves up to the next integer and becomes strict, and for "greater than" the bound moves up to the next integer and becomes non-strict.
The graph of $[x]$ is a staircase with closed dots on the left end and open circles on the right end of each step. It is discontinuous at every integer, and the function is neither odd nor even. The graph of $\{x\}$ is a saw-tooth of period 1 with range $[0, 1)$, which is the one you need for periodic-function questions. The graph of $x - [x]$ is the same curve, and $\{x\}$ is periodic with period 1 and neither even nor odd.
For a combined expression such as $y = [x]^2 - 5[x] + 6$, treat $[x]$ as a single variable $t$ with $t$ an integer, solve for $t$, and then convert each integer value back to an interval of $x$ using the rule $[x] = n \iff n \le x < n+1$.
For $y = [2x]$ the step width is halved: it jumps at every multiple of $\tfrac12$. For $y = [x/2]$ the steps are twice as wide. In general $[bx]$ has steps of width $1/b$. This is a horizontal compression, as in the moves above.
Counting roots by intersecting graphs
To find the number of real solutions of $f(x) = g(x)$, sketch both and count the intersection points. For modulus equations the standard form is "$|{\text{expression}}| = k$ where the parameter $k$ moves a horizontal line", and the number of roots depends on where the line cuts the fixed curve.
The procedure: make the parameter the height of a horizontal line, sketch the fixed curve with its turning points and corner heights, and count intersections in each range of $k$, checking the boundary heights on their own.
For $|x^2 - 4x + 3| = k$ with the hump of height 1 at $x = 2$: $k < 0$ gives no roots; $k = 0$ gives two (at 1 and 3); $0 < k < 1$ gives four; $k = 1$ gives three (the line touches the top of the hump at $x = 2$ and cuts the two outer arms); $k > 1$ gives two. The edge cases $k = 0$ and $k = 1$ are exactly where marks are lost.
Symmetry and period from a picture
A graph unchanged by reflection in the $y$-axis is even, and one unchanged by a half-turn about the origin is odd; $f(|x|)$ is always even. A function that repeats after a horizontal shift $T$ is periodic, and $|\sin x|$ has period $\pi$ because the modulus folds the negative half upward. A function is one-one if every horizontal line meets its graph at most once.
Worked examples
Each example below was checked by direct computation in Python before inclusion.
Example 1 (single-correct). The graph of $y = f(x)$ passes through $(2, 3)$. A point on the graph of $y = 2f(x - 1) + 1$ is
(A) $(1, 7)$ (B) $(3, 7)$ (C) $(3, 6)$ (D) $(1, 5)$
Solution. On the new graph, $f(x - 1)$ takes the known value $3$ when $x - 1 = 2$, that is $x = 3$. Then $y = 2\cdot 3 + 1 = 7$. Answer: (B).
Example 2 (numerical). Find the minimum value of $|x - 1| + |x - 3| + |x - 6|$.
Solution. There are three corner points $1, 3, 6$; the minimum lies at the median, $x = 3$. The value there is $2 + 0 + 3 = 5$. Answer: 5.
Example 3 (single-correct). The range of $f(x) = |x - 1| + |x + 2|$ is
(A) $(0, \infty)$ (B) $[1, \infty)$ (C) $[3, \infty)$ (D) $(-\infty, 3]$
Solution. For two corner points $-2$ and $1$ the minimum is the distance between them, $3$, attained on the whole segment $[-2, 1]$. The function grows without bound on either side. So the range is $[3, \infty)$. Answer: (C).
Example 4 (numerical). Find the area of the region bounded by $y = |x - 2|$ and $y = 3$.
Solution. The V has its vertex at $(2, 0)$. It meets $y = 3$ where $|x - 2| = 3$, that is $x = -1$ and $x = 5$. The enclosed region is a triangle with vertices $(-1, 3)$, $(5, 3)$ and $(2, 0)$. Its base is $6$ and its height is $3$, so the area is $\tfrac12\cdot 6\cdot 3 = 9$. Answer: 9.
Example 5 (numerical). The number of real solutions of $|x^2 - 4x + 3| = \tfrac12$ is
Solution. Sketch $y = |x^2 - 4x + 3|$. It is zero at $x = 1$ and $x = 3$, and has a hump of height 1 at $x = 2$. The line $y = \tfrac12$ lies strictly between $0$ and $1$, so it cuts each of the two outer arms once and the hump twice, giving four points. Algebraically, $x^2 - 4x + 3 = \pm\tfrac12$ gives $x^2 - 4x + 2.5 = 0$ and $x^2 - 4x + 3.5 = 0$, with discriminants $16 - 10 = 6 > 0$ and $16 - 14 = 2 > 0$, so two real roots each and four in all. Answer: 4.
Example 6 (numerical). The number of integers $k$ for which $x^2 - 4|x| + 3 = k$ has exactly four real solutions is
Solution. Sketch $y = x^2 - 4|x| + 3$. It is even; for $x \ge 0$ it is $x^2 - 4x + 3$ with minimum $-1$ at $x = 2$ and value $3$ at $x = 0$. So the graph has minima $-1$ at $x = \pm 2$ and a local maximum $3$ at $x = 0$. A horizontal line $y = k$ cuts it four times when $-1 < k < 3$, which for integers means $k = 0, 1, 2$. At $k = -1$ there are two solutions ($\pm 2$), at $k = 3$ there are three ($0, \pm 4$), and above $3$ there are two. Answer: 3.
Example 7 (numerical). The number of real solutions of $\{x\} = \dfrac{x}{5}$ is
Solution. Write $x = n + \{x\}$ with $n = [x]$. Then $x - n = \dfrac{x}{5}$, so $\dfrac{4x}{5} = n$ and $x = \dfrac{5n}{4}$. For this to be consistent we need $[x] = n$, that is $n \le \dfrac{5n}{4} < n + 1$. The left inequality gives $n \ge 0$; the right gives $\dfrac{n}{4} < 1$, so $n < 4$. Hence $n = 0, 1, 2, 3$, with solutions $x = 0,\ 1.25,\ 2.5,\ 3.75$. Answer: 4. Graphically, the saw-tooth meets the line $y = x/5$ once on each of the first four teeth. A negative $n$ fails: $n=-1$ gives $x=-1.25$, whose floor is $-2$.
Example 8 (numerical). The solution set of $[x]^2 - 5[x] + 6 = 0$ is an interval (or a union of intervals). Find its total length.
Solution. Let $t = [x]$, an integer. Then $t^2 - 5t + 6 = (t - 2)(t - 3) = 0$, so $t = 2$ or $t = 3$. Convert: $[x] = 2$ gives $2 \le x < 3$, and $[x] = 3$ gives $3 \le x < 4$. The union is $[2, 4)$, of length $2$. Answer: 2.
Example 9 (multiple-correct, Advanced flavour). Let $f(x) = x - [x]$. Which of the following are correct?
(A) $f$ is periodic with period 1 (B) The range of $f$ is $[0, 1)$ (C) $f$ is an even function (D) $f(-1.5) = 0.5$
Solution. Since $[x + 1] = [x] + 1$, $f(x + 1) = f(x)$, so (A) is correct. On $[n, n+1)$, $f$ takes every value in $[0, 1)$ and never reaches 1, so (B) is correct. For (C), $f(0.3) = 0.3$ while $f(-0.3) = -0.3 - (-1) = 0.7$, so $f$ is not even. For (D), $[-1.5] = -2$, so $f(-1.5) = -1.5 + 2 = 0.5$, which is correct. Answer: (A), (B), (D).
Common traps
- Moving $f(x - c)$ the wrong way. The graph of $f(x - c)$ moves right for positive $c$. Verify with one point as in Example 1.
- Reading $[-3.7]$ as $-3$. It is $-4$. Always ask which integer is at or below the number; for negatives this is the larger magnitude.
- Confusing the three modulus positions. $|f(x)|$ flips the negative part up, $f(|x|)$ copies the right half to the left, and $|y| = f(x)$ copies the upper half down. Write which one you are drawing before you start.
- Forgetting the boundary values of the parameter. In "number of roots" questions the answers at $k = 0$ and $k = 1$ in Example 5 differ from the answers on either side. Check each turning-point height on its own.
- Using the median rule for a weighted sum. The median shortcut is for equal coefficients. For $2|x - 1| + |x - 5|$ the weights count, and the minimum is at the corner with larger weight, $x = 1$.
- Skipping the negative case in $[x]$ equations. In Example 7, the negative integers have to be tested, even if they fail. Write the condition $n \le \frac{5n}{4} < n + 1$ and solve it fully.
- Misreading strict and non-strict. $[x] > 2$ means $x \ge 3$, whereas $[x] \ge 2$ means $x \ge 2$. A single misplaced bound changes an interval's length by one unit.
- Believing the graph of $f(|x|)$ uses the left half of $f$. It uses the right half; the original left half is discarded.
A one-page recap
| Item | Result |
|---|---|
| Shift | $f(x) + c$ up; $f(x - c)$ right |
| Reflection | $-f(x)$ in $x$-axis; $f(-x)$ in $y$-axis |
| Stretch | $af(x)$ vertical by $a$; $f(bx)$ horizontal by $1/b$ |
| Track a point | $(p, q)$ on $f$ gives $(p + c,\ aq + k)$ on $a f(x - c) + k$ |
| $|f(x)|$ | Negative part flipped up |
| $f(|x|)$ | Right half kept and mirrored; always even |
| $|y| = f(x)$ | Upper half kept and mirrored down |
| $|x - a| + |x - b|$ | Minimum $|a - b|$ on the segment between $a$ and $b$ |
| Many modulus terms | Minimum at the median of the corner points |
| $|x| + |y| = a$ | Square, area $2a^2$ |
| $[x]$ | Staircase; $[x] = n \iff n \le x < n + 1$ |
| $\{x\}$ | $x - [x]$, period 1, range $[0, 1)$ |
| $[x] + [-x]$ | $0$ for integers, $-1$ otherwise |
| Inverse | Reflect the graph in $y = x$ |
| Roots by graph | Fixed curve and moving line; check turning-point heights |
Also read: Middle Term and Greatest Term in Binomial Expansions
How to practise this chapter
Start with the relations and functions chapter tests on the site, taken in order. The first is JEE Main Chapter Test: Relations and Functions, test 1, and the chapter has four tests, so continue with test 2, test 3 and test 4. Each has 15 questions in 36 minutes. Our post on chapter tests and topic drills explains how to use them.
For reading, the book chapter on relations and functions is at /books/jee-math-sets-functions-complex/2, with the Hindi version at /books/jee-math-sets-functions-complex-hi/2 and the Telugu version at /books/jee-math-sets-functions-complex-te/2. The whole book is on the JEE shelf.
A seven-day plan: Day 1, standard graphs and the four moves; Day 2, modulus placements and sums of modulus terms; Day 3, greatest integer and fractional part; Day 4, counting roots with every boundary value, then chapter test 1; Day 5, symmetry, period and inverses, then chapter test 2; Day 6, mixed modulus and $[x]$ problems, then chapter test 3; Day 7, chapter test 4 and a sort of every wrong answer into drawing, boundary-value or arithmetic slips.
For deeper practice on reading figures and graphs in exam questions, see figure-based questions, and for graph work that extends into the trigonometric inverses, inverse trigonometric functions. After the chapter tests, move to mixed practice. The JEE Main Mathematics practice tests (25 questions in 60 minutes, for example Mathematics Practice Test 01) and the full mocks (for example JEE Main Mock 01) show whether you can reach for a sketch when a question is not labelled by chapter. Full mocks, practice tests and chapter tests are part of the Pro Pass, and the 10-question JEE Main mini mock is free to start. For the subject as a whole, see the JEE Main Maths preparation strategy.
Frequently asked questions
What is the difference between $|f(x)|$ and $f(|x|)$?
$|f(x)|$ flips the part of the graph below the $x$-axis upward, so the result never goes below the axis. $f(|x|)$ keeps the right half of the graph and mirrors it onto the left, so the result is always even. They are different curves for almost every $f$.
How do I find the minimum of a sum of modulus terms quickly?
For equal coefficients, the minimum is at the median of the corner points. For two terms $|x - a| + |x - b|$ it equals $|a - b|$ and is attained on the whole segment between them. For unequal coefficients, find the corner where the slope changes sign.
Why is $[-2.3]$ equal to $-3$?
The greatest integer function returns the largest integer that does not exceed the number. The integers at or below $-2.3$ are $-3, -4, \dots$, and the largest is $-3$. Moving "toward zero" is the wrong rule.
How do I solve equations that mix $[x]$ and $x$?
Write $x = n + f$ with $n = [x]$ an integer and $0 \le f < 1$, solve for the possible integers $n$ using the bounds on $f$, and then find $x$ for each valid $n$. Test negative $n$ separately.

Comments (0)
No comments yet. Be the first to share your thoughts.