Navigation

Geometry in three dimensions

14.2 Functions of two variables

12 problems · hints, answers and solutions shown beside each one

Stage 1 · Conceptual

Q1Stage 1

Give an example of a function that has all of R2\mathbb R^2 in its domain, and whose range is a single number.

Hint

Once you pick the number for the range, you're basically done....

Answer

Any constant function, for example f(x,y)=0f(x,y)=0.

Full solution

Any constant function will do. For example, f(x,y)=0f(x,y)=0 or f(x,y)=1f(x,y)=1.

Q2Stage 1

Single-variable functions f(x)f(x) and g(x)g(x) are sketched below. Both have domain [1,1][-1,1].

Figure from prac_s1.4, line 2

Figure from prac_s1.4, line 2

y=f(x)y=f(x) y=g(x)y=g(x)

Based on the sketches, find the following.

  1. The range of f(x)f(x),

  2. the range of g(x)g(x),

  3. the domain of f(g(x))f(g(x)), and

  4. the range of f(g(x))f(g(x)).

Hint

This is a review of high-school material, since we have functions of only one variable. We want you to think about it to get in the right mindset.

Answer
  1. [10,10][-10,10]

  2. [0,1][0,1]

  3. [1,1][-1,1]

  4. [0,10][0,10]

Full solution
  1. The range of f(x)f(x) is [10,10][-10,10], since these are the yy-values in the sketch.

  2. The range of g(x)g(x) is [0,1][0,1], since these are the yy-values in the sketch.

  3. In order for f(g(x))f(g(x)) to be defined, we require 1g(x)1-1 \le g(x) \le 1. That is, the range of gg must be in the domain of ff. This is true for all values of g(x)g(x), so there is no extra domain restriction. The domain of f(g(x))f(g(x)) is [1,1][-1,1].

  4. Since the range of g(x)g(x) is [0,1][0,1], the numbers that get plugged into ff in the compound function f(g(x))f(g(x)) are only the numbers [0,1][0,1]. So, the range of this function is [0,10][0,10]. g(x)g(x) never spits out any negative values, so f(x)f(x) is restricted to the nonnegative part of its domain.

Remark: because we're going off imprecise sketches, it wouldn't be wrong to give open intervals, rather than closed intervals, as your answers.

Q3Stage 1

Is the point (x,y)=(1,1)(x,y)=(1,1) in the domain of the implicitly defined function

z2y3+zx3+xy=1 ?z^2y^3+zx^3+xy=1\ ?
Hint

If you set x=y=1x=y=1, is there a solution to the equation?

Answer

yes

Full solution

If x=1=yx=1=y, and (x,y,z)(x,y,z) is a point on the function, then:

1=z2(13)+z(13)+(1)(1)0=z2+z0=z or 1=z\begin{align*} 1&=z^2(1^3)+z(1^3)+(1)(1)\\ 0&=z^2+z\\ 0&=z \text{ or } -1=z \end{align*}

So yes, (1,1)(1,1) is in the domain.

There's some fine print here. There are two different values of zz corresponding to the input (x,y)=(1,1)(x,y)=(1,1). That means that globally, zz isn't a function of xx and yy, because a function should only ever have at most one output for any one input. Implicitly-defined functions often have this characteristic: it's not possible to write z=f(x,y)z=f(x,y) for any single function ff of xx and yy.

Stage 2 · Procedural

Q4Stage 2

Find the domain and range of the function

f(x,y)=4x2+y2f(x,y)=\sqrt{4x^2+y^2}
Hint

To find the range, consider all points in the domain with x=0x=0.

Answer

Domain: all of R2\mathbb R^2. Range: [0,)[0,\infty)

Full solution

The only part of the function that could possibly limit the domain is the square root: we must not try to take the square root of a negative number.

The expression 4x2+y24x^2+y^2 gives nonnegative numbers for any real values of xx and yy. So no matter what (x,y)(x,y) we input, there is no danger of taking the square root of a negative number. So, the domain is all of R2\mathbb R^2.

We've already noted that 4x2+y24x^2+y^2 will give us numbers from [0,)[0,\infty), but we should check whether it gives us all of those numbers. Indeed, if we set x=0x=0, we see

f(0,y)=y2=yf(0,y)=\sqrt{y^2}=|y|

the range of which is [0,)[0,\infty).

So by choosing x=0x=0 and the appropriate yy, we can indeed get f(x,y)f(x,y) to be any nonnegative number we desire. So, the range of ff is [0,).[0,\infty).

Q5Stage 2

Find the domain and range of the function

h(x,y)=x21+y2h(x,y)=\frac{x^2}{1+y^2}
Hint

For the range, consider h(x,0)h(x,0).

Answer

Domain: all of R2\mathbb R^2. Range: [0,)[0,\infty).

Full solution

The only restriction on our domain is that we can't divide by 0, and 1+y21+y^2 is never 0. So, our domain is all of R2\mathbb R^2.

Since x20x^2 \geq 0 and 1+y201+y^2\geq 0, we see first that h(x,y)h(x,y) is never negative. The question now is whether it can actually achieve all nonnegative real values. If we set y=0y=0, then h(x,0)=x2h(x,0)=x^2, which has range [0,)[0,\infty). So we can indeed find a point h(x,y)=h(x,0)h(x,y)=h(x,0) equal to any nonnegative number our hearts desire. That is, the range of h(x,y)h(x,y) is [0,)[0,\infty).

Q6Stage 2

Find the domain and range of the function

k(x,y)=arcsin(x2+y2)k(x,y)=\arcsin\left(x^2+y^2\right)
Hint

The domain of the function arcsin(x)\arcsin (x) is [1,1][-1,1], and its range is [π2,π2]\left[ -\frac{\pi}{2},\frac{\pi}{2}\right].

Answer

Domain: interior of the unit circle. Range: [0,π/2][0,\pi/2].

Full solution

Recall the domain of the function arcsin(x)\arcsin (x) is [1,1][-1,1], and its range is [π2,π2]\left[ -\frac{\pi}{2},\frac{\pi}{2}\right].

Since we can only put numbers from [1,1][-1,1] into arcsine, we require for our domain

1x2+y21-1\leq x^2+y^2 \leq 1

The left part of the inequality isn't hard, since x2+y2x^2+y^2 is never negative. The right side tells us

x2+y21x^2+y^2 \leq 1

i.e. (x,y)(x,y) is inside (or on) the unit circle.

Figure from prac_s1.4, line 2

Figure from prac_s1.4, line 2

Subject to the constraint x2+y21x^2+y^2 \le 1, the domain of x2+y2x^2+y^2 is [0,1][0,1]. The range of arcsinx\arcsin x subject to the constraint 0x10 \le x \le 1 is [0,π2]\left[0,\frac{\pi}2\right].

Figure from prac_s1.4, line 2

Figure from prac_s1.4, line 2

Red dotted line: range of x2+y2x^2+y^2 subject to restrictions.
Blue solid line: range of arcsin(x2+y2)\arcsin (x^2+y^2).

Stage 3 · Application

Q7Stage 3

Find the domain and range of the function

g(x,y)=1log(xy)g(x,y)=\frac{1}{\log(xy)}
Hint

One way of thinking of xy>0xy>0 is that xx and yy must have the same sign (and both be nonzero).

Answer

Domain: all points (x,y)(x,y) such that xx and yy have the same sign; xx and yy are nonzero; and y1xy \neq \frac1x.

Figure from prac_s1.4, line 4

Figure from prac_s1.4, line 4

Range: (,0)(0,)(-\infty,0)\cup(0,\infty).

Full solution

To find the domain of gg, there are two potential limiting issues: we can't divide by 0, and we can't take the logarithm of a nonpositive number.

  • Since we can't divide by 0, log(xy)0\log(xy) \neq 0, which means xy1xy \neq 1, or (equivalently) y1xy \neq \frac1x.

  • Since we can't take the logarithm of a nonpositive number, we need xy>0xy>0. That is, xx and yy must be both negative, or both positive.

Combining these two restrictions, the domain of g(x,y)g(x,y) is all points (x,y)(x,y) such that xx and yy have the same sign; they are nonzero; and y1xy \neq \frac1x. These points are graphed below. Dashed lines indicate points that are not in the domain.

Figure from prac_s1.4, line 4

Figure from prac_s1.4, line 4

With these restrictions, xyxy can be any nonnegative number except 1; which means log(xy)\log(xy) can be any real number except 0; and finally the range of the entire function is (,0)(0,)(-\infty,0)\cup(0,\infty). (This is illustrated in graphs below.)

Figure from prac_s1.4, line 2

Figure from prac_s1.4, line 2

Red dotted line: values of xyxy. Blue dashed line: values of log(xy)\log(xy)

Figure from prac_s1.4, line 12

Figure from prac_s1.4, line 12

Blue dashed line: values of log(xy)\log(xy). Green solid line: values of 1log(xy)\frac{1}{\log(xy)}

Q8Stage 3

Find the domain and range of the two-variable function

f(x,y)=x2x2+1f(x,y)=\frac{x^2}{x^2+1}
Hint

yy doesn't impact the final value of f(x,y)f(x,y), so think of this as a problem from last semester. What are the maximum and minimum values of the function f(x)=x2x2+1f(x)=\frac{x^2}{x^2+1}? Can you sketch its graph?

Answer

Domain: all of R2\mathbb R^2. Range: [0,1)[0,1).

Full solution

The only thing that might limit the domain of this function is dividing by zero; but since x2+1>0x^2+1>0 for all real values of xx, we see the domain of ff is the entire plane R2\mathbb R^2.

Since yy doesn't impact the value of ff, we can consider the single-variable function

g(x)=x2x2+1g(x) = \frac{x^2}{x^2+1}

Since f(x,y)=g(x)f(x,y)=g(x) for any (x,y)(x,y), the range of gg will be the same as the range of ff. Note g(x)g(x) is continuous over all real numbers. So, its range will be (global min)g(x)\leq g(x) \leq (global max). To help picture how g(x)g(x) behaves, note further that z=g(x)z=g(x) has a horizontal asymptote at z=1z=1, and g(x)g(x) is an even function. Let's find the critical points of g(x)g(x).

g(x)=(x2+1)(2x)x2(2x)(x2+1)2=2x(x2+1)2\begin{align*} g'(x)&=\frac{(x^2+1)(2x)-x^2(2x)}{(x^2+1)^2} = \frac{2x}{(x^2+1)^2} \end{align*}

The only CP of this function is x=0x=0. Its horizontal asymptotes are 1 in both directions. So, the basic shape of the function is:

Figure from prac_s1.4, line 2

Figure from prac_s1.4, line 2

So, its range is [0,1)[0,1).

Q9Stage 3

Find the domain and range of the function

f(x,y)=xx2+1+sinyf(x,y)=\frac{x}{x^2+1}+\sin y
Hint

Consider the functions f1(x)=xx2+1f_1(x)=\frac{x}{x^2+1} and f2(y)=sinyf_2(y)=\sin y separately.

Answer

Domain: all of R2\mathbb R^2. Range: [32,32]\left[-\frac32,\frac32\right].

Full solution

The domain of f(x,y)f(x,y) is all of R2\mathbb R^2: the only possible restriction is dividing by zero, but x2+1>0x^2+1>0 for all values of xx.

We can write f(x,y)f(x,y) as

f(x,y)=f1(x)+f2(y)f(x,y) = f_1(x) + f_2(y)

where f1(x)=xx2+1f_1(x)=\frac{x}{x^2+1} and f2(y)=sinyf_2(y)=\sin y. Since there is not term depending on both xx and yy, the maximum value of ff will occur when xx maximizes f1f_1 and yy maximizes f2f_2. Similarly, the minimum value of ff will occur when xx minimizes f1f_1 and yy minimizes f2f_2. Since these two functions are both continuous, we see that the range of ff will be

(min of f1 + min of f2)f(x,y)(max of f1 + max of f2)\text{(min of }f_1\text{ + min of }f_2\text{)} \leq f(x,y) \leq \text{(max of }f_1\text{ + max of }f_2\text{)}

The range of f2(y)=sinyf_2(y)=\sin y is easy: it's [1,1][-1,1]. Let's consider f1(x)=xx2+1f_1(x)=\frac{x}{x^2+1}. Note its horizontal asymptotes are 0 in both directions, and it's an odd function. To find its extrema, let's sketch it, starting by finding its critical points.

f1(x)=(x2+1)(1)x(2x)(x2+1)2=1x2(x2+1)2=(1+x)(1x)(x2+1)2\begin{align*}f_1'(x)&=\frac{(x^2+1)(1)-x(2x)}{(x^2+1)^2} = \frac{1-x^2}{(x^2+1)^2} = \frac{(1+x)(1-x)}{(x^2+1)^2}\end{align*}

The CPs of f1f_1 are x=1x=1 and x=1x=-1.

f1(1)=112+1=12f1(1)=1(1)2+1=12\begin{align*}f_1(1)&=\frac{1}{1^2+1}=\frac12 \\f_1(-1)&=\frac{-1}{(-1)^2+1}=-\frac12\end{align*}

To sketch f1f_1, let's find the sign of its first derivative on the intervals between its critical points.

Figure from prac_s1.4, line 1

Figure from prac_s1.4, line 1

Now we have enough information to sketch z=f1(x):z=f_1(x):

Figure from prac_s1.4, line 1

Figure from prac_s1.4, line 1

So, the range of f1(x)f_1(x) is [12,12]\left[-\frac12,\frac12\right].

All together, the range of f(x,y)f(x,y) is [32,32]\left[-\frac32,\frac32\right].

Q10Stage 3

If a company spends aa dollars on advertisements, and sells the advertised product at pp dollars each, then the number of units that will be sold is given as a function D(a,p)D(a,p).

Give a sensible model domain and range.

Hint

Do you see any signs that might point you in the right direction?

Answer

For example: domain should be all (a,p)(a,p) where a0a \ge 0 and p>0p>0; range should be [0,)[0,\infty).

Full solution

Some general assumptions might be that the amount of money spend on advertisements shoudn't be negative, so we should have a0a \ge 0. Similarly, it's reasonable to assume that the company is not giving away its product, nor paying people to take it, so p>0p>0. Finally, people won't demand a negative number of goods, so the range should be nonnegative.

That is one way of thinking about the problem, but different models might have different restrictions. For example, from time to time (including a time in 2020) oil futures trade at negative values: people were paying to give them away. So for certain models, negative prices and negative demands do make sense.

For other models, also an upper bound of some sort probable makes sense. Maybe you aren't able to sell more than one million of your product, because you don't have the capacity to manufacture more. Maybe demand will never exceed one product per person in your area. Such restrictions would further impact the domain and range that make sense for your model.

Q11Stage 3

You're using the function

f(x,y)=1x2+y2f(x,y) = \frac{1}{x^2+y^2}

to model some process. In your model, the only values of the range that make sense are

3f(x,y)53 \le f(x,y) \le 5

What is your model domain?

Hint

The domain will look like a ring

Answer

15x2+y213\frac15 \leq x^2+y^2 \leq \frac13: that is, the points (x,y)(x,y) that are inside or on the circle centred at the origin with radius 13\frac{1}{\sqrt 3}, but not inside the circle centred at the origin with radius 15.\frac{1}{\sqrt 5}.

Figure from prac_s1.4, line 4

Figure from prac_s1.4, line 4

Full solution

For this question, we solve two inequalities.

31x2+y2    13x2+y251x2+y2    15x2+y2\begin{align*} 3 &\leq \frac{1}{x^2+y^2}\\ \implies \frac13 &\geq x^2+y^2\\[10pt] 5 &\geq \frac{1}{x^2+y^2}\\ \implies \frac15 &\leq x^2+y^2 \end{align*}

So, the points (x,y)(x,y) must be both:

  • inside or on the circle centred at the origin with radius 13\frac{1}{\sqrt 3}, and

  • not inside the circle centred at the origin with radius 15\frac{1}{\sqrt 5}.

Figure from prac_s1.4, line 4

Figure from prac_s1.4, line 4

Q12Stage 3

You're using the function

g(x,y)=72[x2y]2[x2y]4g(x,y) = 72\big[x^2-y\big]^2-\big[x^2-y\big]^4

to model some process. In your model, the only values of the range that make sense are

272g(x,y)1175272 \le g(x,y) \le 1175

What is the corresponding model domain?

Hint

First work with the function

h(t)=72t2t4h(t) = 72t^2-t^4

Then, think about the implications of t=x2yt=x^2-y.

Answer

The point (x,y)(x,y) must be in one of the following regions:

  • x268yx247x^2-\sqrt {68} \leq y \leq x^2-\sqrt{47}

  • x25yx22x^2-5 \leq y \leq x^2-2

  • x2+2yx2+5x^2+2 \leq y \leq x^2+5

  • x2+47yx2+68x^2+\sqrt{47} \leq y \leq x^2+\sqrt{68}

Figure from prac_s1.4, line 1

Figure from prac_s1.4, line 1

Full solution

The bracketing in the definition of g(x,y)g(x,y) is suggestive. If we define t=x2yt=x^2-y, then we get the function

h(t)=72t2t4h(t)=72t^2-t^4

This is easy enough to graph using tools from last semester.

  • hh is an even function

  • limth(t)=\lim\limits_{t \to \infty}h(t) = -\infty

  • h(t)=144t4t3=4t(36t2)=5t(6+t)(6t)h'(t) = 144t-4t^3=4t(36-t^2)=5t(6+t)(6-t), so critical points are at t=0t=0 and t=±6t=\pm 6

  • h(t)h'(t) is negative on (6,0)(6,)(-6,0) \cup (6,\infty) and positive on (,6)(0,6)(-\infty,-6)\cup (0,6).

  • The absolute maximum of h(t)h(t) is h(6)=h(6)=64=1296h(-6)=h(6)=6^4=1296, and h(0)=0h(0)=0 is a local minimum.

Sketched below is z=72t2t4z=72t^2-t^4, with parts in the model range highlighted.

Figure from prac_s1.4, line 2

Figure from prac_s1.4, line 2

To find the tt-values that correspond to the model range, we solve:

72t2t4=11750=t472t2+1175t2=72±7224(1)(1175)2=72±4(362)4(1175)2=72±236211752=36±3621175=36±121=36±11=25 or 47t=±5 or ±47\begin{align*}72t^2-t^4&=1175\\ 0&=t^4-72t^2+1175\\ t^2&=\frac{72\pm\sqrt{72^2-4(1)(1175)}}{2} \\&=\frac{72\pm\sqrt{4(36^2)-4(1175)}}{2} \\&=\frac{72\pm2\sqrt{36^2-1175}}{2} \\&=36\pm\sqrt{36^2-1175} \\&=36\pm\sqrt{121} \\&=36\pm11 \\&=25 \text{ or }47 \\t&=\pm5 \text{ or }\pm\sqrt{47}\end{align*}

Similarly,

72t2t4=2720=t472t2+272t2=72±7224(1)(272)2=72±4(362)4(272)2=72±23622722=36±362272=36±1024=36±32=4 or 68t=±2 or ±68\begin{align*}72t^2-t^4&=272\\ 0&=t^4-72t^2+272\\ t^2&=\frac{72\pm\sqrt{72^2-4(1)(272)}}{2} \\&=\frac{72\pm\sqrt{4(36^2)-4(272)}}{2} \\&=\frac{72\pm2\sqrt{36^2-272}}{2} \\&=36\pm\sqrt{36^2-272} \\&=36\pm\sqrt{1024} \\&=36\pm32 \\&=4 \text{ or }68 \\t&=\pm2 \text{ or }\pm\sqrt{68}\end{align*}

So, now we can fill in our sketch with tt-values:

Figure from prac_s1.4, line 2

Figure from prac_s1.4, line 2

So we need to have tt in [68,47][5,2][2,5][47,68][-\sqrt{68},-\sqrt{47}]\cup [-5,-2]\cup[2,5]\cup[\sqrt{47},\sqrt{68}].

Now, recall we used t=x2yt=x^2-y. So if we have atba \leq t \leq b, then this gives us two inequalities:

tb    x2yb    x2by\begin{align*}t & \leq b\\ \implies x^2-y & \leq b\\ \implies x^2 - b & \leq y\end{align*}

and

ta    x2ya    x2ay\begin{align*}t & \geq a\\ \implies x^2-y & \geq a\\ \implies x^2 - a & \geq y\end{align*}

So, tt in the interval [a,b][a,b] implies that (x,y)(x,y) must satisfy x2byx2ax^2-b \leq y \leq x^2-a:

Figure from prac_s1.4, line 1

Figure from prac_s1.4, line 1

We have four such possible intervals. All together, the point (x,y)(x,y) must be in one of the following regions:

  • x268yx247x^2-\sqrt {68} \leq y \leq x^2-\sqrt{47}

  • x25yx22x^2-5 \leq y \leq x^2-2

  • x2+2yx2+5x^2+2 \leq y \leq x^2+5

  • x2+47yx2+68x^2+\sqrt{47} \leq y \leq x^2+\sqrt{68}

Figure from prac_s1.4, line 1

Figure from prac_s1.4, line 1

From the UBC Math 100 open textbook project, © Joel Feldman, Andrew Rechnitzer, Elyse Yeager and others. Licensed CC BY-NC-SA 4.0; this HTML adaptation is released under the same licence. Full attribution.