Back to A Complete Introduction to Abstract Algebra

Relations and Functions

Relations as subsets of a Cartesian product, and the reflexive, symmetric and transitive properties tested against relations defined on small finite sets.

A Complete Introduction to Abstract Algebra, Relations and Functions

Status
FlagsLoading your progress…

14 exercises

Exercise 1

Let the set A={0,1,2,3}A=\{0,1,2,3\}. Is the relation T={(0,1),(2,3)}T=\{(0,1),(2,3)\} on AA

  1. reflexive?

  2. symmetric?

  3. transitive?

3.0

Exercise 2

Is the less-than-or-equal-to relation, ≤\leq, an equivalence relation on Z\mathbb{Z}?

3.0

Exercise 3

Let the function f:{1,2,3}→{1,4,9,16,25}f:\{1,2,3\}\to\{1,4,9,16,25\} be such that f(x)=x2f(x)=x^{2}.

  1. Use arrow notation to write a definition for ff.

  2. State the domain, codomain, and range of ff.

  3. What is the image of 2 under ff?

  4. Is g:{1,2,3}→{1,8},x↦x3g:\{1,2,3\}\to\{1,8\},x\mapsto x^{3} a valid function?

3.0

Exercise 4

Is f:Q→Z,  pq↦p+qf:\mathbb{Q}\to\mathbb{Z},\;\frac{p}{q}\mapsto p+q a well-defined function?

3.0

Exercise 5

Let the functions f:R→Rf:\mathbb{R}\to\mathbb{R} and g:R→Rg:\mathbb{R}\to\mathbb{R}. Write down the rule of the function fgfg if f(x)=x2−x+1f(x)=x^{2}-x+1 and g(y)=1y2+1g(y)=\frac{1}{y^{2}+1}.

3.0

Exercise 6

Define the function f:N→Zf:\mathbb{N}\to\mathbb{Z} such that

By considering ff, prove that ∣N∣=∣Z∣|\mathbb{N}|=|\mathbb{Z}|.

3.0

Problem 1

Let the set A={1,2,3,4}A=\{1,2,3,4\}. Find a function f:A→Af:A\to A that is bijective but is not equal to the function g:A→A,x↦xg:A\to A,x\mapsto x.

3.0

Problem 2

Let the set S={1,2,3}S=\{1,2,3\}. Which of the following sets is/are relations on SS? If the set is a relation on SS, is it an equivalence relation?

  1. A=∅A=\varnothing

  2. B={(1,1),(2,2),(3,3)}B=\{(1,1),(2,2),(3,3)\}

  3. C={(1,1),(1,2),(2,2),(3,3)}C=\{(1,1),(1,2),(2,2),(3,3)\}

  4. D={(1,1),(1,2),(2,1),(2,2),(2,3),(3,2),(3,3)}D=\{(1,1),(1,2),(2,1),(2,2),(2,3),(3,2),(3,3)\}

3.0

Problem 3

Let the functions

f:[0,∞)→R,  x↦x2+1,\displaystyle f:[0,\infty)\to\mathbb{R},\;x\mapsto x^{2}+1, g:(−1,1]→R,  x↦1−x2, and\displaystyle g:(-1,1]\to\mathbb{R},\;x\mapsto 1-x^{2},\text{ and} h:(−∞,−1]→R,  x↦ln⁡(−x).\displaystyle h:(-\infty,-1]\to\mathbb{R},\;x\mapsto\ln(-x).
  1. Which of the given function(s) are injective? If they are, prove it. If not, explain why.

  2. Does the composite function hfhf exist? If so, give a definition of hfhf using arrow notation and state its image. Otherwise, explain why.

  3. Does the composite function fgfg exist? If so, give a definition of fgfg using arrow notation and state its image. Otherwise, explain why.

3.0

Problem 4

Let ∼\sim be an equivalence relation on a set AA and let x,y∈Ax,y\in A. Prove that

  1. if [x]=[y][x]=[y] then [x]∩[y]≠∅[x]\cap[y]\neq\varnothing;

  2. if [x]∩[y]≠∅[x]\cap[y]\neq\varnothing then x∼yx\mathrel{\sim}y; and

  3. if x∼yx\mathrel{\sim}y then [x]=[y][x]=[y].

3.0

Problem 5

Let XX be any set, and let f:X→Xf:X\to X, g:X→Xg:X\to X, and h:X→Xh:X\to X be functions. Suppose hh is injective. Prove or disprove the following statements.

  1. If hf=hghf=hg then f=gf=g.

  2. If fh=ghfh=gh then f=gf=g.

3.0

Problem 6

The McCarthy 91 function M:Z→ZM:\mathbb{Z}\to\mathbb{Z} is a recursive function created by computer scientist John McCarthy to test formal verification in computer science. It is defined as follows.

  1. Show M(101)=91M(101)=91.

  2. Show M(n)=M(n+1)M(n)=M(n+1) for all 90≤n≤10090\leq n\leq 100.

  3. Deduce that M(n)=91M(n)=91 for all 90≤n≤10090\leq n\leq 100.

  4. Hence prove that M(n)=91M(n)=91 for all n≤100n\leq 100.

3.0

Problem 7

Let the function f:N2→Nf:\mathbb{N}^{2}\to\mathbb{N} be defined such that

Prove that

  1. f(n,2)=n−1f(n,2)=n-1 for all integers n>1n>1;

  2. f(n+1,n)=2f(n+1,n)=2 for all positive integers nn; and

  3. f(n,4)=2f(n,4)=2 for all integers n>1n>1.

3.0

Problem 8

Let XX be a non-empty finite set of cardinality nn and let f:X→Xf:X\to X be a injective function. Prove that ff is bijective.(Hint: consider strong induction on nn.)

3.0

Adapted from A Complete Introduction to Abstract Algebra © 2022–2026 Kan Onn Kit. Licensed under CC BY-SA 4.0. Source: A Complete Introduction to Abstract Algebra. Imported at revision a559e8b.