Skip to main content

Associating One Item with Another: Functions

  • Chapter
  • First Online:
Sets, Logic and Maths for Computing

Part of the book series: Undergraduate Topics in Computer Science ((UTICS))

Abstract

Functions occur everywhere in mathematics and computer science. In this chapter, we introduce the basic concepts needed in order to work with them.

We begin with the intuitive idea of a function and its mathematical definition as a special kind of relation. We then see how the general concepts for relations that were studied in the previous chapter play out in this particular case (domain, range, restriction, image, closure, composition, inverse) and distinguish some important kinds of function (injective, surjective, bijective) with special behaviour.

These concepts permit us to link functions with counting, via the equinumerosity, comparison and surprisingly versatile pigeonhole principles. Finally, we identify some very simple kinds of function that appear over and again (identity, constant, projection and characteristic functions) and explain the deployment of functions to represent sequences and families.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 29.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Selected Reading

  • The texts listed at the end of Chap. 2 on relations also have useful chapters on functions. In detail:

  • Bloch ED (2011) Proofs and fundamentals: a first course in abstract mathematics, 2nd edn. Springer, New York, chapter 4

    Google Scholar 

  • Halmos PR (2001) Naive set theory, New edn. Springer, New York, chapters 8 – 10

    Google Scholar 

  • Hein JL (2002) Discrete structures, logic and computability, 2nd edn. Jones and Bartlett, Boston, chapter 2

    Google Scholar 

  • Lipschutz S (1998) Set theory and related topics, Schaum’s outline series. McGraw Hill, New York, chapters 4 – 5

    Google Scholar 

  • Velleman DJ (2006) How to prove it: a structured approach, 2nd edn. Cambridge University Press, New York, chapter 5

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to David Makinson .

Rights and permissions

Reprints and permissions

Copyright information

© 2012 Springer-Verlag London Limited

About this chapter

Cite this chapter

Makinson, D. (2012). Associating One Item with Another: Functions. In: Sets, Logic and Maths for Computing. Undergraduate Topics in Computer Science. Springer, London. https://doi.org/10.1007/978-1-4471-2500-6_3

Download citation

  • DOI: https://doi.org/10.1007/978-1-4471-2500-6_3

  • Published:

  • Publisher Name: Springer, London

  • Print ISBN: 978-1-4471-2499-3

  • Online ISBN: 978-1-4471-2500-6

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics