Piecewise Function Homework: Find foG & goF

  • Thread starter Thread starter thereddevils
  • Start date Start date
  • Tags Tags
    Function
Click For Summary

Homework Help Overview

The problem involves finding the compositions of two piecewise functions, f and g, defined for different domains. The functions are f(x) and g(x), with specific expressions based on the value of x. The task is to determine f o g and g o f.

Discussion Character

  • Exploratory, Assumption checking, Problem interpretation

Approaches and Questions Raised

  • Participants discuss the need to substitute g(x) into f(x) and express concerns about adjusting the domains correctly. There is mention of dividing the analysis into intervals based on the behavior of g(x) and its impact on f(x).

Discussion Status

Some participants have provided insights into how to handle the domains of the piecewise functions and suggested dividing the problem into intervals for clarity. There is ongoing exploration of how to approach both compositions, but no consensus has been reached.

Contextual Notes

Participants note the importance of considering the domains of the functions when performing the compositions, particularly how the outputs of g(x) relate to the inputs of f(x).

thereddevils
Messages
436
Reaction score
0

Homework Statement



Given that f(R)=R , g(R)=R be defined respectively by

[tex]f(x)=\begin{cases} \sin x+2 & \text{if } x>1 \\ \cos x-2 & \text{if } x\leq 1\end{cases}[/tex]

[tex]g(x)=\begin{cases}2x+3& \text{if } x>0 \\ x^2 & \text{if } x\leq 0 \end{cases}[/tex]

Find f o g and g o f


Homework Equations





The Attempt at a Solution



i have no idea to begin except for the obvious substitution of g(x) into the function f(x) . I am not sure how to adjust the domain .
 
Physics news on Phys.org
For x>1, wouldn't f(x) = sinx +2 and g(x)=2x +3 ?
 
You need to be careful of the domains. If [itex]x\le 0[/itex], [itex]g(x)= x^2[/itex] but then [itex]x^2< 1[/itex] if x> -1 and [itex]x^2> 1[/itex] if x< -1.

If x> 0, [itex]g(x)= 2x+ 3[/itex] and, since x is positive, that is always larger than 3 which is larger than 1.

You need to divide into three intervals: for x<-1, [itex]g(x)= x^2> 1[/itex] so [itex]f(g(x))= f(x^2)= sin(x^2)+ 2[/itex]. for [itex]-1\le x\le 0[/itex], [itex]g(x)= x^2\le 1[/itex] so [itex]f(g(x))= f(x^2)= cos(x^2)- 1[/itex]. For x> 0, g(x)= 2x+ 3 and f(g(x))= f(2x+3)= sin(2x+3)+ 2.

Now, you do g(f(x))
 
HallsofIvy said:
You need to be careful of the domains. If [itex]x\le 0[/itex], [itex]g(x)= x^2[/itex] but then [itex]x^2< 1[/itex] if x> -1 and [itex]x^2> 1[/itex] if x< -1.

If x> 0, [itex]g(x)= 2x+ 3[/itex] and, since x is positive, that is always larger than 3 which is larger than 1.

You need to divide into three intervals: for x<-1, [itex]g(x)= x^2> 1[/itex] so [itex]f(g(x))= f(x^2)= sin(x^2)+ 2[/itex]. for [itex]-1\le x\le 0[/itex], [itex]g(x)= x^2\le 1[/itex] so [itex]f(g(x))= f(x^2)= cos(x^2)- 1[/itex]. For x> 0, g(x)= 2x+ 3 and f(g(x))= f(2x+3)= sin(2x+3)+ 2.

Now, you do g(f(x))

thanks !
 

Similar threads

  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 23 ·
Replies
23
Views
4K
  • · Replies 7 ·
Replies
7
Views
2K
Replies
7
Views
2K
  • · Replies 14 ·
Replies
14
Views
4K
  • · Replies 15 ·
Replies
15
Views
3K
  • · Replies 7 ·
Replies
7
Views
1K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K