State the domain and range for a given function

  • #1
brotherbobby
618
152
Homework Statement
State and domain and range for the following function : ##g(x) = \dfrac{1}{1+x^2}##
Relevant Equations
The domain of a function, which I'd write as ##\mathscr{D}\{f(x)\}## are all acceptable values that ##x## can take so that the function is defined. The range of a function, ##\mathscr{R}\{f(x)\}## are all values of the function for the values of ##x## in the domain.
1707586250226.png
Attempt :
Let me copy and paste the problem as it appeared in the text. Please note that the given problem appears in part (b), which I have underlined in red ink in this way ##\color{red}{\rule{50pt}{1pt}}##

1707586787906.png
Clearly the domain is ##\boxed{\mathscr{D}\{f(x)\}: x\in\mathbb{R}}\quad\color{green}{\Large{\checkmark}}##
Shown is the answer in the text (part (b)).

The range can be calculated in a number of ways. It is the third way with which I have a problem and need your input.

##\rm{I :}## ##\textsf{Here I proceed towards the function incrementally without finding its inverse}##
\begin{align*}
-\infty &< x< \infty \\
\Rightarrow 0 &\le x^2 < \infty \\
\Rightarrow 1&\le1+x^2 < \infty \\
\Rightarrow 0&<\dfrac{1}{1+x^2}\le 1\\
\end{align*} Hence the range of the function ##\boxed{\mathscr{R}\{f(x)\}\in (0,1]}\quad\color{green}{\Large{\checkmark}}##. The answer in the text (shown above) is wrong to include the point ##0##, or it is me mistaken?

##\rm{II :}## ##\textsf{Here I find the inverse of the function first and then try to find the domain of the inverse, or y}##

If ##y=\dfrac{1}{1+x^2}\Rightarrow 1+x^2=\dfrac{1}{y}\Rightarrow x^2=\dfrac{1-y}{y}\Rightarrow x=\sqrt{\dfrac{1-y}{y}}##
Clearly, ##y\ne 0##. Also the argument ##\dfrac{1-y}{y}\ge0##. This can mean either (a) ##1-y\ge0## and ##y>0## which would lead to ##y\le1## and ##y>0##, which leads to the correct range found earlier : ##\boxed{\mathscr{R}\{f(x)\}\in (0,1]}\quad\color{green}{\Large{\checkmark}}##. Or it could also mean (b) ##1-y\le 0\Rightarrow y\ge 1## and ##y<0##, which is not possible.

##\rm{III :}## ##\textsf{A variant of the above method where I find the inverse again, but leads me to trouble}##

If ##y=\dfrac{1}{1+x^2}\Rightarrow 1+x^2=\dfrac{1}{y}\Rightarrow x^2=\dfrac{1}{y}-1\Rightarrow x=\sqrt{\dfrac{1}{y}-1}##. Now ##\dfrac{1}{y}-1\ge 0\Rightarrow \dfrac{1}{y}\ge 1\Rightarrow y\le 1##. Hence, the range comes out to be ##\boxed{\mathscr{R}\{f(x)\}\in (-\infty,1]}\quad\color{red}{\huge{\times}}##

Request : Where did I go wrong in ##\textrm{III}##? Many thanks.
 
Last edited:
Physics news on Phys.org
  • #2
##1/y \geq 1## does not imply only ##y \leq 1##. Consider ##y = -1## as a counter example.
 
  • Like
Likes MatinSAR
  • #3
III: The condition is [itex]\frac 1y \geq 1[/itex]. Now there are two cases: if [itex]y > 0[/itex] then multpliying by [itex]y[/itex] preserves the inequality, so [itex]1 \geq y[/itex]. Alternatively, if [itex]y < 0[/itex] then muitpliying by [itex]y[/itex] reverses the inequality, so that [itex]1 \leq y[/itex]. This is impossible, since [itex]y < 0 < 1[/itex]. You can also see directly that if [itex]y < 0[/itex] then [itex]y^{-1}+ < 0[/itex] and [itex]y^{-1} -1 < 0[/itex].
 
  • #4
Orodruin said:
##1/y \geq 1## does not imply only ##y \leq 1##. Consider ##y = -1## as a counter example.
Indeed. Let's take ##y=-2## as a counterexample - there are too many ##1##'s here.
##y=-2<1\nRightarrow \dfrac{1}{y}>1##. (Of course ##-\dfrac{1}{2}\ngtr 1)##
 
  • #5
pasmith said:
You can also see directly that if y<0 then [itex]y^{-1+ < 0[/itex] and y−1−1<0.
I didn't get the last part of your reply @pasmith
 
  • #6
brotherbobby said:
Hence the range of the function ##\boxed{\mathscr{R}\{f(x)\}\in (0,1]}\quad\color{green}{\Large{\checkmark}}##. The answer in the text (shown above) is wrong to include the point ##0##, or it is me mistaken?
I agree with you.
brotherbobby said:
##\rm{II :}## ##\textsf{Here I find the inverse of the function first and then try to find the domain of the inverse, or y}##

If ##y=\dfrac{1}{1+x^2}\Rightarrow 1+x^2=\dfrac{1}{y}\Rightarrow x^2=\dfrac{1-y}{y}\Rightarrow x=\sqrt{\dfrac{1-y}{y}}##
This is treacherous. It is safer to do this in several steps, indicating the values of y that are valid for each step.
brotherbobby said:
Clearly, ##y\ne 0##. Also the argument ##\dfrac{1-y}{y}\ge0##. This can mean either (a) ##1-y\ge0## and ##y>0## which would lead to ##y\le1## and ##y>0##, which leads to the correct range found earlier : ##\boxed{\mathscr{R}\{f(x)\}\in (0,1]}\quad\color{green}{\Large{\checkmark}}##. Or it could also mean (b) ##1-y\le 0\Rightarrow y\ge 1## and ##y<0##, which is not possible.
I agree.
brotherbobby said:
##\rm{III :}## ##\textsf{A variant of the above method where I find the inverse again, but leads me to trouble}##

If ##y=\dfrac{1}{1+x^2}\Rightarrow 1+x^2=\dfrac{1}{y}\Rightarrow x^2=\dfrac{1}{y}-1\Rightarrow x=\sqrt{\dfrac{1}{y}-1}##. Now ##\dfrac{1}{y}-1\ge 0\Rightarrow \dfrac{1}{y}\ge 1\Rightarrow y\le 1##. Hence, the range comes out to be ##\boxed{\mathscr{R}\{f(x)\}\in (-\infty,1]}\quad\color{red}{\huge{\times}}##

Request : Where did I go wrong in ##III##? Many thanks.
1) When you divide by ##y##, you should indicate that ##y \ne 0##. This is a problem when you chain a bunch of steps together in one line and do not keep track of what values are illegal at each step.
2) The square root symbol, ##\sqrt a## only represents the positive result of the square root. When you introduce it, you should indicate both positive and negative values, with ##\pm \sqrt a##, unless you state some reason to omit one or the other.
 
  • #7
FactChecker said:
2) The square root symbol ##\sqrt a## only represents the positive result of the square root. When you introduce it, you should indicate both positive and negative values, with ##\pm \sqrt a##, unless you state some reason to omit one or the other.
To elaborate, for the benefit of the OP, taking the square root of both sides of an equation can produce incorrect or partially correct results if you're not careful.
For example, starting with ##x^2 = 9## it is intuitive, but incorrect to conclude that ##x = 3##.

One way to look at it is this: ##x^2 = 9 \Rightarrow \sqrt{x^2} = \sqrt 9 \Rightarrow |x| = 3##. This means that x = 3 or x = -3; i.e., that ##x = \pm 3##.

Note that ##\sqrt{x^2} \ne x##. A counterexample is ##\sqrt{(-3)^2} = 3 \ne -3##.
 
  • Like
Likes FactChecker
  • #8
brotherbobby said:
I didn't get the last part of your reply @pasmith
There is an extra + that should not be there:
pasmith said:
[itex]y^{-1}+ < 0[/itex]
should be ##y^{-1} < 0##, which indeed implies that ##y^{-1} < 0 < 1##.
 

Related to State the domain and range for a given function

1. What is the domain of a function?

The domain of a function is the set of all possible input values (x-values) for which the function is defined. It is the set of all real numbers that can be plugged into the function without causing any mathematical errors.

2. What is the range of a function?

The range of a function is the set of all possible output values (y-values) that the function can produce. It is the set of all real numbers that the function can attain as a result of plugging in values from the domain.

3. How do you determine the domain of a function?

To determine the domain of a function, you need to look for any restrictions or limitations on the input values. Common restrictions include square roots of negative numbers, denominators of fractions that cannot be zero, and logarithms of non-positive numbers.

4. How do you determine the range of a function?

To determine the range of a function, you need to analyze the behavior of the function and identify the minimum and maximum values that it can produce. This can often be done by examining the graph of the function or by algebraic manipulation of the function itself.

5. Why is it important to know the domain and range of a function?

Knowing the domain and range of a function is crucial for understanding its behavior and properties. It helps in identifying any restrictions on the input values and in determining the possible output values that the function can produce. This information is essential for solving equations involving the function and for analyzing its graph.

Similar threads

  • Precalculus Mathematics Homework Help
Replies
15
Views
664
  • Precalculus Mathematics Homework Help
Replies
13
Views
326
  • Precalculus Mathematics Homework Help
Replies
11
Views
544
  • Precalculus Mathematics Homework Help
Replies
3
Views
634
  • Precalculus Mathematics Homework Help
Replies
23
Views
625
  • Precalculus Mathematics Homework Help
Replies
3
Views
785
  • Precalculus Mathematics Homework Help
Replies
10
Views
889
  • Precalculus Mathematics Homework Help
Replies
6
Views
1K
  • Precalculus Mathematics Homework Help
Replies
3
Views
1K
  • Precalculus Mathematics Homework Help
Replies
5
Views
961
Back
Top