Piecewise Function Homework: Find foG & goF

  • Thread starter thereddevils
  • Start date
  • Tags
    Function
In summary, the function f(x) is defined as sin(x+2) + 2 if x>1, cos(x-2) - 2 if x\le 1, and x^2 if x<0. The function g(x) is defined as 2x+3 if x>0, x^2 if x<0, and sin(x+3) if x>1.
  • #1
thereddevils
438
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
  • #2
For x>1, wouldn't f(x) = sinx +2 and g(x)=2x +3 ?
 
  • #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))
 
  • #4
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 !
 

FAQ: Piecewise Function Homework: Find foG & goF

What is a piecewise function?

A piecewise function is a function that is defined by different rules or equations on different parts of its domain. In other words, the function is divided into different pieces, each with its own unique rule or equation.

How do I find foG for a piecewise function?

To find foG for a piecewise function, you first need to find the composite function of f and g. This means plugging in the function g(x) as the input for f(x) and simplifying the resulting equation. Then, you can find the output for foG by plugging in the given input value for x into the composite function.

How do I find goF for a piecewise function?

To find goF for a piecewise function, you first need to find the composite function of g and f. This means plugging in the function f(x) as the input for g(x) and simplifying the resulting equation. Then, you can find the output for goF by plugging in the given input value for x into the composite function.

What is the purpose of finding foG and goF for a piecewise function?

Finding foG and goF for a piecewise function allows you to determine the output for a given input value. This can be useful in analyzing and understanding the behavior of the function, as well as solving real-world problems that involve piecewise functions.

Are there any tips for solving piecewise function homework?

Some tips for solving piecewise function homework include carefully reading and understanding the given function, drawing a graph to visualize the different pieces of the function, and carefully following the steps for finding foG and goF. It can also be helpful to practice with different examples and seek help from a tutor or teacher if needed.

Similar threads

Replies
6
Views
1K
Replies
23
Views
1K
Replies
7
Views
1K
Replies
14
Views
1K
Replies
15
Views
1K
Replies
7
Views
1K
Replies
3
Views
1K
Replies
3
Views
1K
Replies
10
Views
1K
Back
Top