Composite function of a piecewise function

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
4 replies · 2K views
libragirl79
Messages
30
Reaction score
0

Homework Statement



Given that I have a doubling function :
f(x)=2x (for 0≤x<0.5) and 2x-1 (for 0.5≤ x<1)

Homework Equations


What is f(f(x))?


The Attempt at a Solution


f(f(x))=4x for the first one and 4x-3 for the second part but not sure what to do about the domain constraints...

Thanks!
 
Physics news on Phys.org
libragirl79 said:

Homework Statement



Given that I have a doubling function :
f(x)=2x (for 0≤x<0.5) and 2x-1 (for 0.5≤ x<1)

Homework Equations


What is f(f(x))?


The Attempt at a Solution


f(f(x))=4x for the first one and 4x-3 for the second part but not sure what to do about the domain constraints...

Thanks!
It's not that simple.

Yes, f(f(x)) = 4x over part of the domain of the composite function and 4x-3 over some other portion, but those are not the only two pieces of f(f(x)).


For what values of x is 0 ≤ 2x < 0.5 ?

For what values of x is 0.5 ≤ 2x < 1 ?

etc.
 
right, that's exactly my issue, since i don't have the fcns for 1/4 ≤ x < 1/2
and 1/2 ≤ x < 3/4 ... is there a certain method for doing this?
 
libragirl79 said:
right, that's exactly my issue, since i don't have the fcns for 1/4 ≤ x < 1/2
and 1/2 ≤ x < 3/4 ... is there a certain method for doing this?
You understand that "[itex]1/4\le x< 1/2[/itex]" is part of the interval [itex]0\le x< 1/2[/itex] don't you?

If [itex]0\le x< 1/4[/itex], f(x)= 2x which is less than 1/2 so ff(x)= f(2x)= 2(2x)= 4x.
If [itex]1/4\le x< 1/2[/itex] then x is still between 0 and 1/2 so f(x)= 2x but f(x) is now between 1/2 and 1 so ff(x)= f(2x)= 2(2x)- 1= 4x- 1.

Do similarly for [itex]1/2\le x< 3/4[/itex]. Now x is between 1/2 and 1 so f(x)= 2x- 1 which is between 0 and 1/2.

If x is between 3/4 and 1, f(x)= 2x- 1 is between 1/2 and 1
 
I understand the breakdown of the x domains, but how do you know where f(x) falls?