<< Chapter < Page Chapter >> Page >

We can also give an algebraic expression as the input to a function. For example f ( a + b ) means “first add a and b , and the result is the input for the function f .” The operations must be performed in this order to obtain the correct result.

Function notation

The notation y = f ( x ) defines a function named f . This is read as y is a function of x . The letter x represents the input value, or independent variable. The letter y ,  or f ( x ) , represents the output value, or dependent variable.

Using function notation for days in a month

Use function notation to represent a function whose input is the name of a month and output is the number of days in that month.

The number of days in a month is a function of the name of the month, so if we name the function f , we write days = f ( month ) or d = f ( m ) . The name of the month is the input to a “rule” that associates a specific number (the output) with each input.

The function 31 = f(January) where 31 is the output, f is the rule, and January is the input.

For example, f ( March ) = 31 , because March has 31 days. The notation d = f ( m ) reminds us that the number of days, d (the output), is dependent on the name of the month, m (the input).

Got questions? Get instant answers now!
Got questions? Get instant answers now!

Interpreting function notation

A function N = f ( y ) gives the number of police officers, N , in a town in year y . What does f ( 2005 ) = 300 represent?

When we read f ( 2005 ) = 300 , we see that the input year is 2005. The value for the output, the number of police officers ( N ) , is 300. Remember, N = f ( y ) . The statement f ( 2005 ) = 300 tells us that in the year 2005 there were 300 police officers in the town.

Got questions? Get instant answers now!
Got questions? Get instant answers now!

Use function notation to express the weight of a pig in pounds as a function of its age in days d .

w = f ( d )

Got questions? Get instant answers now!

Instead of a notation such as y = f ( x ), could we use the same symbol for the output as for the function, such as y = y ( x ), meaning “ y is a function of x ?”

Yes, this is often done, especially in applied subjects that use higher math, such as physics and engineering. However, in exploring math itself we like to maintain a distinction between a function such as f , which is a rule or procedure, and the output y we get by applying f to a particular input x . This is why we usually use notation such as y = f ( x ) , P = W ( d ) , and so on.

Representing functions using tables

A common method of representing functions is in the form of a table. The table rows or columns display the corresponding input and output values. In some cases, these values represent all we know about the relationship; other times, the table provides a few select examples from a more complete relationship.

[link] lists the input number of each month (January = 1, February = 2, and so on) and the output value of the number of days in that month. This information represents all we know about the months and days for a given year (that is not a leap year). Note that, in this table, we define a days-in-a-month function f where D = f ( m ) identifies months by an integer rather than by name.

Month number, m (input) 1 2 3 4 5 6 7 8 9 10 11 12
Days in month, D (output) 31 28 31 30 31 30 31 31 30 31 30 31

[link] defines a function Q = g ( n ) . Remember, this notation tells us that g is the name of the function that takes the input n and gives the output Q  .

Questions & Answers

how to create a software using Android phone
Wiseman Reply
how
basra
what is the difference between C and C++.
Yan Reply
what is software
Sami Reply
software is a instructions like programs
Shambhu
what is the difference between C and C++.
Yan
yes, how?
Hayder
what is software engineering
Ahmad
software engineering is a the branch of computer science deals with the design,development, testing and maintenance of software applications.
Hayder
who is best bw software engineering and cyber security
Ahmad
Both software engineering and cybersecurity offer exciting career prospects, but your choice ultimately depends on your interests and skills. If you enjoy problem-solving, programming, and designing software syste
Hayder
what's software processes
Ntege Reply
I haven't started reading yet. by device (hardware) or for improving design Lol? Here. Requirement, Design, Implementation, Verification, Maintenance.
Vernon
I can give you a more valid answer by 5:00 By the way gm.
Vernon
it is all about designing,developing, testing, implementing and maintaining of software systems.
Ehenew
hello assalamualaikum
Sami
My name M Sami I m 2nd year student
Sami
what is the specific IDE for flutter programs?
Mwami Reply
jegudgdtgd my Name my Name is M and I have been talking about iey my papa john's university of washington post I tagged I will be in
Mwaqas Reply
yes
usman
how disign photo
atul Reply
hlo
Navya
hi
Michael
yes
Subhan
Show the necessary steps with description in resource monitoring process (CPU,memory,disk and network)
samuel Reply
What is software engineering
Tafadzwa Reply
Software engineering is a branch of computer science directed to writing programs to develop Softwares that can drive or enable the functionality of some hardwares like phone , automobile and others
kelvin
if any requirement engineer is gathering requirements from client and after getting he/she Analyze them this process is called
Alqa Reply
The following text is encoded in base 64. Ik5ldmVyIHRydXN0IGEgY29tcHV0ZXIgeW91IGNhbid0IHRocm93IG91dCBhIHdpbmRvdyIgLSBTdGV2ZSBXb3puaWFr Decode it, and paste the decoded text here
Julian Reply
what to do you mean
Vincent
hello
ALI
how are you ?
ALI
What is the command to list the contents of a directory in Unix and Unix-like operating systems
George Reply
how can i make my own software free of cost
Faizan Reply
like how
usman
hi
Hayder
The name of the author of our software engineering book is Ian Sommerville.
Doha Reply
what is software
Sampson Reply
the set of intruction given to the computer to perform a task
Noor
Got questions? Join the online conversation and get instant answers!
Jobilize.com Reply

Get Jobilize Job Search Mobile App in your pocket Now!

Get it on Google Play Download on the App Store Now




Source:  OpenStax, Precalculus. OpenStax CNX. Jan 19, 2016 Download for free at https://legacy.cnx.org/content/col11667/1.6
Google Play and the Google Play logo are trademarks of Google Inc.

Notification Switch

Would you like to follow the 'Precalculus' conversation and receive update notifications?

Ask