State the domain and range for a given function

In summary, the domain of a function refers to the set of all possible input values (x-values) for which the function is defined, while the range is the set of all possible output values (y-values) that the function can produce. To determine the domain, consider any restrictions on the input values, such as division by zero or square roots of negative numbers. The range can often be found by analyzing the behavior of the function and identifying the output values it can generate based on the defined domain.
  • #1
brotherbobby
702
163
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##.
 

FAQ: State the domain and range for a given function

What is the domain of a function?

The domain of a function is the complete set of all possible input values (usually represented as x) that the function can accept without causing any undefined or non-real results.

How do you find the domain of a function?

To find the domain of a function, identify all the values of x for which the function is defined. This often involves checking for values that do not cause division by zero, negative square roots, or other undefined operations.

What is the range of a function?

The range of a function is the complete set of all possible output values (usually represented as y) that the function can produce based on its domain.

How do you determine the range of a function?

To determine the range of a function, evaluate the function with the domain values and identify all possible resulting y-values. This can sometimes involve solving equations or analyzing the behavior of the function graphically.

Can a function have an infinite domain or range?

Yes, a function can have an infinite domain or range. For example, the domain and range of the linear function f(x) = x are both all real numbers, which is an infinite set.

Similar threads

Replies
15
Views
1K
Replies
14
Views
2K
Replies
3
Views
1K
Replies
17
Views
1K
Replies
3
Views
1K
Replies
10
Views
1K
Back
Top