1. The problem statement, all variables and given/known data 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) . 2. Relevant equations 3. 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 ?