Fonksiyonlar: birebir, örten, ters, bileşke, floor ve ceiling
Bir fonksiyonun one-to-one ve onto olduğunu ispatlama şablonu, ters fonksiyon, bileşke ve floor/ceiling. Vizede 1-1/onto ispatı ve floor/ceiling hesabı neredeyse kesin.
functiondomaincodomainrangeimagepreimageone-to-one (injective)onto (surjective)bijectioninverse functioncompositionidentity functionfloor functionceiling functionincreasing function
Fonksiyon kavramını lise matematiğinden biliyorsun, ama ayrık matematikte fonksiyon bir formül değil, bir eşlemedir. Vizede neredeyse kesin bir soru: “Determine whether f is one-to-one, onto, both or neither. Prove your answers. If it is a bijection, find its inverse.” Bu soru şablonla çözülür. Yanına genelde bir floor/ceiling hesabı ya da bileşke eklenir.
Altın kurallar:
Fonksiyon = domain’deki her elemana tam bir çıktı. İki çıktı ya da hiç çıktı yoksa fonksiyon değil.
1-1 ispatı f(x)=f(y) ile başlar, x=y ile biter.
Onto ispatı keyfi y ile başlar, x‘i çözersin, x‘in domain’de olduğunu söylersin.
“Değil” demek için tek somut örnek yeter.
Domain ve codomain cevabı değiştirir. Aynı formül R‘de bijection, Z‘de değil olabilir.
Tanım
A ve B boş olmayan kümeler olsun. Fonksiyon (function)f:A→B, A‘daki her a‘ya B‘den tam bir f(a) atar.
Terim
Anlamı
f:Z→Z, f(x)=x2 için
Domain
girdi kümesi A
Z
Codomain
izin verilen çıktı kümesi B
Z
Range
gerçekten çıkan değerler f(A)
{0,1,4,9,…}
Image of a
f(a)
f(−3)=9
Preimage of S
f−1(S)={a∣f(a)∈S}
f−1({4,9})={−3,−2,2,3}
Range her zaman codomain’in alt kümesi. Preimage tanımı ters fonksiyon gerektirmez; her fonksiyon için tanımlıdır.
Fonksiyon olmayan şeyler: f:R→R, f(x)=1/x (x=0 için çıktı yok), ya da f(x)=±x (iki çıktı). Sonlu bir eşleme verilirse her girdinin tam bir okla çıktığına bak.
One-to-one, onto, bijection
Özellik
Tanım
Sezgi
One-to-one (injective)
f(a)=f(b)⇒a=b
iki oyuncu aynı forma numarasını taşımaz
Onto (surjective)
∀b∈B∃a∈A,f(a)=b
her forma numarası birine verilmiş
Bijection
1-1 ve onto
oyuncu ve numara birebir eşleşir
1-1 tanımının contrapositive hali de kullanılır: a=b⇒f(a)=f(b).
Sonlu kümelerde kısa yollar.∣A∣>∣B∣ ise f 1-1 olamaz (güvercin yuvası). ∣A∣<∣B∣ ise onto olamaz. ∣A∣=∣B∣ ise 1-1 ile onto aynı şeydir; birini göstermek yeter.
Şablon ve çözümlü örnekler
Örnek 1.f:R→R, f(x)=4−3x.
One-to-one. Suppose f(x) = f(y). Then 4 − 3x = 4 − 3y, so −3x = −3yand x = y. Hence f is one-to-one.Onto. Let y ∈ R be arbitrary. Take x = (4 − y)/3. Then x ∈ R andf(x) = 4 − 3·(4 − y)/3 = 4 − (4 − y) = y. Hence f is onto.So f is a bijection, and f⁻¹(y) = (4 − y)/3.
x‘i nereden buldun? Taslakta y=4−3x‘i x için çözdün. Sınavda taslağı değil, sonucu yaz ve "x∈R" demeyi unutma.
Örnek 2.g:Z→Z, g(n)=n2.
1-1 değil: g(2)=g(−2)=4, ama 2=−2.
Onto değil: g(n)≥0 olduğu için −1 hiç çıkmaz. (Ya da 2: tam kare değil.)
Örnek 3.h:Z→Z, h(n)=⌊n/2⌋.
1-1 değil: h(4)=h(5)=2.
Onto: m∈Z için n=2m al, h(2m)=m.
Örnek 4.f:Z→Z, f(n)=2n+3 ile f:R→R, f(x)=2x+3. İkisi de 1-1. Reel versiyon onto (x=2y−3). Tam sayı versiyonu onto değil: 2n+3 hep tek, 0‘a giden tam sayı yok.
TUZAK · Onto ispatında x‘in domain’de olduğunu atlamak.x=2y−3 buldun. Domain R ise sorun yok. Domain Z ise bu x çoğu y için tam sayı değil ve ispat çöker. “Take x=⋯∈A” cümlesi puanın yarısı.
Ters fonksiyon (inverse)
f bijection ise f−1:B→A, f−1(b)=a⟺f(a)=b. Bijection değilse ters fonksiyon yoktur: 1-1 değilse bir b‘nin iki geri dönüş yolu olur, onto değilse bazı b‘lerin hiç yolu olmaz.
Bulma yöntemi: y=f(x) yaz, x‘i yalnız bırak. Kontrol: f−1(f(x))=x.
Sonlu fonksiyonda okları ters çevir: f(1)=c, f(2)=a, f(3)=b ise f−1(a)=2, f−1(b)=3, f−1(c)=1.
Bileşke (composition)
f:A→B, g:B→C için (g∘f)(x)=g(f(x)). Sağdan sola okunur: önce f, sonra g.
Örnek.f(x)=x+2, g(x)=3x2. (g∘f)(x)=3(x+2)2, (f∘g)(x)=3x2+2. Genelde g∘f=f∘g.
Faydalı gerçekler:
f ve g 1-1 ise g∘f de 1-1. İkisi onto ise g∘f de onto.
Özellikler (n tam sayı): ⌊x+n⌋=⌊x⌋+n, ⌈x+n⌉=⌈x⌉+n, ⌈−x⌉=−⌊x⌋, x−1<⌊x⌋≤x≤⌈x⌉<x+1. Dikkat: ⌊x+y⌋ genelde ⌊x⌋+⌊y⌋ değildir (x=y=0.5: 1 ile 0).
Çözümlü ispat: ⌊2x⌋=⌊x⌋+⌊x+21⌋
x=n+ε yaz, n=⌊x⌋, 0≤ε<1. İki durum:
Case 1: 0 ≤ ε < 1/2. 2x = 2n + 2ε with 0 ≤ 2ε < 1, so ⌊2x⌋ = 2n. x + 1/2 = n + (ε + 1/2) with 1/2 ≤ ε + 1/2 < 1, so ⌊x + 1/2⌋ = n. Right side: n + n = 2n. Equal.Case 2: 1/2 ≤ ε < 1. 2x = 2n + 1 + (2ε − 1) with 0 ≤ 2ε − 1 < 1, so ⌊2x⌋ = 2n + 1. x + 1/2 = (n + 1) + (ε − 1/2) with 0 ≤ ε − 1/2 < 1/2, so ⌊x + 1/2⌋ = n + 1. Right side: n + (n + 1) = 2n + 1. Equal. ∎
Floor/ceiling ispatlarının genel hilesi: x‘i “tam kısım + kesir” diye yaz ve kesrin aralığına göre durumlara böl.
Sık yapılan hatalar
Yanlış düşünce
Doğrusu
Range = codomain
Range codomain’in alt kümesi; eşitse onto
1-1 ispatı için birkaç değer denemek
f(x)=f(y)⇒x=y genel cebir
Onto ispatında x∈A dememek
Domain Z ise bulduğun x tam sayı olmayabilir
2x+3 her yerde bijection
Z→Z‘de onto değil
(g∘f)(x)=f(g(x))
g(f(x)); önce f
f−1(y)=1/f(y)
Ters fonksiyon çarpımsal ters değil
⌊−2.3⌋=−2
−3; floor hep aşağı
⌊x+y⌋=⌊x⌋+⌊y⌋
Sadece biri tam sayıysa garanti
Bijection olmayan fonksiyonun tersini yazmak
Ters sadece bijection için var
Kendini test et
Sınavdaki gibi İngilizce sorular. Önce kâğıt kalemle çöz, sonra cevabı aç.
Soru 1kolay
Evaluate ⌊−3.7⌋, ⌈−3.7⌉, ⌊5.2⌋, ⌈5⌉ and ⌊−21+⌈23⌉⌋.
Cevabı göster
−4, −3, 5, 5, 1
Sayı doğrusunda düşün: floor sola (aşağı), ceiling sağa (yukarı) gider. −3.7'nin solundaki tam sayı −4, sağındaki −3. Tam sayının floor'u da ceiling'i de kendisi: ⌈5⌉=5. Son ifade içten dışa: ⌈1.5⌉=2, −0.5+2=1.5, ⌊1.5⌋=1.
Soru 2kolay
Let f:{1,2,3,4}→{a,b,c} with f(1)=b, f(2)=a, f(3)=b, f(4)=c. Find the range of f. Is f one-to-one? Onto?
Cevabı göster
Range {a, b, c}; onto but not one-to-one
Çıkan değerler a,b,c: range codomain'e eşit, yani onto. Ama f(1)=f(3)=b, iki farklı girdi aynı çıktı: one-to-one değil. 4 elemanlı bir kümeden 3 elemanlıya giden hiçbir fonksiyon zaten 1-1 olamaz.
Soru 3orta
Let f:Z→Z, f(n)=3n−1. Is f one-to-one? Onto? Prove your answers.
Cevabı göster
One-to-one, not onto (0 has no preimage)
1-1: Suppose f(m)=f(n). Then 3m−1=3n−1, so 3m=3n, m=n. Onto değil: y=0 için 3n−1=0⇒n=31∈/Z. Hiçbir tam sayı 0'a gitmiyor. Domain R olsaydı onto olurdu; domain'e dikkat.
Soru 4orta
Let f:R→R, f(x)=x2−4x. Is f one-to-one? Onto? Justify.
Cevabı göster
Neither: f(0) = f(4) = 0, and f(x) ≥ −4 so −5 is not attained
1-1 değil: f(0)=0, f(4)=16−16=0, ama 0=4. Onto değil: x2−4x=(x−2)2−4≥−4. Mesela −5 hiç çıkmaz. "Değil" iddiası için tek somut örnek yeter.
Soru 5orta
Show that f:R→R, f(x)=7−2x is a bijection and find f−1.
Cevabı göster
f⁻¹(y) = (7 − y)/2
1-1: 7−2x=7−2y⇒−2x=−2y⇒x=y. Onto: Let y∈R. Take x=27−y∈R. Then f(x)=7−(7−y)=y. Bijection olduğu için ters var ve onto adımında zaten bulduk: f−1(y)=27−y. Kontrol: f−1(f(3))=f−1(1)=3.
Soru 6orta
Let f(x)=2x+1 and g(x)=x2−3 on R. Find (f∘g)(x), (g∘f)(x), (f∘g)(2) and (g∘f)(2).
f∘g: önce g, sonra f. f(g(x))=2(x2−3)+1=2x2−5. g(f(x))=(2x+1)2−3=4x2+4x−2. x=2: f(g(2))=f(1)=3, g(f(2))=g(5)=22. Farklı: bileşke değişmeli değil.
Soru 7zor
Let f:R−{1}→R−{2}, f(x)=x−12x+1. Prove that f is a bijection and find f−1.
Cevabı göster
f⁻¹(y) = (y + 1)/(y − 2)
1-1: x−12x+1=y−12y+1 ise içler dışlar çarpımı: (2x+1)(y−1)=(2y+1)(x−1), yani 2xy−2x+y−1=2xy−2y+x−1. Sadeleşince −3x=−3y, x=y. Onto: y=2 verilsin. y=x−12x+1'i çöz: yx−y=2x+1⇒x(y−2)=y+1⇒x=y−2y+1. y=2 olduğu için tanımlı. Ayrıca x=1 (yoksa y+1=y−2 olurdu). Yani x domain'de ve f(x)=y.f−1(y)=y−2y+1. Codomain'den 2'nin neden çıkarıldığını görüyorsun: y=2 için çözüm yok.
Soru 8orta
Let f:Z→Z, f(n)=⌈n/2⌉. Is f one-to-one? Onto?
Cevabı göster
Onto but not one-to-one
1-1 değil: f(1)=⌈0.5⌉=1 ve f(2)=1. Onto: herhangi bir m∈Z için n=2m al, f(2m)=⌈m⌉=m.
Soru 9kolay
Data is stored in bytes of 8 bits. How many bytes are needed for 1000 bits? For 1001 bits?
Cevabı göster
125 and 126
Eksik byte da tam byte kaplar, o yüzden yukarı yuvarla: ⌈1000/8⌉=⌈125⌉=125, ⌈1001/8⌉=⌈125.125⌉=126. "Kaç tane lazım" soruları ceiling, "kaç tane tam sığar" soruları floor.
Soru 10zor
Prove that ⌈x+n⌉=⌈x⌉+n for every real x and every integer n.
Cevabı göster
Let m = ⌈x⌉, so m − 1 < x ≤ m; then m + n − 1 < x + n ≤ m + n, so ⌈x + n⌉ = m + n.
Ceiling tanımı: ⌈y⌉=m ancak m−1<y≤m ve m tam sayı ise. m=⌈x⌉ olsun: m−1<x≤m. Her tarafa n ekle: (m+n)−1<x+n≤m+n. m+n tam sayı olduğu için tanım gereği ⌈x+n⌉=m+n=⌈x⌉+n. ∎ Floor/ceiling ispatlarında hep bu eşitsizlik tanımını kullan.
Soru 11orta
How many functions are there from {1,2,3} to {a,b}? How many of them are one-to-one? How many are onto?
Cevabı göster
8 functions, 0 one-to-one, 6 onto
Her girdi için 2 seçenek: 23=8. 1-1 olması için 3 farklı çıktı lazım ama codomain'de 2 eleman var: 0. Onto olmayanlar sadece hepsini a'ya ya da hepsini b'ye götüren 2 sabit fonksiyon: 8−2=6.
Soru 12zor
Let f:A→B and g:B→C. Prove that if g∘f is one-to-one, then f is one-to-one.
Cevabı göster
f(x) = f(y) ⇒ g(f(x)) = g(f(y)) ⇒ x = y
Suppose f(x)=f(y) for x,y∈A. Apply g to both sides: g(f(x))=g(f(y)), i.e. (g∘f)(x)=(g∘f)(y). Since g∘f is one-to-one, x=y. Hence f is one-to-one. ∎ Dikkat: g'nin 1-1 olması gerekmez; bu iddia sadece f hakkında.
Doğrulama: Sonlu fonksiyonlar bütün eşlemeler üretilerek sayıldı; Z üzerindeki 1-1/onto iddiaları -300..300 penceresinde, ters fonksiyonlar ve bileşkeler örnek noktalarda, floor/ceiling özdeşlikleri 50.000 rastgele değerde node ile kontrol edildi (verify/MAT2033/04.mjs).
Deftere not kartı
f: A→B: A'daki HER elemana TAM BİR çıktı. A domain, B codomain, çıkanlar range.
1-1 ispatı: "Suppose f(x)=f(y). Then ... so x=y."
1-1 DEĞİL: f(a)=f(b), a≠b somut örnek (x² için f(1)=f(−1))
Onto ispatı: "Let y∈B. Take x=(y=f(x)'i x için çöz). x∈A and f(x)=y."
Onto DEĞİL: çıkmayan y bul (3n−1=0 → n=1/3 ∉ Z)
Domain fark eder: 2x+3 R→R bijection, Z→Z onto değil
Bijection ⇔ ters var. f⁻¹: y=f(x)'ten x'i çek. Kontrol f⁻¹(f(x))=x
(g∘f)(x) = g(f(x)), ÖNCE f. Genelde g∘f ≠ f∘g
g∘f 1-1 ⇒ f 1-1 g∘f onto ⇒ g onto
Sonlu, |A|=|B|: 1-1 ⇔ onto. |A|>|B| ise 1-1 olamaz.
⌊x⌋=n ⇔ n ≤ x < n+1 ⌈x⌉=n ⇔ n−1 < x ≤ n
⌊−2.3⌋=−3 ⌈−2.3⌉=−2 ⌊x+n⌋=⌊x⌋+n ⌈−x⌉=−⌊x⌋
"kaç tane lazım" ceiling, "kaç tane tam sığar" floor