Solved

# Needs help in function

Posted on 2011-09-11
297 Views
Can any one please explain that ? Thanks

Define function f, g: N -----> N by
f(x) = 2x
g(x) = [x/2]

Is f o g the same as g o f? Explain

Answer: No. For example, (f o g)(5) = 4, but (g o f)(5) = 5.
0
Question by:mustish1
• 4
• 3
• 2
• +1

LVL 84

Expert Comment

ID: 36520090
do you understand why (f o g)(5) = 4 ?
do you understand why (g o f)(5) = 5 ?
0

Author Comment

ID: 36520097
No.
0

LVL 37

Expert Comment

ID: 36520182
What does the g o f and f o g notation mean?
0

LVL 84

Expert Comment

ID: 36520191
do you know what g(5) is?
0

Author Comment

ID: 36520198
No
0

LVL 84

Expert Comment

ID: 36520260
do you know what [5/2] is?
0

Author Comment

ID: 36520271
5-2
0

LVL 84

Expert Comment

ID: 36520282
no, 5/2 = 2.5
[2.5] = 2
0

LVL 31

Accepted Solution

GwynforWeb earned 500 total points
ID: 36520356
Given f(x) and g(x)

f o g  refers to f(g(x))

g o f  refers to g(f(x))

So given

f(x) = 2x
g(x) = [x/2]

f o g = f(g(x)) =f([x/2]) = 2[x/2]

g o f = g(f(x)) =g(2x) = [2x/2] =[x]

they are not the same

f o g (5) = 2[5/2] = 2*2 = 4

g o f (5) = [5]  = 5
0

LVL 31

Expert Comment

ID: 36520939
... there is an assumption here that [x] refers to the integer part of x

eg [2.5] = 2
0

## Featured Post

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

### Suggested Solutions

Have you ever thought of installing a power system that generates solar electricity to power your house? Some may say yes, while others may tell me no. But have you noticed that people around you are now considering installing such systems in their â€¦
We are taking giant steps in technological advances in the field of wireless telephony. At just 10 years since the advent of smartphones, it is crucial to examine the benefits and disadvantages that have been report to us.
This is a video describing the growing solar energy use in Utah. This is a topic that greatly interests me and so I decided to produce a video about it.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaacâ€¦

#### 809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.