Piecewise Function Homework: Find foG & goF

  • Thread starter Thread starter thereddevils
  • Start date Start date
  • Tags Tags
    Function
AI Thread Summary
The discussion focuses on finding the compositions of two piecewise functions, f(g(x)) and g(f(x)). Participants emphasize the importance of carefully considering the domains for each piece of the functions. For f(g(x)), they identify three intervals based on the value of x: for x < -1, f(g(x)) results in sin(x^2) + 2; for -1 ≤ x ≤ 0, it leads to cos(x^2) - 1; and for x > 0, it produces sin(2x + 3) + 2. The same careful domain analysis is required for g(f(x)), which is also discussed but not fully resolved in the thread. Overall, the conversation highlights the need for precise domain adjustments when working with piecewise functions.
thereddevils
Messages
436
Reaction score
0

Homework Statement



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

f(x)=\begin{cases} \sin x+2 &amp; \text{if } x&gt;1 \\ \cos x-2 &amp; \text{if } x\leq 1\end{cases}

g(x)=\begin{cases}2x+3&amp; \text{if } x&gt;0 \\ x^2 &amp; \text{if } x\leq 0 \end{cases}

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 x\le 0, g(x)= x^2 but then x^2&lt; 1 if x> -1 and x^2&gt; 1 if x< -1.

If x> 0, g(x)= 2x+ 3 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, g(x)= x^2&gt; 1 so f(g(x))= f(x^2)= sin(x^2)+ 2. for -1\le x\le 0, g(x)= x^2\le 1 so f(g(x))= f(x^2)= cos(x^2)- 1. 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 x\le 0, g(x)= x^2 but then x^2&lt; 1 if x> -1 and x^2&gt; 1 if x< -1.

If x> 0, g(x)= 2x+ 3 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, g(x)= x^2&gt; 1 so f(g(x))= f(x^2)= sin(x^2)+ 2. for -1\le x\le 0, g(x)= x^2\le 1 so f(g(x))= f(x^2)= cos(x^2)- 1. 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 !
 
I picked up this problem from the Schaum's series book titled "College Mathematics" by Ayres/Schmidt. It is a solved problem in the book. But what surprised me was that the solution to this problem was given in one line without any explanation. I could, therefore, not understand how the given one-line solution was reached. The one-line solution in the book says: The equation is ##x \cos{\omega} +y \sin{\omega} - 5 = 0##, ##\omega## being the parameter. From my side, the only thing I could...
Essentially I just have this problem that I'm stuck on, on a sheet about complex numbers: Show that, for ##|r|<1,## $$1+r\cos(x)+r^2\cos(2x)+r^3\cos(3x)...=\frac{1-r\cos(x)}{1-2r\cos(x)+r^2}$$ My first thought was to express it as a geometric series, where the real part of the sum of the series would be the series you see above: $$1+re^{ix}+r^2e^{2ix}+r^3e^{3ix}...$$ The sum of this series is just: $$\frac{(re^{ix})^n-1}{re^{ix} - 1}$$ I'm having some trouble trying to figure out what to...

Similar threads

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