# CAT Practice : Functions

You are here: Home  CAT Questionbank   CAT Quant  Algebra: Functions  Question 3
The same function can have different functional expressions in different ranges. Finding maximum/minimum values in these cases becomes very interesting.

Q.3: Find the maximum value of f(x); if f(x) is defined as the Min {-(x – 1)2 + 2, (x – 2)2 + 1}.
1. 1
2. 2
3. 0
4. 3

Choice B. 2

Click to watch video solution
Click to view the explanation as a slide show

## Detailed Solution

First let us find the range where Min (-(x – 1)2 + 2, (x – 2)2 + 1) is – (x – 1)2 + 2.
In other words, in which range is – (x – 1)2 + 2 < (x – 2)2 + 1.
–(x2 – 2x +1) + 2 < x2 – 4x + 4 + 1
0 < 2x2 – 6x + 4
x2 – 3x + 2 > 0
(x – 1) (x – 2) > 0
=> x > 2 or x < 1

So, for x ∈ (1, 2) , f(x) = (x – 2)2 + 1
And f(x) = –(x – 1)2 + 2 elsewhere.

Let us also compute f(1) and f(2)
f(1) = 2, f(2) = 1
For x ∈ (-∞, 1), f(x) = –(x – 1)2 + 2

f(1) = 2
For x ∈ (1, 2), f(x) = (x – 2)2 + 1

f(2) = 1
For x ∈ (2, ∞), f(x) = –(x – 1)2 + 2
For x < 1 and x > 2, f(x) is -(square) + 2 and so is less than 2.
When x lies between 1 and 2, the maximum value it can take is 2. f(1) = 2 is the highest value f(x) can take.

As a simple rule of thumb, the best way to approach this question is to solve the two expressions. This gives us the meeting points of the two curves. One of the two meeting points should be the maximum value.

## Our Online Course, Now on Google Playstore!

### Fully Functional Course on Mobile

All features of the online course, including the classes, discussion board, quizes and more, on a mobile platform.

### Cache Content for Offline Viewing

Download videos onto your mobile so you can learn on the fly, even when the network gets choppy!

Functions.