Graphical Transformations in Functions
Graphical Transformations in Functions
04
Graphical
Transformations
Learning Part
Session 1
● When f (x) vertically transforms to f (x) ± a
Session 2
● When f (x) horizontally transforms to f ( x ± a ), where a is any positive constant
1
● When f ( x ) transforms to a f ( x ) or f ( x )
a
● When f ( x ) transforms to f ( ax ) or f ( x/a )
● When f ( x ) transforms to f ( − x )
● When f ( x ) transforms to – f ( x )
Session 3
● To draw y = | f ( x )| , when y = f ( x ) is given
● To draw y = f (| x|), when f ( x ) is given
● f ( x ) transforms to | f (| x|)|, i.e. f ( x ) → | f (| x|)|
● To draw the graph of| y | = f ( x ) when y = f ( x ) is given
Session 4
● To draw y = [ f ( x )] when the graph of y = f ( x ) is given and [⋅] denotes greatest integer or integral function
● To draw y = f ([ x]) when the graph of y = f ( x ) is given
● When f ( x ) transforms to y = f ({ x}), where {⋅} denotes fractional part of x, i.e. { x} = x − [ x] or f ( x ) → f ({ x})
● When f ( x ) and g ( x ) are two functions and are transformed to their sum
1
● When f ( x ) transforms to f ( x ) → = h ( x)
f ( x)
● To draw the graph for y = f ( x ) ⋅ sin x when graph of y = f ( x ) is given
● When f ( x ) and g( x ) are given, then find h ( x ) = max ( f ( x ), g ( x )) or h ( x ) = min ( f ( x ), g( x ))
Practice Part
● JEE Type Solved Examples
● Chapter Exercises
Graph and diagram provide a simple and powerful approach to a variety of problems, from which we can solve them in
a very short time. In this chapter, we will discuss how the graph of a function may be transformed either by shifting,
stretching or compressing or reflection.
Graphical Transformations
A graphical transformation takes whatever its basic function f ( x ). The graph of new function is the graph of the
original function shifted vertically or horizontally.
Session 1
When f (x) Vertically Transforms to f (x) ± a
(Where a is Any Positive Constant)
For f ( x ) → f ( x ) + a, ∴ Locate the points (1, 1), (2, 2), (3, 3), (4, 4) and join
them.
First, draw the graph of f ( x ), then shift the graph of f ( x )
upwards through ‘a’ units such that the distance between For y = − x , x < 0
graphs of f ( x ) and f ( x ) + a at every point is same and is x −1 −2 −3
equal to ‘a’ units.
y 1 2 3
For f ( x ) → f ( x ) – a,
First, draw the graph of f ( x ), then shift the graph of f ( x ) ∴ Locate the points ( −1, 1), ( −2, 2), ( −3, 3) and join them.
downwards through ‘a’ units such that the distance So, we obtained graph of y = x .
between the graphs of f ( x ) and f ( x ) − a at every point is
Y
same and is equal to ‘a’ units.
Graphically, it could be stated as shown in figure. y =|x|= x,
x>0
Y y =|x|=–x,
3
x<0 2
a y = f(x)+a 1
a y = f(x) X
a –3 –2 –1 0 1 2 3
X , where a > 0
0 a y = f(x) – a
8
7 (0, 1)
y=–x, x<0 y=x, x>0 1
6 X
y=–x–2, x<0 5 y=x–2, x>0 0
4
⇒ y = e x + 1 is shifted upward by 1 unit such that it
3
intersects Y -axis at (0, 2) and y = e x –1 shifted downwards
2
1 by 1 unit. Such that it intersects Y -axis at (0,0) .
X¢ 0
X The graph of the given functions is shown below.
–8 –7 –6 –5 –4 –3 –2 –1 1 2 3 4 5 6 7 8
–1 Y y = ex+1
–2
–3 y = ex
)
–4
,2
(0
–5 2 ,1
) y = ex – 1
–6 (0
–7 1
–8 X
0 (0,0)
Y′
3. y = x3 +1 4. y = x 3 −1
5. y = sin x + 1 6. y = sin x − 1
7. y = (loge x ) + 1 8. y = (loge x ) − 1
Session 2
When f (x) Horizontally Transforms to f (x ± a), where a is any
Positive Constant, When f (x) Transforms to af (x) or 1 f(x),
a
When f (x) Transforms to f (ax) or f (x/a),
When f (x) Transforms to f (–x), When f (x) Transforms to –f (x)
π
Now, for the graph of y = sin x + shift the graph of
4 f ( x ) → a1 f ( x ) , a > 1
π
y = sin x through towards left as shown below.
4 First, draw the graph of f ( x ), then shrink the graph of
Y f ( x ), ‘a’ times along Y-axis. As shown in the figure.
Y
p 7p y = sin x
–
f(x)
4 p 4 2p
y=
X
–2p –p 0 3p
1
4 y= a f(x)
p
y = sin x+ X
4
π
And for the graph of y = sin x − , shift the graph of
4
π
y = sin x through towards right as shown below.
4
y Example 8 Plot y = sin x and y = 1 sin x .
p
Y y = sin x–
4
2
Sol. First we draw the graph of y = sin x as explained in
sin x Example 6, then shrink the graph of sin x by 2 times along
X 1
p p 5p Y -axis, we get the graph of sin x as shown below.
–2p –p 2
4 4 2p
Y
–1
y=
x= π
x =3π
x= –π
x =π
2
2
y=af(x)
x=
x=
f ( x )→ f (ax ) , a > 1
First draw the graph of f ( x ), then
y Example 7 Plot y = sin x and y = 2sin x . shrink the graph of f ( x ), ‘a’ times along X-axis as shown
in figure.
Sol. First we draw the graph of sin x as explained in Example
6, then stretch the graph of sin x by 2 times along the Y
Y -axis, we get the graph of 2 sin x as shown below. y = f(ax) y = f(x)
2
y = 2 sin x 1/a 1 X
1 –a –1 –1/a 0
y = sin x
–3p –p –p p X
– 2p 0 p 3p 2p
2 2 2 2
–1
–2
Figure 4.4
206 Textbook of Differential Calculus
X
f ( x ) → f (− x ) 0
– f(x)
To draw y = f (–x ), take the image of the curve y = f ( x ) in
the Y-axis as plane mirror or turn the graph of f ( x ) by
180° about Y-axis. Figure 4.7
Chap 04 Graphical Transformations 207
y Example 13 Draw the graph of y = – e x , when the y Example 14 Draw the graph of y = – log ( x ), when
graph of y = e x is known. the graph of y = log x is known.
Sol. As y = e x is given, then y = – e x is the image of e x in the Sol. As y = log x is given, then y = – log x is the image of
X -axis as plane mirror. log x in the X -axis as plane mirror. Thus, it can be drawn
as shown in figure.
Thus, it can be plotted as shown in figure
Y
Y y = ex
(0, 1) y = log x
0 X X
0
(0, –1) (1,0)
y = – log x
y = –ex
X
–2 –1 1 2
–1
X
(ii) In the second step, take the image of negative part
of y = log x , i.e. the part below X-axis in the X-axis Image of
as plane mirror. Thus, the graph can be
f(x) about Y-axis
Y
y = log x when x>0
Figure 4.10
X
0 1
Chap 04 Graphical Transformations 209
On the left of Y-axis Take the mirror image of the graph Again, | f ( x )| → | f (| x | )| can be shown as,
of f ( x ) (of the portion lying on right of Y-axis). Y
Y
y = f( x ) y = f( x )
1
X
0
X –1 – 1 0 1 1
2 2
Figure 4.14
Y
Note f (|x|) is always an even function.
f ( x ) → |f (| x|)| –3 –1 0 1 3
X
–1
Here, we plot y = | f (| x | )| when graph of f (| x | ) is given, in
–2
two steps –3
(i) In step I, f ( x ) transforms to | f ( x )|.
(–1,– 4) (1,– 4)
(ii) In step II, | f ( x )| transforms to | f (| x | )|.
or In next step, we transform f ( x ) = | f (| x | )| ,
(i) f ( x ) → | f ( x )| (ii) f ( x ) → | f (| x | )| i.e. y = | x | 2 − 2 | x | − 3 → | | x | 2 − 2| x | − 3 | as shown below
e.g. Let graph for f ( x )
Y
Y (–1, 4) (1, 4)
y = f(x)
1
3 2
y = ||x| –2|x|–3|
1 1 X
0
2 X
–1 –3 –1 0 1 3
Figure 4.12 –3
Y Y Finally, it is as shown
Y
y = |log|x|| (1, 1)
y = log |x| 1
X X
X 0 1 1
(–1, 0) 0 (1, 0) (–1, 0) 0 (1, 0)
2
–1
(1, –1)
0
X
–1 –1 1 1 2
— —
2 2
–1
Draw the graph of the following functions.
(i) | f ( x )| (ii) f (| x | ) (iii) | f (| x | ) − 1|
2. Plot the following functions.
(i) y = |x 2 − 2x − 3 | (ii) y = x 2 − 2 |x |− 3 (iii) y = |log2 x | (iv) y = |log2 |x ||
(v) y = log2 |1− x | (vi) y = log2 (2 − x )2 (vii) y = |cos |x || (viii) y = |2 − 2x |
(ix) y = sin(|x |) (x) y = cos(|x |)
3. Plot the following functions.
(i) |f (x )| = log2 x (ii) |f (x ) | = log2 (− x )
4. Find the number of solutions of sin πx = |loge| x ||.
5. Find the number of solutions of
(i) 2 | x | = sin x 2 (ii) sin x = x 2 + x + 1
Session 4
To draw y = [f (x)], when the graph of y = f(x) is given and [.] denotes
greatest integer fuctions; To draw y = f([x]) when the graph of
y = f(x) is given; When f(x) transforms to y = f({x}); where {.} denotes
fractional part of x, i.e. {x} = x – [x]; When f(x) and g(x) are Two
Functions and are transformed to their Sum; To draw f(x) → 1/f(x)
= h(x), To draw y = f(x) . sin x, When f(x) & g(x) are given, then find
h(x) = max(f(x), g(x)) or h(x) = min(f(x),g(x))
To Draw y = [f ( x )] Y
Where, [⋅] denotes greatest integral function {i.e. now y
cannot be fraction}.
Here, in order to draw y =[ f ( x )] mark the integer on Y-axis. 3
Step III Draw vertical dotted lines from these intersection y = sin x y = [sin x]
Y
points to intersect X -axis.
Y y = x3 1
1
2 (2 3 , 2)
1 (1,1) y = [x3] X
0
(0, 0)
1 1 X
–23 –1 0 1 23 –1
y= in x
(–1,–1) –1 p p
5p 3p –p x = – p 3p 2p 5p 3p
–3p – –2p – x=
1
–2 2 2 2 2 2 2
(–2 3 , 2)
Y
Step IV Finally, draw horizontal lines parallel to X -axis from
any intersection point to the nearest vertical dotted 1
line with blank dot at right end.
X¢ X
Y –2p – 3p –p 0 p p 2p
2 2
–1
2
1 Y¢
Graph for y = [sin x ]
X¢ X
1/3 –1 0 1 1/3
–2 2
–1
To draw y = f [x ]
–2 when the graph of y = f ( x ) is given, following steps are
Y¢ used.
Graph for y = [x 3 ] , x ∈ [ −21/3, 21/3 ] Step I Plot the straight lines parallel toY-axis for integral
value of x, i.e. n = ...−3, − 2, − 1, 0, 1, 2, 3.
y Example 21 Draw the graph of y = [sin x ] . Step II Now, mark the points of which
x = − 3, x = − 2, x = − 1, x = 0, x = 1, K on the curve.
[Link] I First we draw the graph of y = sin x as (explained in
Example 6) shown below. Step III Take the lower marked point for x (say) if
n < x < n + 1, then take the point at x = n and draw
y = sin x y = [sin x]
Y
a horizontal line to the nearest vertical line formed
by x = n + 1, proceeding in this way, we get
required curve.
1 Mark the integers on the X-axis. Draw vertical
X
lines till they intersect the graph of f ( x ). From
–3π –2π –π 0 π 2π 3π
y = sin x these intersection points, draw horizontal lines
–1 (parallel to X-axis) to meet the nearest right
vertical line with a blank dot on each nearest right
vertical line which can be shown as in the figure.
Y
Step II Now, draw horizontal lines through integers located y = f(x)
as Y-axis till they intersect the graph.
Step III Draw vertical lines from the intersection points to y = f([x])
intersect X -axis. –4
–3 X
Step IV Finally, draw horizontal lines parallel to X -axis –2 –1 0 1 2 3 4
from any intersection point to the nearest vertical
dotted line with blank dot at right end as shown
below. Figure 4.20
214 Textbook of Differential Calculus
X
–2 –1 0 1 2
(0, 1) (1, 0)
X Graph for y = (x − 1)2
Y
To Plot y = f ( x ) + g( x ), when a ≤ g( x ) ≤ b
There is no direct approach, but we can use the following
y= e[x] steps :
If maximum or minimum value of any one is known.
Step I Find the maximum and minimum value of g( x )
–4 –3 –2 –1 O 1 2 3
X say a ≤ g( x ) ≤ b.
Step II Plot the curve f ( x ) between f ( x ) + a to f ( x ) + b,
i.e. f ( x ) + a ≤ h( x ) ≤ f ( x ) + b.
Step III
To Plot y = f ({ x }) When g( x ) = 0
Graph of f ({ x }) can be obtained from the graph of f ( x ) by ⇒ h (x ) = f (x )
following rule. ‘‘Retain the graph of f ( x ) for values of x StepIV
lying between interval [0, 1). Now, it can be repeated for When g ( x ) > 0, then h ( x ) > f ( x ), i.e. the graph of
rest of the points. (taking periodicity 1). h ( x ) lies above the graph of f ( x ).
Now, obtained function is graph for y = f ({ x }). Step V When g ( x ) < 0, then h ( x ) < f ( x ), i.e. the graph of
Graphically, it could be stated as h( x ) lies below the graph of f ( x ).
(i) Graph for y = f ( x ) (ii) Graph for y = f ({ x }) The procedure is illustrated by following example.
Y y Example 24 Plot y = x + sin x .
Y
y1 Sol. Here, y = f ( x ) + g ( x ) = x + sin x
y1
X X where f ( x ) = x and g ( x ) = sin x .
0 1 –2 –1 0 1 2 3
As we know, g ( x ) = sin x ∈ [ −1, 1]
Figure 4.21 ∴ x − 1≤ y ≤ x + 1 …(i)
To sketch the curve between two parallel line y = x + 1 and
y Example 23. Draw the graph for y = ({ x } − 1) 2 . y = x − 1.
Sol. First we will draw the graph for y = ( x − 1)2 , clearly it Here, g ( x ) = 0 ⇒ y = x …(ii)
represent a parabola opening upward and having vertex Also, when g ( x ) > 0
(1, 0) which could be ploted as shown below. ⇒ x + sin x > x …(iii)
Chap 04 Graphical Transformations 215
x–
1 (v) y = ± 1 ⇒ f ( x ) = ± 1
1
y=
x+
=x ∴ f ( x ) could be plotted as,
y=
y
x (3π/2, 3π/2–1) Y
Y sin (π, π)
x+
y = (π/2,π/2+1)
y= 1
5 y= 1
|x| – 2 |x| – 2
1 4
3
y = |x| – 2
2
π X
–3π/2 –π –π/2 –1 (0,0) 1 π/2 3π/2 1
sin x 0
X
1 5 4 3 2 1 1 2 3 4 5
1
2
(–3π/2, –3π/2+1) (–π/2,–π/2–1)
(–π, –π)
y= 1
|x| – 2
This means that near the origin, the variation in the graph due to the shrinking envelope. The slope of the curve also keeps
on changing and does not approach a fixed value.
of sin 1 will be extremely rapid because the successive 1
x However, for g( x ) = x 2 sin , the slope of the envelope is itself
zeroes of the graph will become closer and closer. As we x
keep on increasing x, the variation will become slower and decreasing as we approach the origin, apart from shrinking in
width. This envelope will ‘compress’ or ‘harmmer out’ or ‘flatten’
slower and the graph will ‘spread out’.
the sin oscillations near the origin. What should therefore
1 happen to the derivative? It should become 0 at the origin!
For example, for x > there will not be finite root of the
π Let us ‘zoom in’ on the graphs of both the functions around the
1 origin, to see what is happening.
function. Only when x → ∞, sin will again approach 0.
x f(x) f(x)
f(x)=x sin 1
x
y=x
X X
X
1 1 1
3p 2p p
f(x) f(x)
y=–x
1 y=x2
f(x)=x2 sin x
X X
1 1 1 f(x) f(x)
1 1 1
p 2p 3p 3p 2p p
X X
y=–x2
Figure 4.22
This limit, as we know does not exist; hence, the derivative for Y y = max {2x, x2}
f ( x ) does not exist at x = 0
1
(ii) f ( x ) = x 2 sin
at x = 0 (2, 4)
x B
1 X′ X
h2 sin − 0 0 2
h 1
LHD = RHD = lim = lim h sin = 0.
h→ 0 h h→ 0 h
neglecting
To Find h( x ) max (f ( x ), g( x )) Y′
or h( x ) = min(f ( x ), g( x )) when f ( x ) and g( x ) Thus, from the given graph y = max {2x , x 2 }, we can say
are given y = max {2x , x 2 } is continuous for all x ∈ R.
A Y
y = – |x – 1|
B
X
(0, 0) 2 –1 1 2 3
X′ X
0
–1
Now, since y = max {2x , x 2 } we have to neglect the curve –2
below the point of intersections thus, the required graph is, Y′
as shown below.
218 Textbook of Differential Calculus
To find the graph of 2 − | x − 1| . Shift the graph of y = − | x − 1| Sol. Here, h ( x ) = min { x ; x 2 } can be drawn on graph in two
upward through 2 units. steps.
Y (a) Draw the graph of y = x and y = x 2 , also find their point
2 of intersection.
y = 2–|x–1|
i.e. x = x 2 ⇒ x = 0, 1
X′ X
(–1, 0) 0 1 (3, 0)
Y′
Thus, points of intersection are (0, 0) and (1,1).
Y
Y y = x2
To find the graph of | 2–| x – 1||, reflect the negative portion
of the graph of 2 − | x − 1| in X -axis. y=x
Thus, y = | 2–| x – 1 || can be plotted as shown below. 1
Y X
0 1
y = | 2 – |x – 1| |
(0, 2)
l Ex. 1 The number of real solutions of the equation y = | x | and y = cos x shown as;
e + x = 0 is
x
Y
y = –x y=x
(a) 0 (b) 1
(c) 2 (d) None of these
Sol. (b) It is evident from figure that the curves y = e x and X
O
y = − x intersect exactly at one point. So, the equation y = cos x
e x = − x or e x + x = 0 has one real solution.
Y y = ex It is evident from the graph that the two curves intersect at
y= –x
two points only.
π π
∴ Two real solutions lying in − , .
O
X 2 2
y=2–|x|
(5, 1)
1 X
– 2π –π 0 π 2π
X′ X
0
It is evident from the graph that the two curves do not l Ex. 8 The equation 3 x − 1 + 5 x − 1 = 34 has
intersect. (a) one solution (b) two solutions
∴ No solution. (c) three solutions (d) four solutions
Sol. (a) The total number of solutions is same as the number
l Ex. 6 Number of solutions for 2 sin | x | = 4 | cos x | in [ −π, π ] of points of intersection of the curves.
−1 −1
is equal to y = 3x + 5x and y = 34
(a) 2 (b) 4 Y
(c) 6 (d) 8
y = 34
Sol. (b) The total number of solutions for the given equation is
equal to the number of points of intersection of curves
y = 4| cos x | and y = 2sin | x | . 1/15
X
Clearly, the two curves intersect at four points. So, there 0
are four solutions of the given equation.
It is evident that these two curves intersect at exactly one
4
point.
∴ Exactly one solution.
2
l Ex. 9 The number of solutions of the equation
–π –π 0 π π cos [ x ] = e 2 x − 1 , x ∈[0, 2π ], where [.] denotes the greatest
2 2
integer function is
(a) 1 (b) 2
(c) 3 (d) 4
Sol. (a) It is evident from the graph the two curves intersect at
l Ex. 7 Number of roots of | sin | x | | = x + | x | in [ −2 π, 2 π ] only one point.
is Y
(a) 2 (b) 3 y = e 2x – 1
(c) 4 (d) 6
Sol. (b) The total number of solutions for the given equation is
equal to the number of points of intersection of the
curves. 1 y = cos [x]
y = | sin | x ||
2x , x ≥ 0 0 X
and y = x +|x |= –2 –1 1 2 3
0, x <0
Chap 04 Graphical Transformations 221
(c) Graph of f (| x| ) is
√x+2 √x √x–2 √x–4
X′ X 3
–2 0 2 4 6
2
Y′ 1
–6 –5 –4 –3 –2 –1 1 2 3 4 5 6
Clearly, g ( x ) is periodic with period 2. –1
3 2
2 1
1
–7 –6 –5 –4 –3 –2 –1 1 2 3 4 5 6
–1
–6 –5 –4 –3 –2 –1 1 2 3 4 5 6
–1 –2
–2 –3
–3 –4
–5
222 Textbook of Differential Calculus
Now, shift the above graph 2 units upward to get y = 2 − f ( x ) (d) For y = f ( x + 1) − 2, shift the graph of
y = f ( x ), 1 unit left to get y = f ( x + 1)
5
4 3
3 2
2 1
1
–7 –6 –5 –4 –3 –2 –1 1 2 3 4 5
–1
–6 –5 –4 –3 –2 –1 1 2 3 4 5 6
–1 –2
–2 –3
–6 –5 –4 –3 –2 –1 1 2 3 4 5 6 7 –7 –6 –5 –4 –3 –2 –1 1 2 3 4 5 6
–1 –1
–2 –2
–3 –3
–4
Now, flip the above graph about X -axis to get y = − f ( x − 1 )
–5
3
2
1
–5 –4 –3 –2 –1 1 2 3 4 5 6 7
–1
–2
–3
Chap 04 Graphical Transformations 223
y = [sin x ] …(ii) 2
1
From Eqs. (i) and (ii), we have
X
0 1 2 3 p 2p–3 2p
[[sin x ]] = cos x –1
–1
or [sin x ] = cos x
Solutions are clearly 0, 1, 2, 3 and 2π − 3.
Hence, there are 5 solutions.
Y X
y = log0.5 |x| 0
–1 1
0 X
224 Textbook of Differential Calculus
Y 3
y= x
3 5
2
X 1
–1 0 1
1 3 3 1
y= –3 y= –3 X
x x –4 –3 –2 –1 0 1 2 3 4
–1
x = –3
–2
1 1
(iv) –3 → –3
x x
i.e. The two graphs intersects when [ x ] = 0 and 1
1
To draw the graph of − 3 , taking mirror images 5
x ⇒ x = 0 and x =
3
1
about X -axis for negative value of − 3 in the graph
x 1
l Ex. 18 Sketch the graph of sin x + .
1 2
of − 3.
x 1
Sol. We follow certain steps to plot sin x + ,
Y
2
1 1
1
y= x –3
i.e. sin x → sin x + → sin x +
2 2
(i) (ii) (iii)
X
– 13 0 1
3
Y
y = sin x
1
X
l Ex. 16 Find the number of solutions of the equations –2π –π 0 π 2π
y =| sin x | and x 2 + y 2 = 1 .
Sol. To find the number of solutions of two curves we should (i)
find the point of intersection of two curves.
Chap 04 Graphical Transformations 225
3
Y l Ex. 20 Sketch the region for y = sin ( x – [ x ]) .
2
Sol. We know, y = sin x is the periodic function. So, to plot
y = sin x + 1 the graph between x ∈[0, 1) and repeat for all values of x.
1 2
2 Y
X
0 1
–
2 1
(ii)
Y π X
y = sin x + 1 0 π
—
3/2 2 2
y = 3/2
y=1
1/2 i.e. To retain the graph between x ∈[0, 1).
y = 1/2
Y
X
0
(iii) sin (x–[x])
X
Remarks –2 –1 0 1 2 3 4
Plotting graph of f (x – [x ]):
Graph of f (x – [x ])can be obtained from the graph of f (x )by the
following rule. l Ex. 21 Sketch the region for | y | = sin x .
“Retain the graph of f (x )for values of x lying between interval
[0, 1). Now, it can be repeated for rest of points. Now, Sol. We know, y = sin x is a periodic function. So, to plot
obtained function is periodic with period 1.” | y | = sin x neglect all the points for which y is negative
and take the image for positive values of y about X-axis
2x shown as;
l Ex. 19 Sketch the graph of y = ⋅ Y
2 [x ]
1 y = sin x
Y x
y=2 X
–3 π –2π – π 0 π 2π 3π
–1
neglecting
2
1
x
Sol. As we know, 2 is exponential function and we want to –4π –3π –2π –π 0 π 3π 4π 5π
X
2π
transform it to 2x –[ x ], it retains, the graph for x ∈[0, 1) –1
and repeat for rest points.
Here, to retain graph between x ∈[0, 1), so we get
Y
l Ex. 22 Consider the following function f whose graph is
given below.
2 2x Y
y =—
2[x]
1 1
X X
–2 –1 0 1 2 3 –2 –1 0 1 2 3
–1
226 Textbook of Differential Calculus
–1 1
f(x)
0 X
–3 –2 –1 1 2 3
(b) f ( x ) → f ( x )– 1
To draw the graph of f ( x ) − 1, shift the graph of f ( x ) –1
through 1 unit downward.
(g) f ( x ) → 2 f ( x )
Y
To draw the graph of 2f ( x ) stretch the graph of f ( x ),
1 2 times along Y -axis.
f (x) Y
–2 –1
X 2
0 1 2 3 f (x) – 1
2 f (x)
–1 1
f (x)
–2 –2 –1 X
0 1 2 3
(c) f ( x ) → – f ( x )
–1
To draw the graph of − f ( x ). Take the image of f ( x )
in the X -axis as plane mirror. –2
Y
(h) f ( x ) → f (2x )
To draw the graph of f (2x ) , stretch the graph of f ( x )
1
f(x)
, 2 times along X-axis.
–2 –1 Y
0 X
1 2 3 – f(x)
–1 f (2x)
1
f (x)
X
(d) f ( x ) → | f ( x )|, To draw the graph of f ( x ) taking –2 –1 0 1 2
image for negative values of f ( x ) about X-axis. –1
Y
(i) f ( x ) → [ f ( x )]
1 To draw [ f ( x )] mark the integer on Y -axis. Draw the
|f (x)| horizontal lines till they intersect the graph, now
–2 –1
0 X draw vertical dotted lines from these intersection
1 2 3
f (x) point. Finally, draw horizontal lines parallel to X -axis
–1 from any intersection point to the nearest vertical
dotted line with blank dot at right end.
Chap 04 Graphical Transformations 227
3π
∀ x ∈ – π, .
2
Sol. First plot both y = sin x and y = cos x by a dotted curve as
3π
can be seen from the graph in the interval –π, and
2 ∴ Graph of min {tan x , cot x }
then darken those dotted line for which f ( x ) > g ( x ) or Y
g ( x ) > f ( x ).
Y
1
1
π π π X
3π –π
– O 3π
cos x B – 2 2
sin x 2 2
–1
π π π X
–π
– O C 3π
2 2 2
A
X′ π X X′ X
1| | 1| –1 0 1 π/2 –1 0 1
Y
x + x | x–
| | –1 cos x
y= y
= y=
Y′ Y′ –1
y=cos x
1/2
1 01 1 X l Ex. 28 Sketch the graph for y = tan –1 x , ∀ x ∈ R.
–3 –2 –1 – — 2 3
2 —2 –π π –π π
Sol. As, x ∈ R ⇒ < tan –1 x < ⇒ <y<
2 2 2 2
As from the above graph, –π π
– ( x + 1), x ≤ –1 ∴ tan –1 x is the reflection of the graph of tan x, <x<
2 2
1
in y = x as a mirror.
( x + 1), – 1 ≤ x ≤ – 2
1 y = tan x
– ( x ), – ≤ x ≤0 Y
min {| x |, | x – 1|, | x + 1| } = 2 y=x
1
x, 0≤ x ≤ π/2
2 y = tan–1x
– ( x – 1), 1 ≤ x ≤ 1
2
( x – 1), 1≤ x –π/2 π/2
X
Remark
–π/2
To plot the graph of f –1( x), take reflection of f ( x) in y = x line as a
mirror.
Y
–π π
π y=x ( x ), ≤x≤
y=
2 2 2
π 3π π 3π
1
f(x) =
sin x sin (sin x ) = ( π − x ),
–1
≤ x ≤ or π – ≥ π – x ≥ π –
(–π) (–π/2,0) (–1,0) (1,0)(π/2,0) (π/0) 2 2 2 2
X′ X
O π π
or – ≤ π – x ≤
2 2
–1
π –π 3π
–
2 Thus, it has been defined for ≤ x ≤ , that has length
2 2
Y′
2π. So, its graph could be plotted as;
l Ex. 27 Sketch the graph for y = cos –1 x , ∀ x ∈[–1, 1 ]. Y
π/2
Sol. As, –1 ≤ x ≤ 1 y = sin–1(sin x)
⇒ 0 ≤ cos x ≤ π
–1
⇒ 0≤ y ≤ π π
X
–2π –3π/2 –π –π/2 0 π/2 3π/2 2π 5π/2 3π
∴ cos –1 x is reflection of the graph of cos x , 0 ≤ x ≤ π in –π/2
y = x line as a mirror.
Chap 04 Graphical Transformations 229
l Ex. 30 Sketch the graph for y = cos –1 (cos x ) . Thus, to find the points for which f ( x ) = x 2 is less than or
equal to g ( x ) = | x – 1|.
Sol. As, we have that y = cos –1(cos x ) is periodic with
period 2π. Where the two functions f ( x ) and g ( x ) could be plotted as;
Y f(x) = x2
∴ To draw this graph we should draw the graph for one A g(x) = |x–1|
interval of length 2π and repeat it for entire values of x of
length 2π.
As we know, 1 B
x , 0≤ x ≤ π
cos –1(cos x ) = X
(2π – x ), π < x ≤ 2π or 0 < 2π – x < π –1–√5 0 1
–1+√5
2
Thus, it has been defined for 0 < x < 2π, that has length 2π. 2
So, its graph could be plotted as;
Thus, from the graph f ( x ) ≤ g ( x ), when x ∈[ A , B ]. So that,
Y A and B are point of intersection of x 2 and 1– x.
π –1 – 5
∴ Solving x 2 = 1 – x , we get x = =A
2
y=cos–1(cos x) –1 + 5
and x= = B.
X 2
–2π –π 0 π 2π 3π 4π
x2 – 1 – 5 – 1 + 5
∴ ≤ 1 is satisfied, ∀ x ∈ , .
x –1 2 2
X
–2π –3π/2 –π –π/2 0 π/2 π 3π/2 2π 5π/2 X
–4 –3 –2 – √3 –1 1 2
–π/2
g (x) = –[x]
B
Finally.
Y
l Ex. 32 Find the values of x graphically which satisfy
x2
≤ 1.
x –1
2
x2
Sol. We have, ≤1 – Ö3 0 1
X
x –1
⇒ | x 2 | ≤ | x – 1|, ∀ x ∈ R – { 1 }
or x 2 ≤ | x – 1|, ∀ x ∈ R – { 1 }
230 Textbook of Differential Calculus
3
2
x+
x
x+
x–
x–
x–
g ( x ) = |sin x | X
–2 –1 0 1 2 3 4
∴ Their point of intersection are number of solutions.
Chap 04 Graphical Transformations 231
Codes
A B C D A B C D
(a) p q r s (b) q s p s
(c) q p s r (d) s p q r
234 Textbook of Differential Calculus
22. Find the number of solutions for tan 4x = cos x , when (1, 1)
1
x ∈(0, π ).
23. Find number of solutions for equation [sin −1 x ] = x − [x ], 0 1 2 3 4
X
where [ ⋅ ] denotes the greatest integer function.
24. If x and y satisfy the equations 1
28. Find the domain for f ( x ) = ,
max (| x +y|,| x −y| ) = 1 and | y| = x −[x ] , the number of [ x −1 ]+[ 5− x ]− 4
ordered pairs ( x , y ). graphically.
25. Find the area enclosed by | x + y − 1 |+|2x + y + 1| = 1. 29. Draw the graph for y = {x } and y = {x }.
26. Find f ( x ) when it is given by
30. Draw the graph for y = − [x ] + {x }.
1
f ( x ) = max x 3 , x 2 , , ∀x ∈ [0, ∞ ).
64
Answers
Exercise for Session 1 5. Y
1.
2 y=sin x+1
Y
1
y=x2+1 X
5 –π 0 π 2π 3π
4 y=x2 –1 y=sin x
3
2
1
6. Y
X′ X 2
–7 –6 –5 –4 –3 –2 –1 0 1 2 3 4 5 6 7 1
–1 y=sin x
0 X
–2
–1 y=sin x–1
–3
–4 –2
–5
7. Y
Y′ y=loge x+1
y=log x
2. Y
5 y=x2 –1
X
0 1
4
3
2
1 8. Y
y=loge x
X′ X
–5 –4 –3 –2 –1 0 1 2 3 4 5
–1 X
0 1
–2
–3 y=loge x–1
–4
–5
Y′
Exercise for Session 2
3. Y y=x3+1 1. (i) f (x + 1) is shown as
y=x3 Y
1
1 1
X X
0 –3 –2 –1 0 1 2
–1
4. (ii) f (x − 1) is shown as
Y y=x3
Y
y=x3–1
X 1
1 0 X
–1 –2 –1 0 1 2 3
–1
236 Textbook of Differential Calculus
0
(iv) f (− x) is shown as –1 –1 1 2 X
— 1
2 —
Y 2
–1
1
(i) | f (x)| is shown as
X Y
–2 –1 0 1 2
–1 2
1
1
(vi) f (x) is shown as X
2 –2 –1 O 1/2 1 2
Y –1
–2
1
1/2 (iii) Y Y
X 1 1
–2 –1 0 1 2
–1/2
0 X X
–2 –1 1 2 –2 –1 0 1 2
–1
–1
Graph for f (| x |) − 1 Graph for | f (| x |) − 1 |
(vii) f (2x) is shown as
Y 2. (i) y = | x2 − 2x − 3| = |(x − 3)(x + 1)|
1 Y
X
–1 –1/2 0 1/2 1
–1
X
–1 0 3
(viii) f is shown as
x
2 (ii) y = (x + 1)(x − 3 ) = x2 − 2x − 3, y = x2 − 2| x|−3
Y
Y
1
X X
–4 –3 –2 –1 0 1 2 3 4 –3 0 3
–1
–3
Chap 04 Graphical Transformations 237
1
–π/2 π/2
X
–3π/2 0 3π/2
1 X
0
y = log 2 x
X
X 0 1
–1 0 1
0 X
1
X
–1 0
y= loge x
X
0 1 2 3 X
–3 –2 –1 0 1 2 3 4 5
y=sin px
∴ Number of solutions is 6.
5. (i) 2 | x | = sin x2
(vii) y =|cos| x ||
Y
1 Y
|x|
2 =y
π π 3π X
–3π –— 0 — —
— 2 2 2 1
2
X
–√π 0 √π
(viii) y = 2 − 2x ⇒ y = |2 − 2x |
Y
2 ∴No solution
1 (ii) sin x = x2 + x + 1
0 X
1
Y
(ix) y = sin| x |
y=x2+x+1
Y
1 1
y=sin x
X X
–2π –π 0 π 2π 0
–1 –1
∴No solution
238 Textbook of Differential Calculus
Y
π
y=
2
3
2 y=0
3π –π – π
–
π
π 3π
2 2 2 2
1 π
y =–
X′ X 2
–
√3 – √2 –1 O 1 √2 √3
(vi) y = [cos−1 x]
Y
Y′
π
(ii) Here, f (x) = [| x|] –2
Y
1
X′ X
–1 O 1
X′ X
O
Y′
Y′ (vii) f (x) = cos (x − [ x])
X′ X
2 –π O 1 π2
2 2
1
y = cos x
X′ X Y′
O 1 2
Y
Y′
π
(iv) f (x) = [| x|−2] y=2
Y 1
X′ X
–π –π
– 3π –π π 3π
0
2 2 2 2
π
X′ X y =–2
O
Y′
Y′
Chap 04 Graphical Transformations 239
= 2− x
x
3. Given, 3
2– x
− x =0 ⇒e = x
x x
1. Given, e X′ X
–2 O 2
Now, the number of solution will be the point of intersection
of y = e and y = x .
x
Y′
Both of the curves shown below Clearly, both the curve intersect of two points.
e–x ex ∴ Number of solutions is 2.
Y
4. Given, x − x 2 − 1 = 2x − 3 − x 2
y=x
Let f ( x ) = x − x 2 − 1 and g( x ) = 2 x − 3 − x 2
)
(0 ,1
First we draw the graph of f ( x ) and g ( x )
X′ X
(0, 0) then, transforms it into | f ( x )| and | g( x )|.
2
1 3
Here, f ( x ) = x − x 2 − 1 = y ⇒ x − = − y +
2 4
Y′ 1 3
Clearly, it represents a parabola having vertex − , − .
Clearly, from the graph we see that the both curves do not 2 4
intersect. Also, g( x ) = 2 x − 3 − x 2 = y ⇒ ( x − 1 ) 2 = − (y + 2 )
∴ No solution.
It also represent a parabola having vertex (1, − 2 ).
2. Given, 3 − x
−2
x
=0 ⇒3
− x
=2
x
− x
The graph of both curve is given below
Now, we plot the graph y = 3 Y
and y = 2
x
as shown below 3
Y x 2
2
1
X′ X
–3 –2 –1 1 2 3
–1
X′ X 1 , –3
O –x 2 4
3 x – x2–1 –2
(1, –2)
–3 2x– 3– x2
Y′
Y′
Clearly, the two curves intersect at one points. Clearly, both the curves intersect at only one point.
Hence, the number of solutions is 1. ∴ Number of solutions is 1.
240 Textbook of Differential Calculus
Clearly, for m < − 1, it will represent a straight line parallel to First we draw the graph of x 2, f ( x ) and | x| as shown below
X -axis which intersect the e x at only one point. Y
x2 x
Hence, exactly one real root.
6. Given, 1 − x = [cos x ]
The graph of both the curves is given below
Y
y =1–x f(x)
X′ 1 2 X
–3 –2 –1 O 3
1
y =–
2
X′ X
3π π π 3π 2π
–2π – 2 – 2 2 2
Y′
X′ X
–2π
O π π 3π 2π X′
0 1
X
–2 –1 2
2 2
–1
(0, –2)
Y′ Y′
Chap 04 Graphical Transformations 241
X′ –2 –1 X
–π O π
2 2 –1
Y′
x 2 + 2 x , − 3 ≤ x < − 1
− 1, −1 ≤ x < 0
Clearly, from the graph it is symmetrical about the origin. g( x ) =
0, 0 ≤ x ≤2
Also, derivative of an odd function is an even function and
x 2 − 2 x, 2 < x <3
sec 2 x is derivative of tan x.
Hence, both the statements are true and Statement II is a 13. For x ∈ ( − 1, 0), f ( x ) + g( x ) = x 2 + 2x − 1
correct explanation of Statement I. 14. Obviously, the graph is broken at x = 0, i.e. in one point.
12. We know that, the number of point of intersection of two 15. Clearly, h1( x ) = f (| g( x )| ) = sin 2 x has period π, range [ 0, 1] and
curve is the real solutions of the equation involving these
functions. domain R.
Also, || x − 2| + a| = 4 16. h2( x ) = | f ( g( x ))|
⇒ | x − 2| = ± 4 − a The graph for h2( x ) is
Y x–2 Y
y = f(x)
X
X′ O 2
X′ X
O π π 2π 3π
Y′ 2
For four real roots 4 − a > 0 and − 4 − a > 0
Y′
⇒ a ∈ ( − ∞, − 4 )
It is clear from the graph that the function is periodic with
Both Statement I and Statement II are correct and Statement II
period 2π and has range [0, 2].
is the correct explanation of Statement I
1
Sol. ([Link]. 13 to 14) 17. Let y = tan x = 2
x
Here, f1( x ) = x 2 1
We plot the graph for tan x and 2 as shown below
f 2( x ) = | x | x
or f ( x ) = f1( x ) − 2 f 2( x )
Y
= x 2 − 2| x|
2
Graph for f ( x ) 0.5
Y 1
f(x) = 1/x2
0.5
X′ π 3π/2 X
π/2 2π
–0.5
–1
O –1.5
X′ X
–2 –1 1 2 –2
Y′
Y′ From the graph, it is clear that, it will have two real roots.
(b) 2 cos x = |sin x|, x ∈[ 0, 2π ]
242 Textbook of Differential Calculus
(c) Given, f (| x| ) = 0 has a real root or f ( x ) = 0 has four Graphically, it is clear that the given equation has four roots.
positive roots. Since, f ( x ) is a polynomial of degree 5,
π
f ( x ) cannot have even number of real roots. Hence, f ( x ) 20. In − , 0 , the graph of y = tan x lies below the line y = x,
2
has all the five roots real and one root is negative.
π
(d) Here, 7| x| (|5 − | x|| ) = 1 or |5 − | x|| = 7 −| x| which is the tangent at x = 0 and in 0, , it lies above the
2
Draw the graph of y = 7 −| x| and y = |5 − | x|| line y = x.
Y y = tan x
Y y = mx
y=x
5
y=5–x (–π/2, 0)
X′ X
O (π/2, 0)
1
Y′
X
–5 5 π
For m > 1, the line y = mx lie, below y = x in − , 0 and
y =7– x 2
From the graph, the number of real roots is 4. π
above y = x in 0, .
Hence, a → q; b → s; c → p; d → s. 2
18. Let f ( x ) = x + 2| x + 1| + 2| x − 1| Thus, graph of y = tan x and y = mx, m > 1, meet at three
x − 2( x + 1 ) − 2( x − 1 ), x < −1 − 3 x, x < −1 π π
points including x = 0 in − , independent of m.
= x + 2( x + 1 ) − 2( x − 1 ), − 1 ≤ x ≤ 1 = x + 4, − 1 ≤ x ≤ 1 2 2
x + 2( x + 1 ) + 2( x − 1 ), x >1 5 x, x >1 x2
21. We have, =1
The graph of f ( x ) is shown below 1 −| x − 2|
Y x2 x2
(i) When x ≥ 2, =1⇒ =1
1 − (x − 2) 3−x
Y
7
6 4
5
3
4
3 2
2 1
1 X
X′ X 3 2 1 1 2 3 4
–3 –2 –1 0 1 2 3
Y′
Clearly, from the graph, y = k can intersect y = f ( x ) at exactly ⇒ x 2 = 3 − x, x ≠ 3
one point only if k = 3.
No point of intersection.
Chap 04 Graphical Transformations 243
x2 x2 24. Now, | x + y | = 1
(ii) When x < 2, =1⇒ =1
1 − (2 − x ) −1 + x ⇒ x + y = ±1 …(i)
⇒ x 2 = −1 + x , x ≠ 1 and | x − y| = 1
Y ⇒ x − y = ±1 …(ii)
Also, |y | = x − [x ]
4 ⇒ ± y = x − [x ]
Here, we see that there is no point of intersection between the
3 two curves.
2 Here, no ordered pair of ( x, y ) satisfy the given equations.
1
Y max (|x+y|,|x–y|=1
X 3
–4 –3 –2 –1 1 2 3 4
–1 2
y=x–[x]
X′ X
–3 –2 –1 1 2 3
No point of intersection. –y=x–[x]
–1
Here, the number of solution is zero. –2
22. Given, tan 4x = cos x –3
The number of solutions will be the point of intersection of Y′
curves y = tan 4 x and cos x
The graph of y = tan 4 x and y = cos x is given below. 25. We have, | x + y − 1| +|2x + y + 1| = 1
Y ⇒ ± ( x + y − 1 ) ± (2 x + y + 1 ) = 1
(i) ( x + y − 1 ) + (2 x + y + 1 ) = 1
tan 4x 1
⇒ 3 x + 2y = 1 …(i)
(ii) + ( x + y − 1 ) − (2 x + y + 1 ) = 1
X′ X
⇒ −x = 3 …(ii)
0 π π 3π π 5π 3π 7π π
8 4 8 2 8 4 8 cos x
(iii) −( x + y − 1 ) + (2 x + y + 1 ) = 1
–1 ⇒ x = −1 …(iii)
(iv) −( x + y − 1 ) − ( +2 x + y + 1 ) = 1
Y′ ⇒ −3 x − 2y = 1 …(iv)
3x+2y=1
From the graph, it is clear that both curve intersect at five points.
Y
∴Number of solutions is 5.
3x+2y=–1
23. Given, [sin − 1 x ] = x − [ x ] 4
–2
–3 –2 –1 1 2 3 x=–3 x=–1 –3
[sin–1x] –4
–1
–π –π
2 Y′
−3
∴ Area of shaded region = ∫ [(3 x + 2y − 1 ) − (3 x + 2y + 1 )]dx
−1
Clearly, the two graphs intersect at only one point. −3
= ∫ − 2 dx = −2 [ x ]−−31 = −2 [ −3 + 1 ] = 4 sq units
∴ Number of solutions is 1. −1
244 Textbook of Differential Calculus
1 Y
26. Given, f ( x ) = max x 3, x 2, , ∀ x ∈ ( 0, ∞ ) 6
64
5
1
Now, we draw the graph for the curves y = x 3, y = x 2 and y = 4
64
3 2 3
Y y =x y =x
2
1
X
0 1 2 3 4 5 6
1
y=
64
X′ X We see that the value of (graph A + graph B) is 4 for the
O 1,1,1
84 following values of x : ( 0, 1 ], {2, 3, 4 }, [5, 6 ).
Hence, domain D = R / {( 0, 1 ], 2, 3, 4, [5, 6 )}.
29. Let us first draw the graph for y = { x }. Now, { x } is the same
Y′ as x for 0 ≤ x < 1. In this interval, { x } will be the same as x .
Y
1 1
,0<x≤ 1
64 8
1 X′ X
Clearly, from the graph f ( x ) = x 2, < x < 1 0 1
8
x 3, x > 1 Y′
We can easily see that this same curve will be repeated in every
27. The line through ( 0, 0) and (1, 1) has slope m = 1 and y-intercept previous and subsequent unit interval, since { x } is the same in all
such intervals. Hence, we obtain the graph of y = { x }.
b = 0, so its equation is y = x. Thus, for the part of the graph f
that joins ( 0, 0 ) to (1, 1 ), we have f ( x ) = x, if 0 ≤ x ≤ 1 Y
The line through (1, 1 ) and (2, 0 ) has slope m = − 1, so its point 1
slope form is y − 0 = ( − 1 ) ( x − 2 ) or y = 2 − x.
So, we have f ( x ) = 2 − x, if 1 < x ≤ 2
X
We also see that the graph of f coincides with the X -axis for –3 –2 –1 1 2 3 4
x >2. Putting this information together, we have the following
x, if 0 ≤ x ≤ 1
Now, we can easily draw y = { x } by taking a reflection in
three-piece formula for f ( x ) = 2 − x, if 1 < x ≤ 2
0, if x > 2 the X -axis.
Y
28. The denominator is a bit complicated and we need to analyse it
in detail to determine, where it can become zero. 1
The fastest and easiest way would be to visualise the graph.
Draw the graphs for x − 1 and 5 − x , apply the greatest X′ X
integer function of these graphs separately, then add them and –2 –1 0 1 2 3
find the values of x for which this sum becomes 4. For these
–1
values of x, the denominator of f ( x ) becomes 0. Y′
Y
Y 30. In any interval n ≤ x < n + 1 , (where n is an integer) [x] has
x–1 the value n. In any interval, therefore the graph of
1 (Graph A)
X Þ X y = − [ x ] + { x } will be the graph of { x } − integer n.
1 –2 –1 0 1 2 3 4 5
e.g. 0 ≤ x < 1 ⇒ y = { x } ; 1 ≤ x < 2 ⇒ y = −1 + { x } ;
Y
−1 ≤ x < 0 ⇒ y = 1 + { x }. The graph is drawn below
4
(Graph B) Y
Y 3
2
5 2
5–x 1
XÞ X
5 1 2 3 4 5 6 7 8 X
–1 O 1 2