What is the domain and range of #f(x) = (x+3)/(x^2+4)#?

3 Answers
Jun 14, 2018

Domain: the whole real line
Range: #[-0.0757,0.826]#

Explanation:

This question can be interpreted in one of two ways. Either we expect to only deal with the real line #RR#, or else also with the rest of the complex plane #CC#. The use of #x# as a variable implies that we are dealing with the real line only, but there is an interesting difference between the two cases that I'll note.

The domain of #f# is the whole of the numeric set considered minus any points that cause the function to blow up to infinity. This happens when the denominator #x^2+4=0#, i.e. when #x^2=-4#. This equation has no real solutions, so if we are working on the real line, the domain is the whole interval #(-oo,+oo)#. If we consider the infinite limits of the function by comparing leading terms in numerator and denominator, we see that at both infinities it tends to zero, and so we can if we wish add these to that interval to close it off: #[-oo,+oo]#.

The equation #x^2=-4# does however have two complex solutions, #x=+-2i#. If we consider the whole complex plane, then the domain is the whole plane minus these two points: #CC# \ #{+-2i}#. As with the reals, we can add in infinity similarly if we wish.

To determine the range of #f# we need to discover its maximum and minimum values over its domain. We will only talk in terms of the reals now, as determining an analogue to these over the complex plane is in general a different kind of problem requiring different mathematical tools.

Take the first derivative via the quotient rule:
#f'(x)=((x^2+4)-2x(x+3))/(x^2+4)^2=(-x^2-6x+4)/(x^2+4)^2#

The function #f# reaches either an extremum or a point of inflection when #f'(x)=0#, i.e. when #-x^2-6x+4=0#.
We solve this by the quadratic formula:
#x=-1/2(6+-sqrt(52))=-3+-sqrt(13)#. So the function has two such points.

We characterise these points by examining their values at the second derivative of #f#, which we take, again via the quotient rule:
#f''(x)=((-2x-6)(x^2+4)^2-(-x^2-6x+4)*4x(x^2+4))/(x^2+4)^4#
#=(-2(x+3)(x^2+4)+4x(x^2+6x-4))/(x^2+4)^3#

We know from our first derivative root calculation that the second term in the numerator is zero for these two points, as setting that to zero is the equation we just solved to find the input numbers.

So, noting that #(-3+-sqrt(13))^2=22bar(+)6sqrt(13)#:
#f''(-3+-sqrt(13))=(-2(-3+-sqrt(13)+3)(22bar(+)6sqrt(13)+4))/(22bar(+)6sqrt(13)+4)^3#
#=(bar(+)2sqrt(13)(26bar(+)6sqrt(13)))/(26bar(+)6sqrt(13))^3#

In determining the sign of this expression, we ask whether #26>6sqrt(13)#. Square both sides to compare: #26^2=676#, #(6sqrt(13))^2=36*13=468#. So #26-6sqrt(13)# is positive (and #26+6sqrt(13)# even more so).

So the sign of the whole expression comes down to the #bar(+)# in front of it, which means that #x=-3-sqrt(13)# has #f''(x)>0# (and is therefore a function minimum) and #x=-3+sqrt(13)# has #f''(x)<0# (and is therefore a function maximum). Having noted that the function tends to zero at the infinities, we now understand the shape of the function fully.

So now to obtain the range, we must calculate the values of the function at the minimum and maximum points #x=-3+-sqrt(13)#

Recall that #f(x)=(x+3)/(x^2+4)#, and so
#f(-3+-sqrt(13))=(-3+-sqrt(13)+3)/(22bar(+)6sqrt(13)+4)=(+-sqrt(13))/(26bar(+)6sqrt(13))#.

So, over the real line #RR# the function #f(x)# takes values in the range #[-sqrt(13)/(26+6sqrt(13)),sqrt(13)/(26-6sqrt(13))]#, which if we evaluate numerically, comes to #[-0.0757,0.826]#, to three significant figures, obtained at #x# values #-6.61# and #0.606# (3 s.f.)

Plot the graph of the function as a sanity check:
graph{(x+3)/(x^2+4) [-15, 4.816, -0.2, 1]}

Jun 14, 2018

Domain: #x in RR#
Range: #f(x) in [-0.075693909,+0.825693909]color(white)("xxx")# (approximately)

Explanation:

Given
#color(white)("XXX")f(x)=(x+3)/(x^2+4)#

Domain
The domain are all values of #x# for which #f(x)# is defined.
For any function expressed as a polynomial divided by a polynomial, the function is defined for all values of #x# where the divisor polynomial is not equal to zero. Since #x^2>=0# for all values of #x#, #x^2+4>0# for all values of #x#; that is #x!=0# for all values of #x#; the function is defined for all Real (#RR#) values of #x#.

Range
The range is a little more interesting to develop.
We note that if a continuous function has limits, the derivative of the function at the points resulting in those limits is equal to zero.

Although some of these steps may be trivial, we will work through this process from fairly basic principles for derivatives.

[1] Exponent Rule for Derivatives
If #f(x)=x^n# then #(d f(x))/(dx)=nx^(n-1)#

[2] Sum Rule for Derivatives
If #f(x)=r(x)+s(x)# then #(d f(x))/(dx)=(d r(x))/(dx)+(d s(x))/(dx)#

[3] Product Rule for Derivatives
If #f(x)=g(x) * h(x)# then #(d f(x))/(dx)=(d g(x))/(dx) * h(x) + g(x) * (d h(x))/(dx)#

[4] Chain Rule for Derivatives
If #f(x)=p(q(x))# then #(d f(x))/(dx)=(d p(q(x)))/(d q(x)) * (d q(x))/(dx)#

~~~~~~~~~~~~~~~~~~~~

For the given function #f(x)=(x+3)/(x^2+4)#

we note that this can be written as #f(x)=(x+3) * (x^2+4)^(-1)#

By [3] we know
#color(white)("XXX")color(red)((d f(x))/(dx))= color(lime)((d(x+3))/(dx)) * color(blue)([(x^2+4)^(-1)]) + color(blue)((x+3)) * color(magenta)((d ((x^2+4)^(-1)))/(dx))#

By [1] we have
#color(white)("XXX")(d(x+3))/(dx)=(dx)/(dx)+(d(3 * x^0))/(dx)#
and by [2]
#color(white)("XXX")color(lime)((d(x+3))/(dx))=1+0=color(lime)(1)#

By [4] we have
#color(white)("XXX")color(magenta)((d (x+4)^(-1))/(dx))=( d(x+4)^(-1))/(d(x+4)) * (d(x+4))/(dx)#
and by [1] and [2]
#color(white)("XXXXXXXX")=-1(x^2+4)^(-2) * 2x#
or, simplified:
#color(white)("XXXXXXXX")=color(magenta)(-(2x)/((x^2+4)^2))#

giving us
#color(white)("XXX")color(red)((d f(x))/(dx))=color(green)1 * color(blue)([(x+4)^(-1)]) +color(blue)((x+3)) * color(magenta)((-2x)/((x^2+4)^2)#

which can be simplified as
#color(white)("XXX")color(red)((d f(x))/(dx)=(-x^2-6x+4)/((x^2+4)^2))#

As noted (way back) this means that the limit values will occur when
#color(white)("XXX")(-x^2-6x+4)/((x^2+4)^2)=0#

#color(white)("XXX")rArr -x^2-6x+4=0#

then using the quadratic formula (look this up, Socratic is already complaining about the length of this answer)
when
#color(white)("XXX")x=-3+-sqrt(13)#

Rather than prolong the agony, we will simply plug these values into our calculator (or spreadsheet, which is how I do it) to get the limits:
#color(white)("XXX")f(-3-sqrt(13))~~-0.075693909#
and
#color(white)("XXX")f(-3+sqrt(13))~~0.825693909#

Jun 14, 2018

A simpler way of finding the range. The domain is #x in RR#. The range is #y in [-0.076, 0.826]#

Explanation:

The domain is #x in RR# as

#AA x in RR#, the denominator #x^2+4>0#

Let #y=(x+3)/(x^2+4)#

Cross multiply

#=>#, #y(x^2+4)=x+3#

#yx^2-x+4y-3=0#

This is a quadratic equation in #x#

There are solutions if the discriminant #Delta>=0#

#Delta=(-1)^2-4*(y)(4y-3)=1-16y^2+12y#

Therefore,

#1-16y^2+12y>=0#

#=>#, #16y^2-12y-1<=0#

The solutions of this inequality are

# y in [(12-sqrt((-12)^2-4*(-1)*16))/(32), ((-12)+sqrt((-12)^2-4*(-1)*16))/(32)]#

#y in [(12-sqrt(208))/32, (12+sqrt(208))/32]#

#y in [-0.076, 0.826]#

graph{(x+3)/(x^2+4) [-6.774, 3.09, -1.912, 3.016]}