Mathematics for Computing Lecture 8: Functions Dr Andrew Purkiss-Trew Cancer Research UK

Slides:



Advertisements
Similar presentations
Fall 2014 COMP 2300 Discrete Structures for Computation Donghyun (David) Kim Department of Mathematics and Physics North Carolina Central University 1.
Advertisements

Lecture 15 Functions CSCI – 1900 Mathematics for Computer Science Fall 2014 Bill Pine.
Copyright © Cengage Learning. All rights reserved.
(CSC 102) Lecture 21 Discrete Structures. Previous Lecture Summery  Sum/Difference of Two Functions  Equality of Two Functions  One-to-One Function.
Functions CSLU Fall 2007 Cameron McInally Fordham University.
Lecture 3 Set Operations & Set Functions. Recap Set: unordered collection of objects Equal sets have the same elements Subset: elements in A are also.
CSE115/ENGR160 Discrete Mathematics 02/21/12
Functions Goals Introduce the concept of function Introduce injective, surjective, & bijective functions.
1 Section 1.8 Functions. 2 Loose Definition Mapping of each element of one set onto some element of another set –each element of 1st set must map to something,
Functions.
Chapter 7 Functions Dr. Curry Guinn. Outline of Today Section 7.1: Functions Defined on General Sets Section 7.2: One-to-One and Onto Section 7.3: The.
1 CMSC 250 Chapter 7, Functions. 2 CMSC 250 Function terminology l A relationship between elements of two sets such that no element of the first set is.
Discrete Structures Functions Dr. Muhammad Humayoun Assistant Professor COMSATS Institute of Computer Science, Lahore.
Functions Definition A function from a set S to a set T is a rule that assigns to each element of S a unique element of T. We write f : S → T. Let S =
1.5 Functions and Logarithms. One-to-One Functions Inverses Finding Inverses Logarithmic Functions Properties of Logarithms Applications …and why Logarithmic.
AP CALCULUS AB Chapter 1: Prerequisites for Calculus Section 1.5: Functions and Logarithms.
My Introduction Name: Prakash ADHIKARI Academic Qualification: Master’s Degree Research, Universite Lumiere-IUT Lumiere, Lyon - 2(ULL-2), France Master’s.
Fall 2015 COMP 2300 Discrete Structures for Computation Donghyun (David) Kim Department of Mathematics and Physics North Carolina Central University 1.
Temperature Readings The equation to convert the temperature from degrees Fahrenheit to degrees Celsius is: c(x) = (x - 32) The equation to convert the.
Functions. Copyright © Peter Cappello2 Definition Let D and C be nonempty sets. A function f from D to C, for each element d  D, assigns exactly 1 element.
Functions and Their Properties Def: Function, Domain and Range A function from a set D to a set R is a rule that assigns to every element in D a unique.
Temperature Readings The equation to convert the temperature from degrees Fahrenheit to degrees Celsius is: c(x) = (x - 32) The equation to convert the.
Discrete Mathematics and Its Applications Sixth Edition By Kenneth Rosen Copyright  The McGraw-Hill Companies, Inc. Permission required for reproduction.
10/26/20151 … and the following mathematical appetizer is about… Functions.
1 Annoucement n Skills you need: (1) (In Thinking) You think and move by Logic Definitions Mathematical properties (Basic algebra etc.) (2) (In Exploration)
FUNCTIONS.
Section 5.2 One-to-One Functions; Inverse Functions.
MSU/CSE 260 Fall Functions Read Section 1.8.
Functions1 Elementary Discrete Mathematics Jim Skon.
Chapter 1 SETS, FUNCTIONs, ELEMENTARY LOGIC & BOOLEAN ALGEBRAs BY: MISS FARAH ADIBAH ADNAN IMK.
Functions Reading: Chapter 6 (94 – 107) from the text book 1.
Basic Structures: Functions Muhammad Arief download dari
Chapter 5 – Relations and Functions. 5.1Cartesian Products and Relations Definition 5.1: For sets A, B  U, the Cartesian product, or cross product, of.
Introductions to Linear Transformations Function T that maps a vector space V into a vector space W: V: the domain of T W: the codomain of T Chapter.
Agenda Week 10 Lecture coverage: –Functions –Types of Function –Composite function –Inverse of a function.
Functions. L62 Agenda Section 1.8: Functions Domain, co-domain, range Image, pre-image One-to-one, onto, bijective, inverse Functional composition and.
Math – What is a Function? 1. 2 input output function.
Math 344 Winter 07 Group Theory Part 2: Subgroups and Isomorphism
Sets Definition: A set is an unordered collection of objects, called elements or members of the set. A set is said to contain its elements. We write a.
Lecture 5: Set Theory 1 Dr Andrew Purkiss-Trew Cancer Research UK Mathematics for Computing.
Temperature Readings The equation to convert the temperature from degrees Fahrenheit to degrees Celsius is: c(x) = (x - 32) The equation to convert the.
CSC102 - Discrete Structures Functions
Functions (Mappings). Definitions A function (or mapping)  from a set A to a set B is a rule that assigns to each element a of A exactly one element.
1 Functions CS 202 Epp section ??? Aaron Bloomfield.
Chapter 7 – Radical Equations and Inequalities 7.2 – Inverse Functions and Relations.
FUNCTIONS COSC-1321 Discrete Structures 1. Function. Definition Let X and Y be sets. A function f from X to Y is a relation from X to Y with the property.
Lesson 8 - The Inverse Function Math 2 Honors - Santowski.
1 Discrete Mathematical Functions Examples.
Functions CSRU1400 Spring 2008Ellen Zhang 1 CISC1400, Fall 2010 Ellen Zhang.
Discrete Mathematics 3. MATRICES, RELATIONS, AND FUNCTIONS Lecture 6 Dr.-Ing. Erwin Sitompul
Discrete Mathematics Lecture # 19 Inverse of Functions.
August 2003 CIS102/LECTURE 9/FKS 1 Mathematics for Computing Lecture 9 LOGIC Chapter 3.
Section 2.3. Section Summary  Definition of a Function. o Domain, Cdomain o Image, Preimage  One-to-one (Injection), onto (Surjection), Bijection 
Discrete Mathematics Functions
Lecture 7: Relations Dr Andrew Purkiss-Trew Cancer Research UK Mathematics for Computing.
Functions Goals Introduce the concept of function
Functions Section 2.3.
Functions and Logarithms
Input/Output tables.
Functions & Graphing.
Relation and function.
Functions Section 2.3.
Activity 2.8 Study Time.
Functions Rosen 6th ed., §2.3.
CSE 20: Discrete Mathematics for Computer Science Prof. Shachar Lovett
Functions Section 2.3.
Copyright © Zeph Grunschlag,
Presentation transcript:

Mathematics for Computing Lecture 8: Functions Dr Andrew Purkiss-Trew Cancer Research UK

Functions What is a function? Range and other rules Composite functions Inverse of function

Formula Functions relate two sets of numbers: Each x gives a value of y so in the first function, x = 2, gives y = 18. In the second function, x = 1, gives y = -1.

General form General form use f,g or h to represent function.

Functions and Sets Definition: For sets X and Y, A function from X to Y is a rule that assigns each element of X to a single element of Y X is the domain, Y is the codomain If is any element of X. Then each element of Y assigned to is called the image of and written

Example f xx2x2

Range If f :X  Y is a function then the range is { y  Y: y= f ( x ) for some or all x  X} Example The range of f is { y:y  0}

B A Another example A = {1,3,5}, B={2,4,6,8} f :A  B, f (1)=2, f (3)=6, f (5)=2 The range of f = {2,6}

More definitions Onto A function is onto if its range is equal to its codomain. One-to-one A function is one-to-one if no two distinct elements of the domain have the same image.

Examples of definitions Not one-to-one Not onto One-to-one Not onto Not one-to-one Onto One-to-one Onto Not a function

Composite functions Composite function link two functions together Let A,B and C be arbitrary sets: f : A  B and g : B  C Input is { x:x  A} and output g ( f ( x ))  C f x g f(x)f(x) g(f ( x ))

Composite Functions 2 Formal definition Let f : A  B and g : B  C. The composite function of f and g is g o f : A  C, ( g o f )( x) = g ( f ( x ))

Composite Function Example f : R  R, f (x) = x 2 and g : R  R, g (x) = 2x + 1 f o g : R  R, ( f o g )( x) = f ( g ( x )) = f ( 2 x +1 ) =( 2 x +1 ) 2 g o f : R  R, ( g o f )( x) = g ( f ( x )) = g ( x 2 ) = 2 x 2 +1

Identity and Inverse Identity I:A  A, i( x )= x Inverse of a function is the function that ‘reverses’ the effect of the function. It is represented by f –1 for the function f

Inverse 2 Let f : A  B and g : B  A be functions If g o f : A  A is the identity function on A and if f o g : B  B is the identity function on B, then f is the inverse of g ( and g is the inverse of f )