Bodh Prabodh

Relations and Functions · Part 3 of 6

What is a Function? Function or Not, Domain and Counting

Learn the exact definition of a function, the vertical line test, how to evaluate f(x), find the natural domain, and count functions between two sets, with practice questions.

  • 12 min video
  • 18 topics
  • 3 check questions
  • Full transcript
Coming soon on YouTubeThis video is planned and not published yet. Follow our YouTube channel to see it when it is out. The transcript, topics and questions below are ready now.
Next: Part 4

Topics in this part

  1. 0:00Welcome
  2. 0:05Functions
  3. 0:37Definition of a function
  4. 1:15Function or not?
  5. 2:04Relation versus function
  6. 2:49Practice question 1
  7. 3:33Evaluating a function
  8. 4:44Practice question 2
  9. 5:24Finding the domain
  10. 6:19Domain: three worked cases
  11. 7:08Practice question 3
  12. 7:47Finding the range
  13. 8:38The vertical line test
  14. 9:14How many functions from A to B?
  15. 9:55Practice question 4
  16. 10:36Common mistakes in Part 3
  17. 11:03Recap of Part 3
  18. 11:30Next part

Check yourself

3 questions on this part from the chapter bank. Pick an answer, then check. No score is shared with anyone.

Question 1
Which graph is NOT the graph of a function of xx?
Question 2
The range of f(x)=[x]f(x)=[x] is:
Question 3
The range of the signum function is:

Want more like these? Browse the whole question bank or take the chapter quiz.

Transcript

English captions of this part, in time order. The narration is in Hinglish; these are the on-screen English subtitles.

0:00 Welcome

0:02 Welcome back to Bodh Prabodh.

0:05 Functions

0:05 In Part 2 we saw that a relation is any subset of A cross B. Today, the star of the chapter: the function. A function is a very disciplined relation. It is the most important idea in all of mathematics from here to calculus.

0:23 By the end you will tell whether a relation is a function in seconds, evaluate functions, find domains and ranges, and count functions.

0:37 Definition of a function

0:37 Think of a vending machine. You press the button B2, and you get exactly one item. Not two, and not nothing. Every button has exactly one result. A function works like that machine: every input has exactly one output.

0:53 Now the formal definition. A function from A to B is a relation in which every element of A is related to exactly one element of B. We write f from A to B.

1:07 If x is in A, its partner in B is written f of x, and it is called the image of x.

1:15 Function or not?

1:15 Look at three arrow diagrams. In the first, every element of A has exactly one arrow. This is a function. Notice that 2 and 3 both go to b. That is allowed.

1:33 Many inputs may share an output. In the second, the element 1 has two arrows, one to a and one to b. Two outputs for one input. This is not a function.

1:49 In the third, the element 3 has no arrow at all. An input without an output. This too is not a function. So the rule is: no input is left out, and no input has two outputs.

2:04 Relation versus function

2:04 Here is the key difference to remember. Every function is a relation, but not every relation is a function. In a relation, an input may have several outputs, or none.

2:17 In a function, an input has exactly one. Also, in a relation the domain can be smaller than A. In a function, the domain is all of A. A classic example.

2:29 The relation y squared equals x. If x is 4, then y can be 2 or minus 2. One input, two outputs. So it is not a function. But y equals x squared is a function: for each x, there is exactly one y.

2:49 Practice question 1

2:49 Pause and try. Which of these is a function from 1, 2, 3 to a, b? The answer is option C. Each of 1, 2, 3 appears once as a first element. Option A misses 3.

3:24 Option B has 1 twice, going to a and b. Option D has 3 twice.

3:33 Evaluating a function

3:33 Most functions in this chapter are given by a formula. Take f of x equals x squared plus 1. To find f of 2, replace every x by 2: 2 squared is 4, plus 1 is 5.

3:49 To find f of minus 3: minus 3 squared is 9, plus 1 is 10. Always put brackets around what you substitute. This protects you from sign mistakes. Here is a harder one.

4:08 f of x equals 2x squared minus 3x plus 1. What is f of a plus 1? Replace x by the bracket a plus 1. We get 2 times a plus 1 squared, minus 3 times a plus 1, plus 1.

4:30 Expand: 2a squared plus 4a plus 2, minus 3a minus 3, plus 1. That simplifies to 2a squared plus a.

4:44 Practice question 2

4:44 Pause and try. If f of x equals 3x minus 2, what is f of 4 minus f of 1? The answer is option C, 9. f of 4 is 12 minus 2, which is 10. f of 1 is 3 minus 2, which is 1.

5:21 And 10 minus 1 is 9.

5:24 Finding the domain

5:24 Now a very important idea: the domain of a real function. A real function has real numbers as inputs and real numbers as outputs. When a formula is given without any domain, the domain is the largest set of real numbers for which the formula makes sense.

5:44 Two things break a formula. Dividing by zero, and taking the square root of a negative number. For square root of x minus 2, we need x minus 2 to be at least 0, so x is at least 2.

6:02 The domain is 2 onwards, including 2. For 1 by x minus 3, we need x minus 3 to be non zero, so x cannot be 3. The domain is every real number except 3.

6:19 Domain: three worked cases

6:19 Let us practise with three formulas. First, the square root of 9 minus x squared. We need 9 minus x squared at least 0, which means x squared is at most 9, so x lies from minus 3 to 3.

6:39 Second, 1 by x squared minus 4. The bottom is zero when x is 2 or minus 2, so the domain is all reals except those two. Third, the square root of x minus 1, divided by x minus 4.

6:59 Two conditions: x at least 1, and x not 4. So the domain is 1 onwards, except 4.

7:08 Practice question 3

7:08 Pause and try. What is the domain of the square root of x minus 5? The answer is option B. We need x minus 5 to be at least 0, so x is at least 5. The square bracket means 5 is included.

7:47 Finding the range

7:47 Now the range. The simplest method: write y equals f of x, and solve for x in terms of y. Then ask which values of y keep x real and allowed. Take y equals x squared plus 1.

8:04 Then x squared is y minus 1, and x is plus or minus the square root of y minus 1. For this to be real, y minus 1 must be at least 0. So y is at least 1, and the range is 1 onwards.

8:23 Quick ranges to remember. 2x plus 3 takes every real value. x squared never goes below 0. And 1 by x takes every real value except 0.

8:38 The vertical line test

8:38 There is also a quick way to see if a graph is a function: the vertical line test. Slide a vertical line across the graph. If it meets the graph at most once everywhere, the graph is a function.

8:53 Because a vertical line is one fixed x, and a function gives only one y for each x. A circle fails the test. A vertical line meets it twice, one above and one below.

9:09 So a circle is not the graph of a function.

9:14 How many functions from A to B?

9:14 One more counting idea. How many functions are there from A to B? Each of the p elements of A chooses its image from the q elements of B, independently.

9:28 So there are q to the power p functions. Compare with relations: 2 to the power p q. With A as 1, 2, 3 and B as a, b, we get 2 cubed, which is 8 functions.

9:44 But there are 2 to the power 6, which is 64 relations. Only 8 of the 64 relations are functions.

9:55 Practice question 4

9:55 Pause and try. n of A is 2 and n of B is 3. How many functions are there from A to B? The answer is option C, 9. Each of the 2 elements of A has 3 choices of image.

10:27 That is 3 to the power 2, which is 9. Be careful not to write 2 to the power 3.

10:36 Common mistakes in Part 3

10:36 Common mistakes. Calling a relation a function without checking that every input is used and has just one output. Forgetting that many inputs may share one output.

10:49 Writing the domain as all reals without checking for zero denominators or negative roots. And in counting functions, mixing up q to the power p with p to the power q.

11:03 Recap of Part 3

11:03 Let us recap Part 3. A function is a relation where each input has exactly one output. The domain is all of A, the co domain is B, and the range is the set of images.

11:17 For real functions, the domain is where the formula makes sense. Use the vertical line test on graphs. And the count of functions is q to the power p.

11:30 Next part

11:30 In Part 4, we meet the famous functions with their graphs: constant, identity, polynomial, reciprocal, modulus, signum and the greatest integer function.

11:44 See you there. Thank you for learning with me. Try the questions in the PDF, and see you in Part 4.

Report a mistake on this page