Take the 2-minute tour ×
Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. It's 100% free, no registration required.

So why is it a function, even though for example $x = 8$; you'll have $y = +2$ and $y = -2$. It'll fail the vertical line test. But every textbook considers it as a function. Did I misunderstand something?

Edit: Wait how come $y = \sqrt{4 - x^2}$ is a function too when it can be transformed into $$ y = \sqrt{4-x^2} $$ $$ y^2 = 4- x^2$$ $$ x^2 + y^2 = 4 $$ $$ \frac{x^2}{4} + \frac{y^2}{4} = 1$$

which is an equation of a circle and not a function

share|improve this question
2  
$\sqrt x$ is defined as the nonnegative number $y$ such that $y^2=x$, when it exists. –  David Mitra Jan 22 '13 at 12:42
    
@DavidMitra so in functions I only take the principal root? Why? –  Men Jan 22 '13 at 12:43
2  
Not only in functions, but always. In the reals, the symbol "$\sqrt{x}$" means the nonnegative square root of $x$. –  David Mitra Jan 22 '13 at 12:46
    
Further reading on wikipedia –  Dahn Jahn Jan 22 '13 at 12:53
    
@vincentbelkin It is the definition of $\sqrt{x}$. $\sqrt{x}$ translates to "the principal square root of $x$", not "the square root of $x$". –  Tunococ Jan 22 '13 at 12:54

3 Answers 3

up vote 13 down vote accepted

Consider these two questions:

  1. Solve for $y$ in the equation: $y^2 = 4$.
  2. Evaluate $\sqrt{4}$.

These questions are related, but they are not the same.

For the first question, there are two answers: $\pm 2$, since both of these numbers squared will give you $4$.

The second asks: "what nonnegative number, when squared, gives you $4$?" The answer to that is $2$ (and not $-2$). In general for a nonnegative real number $x$, its square root, $\sqrt{x}$ is defined to be the nonnegative solution $y$ to $y^2 = x$.

Thus, $\sqrt{8-4} \neq -2$, so the graph $y=\sqrt{x-4}$ contains the point $(x,y) = (8,2)$ but not $(x, y) = (8, -2)$. In general there is at most one answer to the question "evaluate $\sqrt{x-4}$," so the graph does indeed pass the vertical line test. (You can see a sketch of the graph on Wolfram Alpha.)

(Things get more interesting when we try to define a square root of a complex number!)

Edit (in response to follow up question about $y = \sqrt{4-x^2}$): Consider the graphs of $y^2 = x$ and $y = \sqrt{x}$. Based on the discussion above, they are not the same graph. The graph $y^2 = x$ "transforms" into $y = \pm \sqrt{x}$, which is not a function.

share|improve this answer
    
Edited my post, shouldn't that be a circle? –  Men Jan 22 '13 at 13:17
1  
Tiny nitpicking, zero is non-negative but $\sqrt0$ has no positive solutions. :-) –  Asaf Karagila Jan 22 '13 at 13:18
    
@AsafKaragila, thanks! –  Alan C Jan 22 '13 at 13:28
    
@vincentbelkin, I edited my answer. –  Alan C Jan 22 '13 at 13:29

For the followup question:

$y = \sqrt{x}$ and $y^2 = x$ are not equivalent statements.

If $y = \sqrt{x}$ then $y^2 = x$ but not the other way around. Hence your equations $$y = \sqrt{4-x^2}$$ and $$x^2 + y^2 = 4$$ may very well have different sets of solutions, and they do. For the first of these equations, $y$ is automatically positive (because of the other discussions about the square root). The solutions of $y = \sqrt{4-x^2}$ form a semi-circle, the part of the circle $x^2 + y^2 = 4$ which correspond to points where $y \ge 0$.

share|improve this answer

It is a function because that square root sign in your expression denotes the principal square root. The principal square root of a positive number is defined as the positive square root of that number i.e. we discard the negative square root.

If that square root symbol instead denoted both the negative and positive square roots, then yes, it wouldn't be a function but a relation.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.