Hello,
i'm in need of some help with a task involving the composition of two piecewise functions. The task is:
Solve the composition f o g if f(x) and g(x) are real-valued functions
g(x) = { x2 ; x >= 0
The solution is supposed to be:
(f o g)(x) = { x2+2 ; x >= 0
Now i know the basics about the composition of two functions, for example, if you have f(x) = x+1 and g(x) = x+2 , the composition (f o g)(x) = f(g(x)) = x+2+1 = x+3.
The problem i have here is, i don't know which part of f(x) and g(x) to work with. I know that it's got something to do with the domain (or at least i'm guessing), but i'm not sure what. I tried the following, since it seemed logical to me: (i looked at every domain of the f(x) function and calculated the composition)
1. x < -2
f(x) = x+1
g(x) = 1
(f o g)(x) = 1+1 = 2
2. -2 <= x < 0
f(x) = -x-2
g(x) = 1
(f o g)(x) = -1-2 = -3
3. x >= 0
f(x) = x+2
g(x) = x2
(f o g)(x) = x2+2
The only part i got right was the third part, i'm assuming that is because the domain of f(x) and g(x) were exactly the same, whereas in the first two cases, the domains were not exactly the same.
I would be very grateful, if someone could explain the principle behind this task.
Thank you in advance.
Also, i apologize if i posted this in the wrong section.
i'm in need of some help with a task involving the composition of two piecewise functions. The task is:
Solve the composition f o g if f(x) and g(x) are real-valued functions
{ x+1 ; x < -2
f(x) = { -x-2 ; -2 <= x < 0
{ x+2 ; x >= 0
g(x) = { x2 ; x >= 0
{ 1 ; x < 0
The solution is supposed to be:
(f o g)(x) = { x2+2 ; x >= 0
{ 3 ; x < 0
Now i know the basics about the composition of two functions, for example, if you have f(x) = x+1 and g(x) = x+2 , the composition (f o g)(x) = f(g(x)) = x+2+1 = x+3.
The problem i have here is, i don't know which part of f(x) and g(x) to work with. I know that it's got something to do with the domain (or at least i'm guessing), but i'm not sure what. I tried the following, since it seemed logical to me: (i looked at every domain of the f(x) function and calculated the composition)
1. x < -2
f(x) = x+1
g(x) = 1
(f o g)(x) = 1+1 = 2
2. -2 <= x < 0
f(x) = -x-2
g(x) = 1
(f o g)(x) = -1-2 = -3
3. x >= 0
f(x) = x+2
g(x) = x2
(f o g)(x) = x2+2
The only part i got right was the third part, i'm assuming that is because the domain of f(x) and g(x) were exactly the same, whereas in the first two cases, the domains were not exactly the same.
I would be very grateful, if someone could explain the principle behind this task.
Thank you in advance.
Also, i apologize if i posted this in the wrong section.
Last edited: