Chapterبەش 3 · Lectureوانە 3.1

What Is a Function?نەخشە چییە؟

A function is a rule that gives every input exactly one output. Meet ordered pairs, the Cartesian product and relations, the notation f:X→Yf:X\to Y, independent and dependent variables, the coordinate plane and the vertical line test.

یاسایەکە کە بە هەر تەنها یەک دەدات. ، و دەناسیت، هەروەها نووسینی f:X→Yf:X\to Y، و ، و .

17 min read18 خولەک خوێندنەوە · 18 stepsهەنگاو

What you will learnچی فێر دەبیت

  • Write the Cartesian product of two small sets and explain what an ordered pair is.
  • Decide whether a relation is a function, from its pairs or from an arrow diagram.
  • Use the notation f:X→Yf:X\to Y and y=f(x)y=f(x), and name the independent and dependent variables.
  • Plot ordered pairs in the coordinate plane and use the vertical line test.
  • Explain how a mathematical function differs from a function in a program.
  • دوو بچووک بنووسە و ڕوونی بکەرەوە چییە.
  • لە جووتەکانییەوە یان لە هێڵکارییەکی تیرەوە بڕیار بدە ئایا یان نا.
  • نووسینی f:X→Yf:X\to Y و y=f(x)y=f(x) بەکار بهێنە و و دیاری بکە.
  • لەسەر دابنێ و بەکار بهێنە.
  • ڕوونی بکەرەوە لە بیرکاریدا چ جیاوازییەکی لەگەڵ لە هەیە.

A rule that always gives one answerیاسایەک کە هەمیشە یەک وەڵام دەدات

Many things in daily life follow a fixed rule: you give something in, and one definite thing comes out. Dial a phone number and exactly one phone rings. Point at a drink on a tea-house menu and the menu shows exactly one price. In mathematics a rule like this is called a function.

زۆر شت لە ژیانی ڕۆژانەدا یاسایەکی جێگیر پەیڕەو دەکەن: شتێک دەدەیت و تەنها یەک شتی دیاریکراو دێتە دەرەوە. ژمارەی مۆبایلێک لێ بدە، تەنها یەک مۆبایل زەنگ لێ دەدات. لە لیستی چایخانەدا دەست بخە سەر خواردنەوەیەک، لیستەکە تەنها یەک نرخی بۆ پیشان دەدات. لە بیرکاریدا یاسایەکی لەم جۆرە پێی دەوترێت .

Animation of a function machine with the rule f(x) = 2x + 1. The input 3 goes in and 7 comes out, then 0 gives 1, then −2 gives −3. The pairs (3, 7), (0, 1) and (−2, −3) are collected under the machine. The last frame says: each input gives exactly one output.
Animation of a function machine with the rule f(x) = 2x + 1. The input 3 goes in and 7 comes out, then 0 gives 1, then −2 gives −3. The pairs (3, 7), (0, 1) and (−2, −3) are collected under the machine. The last frame says: each input gives exactly one output.
A function machine: every input produces exactly one output, and the pairs (input, output) are the function.ئامێری : هەر تەنها یەک بەرهەم دەهێنێت و جووتەکانی (، ) خودی .CêIT

The machine in the animation doubles a number and then adds 1. We write the rule as f(x)=2x+1f(x)=2x+1. Put in 3 and you get 7; put in 3 again tomorrow and you get 7 again. Each time we can write down the pair (input, output): (3,7)(3,7), (0,1)(0,1), (−2,−3)(-2,-3). Later in this lesson you will see that a function is exactly this collection of pairs.

ئامێرەکەی ناو وێنە جووڵاوەکە ژمارەیەک دووجار دەکات و پاشان 1ـی بۆ زیاد دەکات. ئەم یاسایە وا دەنووسین: f(x)=2x+1f(x)=2x+1. 3 بخەرە ژوورەوە، 7 وەردەگریت؛ سبەینێ دیسان 3 بخەرە ژوورەوە، دیسان 7 وەردەگریتەوە. هەر جارێک دەتوانین جووتی (، ) بنووسین: (3,7)(3,7)، (0,1)(0,1) و (−2,−3)(-2,-3). لە درێژەی ئەم وانەیەدا دەبینیت کە بریتییە لە ئەم جووتانە.

Quick checkپشکنینی خێراA machine follows the rule f(x)=2x+1f(x)=2x+1. What comes out when you put in 5?ئامێرێک یاسای f(x)=2x+1f(x)=2x+1 پەیڕەو دەکات. ئەگەر 5 بخەیتە ژوورەوە، چی دێتە دەرەوە؟

A rule that always gives one answerیاسایەک کە هەمیشە یەک وەڵام دەدات

A snack machine: one button, one snackئامێری فرۆشتن: یەک دوگمە، یەک خواردن

A snack machineئامێری فرۆشتنی خۆکار

A snack machine in the university corridor is a good picture of a function. Each button is an input and gives one fixed snack, the output: press B2 and you get an orange juice, every time. Two buttons may give the same snack; that is fine. But if one button sometimes gave juice and sometimes gave biscuits, nobody could trust it. Such a machine would not be a function.

ئامێری فرۆشتنی خۆکار لە ڕاڕەوی زانکۆدا وێنەیەکی باشی . هەر دوگمەیەک و یەک خواردنی دیاریکراو دەدات، کە : ⁦B2⁩ دابگرە، هەموو جارێک شەربەتی پرتەقاڵ وەردەگریت. دەکرێت دوو دوگمە هەمان خواردن بدەن؛ ئەمە کێشە نییە. بەڵام ئەگەر یەک دوگمە جارێک شەربەت و جارێکی تر بسکیت بدات، کەس متمانەی پێ ناکات. ئامێرێکی وا نییە.

Where the analogy stops workingسنووری ئەم نموونەیە

A real machine can be empty, keep your money or break down, and it only accepts certain coins. A mathematical function never fails: for every allowed input its output is already decided. The machine is also only a picture of the rule; mathematicians think of the function as the whole set of input–output pairs.

ئامێری ڕاستەقینە دەکرێت بەتاڵ بێت، پارەکەت بخوات یان تێک بچێت، هەروەها تەنها هەندێک جۆری پارە وەردەگرێت. لە بیرکاریدا هەرگیز شکست ناهێنێت: بۆ هەر ڕێگەپێدراو، پێشتر دیاری کراوە. ئامێرەکە تەنها وێنەیەکی یاساکەیە؛ بیرکارزانەکان وەک هەموو جووتەکانی و دەبینن.

Quick checkپشکنینی خێراWhich vending machine is not a picture of a function?کام ئامێری فرۆشتن وێنەی نییە؟

A rule that always gives one answerیاسایەک کە هەمیشە یەک وەڵام دەدات

One function, four waysیەک نەخشە، چوار شێوە

The same function can be given in four ways, and each way is good for something. Here is the machine's rule, f(x)=2x+1f(x)=2x+1, in all four:

هەمان دەتوانرێت بە چوار شێوە بدرێت و هەر شێوەیەک بۆ شتێک باشە. ئەمە یاساکەی ئامێرەکەیە، f(x)=2x+1f(x)=2x+1، بە هەر چوار شێوەکە:

Four cards for the same function. Formula: f(x) = 2x + 1. Table: x = −1, 0, 1, 2 gives f(x) = −1, 1, 3, 5. Graph: a straight rising line through the points (−1, −1), (0, 1), (1, 3) and (2, 5). Words: double the number, then add 1.چوار کارت بۆ هەمان نەخشە. فۆرمولە: f(x) = 2x + 1. خشتە: x = −1، 0، 1، 2 دەبێتە f(x) = −1، 1، 3، 5. هێڵکاری: هێڵێکی ڕاستی بەرزبووەوە کە بە خاڵەکانی (−1, −1)، (0, 1)، (1, 3) و (2, 5)ـدا تێدەپەڕێت. بە وشە: ژمارەکە دووجار بکە، پاشان 1ـی بۆ زیاد بکە.
Formula, table, graph and words: four pictures of one rule.فۆرمولە، خشتە، هێڵکاری و وشە: چوار وێنەی یەک یاسا.CêIT
  • Formula: short and exact; it gives the output for any input.
  • Table: quick to read, but it shows only some inputs, like a bus timetable.
  • Graph: shows the shape at a glance; you will plot points later in this lesson.
  • Words: how people explain a rule in daily life; easy to understand, but often less exact.
  • فۆرمولە: کورت و وردە؛ بۆ هەر دەدات.
  • خشتە: خێرا دەخوێنرێتەوە، بەڵام تەنها هەندێک پیشان دەدات، وەک خشتەی کاتی پاس.
  • هێڵکاری: شێوەکە بە یەک نیگا پیشان دەدات؛ لە درێژەی ئەم وانەیەدا خاڵ دادەنێیت.
  • وشە: ئەو شێوەیەیە کە خەڵک لە ژیانی ڕۆژانەدا یاسایەکی پێ ڕوون دەکەنەوە؛ ئاسانە، بەڵام زۆرجار کەمتر وردە.
Quick checkپشکنینی خێراA function is given in words: “subtract 3, then square the result”. Which formula is it? بە وشە دراوە: «3 لێدەربکە، پاشان ئەنجامەکە دووجا بکە». کام فۆرمولەیە؟

Ordered pairs and the Cartesian productجووتە ڕێکخراوەکان و لێکدانی دیکارتی

An ordered pair (x,y)(x,y) is two objects written in a fixed order: first x, then y. The order matters: (2,5)(2,5) and (5,2)(5,2) are different pairs, just as "2 kg of sugar for 5,000 dinars" is not the same as "5 kg for 2,000".

(x,y)(x,y) بریتییە لە دوو شت کە بە ڕیزبەندییەکی جێگیر دەنووسرێن: سەرەتا x، پاشان y. ڕیزبەندییەکە گرنگە: (2,5)(2,5) و (5,2)(5,2) دوو جووتی جیاوازن، هەروەک چۆن «2 کیلۆ شەکر بە ⁦5,000⁩ دینار» هەمان «5 کیلۆ بە ⁦2,000⁩» نییە.

Take two sets X and Y. If we pair every element of X with every element of Y, we get the Cartesian product X×YX\times Y (read "X cross Y"):

دوو X و Y وەربگرە. ئەگەر هەموو X لەگەڵ هەموو Y جووت بکەین، X×YX\times Y بەدەست دێت (دەخوێنرێتەوە «X کرۆس Y»):

X×Y={(x,y)∣x∈X, y∈Y}X\times Y=\{(x,y)\mid x\in X,\ y\in Y\}

The set of all ordered pairs whose first entry comes from X and whose second entry comes from Y.

هەموو ئەو کە یەکەم بەشیان لە X و دووەم بەشیان لە Yـەوە هاتووە.

Cartesian Product of Two Sets | Don't MemoriseSri Chaitanya Academy NEET · Englishئینگلیزی · 232K viewsبینین · 4.8K likesلایک

Shows what an ordered pair is and builds the Cartesian product A × B by pairing every element of A with every element of B.

چییە و چۆن A×BA \times B دروست دەکرێت: هەر A لەگەڵ هەر B جووت دەکرێت.

Whole video (5:11): sets, ordered pairs (2:00), the Cartesian product (3:21) and set-builder notation (4:08).

هەموو ڤیدیۆکە ⁦(5:11)⁩: ، ⁦(2:00)⁩، ⁦(3:21)⁩ و ⁦(4:08)⁩.

Ordered pairs and the Cartesian productجووتە ڕێکخراوەکان و لێکدانی دیکارتی

A Cartesian product, step by stepلێکدانی دیکارتی هەنگاو بە هەنگاو

Let X={1,2,3}X=\{1,2,3\} and Y={a,b}Y=\{a,b\}. Pair 1 with a and with b, then 2 with a and with b, then 3 with a and with b:

با X={1,2,3}X=\{1,2,3\} و Y={a,b}Y=\{a,b\} بن. 1 لەگەڵ a و لەگەڵ b جووت بکە، پاشان 2 لەگەڵ a و b، پاشان 3 لەگەڵ a و b:

X×Y={(1,a),(1,b),(2,a),(2,b),(3,a),(3,b)}X\times Y=\{(1,a),(1,b),(2,a),(2,b),(3,a),(3,b)\}
A grid with X = {1, 2, 3} on the horizontal axis and Y = {a, b} on the vertical axis. A dot sits at each crossing, labelled (1, a), (2, a), (3, a), (1, b), (2, b) and (3, b). Below: |X × Y| = 3 × 2 = 6, six ordered pairs.تۆڕێک کە X = {1, 2, 3} لەسەر تەوەرە ئاسۆییەکە و Y = {a, b} لەسەر تەوەرە ستوونییەکەیە. لە هەر یەکتربڕینێکدا خاڵێک هەیە: (1, a)، (2, a)، (3, a)، (1, b)، (2, b) و (3, b). لە خوارەوە: |X × Y| = 3 × 2 = 6، شەش جووتە ڕێکخراو.
Every element of X meets every element of Y once: 3×2=63\times2=6 pairs.هەر X یەک جار بە هەر Y دەگات: 3×2=63\times2=6 جووت.CêIT

A set with m elements times a set with n elements always gives m⋅nm\cdot n pairs. Swapping the sets swaps every pair: Y×X={(a,1),(a,2),(a,3),(b,1),(b,2),(b,3)}Y\times X=\{(a,1),(a,2),(a,3),(b,1),(b,2),(b,3)\}. These are different pairs, so in general X×Y≠Y×XX\times Y\ne Y\times X.

بە m جارانی بە n هەمیشە m⋅nm\cdot n جووت دەدات. ئەگەر جێی دوو بگۆڕیت، هەموو جووتەکان پێچەوانە دەبنەوە: Y×X={(a,1),(a,2),(a,3),(b,1),(b,2),(b,3)}Y\times X=\{(a,1),(a,2),(a,3),(b,1),(b,2),(b,3)\}. ئەمانە جووتی جیاوازن، بۆیە بە گشتی X×Y≠Y×XX\times Y\ne Y\times X.

Quick checkپشکنینی خێراX has 3 elements and Y has 4 elements. How many ordered pairs are in X×YX\times Y?X سێ هەیە و Y چوار. X×YX\times Y چەند تێدایە؟

Relations: choosing some of the pairsپەیوەندییەکان: هەڵبژاردنی هەندێک لە جووتەکان

The product X×YX\times Y contains every possible pair. Usually only some pairs interest us. Any subset of X×YX\times Y is called a relation from X to Y. A relation says which elements of X are linked with which elements of Y.

X×YX\times Y هەموو جووتێکی گونجاو لەخۆ دەگرێت. زۆربەی کات تەنها هەندێک لە جووتەکان گرنگن بۆمان. هەر X×YX\times Y پێی دەوترێت لە Xـەوە بۆ Y. دەڵێت کام X بە کام Yـەوە بەستراوە.

Definitionپێناسە

Any of a X×YX\times Y: a set of ordered pairs that links some elements of X with some elements of Y.

هەر X×YX\times Y: کۆمەڵەیەک لە جووتە ڕێکخراو کە هەندێک ئەندامی X بە هەندێک ئەندامی Yـەوە دەبەستێتەوە.

Example: let X={1,2,3}X=\{1,2,3\} and Y={1,2,3,4}Y=\{1,2,3,4\}. The relation "x is less than y" keeps only the pairs with x<yx<y: R={(1,2),(1,3),(1,4),(2,3),(2,4),(3,4)}R=\{(1,2),(1,3),(1,4),(2,3),(2,4),(3,4)\}. That is 6 of the 12 pairs of X×YX\times Y.

نموونە: با X={1,2,3}X=\{1,2,3\} و Y={1,2,3,4}Y=\{1,2,3,4\} بن. «x لە y بچووکترە» تەنها ئەو جووتانە دەهێڵێتەوە کە x<yx<y: R={(1,2),(1,3),(1,4),(2,3),(2,4),(3,4)}R=\{(1,2),(1,3),(1,4),(2,3),(2,4),(3,4)\}. ئەمە 6 جووتە لە ⁦12⁩ جووتەکەی X×YX\times Y.

Quick checkپشکنینی خێراWhich set is a relation from X={1,2}X=\{1,2\} to Y={a,b}Y=\{a,b\}?کام لە X={1,2}X=\{1,2\}ـەوە بۆ Y={a,b}Y=\{a,b\}؟

The definition of a functionپێناسەی نەخشە

A function is a relation with one strict rule. Let X and Y be two non-empty sets. A subset f of X×YX\times Y is called a function from X to Y when every x in X appears in exactly one pair (x,y)(x,y) of f. That partner y is written f(x)f(x).

بە یەک یاسای توند. با X و Y دوو نابەتاڵ بن. f لە X×YX\times Y پێی دەوترێت لە Xـەوە بۆ Y ئەگەر هەر xـێکی X تەنها لە یەک جووتی (x,y)(x,y)ی fـدا دەربکەوێت. ئەو هاوبەشە y بە f(x)f(x) دەنووسرێت.

∀x∈X  ∃! y∈Y: (x,y)∈f\forall x\in X\ \ \exists!\,y\in Y:\ (x,y)\in f

Read: for every x in X there exists exactly one y in Y such that (x,y)(x,y) is in f; we write this y as y=f(x)y=f(x). The symbol ∀\forall means "for every" and ∃!\exists! means "there is exactly one".

دەخوێنرێتەوە: بۆ هەر xـێک لە X تەنها یەک y لە Y هەیە کە (x,y)(x,y) لە fـدا بێت؛ ئەم y بە y=f(x)y=f(x) دەنووسین. هێمای ∀\forall واتە «بۆ هەر» و ∃!\exists! واتە «تەنها یەک دانە هەیە».

Three arrow diagrams from X = {1, 2, 3} to Y = {a, b, c}. f: 1→a, 2→b, 3→b, marked as a function. g: 1→a and 1→c (in orange), 2→b, 3→c, marked not a function because 1 has two arrows. h: 1→a, 2→b and nothing from 3, marked not a function on X because 3 has no arrow.سێ هێڵکاریی تیر لە X = {1, 2, 3}ـەوە بۆ Y = {a, b, c}. f: 1→a، 2→b، 3→b، وەک نەخشە نیشان کراوە. g: 1→a و 1→c (بە پرتەقاڵی)، 2→b، 3→c، نەخشە نییە چونکە 1 دوو تیری هەیە. h: 1→a، 2→b و هیچ تیرێک لە 3ـەوە نییە، لەسەر X نەخشە نییە چونکە 3 تیری نییە.
In an arrow diagram of a function, every x sends out exactly one arrow.لە هێڵکاریی تیری ، هەر x تەنها یەک تیر دەنێرێت.CêIT

Look at f again: 2 and 3 both point to b, and nothing points to c. Both are allowed. The definition only talks about the elements of X: each must send out one arrow, never zero and never two.

دیسان سەیری f بکە: 2 و 3 هەردووکیان ئاماژە بۆ b دەکەن و هیچ تیرێک ناچێتە c. هەردووکیان ڕێگەپێدراون. پێناسەکە تەنها باسی X دەکات: هەر یەکەیان دەبێت یەک تیر بنێرێت، نە سفر و نە دوو.

Quick checkپشکنینی خێراWhich relation from X={1,2,3}X=\{1,2,3\} to Y={a,b,c}Y=\{a,b,c\} is a function?کام لە X={1,2,3}X=\{1,2,3\}ـەوە بۆ Y={a,b,c}Y=\{a,b,c\} ؟

Relations and Functions | AlgebraThe Organic Chemistry Tutor · Englishئینگلیزی · 1.8M viewsبینین · 30K likesلایک · Partبەشی 0:00–4:17 (ofلە 12:27)

A relation is a set of ordered pairs; it is a function when no input has two different outputs. Many quick examples.

واتە لە ؛ کاتێک دەبێتە کە هیچ دوو جیاوازی نەبێت. بە چەندین نموونەی خێرا.

Plays 0:00–4:17: relations as sets of pairs, then how to tell if a relation is a function; ends before the website plug.

لە ⁦0:00⁩ تا ⁦4:17⁩ پەخش دەبێت: وەک جووتەکان، پاشان چۆن دەزانیت یان نا؛ پێش ڕیکلامی خۆی کۆتایی دێت.

The definition of a functionپێناسەی نەخشە

Notation and other namesشێوەی نووسین و ناوەکانی تر

We write a function from X to Y in either of these ways, and read it "f maps X into Y" or "f is a function from X to Y":

لە Xـەوە بۆ Y بەم دوو شێوەیە دەنووسین و دەیخوێنینەوە «f، X دەبات بۆ ناو Y» یان «f لە Xـەوە بۆ Y»:

f:X→YX→  f  Yf: X\to Y\qquad\qquad X\xrightarrow{\;f\;}Y

Books also use other names for a function: mapping, transformation and operator. They all mean the same idea: every element of X is sent to one element of Y. (In programming, "operator" usually means a symbol such as + or <, so in a computing text read it carefully.)

کتێبەکان ناوی تریش بۆ بەکار دەهێنن: mapping، transformation و operator. هەموویان هەمان بیرۆکەیان هەیە: هەر X دەنێردرێت بۆ یەک Y. (لە زۆرجار واتای هێمایەکی وەک + یان < دەدات، بۆیە لە دەقێکی کۆمپیوتەریدا بە وردی بیخوێنەرەوە.)

The definition of a functionپێناسەی نەخشە

The two conditionsدوو مەرجەکە

From the definition, a relation f from X to Y is a function if and only if both conditions hold:

لە پێناسەکەوە، f لە Xـەوە بۆ Y ئەگەر و تەنها ئەگەر هەردوو مەرجەکە ڕاست بن:

  1. Existence: for each x∈Xx\in X there is a y∈Yy\in Y with (x,y)∈f(x,y)\in f.
  2. Uniqueness: for all x1,x2∈Xx_1,x_2\in X, if x1=x2x_1=x_2 then f(x1)=f(x2)f(x_1)=f(x_2).
  1. بوون: بۆ هەر x∈Xx\in X y∈Yy\in Yـێک هەیە کە (x,y)∈f(x,y)\in f.
  2. تاقانەیی: بۆ هەموو x1,x2∈Xx_1,x_2\in X، ئەگەر x1=x2x_1=x_2 ئەوا f(x1)=f(x2)f(x_1)=f(x_2).

Condition 1 makes sure that f gives some y to every x: no input is left without an output (h in the picture fails here). Condition 2 makes sure that this y is unique: the same input can never give two different outputs (g fails here). With pairs, condition 2 says: if (x,y1)∈f(x,y_1)\in f and (x,y2)∈f(x,y_2)\in f, then y1=y2y_1=y_2.

مەرجی 1 دڵنیا دەبێتەوە کە f بە هەر x yـێک دەدات: هیچ بێ نامێنێتەوە (hـی ناو وێنەکە لێرەدا شکست دەهێنێت). مەرجی 2 دڵنیا دەبێتەوە کە ئەو y تاقانەیە: هەمان هەرگیز دوو جیاواز نادات (g لێرەدا شکست دەهێنێت). بە زمانی جووتەکان، مەرجی 2 دەڵێت: ئەگەر (x,y1)∈f(x,y_1)\in f و (x,y2)∈f(x,y_2)\in f، ئەوا y1=y2y_1=y_2.

Quick checkپشکنینی خێراIn the picture, g sends 1 to both a and c. Which condition does g break?لە وێنەکەدا g، 1 دەنێرێت بۆ هەردوو a و ⁦c. g⁩ کام مەرج دەشکێنێت؟

The definition of a functionپێناسەی نەخشە

Checking a list of pairsپشکنینی لیستێک لە جووت

Checking a relation given as a list of pairsپشکنینی پەیوەندییەک کە وەک لیستێکی جووت دراوە
  1. List the first entriesیەکەم بەشەکان بنووسە

    Write down the first entry of every pair.

    یەکەم بەشی هەموو جووتەکان بنووسە.

  2. Check condition 1مەرجی 1 بپشکنە

    Is every element of X in that list? If one is missing, f is not a function on X.

    ئایا هەموو X لەو لیستەدایە؟ ئەگەر یەکێکیان نەبێت، f لەسەر X نییە.

  3. Check condition 2مەرجی 2 بپشکنە

    Does some first entry appear twice with different second entries? If yes, f is not a function.

    ئایا یەکەم بەشێک دوو جار لەگەڵ دووەم بەشی جیاواز دەردەکەوێت؟ ئەگەر بەڵێ، f نییە.

Quick checkپشکنینی خێراLet X={0,1,4}X=\{0,1,4\}. Is {(0,0),(1,1),(4,2),(4,−2)}\{(0,0),(1,1),(4,2),(4,-2)\} a function on X?با X={0,1,4}X=\{0,1,4\} بێت. ئایا {(0,0),(1,1),(4,2),(4,−2)}\{(0,0),(1,1),(4,2),(4,-2)\} لەسەر X ؟

Independent and dependent variablesگۆڕاوی سەربەخۆ و گۆڕاوی گرێدراو

In y=f(x)y=f(x) the letter x is the independent variable: we choose it freely from X. The letter y is the dependent variable: its value depends on the x we chose. Read f(x)f(x) as "f of x". It means the output of f at x, not "f times x".

لە y=f(x)y=f(x)ـدا پیتی x : بە ئازادی لە Xـەوە هەڵیدەبژێرین. پیتی y : بەهاکەی بەندە بەو xـەی هەڵمانبژاردووە. f(x)f(x) دەخوێنرێتەوە «fـی x». واتاکەی f لە xـدایە، نەک «f جارانی x».

Example: for f(x)=x2+1f(x)=x^2+1 we get f(2)=5f(2)=5, f(−2)=5f(-2)=5 and f(0)=1f(0)=1. The value of x decides the value of y. In everyday formulas it is the same: in the area of a circle, A=πr2A=\pi r^2, the radius r is independent and the area A depends on it.

نموونە: بۆ f(x)=x2+1f(x)=x^2+1 دەبێت f(2)=5f(2)=5، f(−2)=5f(-2)=5 و f(0)=1f(0)=1. بەهای x بەهای y دیاری دەکات. لە فۆرمولە ڕۆژانەییەکانیشدا هەروایە: لە ڕووبەری بازنەدا، A=πr2A=\pi r^2، نیوەتیرەی r سەربەخۆیە و ڕووبەری A پێیەوە بەندە.

Quick checkپشکنینی خێراThe cost of a taxi ride depends on the distance travelled. Which is the dependent variable?کرێی تەکسی بەندە بەو دوورییەی دەیبڕێت. کامیان ؟

Plotting pairs in the coordinate planeدانانی جووتەکان لەسەر ڕووتەختی پۆتان

Pairs of real numbers can be drawn as points. Take two number lines that cross at right angles at 0: the horizontal x-axis and the vertical y-axis. They form the coordinate plane, and the crossing point (0,0)(0,0) is the origin.

جووتی دەکرێت وەک خاڵ بکێشرێن. دوو وەربگرە کە لە سفردا بە گۆشەی وەستاو یەکتر دەبڕن: x ئاسۆییە و y ستوونییە. ئەم دووانە پێک دەهێنن و خاڵی یەکتربڕینەکەیان، (0,0)(0,0)، .

To plot (a,b)(a,b), start at the origin, move a units along the x-axis (right if a is positive, left if negative), then b units parallel to the y-axis (up if positive, down if negative). The numbers a and b are the coordinates of the point.

بۆ دانانی (a,b)(a,b)، لە دەست پێبکە، a یەکە بە درێژایی x بڕۆ (ئەگەر a موجەب بێت بۆ ڕاست، ئەگەر سالب بێت بۆ چەپ)، پاشان b یەکە بە ئاڕاستەی y (ئەگەر موجەب بێت بۆ سەرەوە، ئەگەر سالب بێت بۆ خوارەوە). ژمارەکانی a و b خاڵەکەن.

The graph of a function f is the set of all its points (x,f(x))(x,f(x)). For f(x)=x2f(x)=x^2 on {−2,−1,0,1,2}\{-2,-1,0,1,2\} the graph is five points:

f بریتییە لە هەموو خاڵەکانی (x,f(x))(x,f(x)). بۆ f(x)=x2f(x)=x^2 لەسەر {−2,−1,0,1,2}\{-2,-1,0,1,2\} هێڵکارییەکە پێنج خاڵە:

A coordinate plane with the x-axis, the y-axis and the origin marked. Five dots: (−2, 4), (−1, 1), (0, 0), (1, 1) and (2, 4), with a faint dashed parabola through them. Dashed orange guides show how to reach (2, 4): 2 to the right, then 4 up.ڕووتەختی پۆتان کە تەوەرەی x، تەوەرەی y و خاڵی بنەڕەتی لەسەر نیشان کراوە. پێنج خاڵ: (−2, 4)، (−1, 1)، (0, 0)، (1, 1) و (2, 4)، لەگەڵ بڕگەیەکی هاوتای کاڵی پچڕپچڕ کە بەناویاندا دەڕوات. هێڵی پچڕپچڕی پرتەقاڵی ڕێگای گەیشتن بە (2, 4) پیشان دەدەن: 2 بۆ ڕاست، پاشان 4 بۆ سەرەوە.
The points (x,x2)(x,x^2) for x=−2,…,2x=-2,\dots,2. With x running through all real numbers they would fill the dashed curve.خاڵەکانی (x,x2)(x,x^2) بۆ x=−2,…,2x=-2,\dots,2. ئەگەر x بە هەموو بڕوات، خاڵەکان چەماوە پچڕپچڕەکە پڕ دەکەنەوە.CêIT
Quick checkپشکنینی خێراWhere is the point (−3,2)(-3,2)?خاڵی (−3,2)(-3,2) لە کوێیە؟

The vertical line testتاقیکردنەوەی هێڵی ستوونی

How can you see from a picture whether a curve is the graph of a function? Use the vertical line test: a curve is the graph of a function exactly when no vertical line meets it more than once.

چۆن لە وێنەیەکەوە دەزانیت ئایا چەماوەیەک یان نا؟ بەکار بهێنە: چەماوەیەک تەنها کاتێک کە هیچ هێڵێکی ستوونی زیاتر لە جارێک نەیبڕێت.

Animation. Left: the circle x² + y² = 4. A dashed vertical line moves across it and always meets it in two points; the label says 2 points, not a function. Right: the parabola y = x²/2. The vertical line moves across it and meets it in one point each time; the label says 1 point, a function.
Animation. Left: the circle x² + y² = 4. A dashed vertical line moves across it and always meets it in two points; the label says 2 points, not a function. Right: the parabola y = x²/2. The vertical line moves across it and meets it in one point each time; the label says 1 point, a function.
A vertical line sweeps across a circle (two hits: not a function) and a parabola (one hit: a function).هێڵێکی ستوونی بەسەر بازنەیەک (دوو جار دەیبڕێت: نییە) و (یەک جار: ) دەڕوات.CêIT

Why it works: every point on a vertical line has the same x. If the line meets the curve twice, then one x has two different y values, which breaks condition 2. On the circle x2+y2=4x^2+y^2=4, for example, x=1.2x=1.2 gives both y=1.6y=1.6 and y=−1.6y=-1.6. On the parabola y=x22y=\frac{x^2}{2} every x gives one y.

بۆچی کار دەکات: هەموو خاڵەکانی سەر هێڵێکی ستوونی هەمان xـیان هەیە. ئەگەر هێڵەکە دوو جار چەماوەکە ببڕێت، ئەوا یەک x دوو بەهای جیاوازی yـی هەیە و ئەمەش مەرجی 2 دەشکێنێت. بۆ نموونە لەسەر بازنەی x2+y2=4x^2+y^2=4، x=1.2x=1.2 هەم y=1.6y=1.6 و هەم y=−1.6y=-1.6 دەدات. لەسەر y=x22y=\frac{x^2}{2} هەر x یەک y دەدات.

Quick checkپشکنینی خێراWhich graph fails the vertical line test?کام هێڵکاری لە شکست دەهێنێت؟

Using the Vertical Line Test (Precalculus - College Algebra 6)Professor Leonard · Englishئینگلیزی · 105K viewsبینین · 3K likesلایک

Shows how the vertical line test works and, importantly, why: a vertical line meeting a graph twice means one x with two y-values.

چۆن کار دەکات و گرنگتر بۆچی: هێڵێکی ستوونی کە دوو جار بەر بکەوێت، واتە یەک x دوو نرخی yـی هەیە.

Whole video (11:51), mostly on why the test works.

هەموو ڤیدیۆکە ⁦(11:51)⁩، زۆربەی باس لەوە دەکات کە بۆچی ئەم تاقیکردنەوەیە کار دەکات.

Functions in mathematics and in programsنەخشە لە بیرکاری و کردار لە بەرنامەسازیدا

In programming the word function means a named block of code that you call to do a job (see Defining and calling functions in the Python track of Fundamentals of Programming, or What is a function? in the web programming course). A program function can do things a mathematical function never does: print text, read the keyboard, use a random number or the clock. Then the same input can give a different result each time, or the function gives back nothing useful at all (two kinds of functions).

لە وشەی واتای بلۆکێکی ناونراوی کۆد دەدات کە بانگی دەکەیت بۆ ئەنجامدانی کارێک (بڕوانە ناساندن و بانگکردنی کردارەکان لە بەشی Pythonـی خولی بنەماکانی ، یان کردار چییە؟ لە خولی وێب). لە دەتوانێت کارێک بکات کە هەرگیز نایکات: دەق چاپ بکات، لە تەختەکلیلەوە بخوێنێتەوە، یان کاتژمێر بەکار بهێنێت. ئەو کاتە هەمان دەکرێت هەر جارەی ئەنجامێکی جیاواز بدات، یان هیچ شتێکی بەسوود نەگەڕێنێتەوە (دوو جۆری کردار).

A mathematical function is only its set of pairs: the same input always gives the same output, today, tomorrow and on every computer. In Kurdish this course keeps the two ideas apart: for the mathematical function and for the programming one.

لە بیرکاریدا تەنها جووتەکانیەتی: هەمان هەمیشە هەمان دەدات، ئەمڕۆ، سبەینێ و لەسەر هەموو کۆمپیوتەرێک. ئەم خولە لە کوردیدا دوو بیرۆکەکە لێک جیا دەکاتەوە: «» بۆ بیرکاری و «» بۆ .

Quick checkپشکنینی خێراWhich rule is a function in the mathematical sense?کام یاسا بە واتای بیرکاری ؟

Common mistakesهەڵە باوەکان

MistakeهەڵەWhat is trueڕاستییەکە
"Two different x's may not share a y."«دوو xـی جیاواز نابێت هەمان yـیان هەبێت.»They may: in f, both 2 and 3 go to b. Only one x with two y's is forbidden.دەکرێت: لە fـدا 2 و 3 هەردووکیان دەچن بۆ b. تەنها یەک x بە دوو y قەدەغەیە.
"(2,5)(2,5) and (5,2)(5,2) are the same pair."«(2,5)(2,5) و (5,2)(5,2) هەمان جووتن.»In an ordered pair the order counts, so they are different.لە ڕیزبەندی گرنگە، بۆیە جیاوازن.
"X×Y=Y×XX\times Y=Y\times X."«X×YX\times Y هەمان Y×XY\times Xـە.»Every pair is reversed; the two products are equal only when X=YX=Y or one of the sets is empty.هەموو جووتەکان پێچەوانە دەبنەوە؛ دوو لێکدانەکە تەنها کاتێک یەکسانن کە X=YX=Y یان یەکێک لە بەتاڵ بێت.
"Every element of Y must receive an arrow."«دەبێت تیر بگاتە هەموو Y.»No. Only the elements of X must send arrows. The outputs that are really used form the range (next lesson).نەخێر. تەنها X دەبێت تیر بنێرن. کە بە ڕاستی بەکار دێن پێک دەهێنن (وانەی داهاتوو).
"f(x)f(x) means f times x."«f(x)f(x) واتە f جارانی x.»f(x)f(x) is the output of f at x.f(x)f(x) fـە لە xـدا.
"A horizontal line decides whether a graph is a function."«هێڵی ئاسۆیی بڕیار دەدات کە هێڵکارییەک یان نا.»Use a vertical line for that. The horizontal line test checks something else: whether the function is one-to-one.بۆ ئەوە هێڵی ستوونی بەکار بهێنە. شتێکی تر دەپشکنێت: ئایا .
Quick checkپشکنینی خێراWhich statement about a function f:X→Yf:X\to Y is true?کام ڕستە دەربارەی f:X→Yf:X\to Y ڕاستە؟

Exercisesڕاهێنانەکان

ExerciseڕاهێنانExercise 1: a Cartesian productڕاهێنانی 1: لێکدانی دیکارتی

Let A={0,1}A=\{0,1\} and B={2,3,4}B=\{2,3,4\}. Write A×BA\times B. How many pairs does it have? Is (2,0)(2,0) an element of A×BA\times B?

با A={0,1}A=\{0,1\} و B={2,3,4}B=\{2,3,4\} بن. A×BA\times B بنووسە. چەند جووتی تێدایە؟ ئایا (2,0)(2,0) A×BA\times Bـە؟

Show answerوەڵامەکە پیشان بدە
A×B={(0,2),(0,3),(0,4),(1,2),(1,3),(1,4)}A\times B=\{(0,2),(0,3),(0,4),(1,2),(1,3),(1,4)\}

It has 2⋅3=62\cdot3=6 pairs. (2,0)(2,0) is not in A×BA\times B: its first entry 2 is not in A. It belongs to B×AB\times A.

2⋅3=62\cdot3=6 جووتی تێدایە. (2,0)(2,0) لە A×BA\times Bـدا نییە: یەکەم بەشی، 2، لە Aـدا نییە. سەر بە B×AB\times Aـە.

ExerciseڕاهێنانExercise 2: function or not?ڕاهێنانی 2: نەخشە یان نا؟

Let X={1,2,3}X=\{1,2,3\} and Y={4,5,6}Y=\{4,5,6\}. Which relations are functions from X to Y? (a) {(1,5),(2,5),(3,5)}\{(1,5),(2,5),(3,5)\} (b) {(1,4),(2,6)}\{(1,4),(2,6)\} (c) {(1,4),(2,5),(2,6),(3,4)}\{(1,4),(2,5),(2,6),(3,4)\}

با X={1,2,3}X=\{1,2,3\} و Y={4,5,6}Y=\{4,5,6\} بن. کام لە Xـەوە بۆ Y؟ (أ) {(1,5),(2,5),(3,5)}\{(1,5),(2,5),(3,5)\} (ب) {(1,4),(2,6)}\{(1,4),(2,6)\} (ج) {(1,4),(2,5),(2,6),(3,4)}\{(1,4),(2,5),(2,6),(3,4)\}

Show answerوەڵامەکە پیشان بدە
  • (a) Yes. Every x has exactly one partner; they all share 5. (A rule like this, with one output for everything, is a constant function.)
  • (b) No. 3 has no partner, so condition 1 fails.
  • (c) No. 2 is paired with 5 and with 6, so condition 2 fails.
  • (أ) بەڵێ. هەر x تەنها یەک هاوبەشی هەیە؛ هەموویان 5 بەش دەکەن. (یاسایەکی وا کە بۆ هەموو شتێک یەک دەدات .)
  • (ب) نەخێر. 3 هاوبەشی نییە، بۆیە مەرجی 1 شکست دەهێنێت.
  • (ج) نەخێر. 2 هەم لەگەڵ 5 و هەم لەگەڵ 6 جووت کراوە، بۆیە مەرجی 2 شکست دەهێنێت.
ExerciseڕاهێنانExercise 3: values and pointsڕاهێنانی 3: بەهاکان و خاڵەکان

Let f(x)=3−x2f(x)=3-x^2. Find f(0)f(0), f(1)f(1), f(−1)f(-1) and f(2)f(2), write the four points (x,f(x))(x,f(x)) and plot them.

با f(x)=3−x2f(x)=3-x^2 بێت. f(0)f(0)، f(1)f(1)، f(−1)f(-1) و f(2)f(2) بدۆزەرەوە، چوار خاڵەکەی (x,f(x))(x,f(x)) بنووسە و لەسەر دایانبنێ.

Show answerوەڵامەکە پیشان بدە
f(0)=3−0=3f(1)=3−1=2f(−1)=3−1=2f(2)=3−4=−1\begin{aligned}f(0)&=3-0=3\\ f(1)&=3-1=2\\ f(-1)&=3-1=2\\ f(2)&=3-4=-1\end{aligned}

The points are (0,3)(0,3), (1,2)(1,2), (−1,2)(-1,2) and (2,−1)(2,-1). Note that 11 and −1-1 share the output 2, which is allowed. The point (2,−1)(2,-1) is 2 to the right and 1 down.

خاڵەکان (0,3)(0,3)، (1,2)(1,2)، (−1,2)(-1,2) و (2,−1)(2,-1)ن. تێبینی بکە کە 11 و −1-1 هەمان 2 بەش دەکەن و ئەمە ڕێگەپێدراوە. خاڵی (2,−1)(2,-1) 2 یەکە بۆ ڕاست و 1 یەکە بۆ خوارەوەیە.

ExerciseڕاهێنانExercise 4: the vertical line testڕاهێنانی 4: تاقیکردنەوەی هێڵی ستوونی

Which of these curves are graphs of functions of x? (a) y=∣x∣y=|x| (b) x=y2x=y^2 (c) y=5y=5 (d) x=2x=2

کام لەم چەماوانە xن؟ (أ) y=∣x∣y=|x| (ب) x=y2x=y^2 (ج) y=5y=5 (د) x=2x=2

Show answerوەڵامەکە پیشان بدە
  • (a) Yes. Every x has one absolute value.
  • (b) No. The vertical line x=4x=4 meets it at (4,2)(4,2) and (4,−2)(4,-2).
  • (c) Yes. A horizontal line: every x has the single output 5 (a constant function).
  • (d) No. It is a vertical line, so the vertical line x=2x=2 meets it in infinitely many points: one x with every y.
  • (أ) بەڵێ. هەر x تەنها یەک هەیە.
  • (ب) نەخێر. هێڵی ستوونیی x=4x=4 لە (4,2)(4,2) و (4,−2)(4,-2)ـدا دەیبڕێت.
  • (ج) بەڵێ. هێڵێکی ئاسۆییە: هەر x تەنها 5 دەدات ().
  • (د) نەخێر. خۆی هێڵێکی ستوونییە، بۆیە هێڵی ستوونیی x=2x=2 لە ژمارەیەکی بێکۆتا خاڵدا دەیبڕێت: یەک x لەگەڵ هەموو yـێک.
ExerciseڕاهێنانChallenge: counting functionsڕاهێنانی ئاڵنگار: ژماردنی نەخشەکان

How many different functions are there from X={1,2,3}X=\{1,2,3\} to Y={a,b}Y=\{a,b\}?

چەند جیاواز لە X={1,2,3}X=\{1,2,3\}ـەوە بۆ Y={a,b}Y=\{a,b\} هەیە؟

Hintئاماژە

Each of 1, 2 and 3 must choose one partner.

هەر یەک لە 1، 2 و 3 دەبێت یەک هاوبەش هەڵبژێرێت.

Show answerوەڵامەکە پیشان بدە

A function chooses one output for each input. The input 1 has 2 choices (a or b), so do 2 and 3, and the choices are independent: 2⋅2⋅2=23=82\cdot2\cdot2=2^3=8 functions. In general there are ∣Y∣∣X∣|Y|^{|X|} functions from X to Y. (Compare: a relation may be any subset of the 6 pairs, so there are 26=642^6=64 relations.)

بۆ هەر یەک هەڵدەبژێرێت. 1 دوو هەڵبژاردەی هەیە (a یان b)، 2 و 3ـیش هەروا و هەڵبژاردنەکان سەربەخۆن: 2⋅2⋅2=23=82\cdot2\cdot2=2^3=8 . بە گشتی ∣Y∣∣X∣|Y|^{|X|} لە Xـەوە بۆ Y هەیە. (بەراوردی بکە: دەکرێت هەر 6 جووتەکە بێت، بۆیە 26=642^6=64 هەیە.)

Summaryکورتە

  • An ordered pair (x,y)(x,y) has a fixed order. The Cartesian product X×YX\times Y is the set of all pairs with x from X and y from Y.
  • A relation from X to Y is any subset of X×YX\times Y.
  • A function f:X→Yf:X\to Y is a relation in which every x in X has exactly one partner y=f(x)y=f(x) (existence and uniqueness). Other names: mapping, transformation, operator.
  • x is the independent variable, y the dependent variable.
  • The graph of f is the set of points (x,f(x))(x,f(x)) in the coordinate plane; a curve is a graph of a function when no vertical line meets it twice.
  • A mathematical function always gives the same output for the same input; a programming function may not.
  • (x,y)(x,y) ڕیزبەندییەکی جێگیری هەیە. X×YX\times Y هەموو ئەو جووتانەیە کە x لە X و y لە Yـەوەیە.
  • لە Xـەوە بۆ Y هەر X×YX\times Yـە.
  • f:X→Yf:X\to Y کە تێیدا هەر xـێکی X تەنها یەک هاوبەشی هەیە، y=f(x)y=f(x) (بوون و تاقانەیی). ناوەکانی تر: mapping، transformation، operator.
  • x و y .
  • f خاڵەکانی (x,f(x))(x,f(x))ـە لەسەر ؛ چەماوەیەک کاتێک هیچ هێڵێکی ستوونی دوو جار نەیبڕێت.
  • لە بیرکاریدا بۆ هەمان هەمیشە هەمان دەدات؛ لە لەوانەیە وا نەبێت.
Review questionsپرسیارەکانی پێداچوونەوە
Is every relation a function?ئایا هەموو پەیوەندییەک نەخشەیەکە؟

No. A relation becomes a function only if every x in X has exactly one partner in Y.

نەخێر. تەنها کاتێک دەبێتە کە هەر xـێکی X تەنها یەک هاوبەشی لە Yـدا هەبێت.

May two inputs have the same output?ئایا دەکرێت دوو نێوخستە هەمان دەرخستەیان هەبێت؟

Yes. For example f(x)=x2f(x)=x^2 gives f(−2)=f(2)=4f(-2)=f(2)=4. What is not allowed is one input with two outputs.

بەڵێ. بۆ نموونە f(x)=x2f(x)=x^2 دەدات f(−2)=f(2)=4f(-2)=f(2)=4. ئەوەی ڕێگەپێنەدراوە یەک بە دوو .

Why does a vertical line test a graph?بۆچی هێڵی ستوونی هێڵکارییەک تاقی دەکاتەوە؟

All points on a vertical line share one x. Two hits would mean one x with two y values.

هەموو خاڵەکانی سەر هێڵێکی ستوونی یەک xـیان هەیە. دوو یەکتربڕین واتە یەک x بە دوو بەهای y.

Videoڤیدیۆ

Watch a videoسەیری ڤیدیۆیەک بکە

A video that viewers liked a lot and praised in their comments, chosen for this lesson.ڤیدیۆیەک کە بینەران زۆریان پێ خۆش بووە و لە کۆمێنتەکانیاندا ستایشیان کردووە، بۆ ئەم وانەیە هەڵبژێردراوە.

Algebra Basics: What Are Functions? - Math Anticsmathantics · Englishئینگلیزی · 4.1M viewsبینین · 63K likesلایک

Explains a function as a rule that gives each input exactly one output, with function notation, graphs and graphs that are not functions.

وەک یاسایەک ڕوون دەکاتەوە کە بە هەر ڕێک یەک دەدات، لەگەڵ نووسینی f(x)f(x)، و ئەو نین.

Whole lesson in one calm video: inputs and outputs, one output per input, graphs, non-function graphs, f(x) notation.

هەموو وانەکە لە یەک ڤیدیۆی ئارامدا: و ، یەک بۆ هەر ، ، ئەو نین، نووسینی f(x)f(x).

Lesson complete!وانەکە تەواو بوو!

Well done. Review the key terms, then go on to the next lesson.دەستخۆش. سەیرێکی زاراوە سەرەکییەکان بکەرەوە، پاشان بڕۆ بۆ وانەی داهاتوو.

Key termsزاراوە سەرەکییەکان

Next lessonوانەی داهاتوو

Domain, Range and Imageبوار، مەودا و وێنە

References and further readingسەرچاوەکان و خوێندنەوەی زیاتر

This lecture is a first edition. The Kurdish text and terminology are waiting for review by Kurdish IT teachers.ئەم وانەیە چاپی یەکەمە. دەقە کوردییەکە و زاراوەکانی چاوەڕێی پێداچوونەوەی مامۆستایانی کوردی بواری IT ن.