Shawn Zhong

Shawn Zhong

钟万祥
  • Tutorials
  • Mathematics
    • Math 240
    • Math 375
    • Math 431
    • Math 514
    • Math 521
    • Math 541
    • Math 632
    • Abstract Algebra
    • Linear Algebra
    • Category Theory
  • Computer Sciences
    • CS/ECE 252
    • CS/ECE 352
    • Learn Haskell
  • AP Notes
    • AP Microecon
    • AP Macroecon
    • AP Statistics
    • AP Chemistry
    • AP Physics E&M
    • AP Physics Mech
    • CLEP Psycho

Shawn Zhong

钟万祥
  • Tutorials
  • Mathematics
    • Math 240
    • Math 375
    • Math 431
    • Math 514
    • Math 521
    • Math 541
    • Math 632
    • Abstract Algebra
    • Linear Algebra
    • Category Theory
  • Computer Sciences
    • CS/ECE 252
    • CS/ECE 352
    • Learn Haskell
  • AP Notes
    • AP Microecon
    • AP Macroecon
    • AP Statistics
    • AP Chemistry
    • AP Physics E&M
    • AP Physics Mech
    • CLEP Psycho

Mathematics

Home / Notes / Mathematics / Page 30

Math 521 – 2/12

  • Feb 14, 2018
  • Shawn
  • Math 521
  • No comments yet
Schwarz Inequality • See Theorem 1.35 in Rudin for a proof of Schwarz Inequality for ℂ ○ For intuition, try proving (x_1 y_2+x_2 y_2 )^2≤(x_1^2+x_2^2 )(y_1^2+y_2^2 ) • Triangle Inequality ○ In a Euclidean Space, |x ⃗⋅y ⃗ |≥|x ⃗ |⋅|y ⃗ | ○ |x ⃗+y ⃗^2 |=|x ⃗ |^2+2x ⃗⋅y ⃗+|y ⃗ |^2≤|x ⃗ |^2+2|x ⃗ ||y ⃗ |+|y ⃗ |^2=(|x ⃗ |+|y ⃗ |)^2 ○ Thus |x ⃗+y ⃗ ||x ⃗ |+|y ⃗ | ○ Let x ⃗≔x ⃗−y ⃗, y ⃗≔y ⃗−z ⃗, we have |x ⃗−z ⃗ ||x ⃗−y ⃗ |+|y ⃗−z ⃗ | Function • Given two sets A and B • A function (or mapping) is a rule that assigns elements in A to elements in B • Notationally, if f is a function from A to B, we write f:A→B • Set A is called the domain of f • Set B is called the codomain of f • For E⊂A, f(E)={b∈B│b=f(e) for some e∈E} is the image of E under f • f(A) is called the range of f • If f(A)=B, then we say that f is onto or surjective • If f(a_1 )=f(a_2 ) implies a_1=a_2, then f is one-to-one or injective • A function that is both one-to-one and onto is said to be bijective • For E⊂B, f^(−1) (E)={a∈A│f(a)∈E} is the inverse image of E under f • Notationally, if y∈B, f^(−1) (y)=f^(−1) ({y}) ○ f^(−1) is at most a single element set for all y∈B if and only if f is injective ○ In this case, f^(−1) can be thought of as a function maps to the single element • Example ○ f:R→R defined by f(x)=x^2 ○ f^(−1) ({1})={1,−1} ○ f^(−1) ({x∈Rx0})=∅ ○ f^(−1) ({0})={0}, we can also write f^(−1) (0)=0 Cardinality • If there exists a one-to-one, onto mapping from set A to set B • We say that A and B can be put in one-to-one correspondence • And that A and B have the same cardinality (or cardinal number) • In this case, we write A~B Equivalence Relation • One-to-one correspondence is an example of an equivalence relation • An equivalence relation satisfies 3 properties ○ Reflexive: A~A ○ Symmetric: If A~B, then B~A ○ Transitivity: If A~B, B~C, then A~C Finite and Countable • Let J_n={1,2,3,…,n} and N={1,2,3,…} • For any set A, we say ○ A is finite if A~J_n for some n (∅~J_0 so ∅ is finite) ○ A is infinite if A≁J_n for all n ○ (To be continued)
Read More >>

Math 541 – 2/12

  • Feb 14, 2018
  • Shawn
  • Math 541
  • No comments yet
Proposition 15 • Statement ○ |S_n |=n! • Proof ○ First, we prove that if X and Y are sets of order n, then ○ There are n! injective functions from X to Y ○ We argue by induction on n ○ n=1 § Clear ○ n  1 § Suppose f:X→Y is injective § Let x∈X, then there are n possibilities for f(x) § f restricts to an injective function X∖{x}→Y∖{f(x)} § There are (n−1)! such functions, by induction § Thus, there are n(n−1)!=n! injective functions X→Y ○ Now, take X={1,…,n}=Y ○ Then every injection between finite sets of the same order is a bijection ○ Notice that the sets must be finite (Counterexample: f:Z→Z, n↦2n) Cycle • Definition ○ Fix n∈Z(  0). Let a_1,…,a_t∈{1,…,n} ○ The element of S_n given by § a_i↦a_(i+1) for 1≤i≤t−1 § a_t↦a_1 § j↦j if j∉{a_1,…a_t } ○ is denoted by (a_1,a_2,…,a_t ) and is called a cycle of length t • Example ○ Let σ=(1 3 2)∈S_4, then ○ (■8(i&1&2&3&4@↓&↓&↓&↓&↓@σ(i)&3&1&2&4)) ○ Notice: (1 3 2)=(3 2 1)=(2 1 3) Disjoint Cycles • Definition ○ Two cycles (a_1,…a_t ) and (b_1,…,b_k ) are disjoint if ○ {a_1,…a_t }∩{b_1,…,b_k }=∅ • Example ○ (1 2), (3 4)∈S_4 are disjoint • Fact ○ Every element of S_n can be written as a product of disjoint cycles ○ S_1={(1)} ○ S_2={(1),(1 2)} ○ S_3={(1), (1 2), (1 3), (2 3),(1 2 3), (1 3 2)} ○ S_4 = {(1), (1 2), (1 3), (1 4), (2 3), (2 4), (3 4), (1 2 3), (1 2 4), (1 3 2), (1 4 2), (1 3 4), (1 4 3), (2 3 4), (2 4 3), (1 2 3 4), (1 2 4 3), (1 3 2 4), (1 3 4 2), (1 4 2 3), (1 4 3 2), (1 2)(3 4), (1 4)(2 3), (1 3)(2 4s)} ○ Note: We write the identity of S_n as (1) Cycle Decomposition for Permutations • Algorithm Method Example a≔min⁡{x∈Nx not appeared in previous cycles} (1 Begin the new cycle: (a b≔σ(a) σ(1)=12=b If b=a 12≠1 • close the cycle with a right parenthesis So write (1 12 • return to step 1 If b≠a • write b next to a in this cycle: (a b c≔σ(b) σ(12)=8 If c=a 8≠1 • close the cycle with a right parenthesis So continue the cycle as: • return to step 1 (1 12 8 If c≠a • write c next to in this cycle: (a b c b≔c and repeat this step until the cycle closes Naturally this process stops when all the numbers from {1,2, …,n} have appeared in some cycle. σ = (1 1 2 8 10 4)(2 1 3)(3)(5 1 1 7)(6 9) Remove all cycles of length 1 σ = (1 1 2 8 10 4)(2 1 3)(5 1 1 7)(6 9) • Example ○ Take σ∈S_13 to be the following ○ (■8(i&1&2&3&4&5&6&7&8&9&10&11&12&13@↓&↓&↓&↓&↓&↓&↓&↓&↓&↓&↓&↓&↓&↓@σ(i)&12&13&3&1&11&9&5&10&6&4&7&8&3)) ○ Start with 1, σ(1)=12, so write 12 after 1. ○ Keep going until you cycle back to 1 ○ Start with the smallest number which hasn  t yet appeared, and repeat. ○ Repeat this step until 1,…,13 have all appeared. Product of Cycles • Reminder: Read from right to left • Example ○ Write σ=(1 2 3)(1 2)(3 4) as a product of disjoint cycles ○ What is σ(1)? § (3 4) maps 1 to 1 § (1 2) maps 1 to 2 § (1 2 3) maps 2 to 3 § Thus σ(1)=3 ○ Similarly σ(3)=4, σ(4)=1 ○ Thus we close the cycle (1 3 4) ○ We won  t write down (2), since it is the identity ○ Thus σ=(1 3 4)(2)=(1 3 4) ○ Note: σ∈S_4, but it make sense to think of σ∈S_n for n  4 • Commutativity of S_n ○ (1 2)(1 2 3)=(2 3) ○ (1 2 3)(1 2)=(3 1) ○ In particular S_3 is not abelian ○ Therefore S_n is not abelian for n≥3
Read More >>

2.3 Functions

  • Feb 12, 2018
  • Shawn
  • Math 240
  • No comments yet
Functions • Definition ○ Let A and B be nonempty sets. ○ A function f from A to B, denoted f:A→B is an assignment of each element of A to exactly one element of B. ○ We write f(a)=b if b is the unique element of B assigned by the function f to the element a of A. ○ Functions are sometimes called mappings or transformations. • Example • Relation ○ A function f:A→B can also be defined as a subset of A×B (a relation). ○ This subset is restricted to be a relation where no two elements of the relation have the same first element. ○ Specifically, a function f from A to B contains one, and only one ordered pair (a,b) for every element a∈A. § ∀x[x∈A→∃y[y∈B∧(x,y)∈f]] § ∀x,y_1,y_2 [[(x,y_1 )∈f∧(x,y_2 )∈f]→y_1=y_2 ] • Terminology ○ Given a function f: A → B: ○ We say f maps A to B or f is a mapping from A to B. § A is called the domain of f. § B is called the codomain of f. ○ If f(a)= b, § then b is called the image of a under f. § a is called the preimage of b. ○ The range of f is the set of all images of points in A under f. § We denote it by f(A). ○ Two functions are equal when § they have the same domain, the same codomain and § map each element of the domain to the same element of the codomain. Representing Functions • Functions may be specified in different ways: • An explicit statement of the assignment. ○ Students and grades example. • A formula. ○ f(x)=x+1 • A computer program. ○ A Java program that when given an integer n, produces n! Example • f(a)=z • The image of d is z • The domain of f is A • The codomain of f is B • The preimage of y is b • f(a)={y,z} • The preimage of z is {a,c,d} • f{a,b,c}={y,z} • f{c,d}={z} Injections • A function f is said to be one-to-one, or injective, • if and only if f(a)=f(b) implies that a=b for all a and b in the domain of f. • A function is said to be an injection if it is one-to-one. Surjections • A function f from A to B is called onto or surjective, • if and only if for every element b∈B there is an element a∈A with f(a)=b. • A function f is called a surjection if it is onto. Bijections • A function f is a one-to-one correspondence, or a bijection, • if it is both one-to-one and onto (surjective and injective). Showing that f is one-to-one or onto • To show that f is injective ○ For x,y,∈A if x≠y then f(x)≠f(y) • To show that f is not injective ○ Find x,y∈A s.t. x≠y and f(x)=f(y) • Example 1 ○ Let f be the function from {a,b,c,d} to {1,2,3} defined by § f(a)=3 § f(b)=2 § f(c)=1 § f(d)=3 ○ Is f an onto function? § Yes, f is onto. § Since all elements of the codomain are images of elements in the domain. ○ If the codomain were changed to {1,2,3,4}, f would not be onto. • Example 2 ○ Is the function f(x) = x^2 from the set of integers to the set of integers onto? ○ No, f is not onto because there is no integer x with x^2 =−1, for example. • Example 3 ○ Let f be the function from the N to the even natural numbers defined by ○ f(n)=2n. Is f an onto function? One to one? ○ f is an onto function, and f is one to one • Example 4 ○ Is the function f(x)=x^3 from R to R onto? One to one? ○ f is an onto function, and f is one to one • Example 5 ○ Is the function f(x)=1/|x| fomr R∖{0} to R onto? One to one? ○ f is not injective, and f is not surjective. Inverse Functions • Let f be a bijection from A to B. • Then the inverse of f, denoted f^(−1) , is the function from B to A defined as • f^(−1) (y)=x iff f(x)=y • No inverse exists unless f is a bijection. Why? • Example Questions • Example 1 ○ Let f be the function from {a,b,c} to {1,2,3} such that § f(a)=2 § f(b)=3 § f(c)=1 ○ Is f invertible and if so what is its inverse? ○ The function f is invertible because it is a one-to-one correspondence. ○ The inverse function f^(−1) reverses the correspondence given by f, so § f^(−1) (1)=c § f^(−1) (2)=b § f^(−1) (3)=a • Example 2 ○ Let f:Z→Z be such that f(x)=x+1. ○ Is f invertible, and if so, what is its inverse? ○ The function f is invertible because it is a one-to-one correspondence. ○ The inverse function f^(−1) reverses the correspondence so f^(−1) (y)=y −1. • Example 3 ○ Let f:R→R be such that f(x)=x^2. ○ Is f invertible, and if so, what is its inverse? ○ The function f is not invertible because it is not one-to-one. Composition • Let f:B→C, g:A→B. • The composition of f with g, denoted f∘g is the function from A to C defined by • f∘g(x)=f(g(x)) • Example Composition Questions • Example 1 ○ If f(x)=x^2 and g(x)=2x+1 ○ Then f(g(x))=(2x+1)^2 ○ And g(f(x))=2x^2+1 • Example 2 ○ Let f and g be functions from the set of integers to the set of integers defined by § f(x)=2x+3 § g(x)=3x+2 ○ What is the composition of f and g, and also the composition of g and f ? § f∘g(x)=f(g(x))=f(3x+2)=2(3x+2)+3=6x+7 § g∘f(x)=g(f(x))=g(2x+3)=3(2x+3)+2=6x+11 Graphs of Functions • Let f be a function from the set A to the set B. • The graph of the function f is the set of ordered pairs {(a,b)┤|a∈A and f(a)=b}. • Example Some Important Functions • The floor function f(x)=⌊x⌋ is the largest integer less than or equal to x. • The ceiling function f(x)=⌈x⌉ is the smallest integer greater than or equal to x • Example ○ ⌈3.5⌉=4, ⌊3.5⌋=3 ○ ⌈−1.5⌉=−1, ⌊−1.5⌋=−2 Factorial Function • f:N→Z+, denoted by f(n) = n! is • the product of the first n positive integers when n is a nonnegative integer. ○ f(n)=1 ∙ 2 ∙∙∙ (n – 1) ∙ n, ○ f(0)=0! = 1 • Examples: ○ f(1)=1!=1 ○ f(2)=2!=1∙2=2 ○ f(6)=6!=1∙2∙3∙4∙5∙6=720 ○ f(20)=2,432,902,008,176,640,000 Partial Function • A partial function f from a set A to a set B is an assignment to each element a in a subset of A, of a unique element b in B. • The sets A and B are called the domain and codomain of f, respectively. • We day that f is undefined for elements in A that are not in the domain of definition of f. • When the domain of definition of f equals A, we say that f is a total function. • Example ○ f:N→Z where f(n)=√n is a partial function from Z to R ○ where the domain of definition is the set of nonnegative integers. ○ Note that f is undefined for negative integers.
Read More >>

Math 541 – 2/9

  • Feb 09, 2018
  • Shawn
  • Math 541
  • No comments yet
Examples of Orders • Example 1 ○ A≔(■8(0&−1@1&−1))∈GL_2 (R ○ A^3=(■8(0&−1@1&−1))^3=(■8(−1&1@−1&0))(■8(0&−1@1&−1))=(■8(1&0@0&1))=I ○ Thus, |A|=3 • Example 2 ○ In Z,Q,R,ℂ, every nonzero element has infinite order • Example 3 ○ In Q∗ and R∗, the elements of finite order are § |1|=1 § |−1|=2 ○ In ℂ^∗, there are lots more § elements of order n in ℂ are called n^th roots of unity § i is the fourth root of unity § i.e. i^1=i, i^2=−1, i^3=−i, i^4=1 • Example 4 ○ What are the orders of the elements in Z\/6Z? Elements Order Note 0 ̅ 1 0 ̅ is the identity 1 ̅ 6 1 ̅⋅6=6 ̅=0 ̅ 2 ̅ 3 2 ̅⋅3=6 ̅=0 ̅ 3 ̅ 2 3 ̅⋅2=6 ̅=0 ̅ 4 ̅ 3 4 ̅⋅3=(12) ̅=0 ̅ 5 ̅ 6 5 ̅⋅6=(30) ̅=0 ̅ ○ In general, if a ̅∈Z\/nZ, then the "n^th power" of a ̅ is (na) ̅ ○ Note that all the orders are divisors of 6 (Lagrange Theorem) • Example 5 ○ What are the orders of the elements in Z\/5Z×? § Z\/5Z×={1 ̅,2 ̅,3 ̅,4 ̅ } § (0,5)=0≠1, so 0 ̅∉Z\/5Z× Elements Order Note 1 ̅ 1 1 ̅ is the identity 2 ̅ 4 2 ̅^4=(16) ̅=1 ̅ 3 ̅ 4 3 ̅^4=81 ̅=1 ̅ 4 ̅ 2 4 ̅^2=(16) ̅=1 ̅ Symmetric Groups (Section 1.3) • Symmetric Group of Degree n ○ n∈Z(0) ○ S_n≔{bijective functions {1,…,n}→{1,…,n}} ○ S_n is a group with operation given by composition of functions ○ Composition of functions is an operation on S_n § S_n×S_n→S_n § (σ,τ)↦σ∘τ § σ∘τ is again bijictive, so this makes sense ○ Associativity § Suppose f:X→Y, g:Y→Z,h:Z→W § ((hg)∘f)(x)=(hg)(f(x))=h(g(f(x))) § (h(g∘f))(x)=h((g∘f)(x))=h(g(f(x))) § Thus (hg)∘f=h∘(g∘f) ○ Identity § Identity map ○ Inverses § Bijective functions have inverses Proposition 15 • Statement ○ |S_n |=n! • Proof ○ First, we prove that if X and Y are sets of order n, then ○ There are n! injective functions from X to Y ○ We argue by induction on n ○ n=1 § Clear ○ n1 § Suppose f:X→Y is injective § Let x∈X. § There are n possibilities for f(x) § f restricts to an injective function X∖{x}→Y∖{f(x)} § There are (n−1)! such functions, by induction § Thus, there are n(n−1)!=n! injective functions X→Y ○ (To be continued)
Read More >>

2.2 Set Operations

  • Feb 09, 2018
  • Shawn
  • Math 240
  • No comments yet
Union • Definition ○ Let A and B be sets. ○ The union of the sets A and B, denoted by A∪B, is the set: ○ {x|x∈A∨x∈B} • Example: What is {1,2,3}∪{3, 4, 5}? ○ {1,2,3,4,5} • Venn Diagram Intersection • Definition ○ The intersection of sets A and B, denoted by A ∩ B, is ○ {x|x∈A∧x∈B} • Note ○ If the intersection is empty, then ○ A and B are said to be disjoint. • Example: What is {1,2,3} ∩ {3,4,5} ? ○ {3} • Example: What is {1,2,3} ∩ {4,5,6} ? ○ ∅ • Venn Diagram Complement • Definition ○ If A is a set, then the complement of the A (with respect to U), denoted by Ā is the set U−A ○ Ā={x∈U|x∉A} ○ (The complement of A is sometimes denoted by A^c.) • Example ○ If U is the positive integers less than 100, ○ what is the complement of {x | x 70} ○ {x│x≤70} • Venn Diagram Difference • Definition ○ Let A and B be sets. ○ The difference of A and B, denoted by A–B, is the set containing the elements of A that are not in B. ○ The difference of A and B is also called the complement of B with respect to A. ○ A–B={x|x∈A∧x∉B}=A∩B ̅ • Venn Diagram Set Identities • Identity laws ○ A∪∅=A ○ A∩U=A • Domination laws ○ A∪U=U ○ A∩∅=∅ • Idempotent laws ○ A∪A=A ○ A∩A=A • Complementation law ○ ((A ̅ ) ) ̅=A ̅ • Communtative laws ○ A∪B=B∪A ○ A∩B=B∩A • Associative laws ○ A∪(B∪C)=(A∪B)∪C ○ A∩(B∩C)=(A∩B)∩C • Distributive laws ○ A∩(B∪C)=(A∩B)∪(A∩C) ○ A∪(B∩C)=(A∪B)∩(A∪C) • De Morgan
Read More >>
  • 1
  • …
  • 28
  • 29
  • 30
  • 31
  • 32
  • …
  • 60

Search

  • Home Page
  • Tutorials
  • Mathematics
    • Math 240 – Discrete Math
    • Math 375 – Linear Algebra
    • Math 431 – Intro to Probability
    • Math 514 – Numerical Analysis
    • Math 521 – Analysis I
    • Math 541 – Abstract Algebra
    • Math 632 – Stochastic Processes
    • Abstract Algebra @ 万门大学
    • Linear Algebra @ 万门大学
    • Category Theory
  • Computer Sciences
    • CS/ECE 252 – Intro to Computer Engr.
    • CS/ECE 352 – Digital System Fund.
    • Learn Haskell
  • Course Notes
    • AP Macroeconomics
    • AP Microeconomics
    • AP Chemistry
    • AP Statistics
    • AP Physics C: E&M
    • AP Physics C: Mechanics
    • CLEP Psychology
  • 2048 Game
  • HiMCM 2016
  • 登峰杯 MCM

WeChat Account

Categories

  • Notes (418)
    • AP (115)
      • AP Macroeconomics (20)
      • AP Microeconomics (23)
      • AP Physics C E&M (25)
      • AP Physics C Mechanics (28)
      • AP Statistics (19)
    • Computer Sciences (2)
    • Mathematics (300)
      • Abstract Algebra (29)
      • Category Theory (7)
      • Linear Algebra (29)
      • Math 240 (42)
      • Math 375 (71)
      • Math 514 (18)
      • Math 521 (39)
      • Math 541 (39)
      • Math 632 (26)
  • Projects (2)
  • Tutorials (11)

Archives

  • October 2019
  • May 2019
  • April 2019
  • March 2019
  • February 2019
  • December 2018
  • November 2018
  • October 2018
  • September 2018
  • July 2018
  • May 2018
  • April 2018
  • March 2018
  • February 2018
  • January 2018
  • December 2017
  • November 2017
  • October 2017
  • September 2017
  • August 2017
  • July 2017
  • June 2017

WeChat Account

Links

RobeZH's thoughts on Algorithms - Ziyi Zhang
Copyright © 2018.      
TOP