composition functions - treatment 4

logistic_guy

Senior Member
Joined
Apr 17, 2024
Messages
1,529
here is the question

Find the compositions fg\displaystyle f \circ g and gf\displaystyle g \circ f, and identify their respective domains.

4. f(x)=1x,  g(x)=tanx\displaystyle f(x) = \sqrt{1 - x}, \ \ g(x) = \tan x


my attemb
fg=f(g(x))=1tanx\displaystyle f \circ g = f(g(x)) =\sqrt{1 - \tan x}
Domain: xπ2\displaystyle x \neq \frac{\pi}{2}

gf=g(f(x))=tan1x\displaystyle g \circ f = g(f(x)) = \tan \sqrt{1 - x}
Domain: x1\displaystyle x \leq 1

is my analize correct?😣
 
here is the question

Find the compositions fg\displaystyle f \circ g and gf\displaystyle g \circ f, and identify their respective domains.

4. f(x)=1x,  g(x)=tanx\displaystyle f(x) = \sqrt{1 - x}, \ \ g(x) = \tan x


my attemb
fg=f(g(x))=1tanx\displaystyle f \circ g = f(g(x)) =\sqrt{1 - \tan x}
Domain: xπ2\displaystyle x \neq \frac{\pi}{2}
What happens if x=3π/8x = 3 \pi /8?
gf=g(f(x))=tan1x\displaystyle g \circ f = g(f(x)) = \tan \sqrt{1 - x}
Domain: x1\displaystyle x \leq 1
Can 1x=π/2\sqrt{1 - x} = \pi / 2?

It might help you if you graphed these functions.

-Dan
 
here is the question

Find the compositions fg\displaystyle f \circ g and gf\displaystyle g \circ f, and identify their respective domains.

4. f(x)=1x,  g(x)=tanx\displaystyle f(x) = \sqrt{1 - x}, \ \ g(x) = \tan x


my attemb
fg=f(g(x))=1tanx\displaystyle f \circ g = f(g(x)) =\sqrt{1 - \tan x}
Domain: xπ2\displaystyle x \neq \frac{\pi}{2}

gf=g(f(x))=tan1x\displaystyle g \circ f = g(f(x)) = \tan \sqrt{1 - x}
Domain: x1\displaystyle x \leq 1

is my analize correct?😣
What are the roots of tan(Θ) = 0
 
What happens if x=3π/8x = 3 \pi /8?
:eek:
calculator give error

so the domain is wrong
how do you find a number not in the domain easily?

Can 1x=π/2\sqrt{1 - x} = \pi / 2?
of course no

What are the roots of tan(Θ) = 0
,0,180,360,\displaystyle \cdots, 0^{\circ}, 180^{\circ}, 360^{\circ}, \cdots

for fg\displaystyle f \circ g, i'm sure 90\displaystyle 90^{\circ} can't be in the domain
i need to seek for other invalid values to limit the domain
1tanx0\displaystyle 1 - \tan x \geq 0
1tanx\displaystyle 1 \geq \tan x
x45\displaystyle x \leq 45^{\circ}

do this mean the domain is: xπ4\displaystyle x \leq \frac{\pi}{4} and xπ2\displaystyle x \neq \frac{\pi}{2}

for for gf\displaystyle g \circ f, the situation more complicated
i don't want 1tanx=π2\displaystyle \sqrt{1 - \tan x} = \frac{\pi}{2}
i think i've to solve for x\displaystyle x
1tanx=π24\displaystyle 1 - \tan x = \frac{\pi^2}{4}
1π24=tanx\displaystyle 1 - \frac{\pi^2}{4} = \tan x
x=tan1(1π24)\displaystyle x = \tan^{-1}(1 - \frac{\pi^2}{4})
calculator give x=0.104\displaystyle x = -0.104
do it correct to say the domain: x1\displaystyle x \leq 1 but x0.104\displaystyle x \neq -0.104? i'm not sure☹️
 
:eek:
calculator give error

so the domain is wrong
how do you find a number not in the domain easily?


of course no


,0,180,360,\displaystyle \cdots, 0^{\circ}, 180^{\circ}, 360^{\circ}, \cdots

for fg\displaystyle f \circ g, i'm sure 90\displaystyle 90^{\circ} can't be in the domain
i need to seek for other invalid values to limit the domain
1tanx0\displaystyle 1 - \tan x \geq 0
1tanx\displaystyle 1 \geq \tan x
x45\displaystyle x \leq 45^{\circ}

do this mean the domain is: xπ4\displaystyle x \leq \frac{\pi}{4} and xπ2\displaystyle x \neq \frac{\pi}{2}

for for gf\displaystyle g \circ f, the situation more complicated
i don't want 1tanx=π2\displaystyle \sqrt{1 - \tan x} = \frac{\pi}{2}
i think i've to solve for x\displaystyle x
1tanx=π24\displaystyle 1 - \tan x = \frac{\pi^2}{4}
1π24=tanx\displaystyle 1 - \frac{\pi^2}{4} = \tan x
x=tan1(1π24)\displaystyle x = \tan^{-1}(1 - \frac{\pi^2}{4})
calculator give x=0.104\displaystyle x = -0.104
do it correct to say the domain: x1\displaystyle x \leq 1 but x0.104\displaystyle x \neq -0.104? i'm not sure☹️
Use WA (or otherwise) and plot fog and show us the plot for x=-5 to +5. Then discuss ....
 
fg=f(g(x))=1tanx\displaystyle f \circ g = f(g(x)) =\sqrt{1 - \tan x}
Domain: xπ2\displaystyle x \neq \frac{\pi}{2}

gf=g(f(x))=tan1x\displaystyle g \circ f = g(f(x)) = \tan \sqrt{1 - x}
Domain: x1\displaystyle x \leq 1

is my analize correct?😣
This is a much more interesting problem than your first couple. It forces you to actually think about that the domain means. So this one is worth discussing.

To find the domain of fgf\circ g, first find the domain of g itself, which means to find what values of x "work" (and exclude those that do not). Then find the composite function, and do the same thing.

This is because fgf\circ g means that you first apply g (which only works when x is in its domain), and then apply f to the result g(x)g(x), which only works when g(x)g(x) is in the domain of f.

So, for your problem, when is the tangent defined (or not)? Then, what values of that tangent is f defined? That is, when will the square root not work?

The graph mostly helps you see if your answer obtained analytically makes sense, and catch details you might have missed. I would not start there.

By the way, you are showing only your answers (which are both wrong), not what I would call your analysis. Show us your thinking, and we'll have more to talk about.
 
This is a much more interesting problem than your first couple. It forces you to actually think about that the domain means. So this one is worth discussing.

To find the domain of fgf\circ g, first find the domain of g itself, which means to find what values of x "work" (and exclude those that do not). Then find the composite function, and do the same thing.

This is because fgf\circ g means that you first apply g (which only works when x is in its domain), and then apply f to the result g(x)g(x), which only works when g(x)g(x) is in the domain of f.

So, for your problem, when is the tangent defined (or not)? Then, what values of that tangent is f defined? That is, when will the square root not work?

The graph mostly helps you see if your answer obtained analytically makes sense, and catch details you might have missed. I would not start there.

By the way, you are showing only your answers (which are both wrong), not what I would call your analysis. Show us your thinking, and we'll have more to talk about.
thank Dr. i'll focus on fg\displaystyle f \circ g for now and i'll show you how i think

i'll start with the graph of the tangent, tanx\displaystyle \tan x

diagram_6.png

for now i'll just focus on the graph in this domain (π2,π2)\displaystyle (-\frac{\pi}{2},\frac{\pi}{2}) which is the curve crossing the origin

fg=1tanx\displaystyle f \circ g = \sqrt{1 - \tan x}

before i start the composition function i already know π2\displaystyle -\frac{\pi}{2} and π2\displaystyle \frac{\pi}{2} isn't in the domain of g(x)\displaystyle g(x) as shown in the domain above
which give me two invalid values for x\displaystyle x in the pocket

the composition function have square root so this tell me i don't want tanx\displaystyle \tan x to be greater than 1\displaystyle 1
in other words i want 1tanx0\displaystyle 1 - \tan x \geq 0

1tanx\displaystyle 1 \geq \tan x
xπ4\displaystyle x \leq \frac{\pi}{4}

i'll go back to my domain and adjust it according to what result i get
my domain now
(π2,π4]\displaystyle (-\frac{\pi}{2},\frac{\pi}{4}]

i know tanx\displaystyle \tan x is periodic so this middle curve will repeat each π\displaystyle \pi
so i think the full domain is

(π2+nπ,π4+nπ], nZ\displaystyle (-\frac{\pi}{2} + n\pi,\frac{\pi}{4} + n\pi], \ n \in \mathbb{Z}

is my analize correct this time?😣
 
thank Dr. very much for confirming my solution is correct

now i'll try to solve gf\displaystyle g \circ f by following the same concept

the domain of f(x)\displaystyle f(x) is (,1]\displaystyle (-\infty,1]
providing graph not necessary in this case, but i'll show anyway for clarity. this is a graph of the function f(x)\displaystyle f(x)

diagram_8.png

gf=tan1x\displaystyle g \circ f = \tan \sqrt{1 - x}

the one thing i know about this function for now is x\displaystyle x must be 1\displaystyle \leq 1 because of the square root
if i think carefully i notice π2\displaystyle \frac{\pi}{2} is in the range of f(x)\displaystyle f(x) which is [0,)\displaystyle [0, \infty) so i have to exclude it because the tangent function is the main structure of the composition function

i want to know the value of x\displaystyle x whcih will make the squre root be this invalid value so i'll solve
1x=π2\displaystyle \sqrt{1 - x} = \frac{\pi}{2}
1x=π24\displaystyle 1 - x = \frac{\pi^2}{4}
1+x=π24\displaystyle -1 + x = -\frac{\pi^2}{4}
x=1π24\displaystyle x = 1 - \frac{\pi^2}{4}

that's only 1\displaystyle 1 invalid value of many as the tangent function is periodic, so i've to solve again considering the general case


1x=π2+nπ\displaystyle \sqrt{1 - x} = \frac{\pi}{2} + n\pi
1x=(π2+nπ)2\displaystyle 1 - x = (\frac{\pi}{2} + n\pi)^2
1+x=(π2+nπ)2\displaystyle -1 + x = -(\frac{\pi}{2} + n\pi)^2
x=1(π2+nπ)2,  nZ\displaystyle x = 1 - (\frac{\pi}{2} + n\pi)^2, \ \ n \in \mathbb{Z}

i think this will exclude all the invalid values related to π2\displaystyle \frac{\pi}{2}
my solution this time will be
Domain: (,1]\displaystyle (-\infty, 1] where x1(π2+nπ)2,  nZ\displaystyle x \neq 1 - (\frac{\pi}{2} + n\pi)^2, \ \ n \in \mathbb{Z}

diagram_9.png

this is a graph of gf\displaystyle g \circ f showing two discontinuities points, x=1π24\displaystyle x = 1 - \frac{\pi^2}{4} and x=1(π2+π)2\displaystyle x = 1 - (\frac{\pi}{2} + \pi)^2 for n=0,1\displaystyle n = 0,1 respectively
this agree with my analize

is it correct this time?😣
 
Top