ChFuctionsetc离散数学英文实用.pptx
《ChFuctionsetc离散数学英文实用.pptx》由会员分享,可在线阅读,更多相关《ChFuctionsetc离散数学英文实用.pptx(51页珍藏版)》请在淘文阁 - 分享文档赚钱的网站上搜索。
1、Definition of a FunctionA function from set A to set B,denoted by f:A B,is the assignment of exactly one element of B to each element of A Given f:A B,and if f(a)=b(f maps a to b)where a A and b B,thenA is the domain(定义域)of fB is the co-domain(伴域)of fb is the image of aa is the pre-image(原像)of bRang
2、e(值域)of f:set of all images of elements of Arangeco-domainpre-imageABfab=f(a)domainimageExample:f:Z Z,f(x)=x2domain/co-domain:Z=set of integersrange:perfect squares 0,1,4,9,.第1页/共51页Functions A function f:ABcan also be defined as a subset of AB(Cartesian product).This subset is restricted to be a re
3、lation where no two elements of the relation have the same first elementSpecifically,a function f from A to B contains one,and only one ordered pair(a,b)for every element a A.x x A yy B (x,y)f z(x,z)f y=z 第2页/共51页Functions from FunctionsIf f1 and f2 are two functions from A to R(real numbers),then g
4、=f1+f2 and h=f1 f2 are also functions from A to R defined by:g(x)=(f1+f2)(x)=f1(x)+f2(x)h(x)=(f1f2)(x)=f1(x)f2(x)Example:f1(x)=x,f2(x)=x2.(R to R)(f1+f2)(x)=x+x2 (f1f2)(x)=x3第3页/共51页Functions of Setsf:A B,and S is a subset of A.Then we can define f:S Image(S)=f(S)ASBf(S)f第4页/共51页Function ExampleThe
5、domain of f is A=a,b,c,dThe codomain is B=X,Y,ZThe range of f is Y,Z The pre-image of Y is b.The image of b is YThe pre-images of Z are a,c and dLet S=c,d,f(S)=?Let T=a,b,c,f(T)=?f第5页/共51页One-to-one(Injective单射)FunctionsA function f is one-to-one if and only if f(x)=f(y)implies x=y for all x,y in th
6、e domain of fABfThis is not allowed Example:f:Z Z,f(x)=x2 one-to-one?g:Z Z,g(x)=x3 one-to-one?h:Z+Z+,h(x)=x2 one-to-one?The propositional statement?第6页/共51页Onto(Surjective满射)functionsA function f from A to B is onto if for every element b in B there is an element a in A,f(a)=b.Co-domain=RangeProposi
7、tional Statement?ABfyxThis is not allowed Example:f:Z Z,f(x)=x2 onto?How about Z+Z+?R+R+?第7页/共51页One-to-One And Onto or One-to-One Correspondence(Bijective双射)FunctionsA function f is in one-to-one correspondence if it is both one-to-one and onto.ABfNumber of elements in A and B must be the same when
8、 they are finite.Every element in A is uniquely associated with exactly one element in B.Examples:f:RR,f(x)=-x?g:Z+Z+,g(x)=x2?R+R+?第8页/共51页ExamplesOnto but not One-to-oneOne-to-one but not Onto One-to-one and Onto 第9页/共51页Prove/Disprove:f Is One-to-One or Onto第10页/共51页The Graphs of FunctionsThe grap
9、h of a function f is the set of ordered pairs(a,b)|a in A,f(a)=b.This is a subset of the Cartesian product of ABExample:f(n)=2n+1from Z to Znf第11页/共51页The Graphs of FunctionsExample:f(n)=n2 from Z to Z第12页/共51页Increasing and Decreasing FunctionsStrictly Increasing FunctionsStrictly Decreasing Functi
10、onsx,y realxyxydecreasingincreasingStrictly increasing and strictly decreasing functions are one-to-onef(a)=f(b)第13页/共51页ExamplesDetermine which functions are one-to-one,onto,one-to-one and onto,strictly increasing or strictly decreasingf(x)=x,R Rf(x)=x5,R Rf(x)=|x|,Z Z,or Z N F(x)=2x,Z+E,E=x Z+|x i
11、s even N E?f(x)=sin(x),R R,R -1,1F(x)=x+sin(x),R R 第14页/共51页F(x)=x+sin(x)Strictly Increasing第15页/共51页Inverse FunctionsLet f be a one-to-one and onto function from A to B.The inverse function of f is the function that assigns to b in B the element a in A such that f(a)=b.ABinverse of fABfIf a functio
12、n is not one-to-one and onto it is not invertible.f:R R,f(x)=x2.Is f(x)=x+1 invertible over R R?Over Z Z?Over N N?第16页/共51页Compositions of FunctionsA composition of 2 functions g:A B and f:B C is defined by:A Cg(a)fB第17页/共51页Compositions of Functions:ExampleRange of g must be subset of domain of f!A
13、BCgCfABThis is one function from A to C第18页/共51页Compositions of Functions:Fact 1Theorem:Let g:A B and f:B C.If fg is one-to-one,then g is also one-to-oneProof:if a b then f(g(a)f(g(b)since the composition is one-to-one(by assumption)By contradiction.If g is not one-to-one,then a,bA,a b and g(a)=g(b)
14、.Then f would have two different images for the same point!But fg is one-to-one and f(g(a)f(g(b)whenever a b.Contradiction!第19页/共51页Compositions of Functions:Fact 2Theorem:Let g:A B and f:B C.If fg is one-to-one and g is onto,then f is also one-to-oneProof by contradiction:if f is not one-to-one,c,d
15、B,c d and f(c)=f(d).Since g is onto,every element in B has a preimage:a,bA a b g(a)=c and g(b)=d.We have a contradiction since a b and f(g(a)=f(g(b)!(fg is not one-to-one)第20页/共51页Compositions of Functions:ExamplesIf f(x)=x2 and g(x)=2x+1,then f(g(x)=(2x+1)2=4x2+4x+1,and g(f(x)=2x2+1If f(x)=3x2+5x+1
16、 and g(x)=x3+1,then f(g(x)=3(x3+1)2+5(x3+1)+1 and g(f(x)=(3x2+5x+1)3+1第21页/共51页Floor and Ceiling Functionsy=xy=xFloor function f:R Z,x R n Z(f(x)=n (x 1 n x).We denote f(x)=xCeiling function f:R Z,x R n Z(f(x)=n (x n x+1).We denote f(x)=x第22页/共51页Properties of the Floor and Ceiling Functions(1a)x=n
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- ChFuctionsetc 离散数学 英文 实用
限制150内