• Sonuç bulunamadı

Example Functions

N/A
N/A
Protected

Academic year: 2021

Share "Example Functions"

Copied!
16
0
0

Yükleniyor.... (view fulltext now)

Tam metin

(1)

Functions

Example

The area A of a circle depends on its radius r . The rule is A = πr2

We say that A is afunction of r .

area A = πr2 radius r r A 0 1 cm 2 cm 3 cm 10 cm2 20 cm2 30 cm2

(2)

Functions

Afunction f from D to E is a rule that assigns to each element

x in a set D exactly one element, called f (x ), in a set E . Visualizing functions asarrow diagrams:

D a b z E a b d c f This example I domain D ={ a, b, z } I E ={ a, b, c, d } I f (a) = a I f (b) = a I f (z) = d I range ={ a, d } Terminology: I f (x ) is the value of f at x

I domain of f is the set D

(3)

Functions as Machines

A function as amachine:

x in D f f (x ) in E

(input) (output)

I domain = set of all possible inputs

I range = set of all possible outputs

Example

Square f (x ) = x2:

I domain = R

I range ={x | x ≥ 0} = [0, ∞)

Square root f (x ) =√x (over real numbers):

I domain ={x | x ≥ 0} = [0, ∞)

(4)

Visualizing Functions as Graphs

Thegraph of a function f is the set of pairs { (x, f (x)) | x ∈ D } I set of all points (x , y ) in the coordinate plane

such that y = f (x ) and x is in the domain

x y 0 1 2 1 2 f (1) f (x ) x • (x , f (x )) x y • • • • • • range domain

(5)

Functions: Examples

x y 0 1 2 3 4 1 2 3 4 What is f (3)? I f (3) = 4

What is the domain and range of this function?

I domain ={x | 1 ≤ x ≤ 4} = [1, 4]

(6)

Functions: Examples

What is the domain and range of f (x ) =√x + 2?

I domain ={x | x ≥ −2} = [−2, ∞)

I range ={y | y ≥ 0} = [0, ∞)

What is the domain of g(x ) = x21−x?

g(x ) = 1 x2x =

1 x (x − 1)

Thus g(x ) isnot defined if x = 0 or x = 1. The domain is

{x | x 6= 0, x 6= 1} which can also be written as

(7)

Vertical Line Test

When does a curve represent a function?

Vertical Line Test

A curve in the xy -plane represents a function of x if and only if no vertical line intersects the curve more than once.

x y 0 a corresponds to a function of x x y 0 a

(8)

Representations of Functions

Functions can be represented in four ways:

I verbally (a description in words)

Example: A(r ) is the area of a circle with radius r .

I numerically (a table of values)

r 1 2 3 A(r ) 3.14159 12.56637 28.27433 I visually (a graph) r A(r ) 0 1 2 10 20

I algebraically (an explicit formula) A(r ) = πr2

(9)

Piecewise Defined Functions

Apiecewise defined function is defined by different formulas in

parts of its domain.

f (x ) =  1 − x if x ≤ −1 x2 if x > −1 x y 0 -1 1 1

point belongs to the graph point is not in the graph

(10)

Piecewise Defined Functions: Example

Theabsolute value function f (x ) =|x| is piecewise defined:

|x| =  x if x ≥ 0 −x if x < 0 x y 0 -1 1 1

(11)

Piecewise Defined Functions: Example

x y 0 1 2 3 4 1 2

Find a formula for the function f with the graph above.

f (x ) =      1 − x if 0 ≤ x ≤ 1 x − 1 if 1 < x ≤ 3 2 if x > 3

(12)

Symmetry

A function f is called

I even if f (−x ) = f (x ) for every x in its domain, and I odd if f (−x ) = −f (x ) for every x in its domain.

x y 0 (x , f (x )) (−x , f (x )) an even function x y 0 (x , f (x )) (−x , −f (x )) an odd function

I even functions are mirrored around the y -axis

I odd functions are mirrored around the y -axis and x -axis (or mirrored through the point (0, 0))

(13)

Symmetry

How to remember what is even and odd?

x2 x y 0 -1 1 -1 1 x4 x y 0 -1 1 -1 1 x3 x y 0 -1 1 -1 1 x5 x y 0 -1 1 -1 1

Thick ofpower functions xn with n a natural number:

I xnis even if n is even

(14)

Symmetry

Which of the following functions is even?

1. f (x ) = x5+x 2. g(x ) = 1 − x4 3. h(x ) = 2x − x2 We have: 1. f (−x ) = (−x )5+ (−x ) = − x5−x = − (x5+x ) = − f (x ) Thus f is odd. 2. g(−x ) = 1 − (−x )4=1 − x4=g(x ) Thus g is even. 3. h(−x ) = 2(−x ) − (−x )2= −2x − x2 Thus h is neither even nor odd. Note that:

I The sum of even functions is even (e.g. 1 + x4). I The sum of odd functions is odd (e.g. x5+x ).

(15)

Increasing and Decreasing Functions

A function f isincreasing on an interval I if

f (x1) <f (x2) whenever x1<x2and x1,x2∈ I

The function isdecreasing on an interval I if

f (x1) >f (x2) whenever x1<x2and x1,x2∈ I x y 0 1 2 3 4 5 6 1 2

3 This function is:

I increasing on [0, 3]

I decreasing on [3, 4]

(16)

Increasing and Decreasing Functions

x y 0 -2 -1 1 2 1 2 3

The function f (x ) = x2is:

I increasing on [0,∞)

Referanslar

Benzer Belgeler

Definition: A convex fuzzy set is described by a membership function where membership values are strictly monotonically increasing, monotonically decreasing or first monotonically

We investigate generalized gamma function, digamma function, the generalized incomplete gamma function, extended beta function.. Also, some properties of these

Konut piyasası, yatırım amacı güden tasarruf sahipleri için gayrimenkul piyasasının bir parçası olarak düĢünülebileceği gibi üretim açısından da inĢaat

Sonuç olarak prazosinin düflük dozlar›n›n aljeziye arac›l›k eden α 1 -adrenoseptör- leri bloke ederek amitriptilinin analjezik etkisini potansiyalize etti¤ini oysa ki

Bu sonuçlara dayanarak yapılan oyun temelli çevre etkinliklerinin çocukların çevreyi korumak için kendilerinin neler yapabilecekleri hakkında var olan

1769 yılında, Fransa'da Nicolas-Joseph Cugnot buhar gücüyle çalışan aracın testi sırasında bir duvara çarpmış olup; yaşanan bu kaza, tarihteki ilk otomobil kazası

Whenever you want to run certain code over and over again, but don’t want to source or paste things into the console repeatedly, you can and should create your own function with

Benzer şekilde, son yıllarda, m-öğrenme, birçok araştırmacı tarafından yeni bir paradigma olarak nitelendirmekte ve Şekil 1’de sağ tarafta gösterildiği