Skip to content

LearnIPMAT Quant: Algebra

IPMAT Quant: Algebra

Functions

IPMAT Indore Quant, MCQ and short answer · 115 min read · 39 worked examples · 60 practice questions

1 What a function is

The canteen board in a school lists one price for each item. Samosa ₹15, vada ₹15, sandwich ₹30.

Item → price is a function. Every item has exactly one price on the board.

Two items may share a price: the samosa and the vada both cost ₹15. That is allowed.

One item with two prices on the same board would not be a function. You could not say what it costs.

A function as a machine

Think of a function as a machine with a name, say ff. You feed in a number xx. The machine doubles it and adds 3.

What comes out is written f(x)f(x), read "f of x". So f(x)=2x+3f(x) = 2x + 3.

input x = 4 f double it, then add 3 output 11 f(1) = 5 f(−2) = −1 f(0) = 3
Figure 1 A function as a machine: f doubles the input and adds 3. Put in 4 and exactly one number, f(4) = 11, comes out. The same rule gives f(1) = 5, f(−2) = −1 and f(0) = 3

Feed in 4: out comes f(4)=2×4+3=11f(4) = 2 \times 4 + 3 = 11. Feed in −2-2: out comes f(−2)=−4+3=−1f(-2) = -4 + 3 = -1.

The letter xx is only a place holder. f(t)=2t+3f(t) = 2t + 3 is the same rule.

Words to know

  • The input is the number you put in; the output is what comes out.
  • f(a)f(a) is the image of aa. And aa is a preimage of f(a)f(a): an input that gives it.
  • The domain is the set of inputs the function accepts.
  • f:A→Bf: A \to B is read "f from A to B". AA is the domain. BB, the set the outputs are taken from, is the codomain.
  • The range is the set of outputs that really come out. It sits inside the codomain, and may be smaller.

NCERT puts it as a rule between two sets.

A function from AA to BB gives each element of AA one image in BB, and only one.

  • a∈Aa \in A is read "aa belongs to AA": aa is one of the elements of AA.
  • When to use it: to decide whether a rule, a list of pairs or a graph is a function.
  • Tiny use: A={1,2,3}A = \{1, 2, 3\}, B={5,7,9,11}B = \{5, 7, 9, 11\} and f(a)=2a+3f(a) = 2a + 3. The images are 5, 7, 9. The range is {5,7,9}\{5, 7, 9\}; 11 is in the codomain but never comes out.
  • The common slip: thinking two inputs may not share an output. They may. What is not allowed is one input with two outputs, or an input with none.

A real function is one whose domain and range are sets of real numbers. Every function on this page is real.

A function as a set of pairs

Write each input with its output as a pair (input, output). Any set of such pairs is called a relation.

A relation from AA to BB is a function when every element of AA appears as a first entry exactly once.

Example 1NCERT Ex 2.3 Q1

Which of these relations are functions? For each function, give its domain and range. (i) {(2,1),(5,1),(8,1),(11,1),(14,1),(17,1)}\{(2, 1), (5, 1), (8, 1), (11, 1), (14, 1), (17, 1)\} (ii) {(2,1),(4,2),(6,3),(8,4),(10,5),(12,6),(14,7)}\{(2, 1), (4, 2), (6, 3), (8, 4), (10, 5), (12, 6), (14, 7)\} (iii) {(1,3),(1,5),(2,5)}\{(1, 3), (1, 5), (2, 5)\}

See the solution

Step 1: (i) The first entries 2, 5, 8, 11, 14, 17 are all different, so each input has one output

a function: no first entry repeats

Step 2: (i) Domain {2,5,8,11,14,17}\{2, 5, 8, 11, 14, 17\}; every output is 1, so the range is {1}\{1\}

domain: first entries; range: second entries

Step 3: (ii) The first entries 2, 4, 6, 8, 10, 12, 14 are all different: a function

no first entry repeats

Step 4: (ii) Domain {2,4,6,8,10,12,14}\{2, 4, 6, 8, 10, 12, 14\}, range {1,2,3,4,5,6,7}\{1, 2, 3, 4, 5, 6, 7\}

each output is half its input

Step 5: (iii) The input 1 appears with 3 and with 5: two outputs for one input

one input, two images

Answer: (i) and (ii) are functions, with the domains and ranges above; (iii) is not a function

Many inputs sharing one output, as in (i), is fine. A constant function like this has a range of one element.

Example 2NCERT Misc Q12

A={9,10,11,12,13}A = \{9, 10, 11, 12, 13\}, and f:A→Nf: A \to \mathbb{N} sends each nn to the highest prime factor of nn. Find the range of ff.

See the solution

Step 1: 9=3×39 = 3 \times 3, so f(9)=3f(9) = 3

a prime factor is a prime that divides nn

Step 2: 10=2×510 = 2 \times 5, so f(10)=5f(10) = 5

take the highest prime factor

Step 3: 11 is prime, so f(11)=11f(11) = 11

a prime is its own highest prime factor

Step 4: 12=2×2×312 = 2 \times 2 \times 3, so f(12)=3f(12) = 3

the highest of 2 and 3

Step 5: 13 is prime, so f(13)=13f(13) = 13

its own highest prime factor

Check: 9 and 12 both go to 3; sharing an output is allowed

still a function

Answer: the range is {3,5,11,13}\{3, 5, 11, 13\}, four elements from five inputs

Here N\mathbb{N} is the set of natural numbers 1,2,3,…1, 2, 3, \dots. It is the codomain; most of it is never reached.

The vertical line test

On a graph, the input is read along the x-axis and the output up the y-axis.

A vertical line x=ax = a passes through every point with input aa. So it meets a function's graph at most once.

The curve x=y2x = y^2 is a parabola lying on its side. The line x=1x = 1 meets it at y=1y = 1 and at y=−1y = -1.

−2 −1 1 2 −1 1 2 3 O x y (1, −1) y = x² − 2: once, a function 1 2 3 4 −2 2 3 O x y (1, 1) (1, −1) x = y²: twice, not a function
Figure 2 The vertical line test. The line x = 1 meets y = x² − 2 once, at (1, −1): one output for the input 1. It meets x = y², a parabola lying on its side, twice, at (1, 1) and (1, −1), so that curve is not the graph of a function

A curve that some vertical line meets twice gives two outputs for one input. It is not the graph of a function.

Working out values

To find ff of anything, put that thing in place of every xx in the rule.

Example 3Basic

f(x)=x2−3x+5f(x) = x^2 - 3x + 5. Find f(2)f(2), f(−1)f(-1) and f(a+1)f(a + 1).

See the solution

Step 1: f(2)=22−3×2+5=4−6+5=3f(2) = 2^2 - 3 \times 2 + 5 = 4 - 6 + 5 = 3

put 2 in place of every xx

Step 2: f(−1)=(−1)2−3×(−1)+5=1+3+5=9f(-1) = (-1)^2 - 3 \times (-1) + 5 = 1 + 3 + 5 = 9

brackets round a negative input

Step 3: f(a+1)=(a+1)2−3(a+1)+5f(a + 1) = (a + 1)^2 - 3(a + 1) + 5

put a+1a + 1 in place of every xx

Step 4: =a2+2a+1−3a−3+5=a2−a+3= a^2 + 2a + 1 - 3a - 3 + 5 = a^2 - a + 3

(a+1)2=a2+2a+1(a + 1)^2 = a^2 + 2a + 1

Check: a=1a = 1 gives f(2)=1−1+3=3f(2) = 1 - 1 + 3 = 3, as in Step 1

the two ways agree

Answer: f(2)=3f(2) = 3, f(−1)=9f(-1) = 9, f(a+1)=a2−a+3f(a + 1) = a^2 - a + 3

Example 4Exam level

A cab company charges by the rule C(d)=40+12dC(d) = 40 + 12d, in rupees, for a ride of dd km. (i) What does a 15 km ride cost? (ii) How long was a ride that cost ₹232?

See the solution

Step 1: (i) C(15)=40+12×15=40+180=220C(15) = 40 + 12 \times 15 = 40 + 180 = 220

put 15 in place of dd

Step 2: (ii) Now the output is known: 40+12d=23240 + 12d = 232

set the rule equal to the output

Step 3: 12d=19212d = 192, so d=16d = 16

subtract 40, divide by 12

Check: C(16)=40+192=232C(16) = 40 + 192 = 232

put the answer back

Answer: (i) ₹220 (ii) 16 km

Part (ii) runs the rule backwards: the output is known and the input is asked. Section 5 calls this the inverse.

Try it

g(x)=3x2−xg(x) = 3x^2 - x. Find g(−2)g(-2) and g(2t)g(2t).

The rest of the page asks what may go in (domain), what can come out (range), and how functions combine.

Check yourself · 5 questions

Question 1 of 5Easy

Let A={p,q,r}A = \{p, q, r\} and B={1,2,3}B = \{1, 2, 3\}. Which of these relations from AA to BB is a function?

Loading the rest of the chapter…

Focused

Read the whole chapter

14 more sections: 39 worked examples, 12 graphs and figures, the question types IPMAT asks, 60 practice questions with full solutions.

Unlock with Focused Aspirant