{"id":4883,"date":"2020-08-23T18:40:06","date_gmt":"2020-08-23T09:40:06","guid":{"rendered":"https:\/\/sasamath.com\/blog\/?p=4883"},"modified":"2020-08-25T22:35:19","modified_gmt":"2020-08-25T13:35:19","slug":"exercises-sets-and-functions","status":"publish","type":"post","link":"https:\/\/sasamath.com\/blog\/articles\/exercises-sets-and-functions\/","title":{"rendered":"Exercises: Sets and Functions"},"content":{"rendered":"<div class=\"box\">\n<p>This set of exercises is retrieved from the second chapter of Linear Algebra by Robert J. Valenza. Note that these solutions are not fully elaborated; You have to fill the descriptions by yourself.\n<\/p>\n<\/div>\n<p class=\"problem\"><span class=\"definition\">Problem 1.1<\/span><br \/>\nFind the sets \\(S,\\) \\(T\\) and \\(U\\) and functions \\(f: S \\rightarrow T\\) and \\(g: T \\rightarrow U\\) such that \\(g \\circ f\\) is injective, but \\(g\\) is not injective.<\/p>\n<div class=\"solution\">\n<p><span class=\"proof\">Solution.<\/span><br \/>\nTake<br \/>\n\\(S = U = \\left\\{ 1 \\right\\} ,\\,\\, T = \\left\\{ 0,\\,1 \\right\\},\\)<br \/>\nand<br \/>\n\\(f(s) = 1 ,\\,\\, g(t) = 1\\)<br \/>\nfor all \\(s\\in S\\) and \\(t \\in T.\\)\n<\/p>\n<\/div>\n<p><!-- ########## ########## ########## --><\/p>\n<p class=\"problem\"><span class=\"definition\">Problem 1.2<\/span><br \/>\nFind sets \\(S,\\) \\(T\\) and \\(U\\) and functions \\(f : S \\rightarrow T\\) and \\(g: T \\rightarrow U\\) such that \\(g \\circ f\\) is surjective, but \\(f\\) is not surjective.\n<\/p>\n<div class=\"solution\">\n<p><span class=\"proof\">Solution.<\/span><br \/>\nSame as Problem 1.1.\n<\/p>\n<\/div>\n<p><!-- ########## ########## ########## --><\/p>\n<p class=\"problem\"><span class=\"definition\">Problem 1.3<\/span><br \/>\nFind a non-identity function \\(\\mathbb{R} \\rightarrow \\mathbb{R}\\) which is its own inverse function. That is, \\(f \\circ f = 1_\\mathbb{R}\\) or, equivalently, \\(f(f(x)) = x\\) for all real \\(x.\\)\n<\/p>\n<div class=\"solution\">\n<p><span class=\"proof\">Solution.<\/span><br \/>\nTake \\(f(x) = -x.\\)\n<\/p>\n<\/div>\n<p><!-- ########## ########## ########## --><\/p>\n<p class=\"problem marginbottom0\"><span class=\"definition\">Problem 1.4<\/span><br \/>\nAssess the injectivity and surjectivity of each of the following functions from \\(\\mathbb{R}\\) to \\(\\mathbb{R}.\\) Be sure to defend your responses rigorously. For example, to show that a function is bijective, you might exhibit the inverse function. You might also deduce valuable information by sketching the graph as you did in calculus.\n<\/p>\n<ol class=\"parenthesis\">\n<li>\\(f(x) = 2x+1\\)<\/li>\n<li>\\(f(x)=x^3 &#8211; 3x\\)<\/li>\n<li>\\(f(x)=e^x\\)<\/li>\n<li>\\(f(x)=x^4 -2x^2\\)<\/li>\n<li>\\(f(x)=e^{-x^2}\\)<\/li>\n<\/ol>\n<div class=\"solution\">\n<p><span class=\"proof\">Solution.<\/span>(Defending is skipped.)<\/p>\n<ol class=\"parenthesis marginbottom0\">\n<li>Bijective.<\/li>\n<li>Surjective, but not injective.<\/li>\n<li>Injective, but not surjective.<\/li>\n<li>Not injective nor surjective.<\/li>\n<li>Not injective nor surjective.<\/li>\n<\/ol>\n<\/div>\n<p><!-- ########## ########## ########## --><\/p>\n<p class=\"problem\"><span class=\"definition\">Problem 1.5<\/span><br \/>\nFind the bijective map from the open interval \\((-\\pi \/2 ,\\, + \\pi \/2 )\\) to the set \\(\\mathbb{R}\\) of real numbers. This shows, by the way, that both sets have the same cardinality.\n<\/p>\n<div class=\"solution\">\n<p><span class=\"proof\">Solution.<\/span><br \/>\nTake \\(f(x) = \\tan x .\\)\n<\/p>\n<\/div>\n<p><!-- ########## ########## ########## --><\/p>\n<p class=\"problem\"><span class=\"definition\">Problem 1.6<\/span><br \/>\nExplicitly construct a bijective function from the set of integers \\(\\mathbb{Z}\\) to the set of even integers \\(2\\mathbb{Z}.\\) Despite your naive intuition to the contrary, this shows that \\(\\operatorname{Card}(\\mathbb{Z}) = \\operatorname{Card}(2\\mathbb{Z}).\\)\n<\/p>\n<div class=\"solution\">\n<p><span class=\"proof\">Solution.<\/span><br \/>\nTake \\(f(x) =2x.\\)\n<\/p>\n<\/div>\n<p><!-- ########## ########## ########## --><\/p>\n<p class=\"problem\"><span class=\"definition\">Problem 1.7<\/span><br \/>\nProve that if \\(\\operatorname{Card}(S) = \\operatorname{Card}(T)\\) and \\(\\operatorname{Card}(T) = \\operatorname{Card}(U),\\) then \\(\\operatorname{Card}(S) = \\operatorname{Card}(U).\\)\n<\/p>\n<div class=\"solution\">\n<p><span class=\"proof\">Solution.<\/span><br \/>\nThe composition of two bijective functions is a bijective function.\n<\/p>\n<\/div>\n<p><!-- ########## ########## ########## --><\/p>\n<p class=\"problem\"><span class=\"definition\">Problem 1.8<\/span><br \/>\nLet \\(\\mathbb{N} \\times \\mathbb{N}\\) denote the set of all ordered pairs \\((m,\\,n)\\) of natural numbers. Show that \\(\\operatorname{Card}(\\mathbb{N} \\times \\mathbb{N}) = \\operatorname{Card}(\\mathbb{N})\\) by explicitly constructing a bijection \\(\\mathbb{N} \\times \\mathbb{N} \\rightarrow \\mathbb{N}.\\)\n<\/p>\n<div class=\"solution\">\n<p><span class=\"proof\">Solution.<\/span><br \/>\nTake the function \\(f : \\mathbb{N} \\times \\mathbb{N} \\rightarrow \\mathbb{N}\\) as<br \/>\n\\[f(m,\\,n) = \\frac{(m+n-2)(m+n-1)}{2} +n,\\]<br \/>\nprovided that \\(\\mathbb{N} = \\left\\{ 1,\\,2,\\,3,\\,\\cdots \\right\\}.\\)\n<\/p>\n<\/div>\n<p><!-- ########## ########## ########## --><\/p>\n<p class=\"problem\"><span class=\"definition\">Problem 1.9<\/span><br \/>\nExpress the following composition of cycles in matrix notation.<br \/>\n\\[\\left( 1\\quad 4\\quad 7\\quad 6 \\right) \\circ \\left( 2 \\quad 7 \\quad 5 \\right)\\]<br \/>\nBe sure to work from right to left.\n<\/p>\n<div class=\"solution\">\n<p><span class=\"proof\">Solution.<\/span><br \/>\n\\[\\left(<br \/>\n\\begin{matrix}<br \/>\n1 &#038; 2 &#038; 3 &#038; 4 &#038; 5 &#038; 6 &#038; 7 \\\\<br \/>\n4 &#038; 6 &#038; 3 &#038; 7 &#038; 2 &#038; 1 &#038; 5<br \/>\n\\end{matrix}<br \/>\n\\right).<br \/>\n\\]\n<\/p>\n<\/div>\n<p><!-- ########## ########## ########## --><\/p>\n<p class=\"problem\"><span class=\"definition\">Problem 1.10<\/span><br \/>\nDecompose the following permutation into the product of disjoint cycles.<br \/>\n\\[\\pi = \\left(<br \/>\n\\begin{matrix}<br \/>\n1 &#038; 2 &#038; 3 &#038; 4 &#038; 5 &#038; 6 &#038; 7 &#038; 8 &#038; 9 \\\\<br \/>\n6 &#038; 5 &#038; 9 &#038; 1 &#038; 4 &#038; 3 &#038; 8 &#038; 7 &#038; 2<br \/>\n\\end{matrix}<br \/>\n\\right)<br \/>\n\\]\n<\/p>\n<div class=\"solution\">\n<p><span class=\"proof\">Solution.<\/span><br \/>\n\\[\\pi =<br \/>\n\\left( 1 \\quad 6 \\quad 3 \\quad 9 \\quad 2 \\quad 5 \\quad 4 \\right) \\circ \\left(7 \\quad 8\\right).<br \/>\n\\]\n<\/p>\n<\/div>\n<p><!-- ########## ########## ########## --><\/p>\n<p class=\"problem\"><span class=\"definition\">Problem 1.11<\/span><br \/>\nHow many reversals does the permutation \\(\\pi\\) in the previous problem manifest? What is its sign? Factor \\(\\pi\\) into the product of transpositions.\n<\/p>\n<div class=\"solution\">\n<p><span class=\"proof\">Solution.<\/span><br \/>\nThe number of reversals is \\[5+4+6+0+2+1+2+1=21.\\] Its sign is \\(-1,\\) that is, the parity of \\(\\pi\\) is odd. \\(\\pi\\) is factorized as<br \/>\n\\[\\pi =<br \/>\n\\left ( 4 \\quad 5 \\right) \\circ<br \/>\n\\left ( 4 \\quad 2 \\right) \\circ<br \/>\n\\left ( 4 \\quad 9 \\right) \\circ<br \/>\n\\left ( 4 \\quad 3 \\right) \\circ<br \/>\n\\left ( 4 \\quad 6 \\right) \\circ<br \/>\n\\left ( 4 \\quad 1 \\right) \\circ<br \/>\n\\left ( 7 \\quad 8 \\right)<br \/>\n,\\]<br \/>\nthe composition of SEVEN transpositions.\n<\/p>\n<\/div>\n<p><!-- ########## ########## ########## --><\/p>\n<p class=\"problem marginbottom0\"><span class=\"definition\">Problem 1.12<\/span><br \/>\nReferring to the permutation,<br \/>\n\\[\\pi = \\left(<br \/>\n\\begin{matrix}<br \/>\n1 &#038; 2 &#038; 3 &#038; 4 &#038; 5 &#038; 6 &#038; 7 &#038; 8 \\\\<br \/>\n8 &#038; 1 &#038; 3 &#038; 6 &#038; 4 &#038; 5 &#038; 7 &#038; 2<br \/>\n\\end{matrix}<br \/>\n\\right).<br \/>\n\\]\n<\/p>\n<ol class=\"parenthesis\">\n<li>Express \\(\\pi\\) as the product of disjoint cycles.<\/li>\n<li>Express \\(\\pi\\) as the product of transpositions.<\/li>\n<li>Compute the sign of \\(\\pi.\\)<\/li>\n<\/ol>\n<div class=\"solution\">\n<p><span class=\"proof\">Solution.<\/span><br \/>\n\\[\\begin{align}<br \/>\n\\pi &#038;=<br \/>\n\\left( 1 \\quad 8 \\quad 2 \\right) \\circ<br \/>\n\\left( 4 \\quad 6 \\quad 5 \\right) \\\\[7pt]<br \/>\n&#038;=<br \/>\n\\left( 1 \\quad 2 \\right) \\circ<br \/>\n\\left( 1 \\quad 8 \\right) \\circ<br \/>\n\\left( 4 \\quad 5 \\right) \\circ<br \/>\n\\left( 4 \\quad 6 \\right) .<br \/>\n\\end{align}\\]<br \/>\nThe sign of \\(\\pi\\) is \\(1,\\) that is, \\(\\pi\\) is an even permutation.\n<\/p>\n<\/div>\n<p><!-- ########## ########## ########## --><\/p>\n<p class=\"problem\"><span class=\"definition\">Problem 1.13<\/span><br \/>\nLet \\(\\pi \\in S_n\\) be a \\(k\\)-cycle. For which positive integers \\(m\\) is \\(\\pi ^m\\) equal to the identity map? Here \\(\\pi^m\\) means \\(\\pi\\) composed with itself \\(m\\) times.\n<\/p>\n<div class=\"solution\">\n<p><span class=\"proof\">Solution.<\/span><br \/>\n\\(m\\) has to be a multiple of \\(k.\\)\n<\/p>\n<\/div>\n<p><!-- ########## ########## ########## --><\/p>\n<p class=\"problem\"><span class=\"definition\">Problem 1.14<\/span><br \/>\nSuppose that for permutations \\(\\pi\\) and \\(\\tau\\) in \\(S_n ,\\) \\(\\pi \\circ \\tau = \\tau \\circ \\pi .\\) (Recall that this is not in general true.) Show that for all positive integer \\(n,\\) \\((\\pi \\circ \\tau )^n = \\pi^n \\circ \\tau^n .\\)\n<\/p>\n<div class=\"solution\">\n<p><span class=\"proof\">Solution.<\/span><br \/>\nUse mathematical induction for \\(n.\\)\n<\/p>\n<\/div>\n<p><!-- ########## ########## ########## --><\/p>\n<p class=\"problem\"><span class=\"definition\">Problem 1.15<\/span><br \/>\nShow that disjoint cycles commute; that is, if \\(\\pi\\) and \\(\\tau\\) are cycles with no elements in common, then \\(\\pi \\circ \\tau = \\tau \\circ \\pi .\\)\n<\/p>\n<div class=\"solution\">\n<p><span class=\"proof\">Solution.<\/span><br \/>\nFirst prove commutativity for two disjoint transpositions. Next, express \\(\\pi\\) and \\(\\tau\\) as transpositions and prove commutativity. In the process, you can use mathematical induction.\n<\/p>\n<\/div>\n<p><!-- ########## ########## ########## --><\/p>\n<p class=\"problem\"><span class=\"definition\">Problem 1.16<\/span><br \/>\nRecall that every permutation may be written as the product of disjoint cycles. Using this fact and the previous three exercises, show that \\(\\pi ^{n!}\\) is the identity map for any permutation \\(\\pi\\) in \\(S_n .\\)\n<\/p>\n<div class=\"solution\">\n<p><span class=\"proof\">Solution.<\/span><br \/>\nLet \\(\\pi\\) be the product of disjoint \\(m\\) cycles<br \/>\n\\[\\pi = \\pi_1 \\circ \\pi_2 \\circ \\cdots \\circ \\pi_m ,\\]<br \/>\nwhere each \\(\\pi_i\\) is a \\(k_i\\)-cycle. Because each \\(k_i\\) divides \\(n! ,\\) \\({\\pi_i}^{n!}\\) is the identity map.<\/p>\n<p>As a consequence, we have<br \/>\n\\[\\pi ^{n!} = {\\pi_1}^{n!} \\circ {\\pi_2}^{n!} \\circ \\cdots \\circ {\\pi_m}^{n!} ,\\]<br \/>\nthat is, \\(\\pi^{n!}\\) is a composition of the identity maps, thus it is the identity map.\n<\/p>\n<\/div>\n<p><!-- ########## ########## ########## --><\/p>\n<p class=\"problem\"><span class=\"definition\">Problem 1.17<\/span><br \/>\nWe showed above that for transpositions \\(\\tau_1 ,\\) \\(\\tau_2 ,\\) \\(\\cdots ,\\) \\(\\tau_m \\)<br \/>\n\\[\\sigma \\left( \\tau_1 \\circ \\tau_2 \\circ \\cdots \\circ \\tau_m \\right) = (-1)^m\\]<br \/>\nand also that every permutation is the product of transpositions. Use this two facts to prove that for all permutations \\(\\pi_1\\) and \\(\\pi_2 ,\\)<br \/>\n\\[\\sigma \\left( \\pi_1 \\circ \\pi_2 \\right) = \\sigma \\left( \\pi_1 \\right) \\sigma \\left( \\pi_2 \\right).\\]\n<\/p>\n<div class=\"solution\">\n<p><span class=\"proof\">Solution.<\/span><br \/>\nExpress \\(\\pi_2\\) as a product of transpositions<br \/>\n\\[\\pi_2 = \\tau_1 \\circ \\tau_2 \\circ \\cdots \\circ \\tau_m ,\\]<br \/>\nand use mathematical induction for \\(m.\\)\n<\/p>\n<\/div>\n<p><!-- ########## ########## ########## --><\/p>\n<p class=\"problem\"><span class=\"definition\">Problem 1.18<\/span><br \/>\nShow that if \\(S\\) and \\(T\\) are nonempty sets, then \\(\\operatorname{Card}(S \\times T) = \\operatorname{Card}(T \\times S).\\)\n<\/p>\n<div class=\"solution\">\n<p><span class=\"proof\">Solution.<\/span><br \/>\nDefine \\(f : S \\times T \\rightarrow T \\times S\\) by<br \/>\n\\(f(s,\\,t) = (t,\\,s)\\)<br \/>\nthen \\(f\\) is a bijective function.\n<\/p>\n<\/div>\n<p><!-- ########## ########## ########## --><\/p>\n<p class=\"problem\"><span class=\"definition\">Problem 1.19<\/span><br \/>\nLet \\(S,\\) \\(S &#8216; ,\\) \\(T ,\\) \\(T &#8216; \\) be sets such that \\(S\\) and \\(T\\) are disjoint, as are \\(S &#8216; \\) and \\(T &#8216; .\\) Assume further that<br \/>\n\\[\\operatorname{Card}(S) = \\operatorname{Card}(S &#8216; ) \\quad\\text{and}\\quad\\operatorname{Card}(T) = \\operatorname{Card}(T &#8216; ).\\]<br \/>\nShow that \\[\\operatorname{Card}(S\\cup T) = \\operatorname{Card}(S &#8216; \\cup T &#8216; ).\\] Note that this result extends easily to arbitrary disjoint unions (possibly involving an infinite family of disjoint sets.)\n<\/p>\n<div class=\"solution\">\n<p><span class=\"proof\">Solution.<\/span><br \/>\nBy the definition, there are two bijective functions \\(f : S \\rightarrow S &#8216; \\) and \\(g : T \\rightarrow T &#8216; .\\)<\/p>\n<p>Define \\(\\phi : S \\cup T \\rightarrow S &#8216; \\cup T &#8216; \\) by<br \/>\n\\[\\phi(x) = \\begin{cases}<br \/>\nf(x) \\quad &#038;\\text{if} \\,\\, x \\in S \\\\[7pt]<br \/>\ng(x) \\quad &#038;\\text{if} \\,\\, x \\in T.<br \/>\n\\end{cases}\\]\n<\/p>\n<p>Then \\(\\phi\\) is a bijective function from \\(S \\cup T\\) to \\(S &#8216; \\cup T &#8216; .\\)\n<\/p><\/div>\n<p><!-- ########## ########## ########## --><\/p>\n<p class=\"problem\"><span class=\"definition\">Problem 1.20<\/span><br \/>\nLet \\(S\\) and \\(T\\) be nonempty sets. Show that there exist sets \\(S &#8216; \\) and \\(T &#8216; \\) such that<br \/>\n\\[\\operatorname{Card}(S) = \\operatorname{Card}(S &#8216; ) \\quad\\text{and}\\quad \\operatorname{Card}(T) = \\operatorname{Card}(T &#8216; )\\]<br \/>\nwith \\(S &#8216; \\) and \\(T &#8216; \\) disjoint.\n<\/p>\n<div class=\"solution\">\n<p><span class=\"proof\">Solution.<\/span><br \/>\nTake \\(S &#8216; = S \\times \\left\\{ 0 \\right\\}\\) and \\(T &#8216; = T \\times \\left\\{ 1 \\right\\}.\\)\n<\/p>\n<\/div>\n<p><!-- ########## ########## ########## --><\/p>\n<p class=\"problem\"><span class=\"definition\">Problem 1.21<\/span><br \/>\nProve Schr\u00f6der\u2013Bernstein theorem, that is, if \\(X\\) and \\(Y\\) are sets and both<br \/>\n\\[\\operatorname{Card}(X) \\le \\operatorname{Card}(Y) \\quad\\text{and}\\quad \\operatorname{Card}(X) \\ge \\operatorname{Card}(Y)\\]<br \/>\nhold, then \\(\\operatorname{Card}(X) = \\operatorname{Card}(Y).\\)\n<\/p>\n<div class=\"solution\">\n<p><span class=\"proof\">Solution.<\/span><br \/>\nSee a kind and nice explanation: <a target=\"_blank\" href=\"https:\/\/mariaagnesi.com\/archives\/schroder-bernstein-theorem-kr\/\" rel=\"noopener noreferrer\">Click here<\/a>.\n<\/p>\n<\/div>\n<p><!--\n<!-- ########## ########## ########## --\n\n\n<p class=\"problem\"><span class=\"definition\">Problem 1.<\/span><br \/>\nQ\n<\/p>\n\n\n\n\n\n<div class=\"solution\">\n\n\n<p><span class=\"proof\">Solution.<\/span>\nS\n<\/p>\n\n\n<\/div>\n\n\n--><\/p>\n","protected":false},"excerpt":{"rendered":"<p>This set of exercises is retrieved from the second chapter of Linear Algebra by Robert J. Valenza. Note that these solutions are not fully elaborated; You have to fill the descriptions by yourself. Problem 1.1 Find the sets \\(S,\\) \\(T\\) and \\(U\\) and functions \\(f: S \\rightarrow T\\) and \\(g: T \\rightarrow U\\) such that \\(g \\circ f\\) is injective, but \\(g\\) is not&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_lmt_disableupdate":"","_lmt_disable":"","footnotes":""},"categories":[57,45],"tags":[409,402,400,401,404,403],"class_list":["post-4883","post","type-post","status-publish","format-standard","hentry","category-linear-algebra","category-sets-and-logic","tag-cardinality","tag-exercises","tag-linear-algebra","tag-sets-and-functions","tag-solution","tag-tip"],"_links":{"self":[{"href":"https:\/\/sasamath.com\/blog\/wp-json\/wp\/v2\/posts\/4883","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sasamath.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sasamath.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sasamath.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sasamath.com\/blog\/wp-json\/wp\/v2\/comments?post=4883"}],"version-history":[{"count":49,"href":"https:\/\/sasamath.com\/blog\/wp-json\/wp\/v2\/posts\/4883\/revisions"}],"predecessor-version":[{"id":5090,"href":"https:\/\/sasamath.com\/blog\/wp-json\/wp\/v2\/posts\/4883\/revisions\/5090"}],"wp:attachment":[{"href":"https:\/\/sasamath.com\/blog\/wp-json\/wp\/v2\/media?parent=4883"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sasamath.com\/blog\/wp-json\/wp\/v2\/categories?post=4883"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sasamath.com\/blog\/wp-json\/wp\/v2\/tags?post=4883"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}