Composite of piecewise functions

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
1 reply · 6K views
smithnya
Messages
41
Reaction score
0

Homework Statement



Find f°g for each pair of functions f and g.

Homework Equations



f(x) = {x+1, if x≤0 or 2x, if x>0

g(x) = {2x, if x≤-1 or -x, if x>-1

The Attempt at a Solution



I am able to determine the following:

(f°g)(x) = {2x+1, -2x, -x+1

However, these functions carry intervals, and I don't know how to obtain those intervals

For example, my book gives the following solution,

(f°g)(x) = {2x+1, if x≤-1 or -2x, if -1<x<0 or -x+1, if x≥0

I can obtain the equations, but I don't know how to determine the actual intervals for the individual equations.

Could someone please explain it to me?
 
Physics news on Phys.org
smithnya said:

Homework Statement



Find f°g for each pair of functions f and g.

Homework Equations



f(x) = {x+1, if x≤0 or 2x, if x>0

g(x) = {2x, if x≤-1 or -x, if x>-1

The Attempt at a Solution



I am able to determine the following:

(f°g)(x) = {2x+1, -2x, -x+1

However, these functions carry intervals, and I don't know how to obtain those intervals

For example, my book gives the following solution,

(f°g)(x) = {2x+1, if x≤-1 or -2x, if -1<x<0 or -x+1, if x≥0

I can obtain the equations, but I don't know how to determine the actual intervals for the individual equations.

Could someone please explain it to me?
It may help to graph the functions.

You're looking for (f○g)(x) = f(g(x)) .

You will have to look at g(x), to see what portion of the domain of g(x) has a range that's in the interval, (-∞, 0] and what portion of the domain of g(x) has a range that's in the interval, (0, +∞) .