Simplifying Piecewise Functions: fg(x) and gf(x) Calculations

Click For Summary

Homework Help Overview

The problem involves the composition of two piecewise functions, f and g, where f is defined as f(R)=R and f(x)=x^2, and g is defined as g(R)=R and g(x)=x+1 for x>=0 and g(x)=-x for x<0. The original poster attempts to find fg(x) and gf(x) and seeks clarification on their correctness and the considerations necessary for similar problems.

Discussion Character

  • Exploratory, Assumption checking

Approaches and Questions Raised

  • Participants discuss the correctness of the original poster's calculations for fg(x) and gf(x), with some questioning the assumptions made during the substitution process. There is a focus on understanding the implications of the piecewise nature of the functions.

Discussion Status

Some participants have provided feedback on the correctness of the original poster's attempts, with hints offered regarding the need to consider the domains of the functions involved. The discussion is ongoing, with participants exploring different interpretations and seeking further clarification.

Contextual Notes

There is a mention of needing to check the domain when working with piecewise functions, indicating that assumptions about the values of f(x) may need to be reconsidered.

thereddevils
Messages
436
Reaction score
0

Homework Statement



Function f and g are defined as follows :

f(R)=R , f(x)=x^2 , g(R)=R , g(x)=x+1,x>=0 , -x , x<0 (its a piecewise function) . Find fg(x) and gf(x) .

Homework Equations





The Attempt at a Solution



fg(x)=
(x+1)^2 , x>=0
x^2 , x<0

gf(x)=
x^2+1 , x>=0
-x^2 , x<0

Am i correct ? What are the things i will need to look into when face questions like this ? Cheking the domain ?
 
Physics news on Phys.org


This looks correct to me.
 


If you mean f(g(x)) and g(f(x)) then what you have for f(g(x)) is correct, but the other is not.
 


D H said:
If you mean f(g(x)) and g(f(x)) then what you have for f(g(x)) is correct, but the other is not.

thanks but why ? How did you see that ?
 


Show your steps on how you derived g(f(x)).
 


D H said:
Show your steps on how you derived g(f(x)).

ok . Basically , i just substituted the function f(x) into the function g(x) , without doing any other checkings because i do not know what to check . Could you guide me on thsi ? Thanks .
 


Hint: Is f(x) ever negative?
 


Ah, based on DH's hint, I now agree that you have done g(f(x)) incorrectly. Thereddevils, do you see it now?
 


D H said:
Hint: Is f(x) ever negative?

thanks !
 

Similar threads

  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 15 ·
Replies
15
Views
2K
  • · Replies 14 ·
Replies
14
Views
4K
Replies
8
Views
5K
Replies
5
Views
2K
  • · Replies 11 ·
Replies
11
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K