Foundations Functions

A graph is another tool in mathematics that shows a relationship or dependency of one parameter to another. Graph theory is the study of graphs, in which mathematical structures are used to portray the relationship between a pair of variables. For example, considering a simple graph of two variables, between wages given to a painter and the hours he worked. The graph can be depicted like this:

Wages given to the painter depend on the number of hours worked. As can be seen in the graph, the wages increase as the number of hours increase but wages will not be increased further than $100 once the number of hours reaches 30.

Dependent and Independent Quantities

A function is a mathematical relation between two variables. To be more precise, a number which could be represented in terms of another quantity represented by a variable say x is said to be the function of that quantity.

A function is represented as y = f(x), where y is a dependent variable and x is an independent variable and y is read as ‘function of x’. A function always evaluates to a single value for a given value of x. If a relation gives more than one value for the same value of x, then it is NOT a function.

A function can be generally represented as:

Domain: The domain of a function is a set of all possible input values for x (or the independent variable), for which the function is defined.

For example: In the above graph between wages and number of hours (Figure 1); the independent variable i.e. time cannot be less than zero. Hence its domain is any value that is greater than or equal to zero.

This can be represented as h>=0 where h represents the number of hours worked.

Range: The range of the function is the range of the values that the dependent variable can have. In the above example (Figure 1), the wages given to the painter cannot be less than zero and according to the graph the maximum wage that the painter can earn from this work is $100.

Hence range is 0 =

The domain can be represented as a set of values that map to a particular value in the range of the function.

Consider the following relation between year and profit % of a company.

Year (x)

Profit/ Loss % (y)

2001

20

2002

15

2003

30

2004

-10

2005

-5

2006

10

The above relation has year as its domain and profit/loss% provides the set of values for range. The domain values are mapped to range values as shown below

Domain is also called a pre-image that maps to a value in the image. A way to express the mapping between domain and range of the above relation R between the year and the profit made in that year is:

R (2001)=20 would mean year 2001 had a profit of 20%

;R (2002)=15; R(2005)=-5 etc.

The above relation can also be represented as the following set:

R= {(2001, 20), (2002, 5), (2003, 30), (2004, -10), (2005, -5), (2006, 10)}

One to one functions

If each value in the domain maps to a unique value in the range, then it is called a one to one relation. Mathematically it means if f (a)=f(b) where a and b are some values in the domain of function f, then a has to be equal to b, otherwise it would mean more than one value in the domain map to the same value in the range.

Example

Does the following relation represent a function?

Answer:

No it doesn’t represent a function because “4” in the domain maps to 2 values

1.     R(4) = 5

2.     R(4) = 2

According to the definition of function, each value in the domain must map to a single value in the range.

Example:

The graph below shows the relation between the speed of a vehicle and time in the interval 0 to 10 hours. Find the domain and range of the function represented by following graphical relation.

Answer:

In the given graphical representation, the range of speed depends on the time interval. If t represents the time and s represents the speed, then

  1. For t=0, Range of Speed: s=20 km/hour.
  2. For 0< t < 5.5 hrs, Range of Speed: 20 < s < 34 km/hour

  3. For 5.5=< t < 9, Range of Speed: s=34 km/hour.

  4. For 9< t<=10, Range of Speed: 0<=s<34

This type of functional relationship where the range of the dependent variable is defined for different intervals of the independent variable is called piecewise function. As the name suggests, the function is divided into pieces depending on the values of x (or independent variable)

Functions in Real Life

Why is water flowing through the pipe so slowly? Let’s understand the situation with the help of functions and the following illustrative example.

A simple illustration of the function is:

This is a pipe through which water flows. The amount of water that flows through this pipe depends on the size of opening in the pipe. If the opening is narrow, the amount of water flowing through will be correspondingly less. When you have a broader opening, the amount of water that flows through will be greater. Here, if the size of pipe opening is x and the amount of water flowing through the opening is y. Then, writing a function of x and y will be like this.

y = f(x).

Example

The speed of the car increases by .5 km/hr after every 30 minutes. What are the dependent and independent quantities here?

Answer:

Speed of car is the dependent parameter that depends on time and time being an independent quantity.

Discrete Vs Continuous Functions and their Graphs

There are two important types of data to be considered while plotting a graph:

Below is the record of percentage of students who passed for different years for a high school in New York.

Year

% of student passed

2006

98

2007

100

2008

92

2009

98


This information can also be represented in graphic form as a bar chart or as the graph shown below.

When the graph of a relation has just the collection of points which cannot be connected through a smooth line or curve, that type of function is called discrete. Here the information is presented only for discrete years 2006, 2007 and so on. The information regarding the value between any two years is irrelevant and cannot be calculated on the basis of the given plot. In a discrete graph, the data values are discrete i.e. non continuous.

Continuous functions

When the graph of a function has points that can be connected to form a smooth curve or a straight line, the function is called a continuous function. Here the domain of the function consists of continuous values and not discrete or non-continuous values.

This is an example of a continuous function.

Example

Does the following graph represent a continuous or discrete function?

Answer:

Discrete

Try these questions

  1. Consider the two relations below:
    Relation 1: {(0, 2), (1, 5 ), ( 5,9) }
    Relation 2: {(1, 5), (1, 0), (3, 5)}
    Which one of these is a function?
    Answer: Relation 1 is a function.

  2. Identify which relation is a function.
    R 1 = { a, b), ( a,c), ( b, d), ( d, f)}
    R 2 = { ( a, 0), ( c, 1), ( d, 5), ( e, 2)}
    Answer: Relation 2 is a function.

  3. An example of a functional relationship where time is a dependent quantity is.
    1. Speed of a vehicle with time
    2. The increase in energy of a falling object with time.
    3. The time taken to answer the questions Vs number of questions
    4. The increase in population with time.
    Answer: C

  4. The number of boxes that can fit into a carton depends on the size of the carton and the size of the carton depends on its price. Which of the following will be true?
    1. The number of boxes per carton depends only on the carton size.
    2. The number of boxes per carton depends only on the price of carton.
    3. The number of boxes per carton depends on size of the carton and its price both.
    4. The number of boxes per carton depends on either the size of the carton or price.
    Answer: C