Exercises 1

This page allows you to practice some exercises on Functions of One Variable. If you notice that you have difficulties, we advise you to go over the corresponding sections in the book.

Question 1

Let f(x)=x2+1f(x) = x^2 + 1. For what values of xx is it true that (a) f(x)=f(x)f(x) = f(-x)

(b) f(x+1)=f(x)+f(1)f(x + 1) = f(x) + f(1)

(c) f(2x)=2f(x)f(2x) = 2f(x)

Show answer

(a) For any xRx \in \mathbb{R} we have that x2=x2-x^2=x^2. Hence, f(x)=x2+1=(x)2+1=f(x)f(x) = x^2 + 1 = (-x)^2 + 1 = f(-x) for xRx \in \mathbb{R}.

(b) Notice that f(1)=12+1=2f(1) = 1^2 + 1 = 2. Hence, f(x)+f(1)=x2+3f(x) + f(1) = x^2 + 3. Also notice that f(x+1)=(x+1)2+1=x2+2x+2f(x+1) = (x+1)^2 + 1 = x^2 + 2x + 2. Thus, x2+2x+2=x2+32x+2=32x=1x=12x^2 + 2x + 2 = x^2 + 3 \Leftrightarrow 2x+2 = 3 \Leftrightarrow 2x = 1 \Leftrightarrow x = \frac{1}{2}

(c) Notice that f(2x)=(2x)2+1=4x2+1f(2x) = (2x)^2 + 1 = 4x^2 + 1 and 2f(x)=2(x2+1)=2x2+22f(x) = 2(x^2 + 1) = 2x^2 + 2. Thus, f(2x)=2f(x)4x2+1=2x2+22x2=1x2=12x=±12=±22f(2x)=2f(x) \Leftrightarrow 4x^2 + 1 = 2x^2 + 2 \Leftrightarrow 2x^2 = 1 \Leftrightarrow x^2 = \frac{1}{2} \Leftrightarrow x = \pm \frac{1}{\sqrt{2}} = \pm \frac{\sqrt{2}}{2}

Remark relevant for (c): for fractions of the form abc\frac{a}{b \sqrt{c}}, for integers aa and bb and natural number cc a widely used convention is to rewrite such a fraction as acbc\frac{a \sqrt{c}}{b c}. Please double-check if you understand why these two forms are equivalent.

Question 2

Let f(x)=x/(1+x2)f(x) = x/(1+x^2).

(a) Show that f(x)=f(x)f(-x) = -f(x) for all xx.

(b) Show that f(1/x)=f(x)f(1/x) = f(x) for x0x \neq 0.

Show answer

(a) First, notice, by substitution (i.e., replacing xx by transformed input x-x) that f(x)=x/(1+(x)2)f(-x) = -x / (1 + (-x)^2). Also, from Question 1.a, recall that (x)2=x2(-x)^2 = x^2. Hence, f(x)=x/(1+x2)=f(x)f(-x) = - x / (1+ x^2) = -f(x).

(b) Again using substitution (now replacing xx by transformed input 1/x1/x), we have that f(1/x)=(1/x)/(1+(1/x)2)f(1/x) = (1/x)/(1+(1/x)^2). Evaluating f(1/x)f(1/x) for x=0x=0 is fairly tricky (do you see why?), but as indicated in the question, we may ignore that case. For x0x \neq 0, f(1/x)f(1/x) is easy to evaluate. By multiplying numerator and denominator in our expression for f(1/x)f(1/x) by x2x^2, we find that f(1/x)=(x2/x)/(x2+x2(1/x)2)=x/(x2+1)=x/(1+x2)=f(x)f(1/x) = (x^2/x )/(x^2 + x^2 \cdot (1/x)^2) = x / (x^2 + 1) = x/(1+x^2) =f(x).

Question 3

Show the following results. (a) If f(x)=100x2f(x) = 100x^2, then f(tx)=t2f(x)f(tx) = t^2f(x) for all tt.

(b) If P(x)=x1/2P(x) = x^{1/2}, then P(tx)=t1/2P(x)P(tx) = t^{1/2}P(x) for all t0t \geq 0.

Show answer

(a) f(tx)=100(tx)2=100t2x2=t2100x2=t2f(x)f(tx) = 100 (tx)^2 = 100 t^2 x^2 = t^2 100 x^2 = t^2 f(x).

(b) P(tx)=(tx)1/2=t1/2x1/2=t1/2P(x)P(tx) = (tx)^{1/2} = t^{1/2} x^{1/2} = t^{1/2} P(x).

Question 4

Show the following results.

(a) If f(x)=Axf(x) = Ax, show that f(a+b)=f(a)+f(b)f(a + b) = f(a) + f(b) for all numbers aa and bb.

(b) If f(x)=10xf(x) = 10^{x}, show that f(a+b)=f(a)f(b)f(a+b) = f(a) \cdot f(b) for all natural numbers aa and bb.

Show answer

(a) Notice that f(a)=Aaf(a)=Aa (warning! AA and aa do not have to be the same numbers; uppercase and lowercase letters matter in math) and f(b)=Abf(b)=Ab. Thus, f(a)+f(b)=Aa+Ab=A(a+b)f(a) + f(b) = Aa + Ab = A(a+b). In addition, again using substitution, notice that f(a+b)=A(a+b)f(a+b) = A (a + b). Hence, we conclude f(a+b)=f(a)+f(b)f(a+b) = f(a) + f(b)

(b) By substitution, notice that f(a+b)=10a+b=10a10bf(a+b) = 10^{a+b} = 10^a \cdot 10^b. Moreover, since f(a)=10af(a)=10^a and f(b)=10bf(b)=10^b, it follows that f(a)f(b)=10a10b=f(a+b)f(a) \cdot f(b) = 10^a \cdot 10^b = f( a + b). Since this holds true for all a,bRa,b \in \mathbb{R}, surely this also holds true for all a,bNa,b \in \mathbb{N}, since NR\mathbb{N} \subset \mathbb{R}.

Question 5

Find the domains of the following functions.

(a) y=5xy = \sqrt{5-x}

(b) y=(2x1)/(x2x)y = (2x - 1)/(x^2 - x)

(c) y=x1(x2)(x+3)y = \sqrt{\frac{x-1}{(x-2)(x+3)}}

Show answer

(a) In real analysis (i.e., only considering numbers in R\mathbb{R}), the square root is only defined for nonnegative numbers. Thus, for yy to be defined, 5x5-x has to be nonnegative. To write down this requirement mathematically: 5x05-x \geq 0. Adding xx to both sides of this inequality yields x5x \leq 5. In other words, the domain $D$ of this function is given by the set of all real numbers less than or equal to five. We can write this down in set-builder notation as well as interval notation as follows:

  1. D={xR:x5}D = \{ x \in \mathbb{R} : x \leq 5\} and

  2. D=(,5]D = ( - \infty, 5].

(b) Both the numerator and denominator yield real-valued numbers of any xRx \in \mathbb{R} (verify yourself!). Thus, the only cases where yy may not be a real-valued number is when the denominator equals zero. More specifically, any value for xx s.t. that numerator is nonzero while the denominator is zero cannot be part of the domain for yy. Cases where both numerator and denominator are zero require more attention (using the so-called L'Hôpital's rule, which you will learn about later).

For now, we look for xx s.t. x2x=0x^2 - x=0. Factoring out xx, we have that x2x=x(x1)x^2 - x = x(x-1). Hence, x=0x=1x = 0 \lor x = 1. Interestingly, for those two values, the numerator is nonzero. Hence, we can immediately conclude that yy is not defined for those values of xx. Thus, using interval notation, we conclude that the domain is given by D=(,0)(0,1)(1,)D=(-\infty, 0) \cup (0,1) \cup (1, \infty).

Question 6

Find the domain and the range of g(x)=1x+2g(x) = 1 - \sqrt{x+2}.

Show answer

Using logic that is analogous to that used in Question 5a, we have that the domain is given by D=[2,)D = [-2, \infty). Also notice that x+2x+2 increases continuously with xx. Similarly, x+2\sqrt{x+2} increases continuously with xx. Hence, g(x)=1x+2g(x) = 1 - \sqrt{x+2} decreases continuously with xx. Therefore, g(x)g(x) attains its highest value for x=2x=-2. At that point, we have g(2)=1g(-2)=1. Moreover, as xx \rightarrow \infty, we have that g(x)g(x) \rightarrow - \infty (check yourself!). Consequently, the range is given by R=[1,)R = [1,\infty).

Last updated