4
$\begingroup$

How a function which is not defined for some value can be equal to a function which is defined for the same value? How is $f(x) = \frac{(x-2)(x-3)}{(x-2)(x-4)}$ equal to $g(x) = \frac{(x-3)}{(x-4)}$ when their domains are different?

$\endgroup$
  • $\begingroup$ I would agree that they are not equal. Although they are equal at any value where they are both defined. $\endgroup$ – paw88789 Dec 16 '14 at 18:08
  • 1
    $\begingroup$ You need to be precise what you mean. In some contexts they are equal in other contexts they are not equal. Sometimes people also are just sloppy. $\endgroup$ – quid Dec 16 '14 at 18:10
  • $\begingroup$ When I put them into wolfram alpha to test for equality it says that they are equal. Also, I know that simplifying yields to an equivalent fraction. $\endgroup$ – LearningMath Dec 16 '14 at 18:10
8
$\begingroup$

The actual problem is that what you wrote there are not the functions, but just two terms varying by a certain parameter.

In order to call those a function, you have to define the domain, which would look like this:

$$f: \mathbb{R}\setminus\{2, 4\}\rightarrow \mathbb{R}, x \mapsto f(x) := \frac{(x-2)(x-3)}{(x-2)(x-4)}\\ g: \mathbb{R}\rightarrow \mathbb{R}, x \mapsto g(x) := \frac{(x-3)}{(x-4)}\\$$ Now, $f\ne g$, but it equals the restriction of g to the domain of f: $f = g|_{\mathbb{R}\setminus \{2, 4\}}$

EDIT: Let me explain a bit more about how to compare terms and functions regarding equality.

  • Functions are defined as relations with certain properties (uniqueness & definedness of the argument): $f: A\rightarrow B, x\mapsto f(x) :\Leftrightarrow f := \{(x, y)\in A\times B|y = f(x)\}$, which has to hold $\forall x\in A\exists!y\in B: (x, y)\in f$ as the defining property of a function.

  • If two functions are equal is therefore just a question of comparing two sets. It holds if both contain exactly the same elements $(x, f(x))$. Thus, they must have the same domain.

  • When comparing two expressions regarding equality, one has to be careful as well: Let $f(x), g(x)$ be expressions. $f(x) = g(x)$ would not be a logical statement, because We do not know what x is — therefore, we have to give an explicit x or quantorize it: $$\forall x: f(x) = g(x)$$ Because a quantorization without limiting x to a certain set (let's say $\mathbb{R}$) would only make sense if we would concern f(x) = g(x) = x, which would allow x to be something else than a number, you have to give a domain in some way as well. For instance, let $f(x) := \frac{x-1}{x-1}, g(x) := 1$: $\forall x\in M: f(x)=g(x)$ would hold true for M = $\mathbb{R}\setminus \{1\}$, but not for $\mathbb{R}$, because there is no $f(x)$ at $x=1$.

$\endgroup$
  • $\begingroup$ What do I need in order to compare the two functions? I mean which things(domain,codomain, etc) $\endgroup$ – LearningMath Dec 16 '14 at 18:26
  • $\begingroup$ What do you mean by compare? $\endgroup$ – Lukas Juhrich Dec 16 '14 at 18:27
  • $\begingroup$ To compare for equality. $\endgroup$ – LearningMath Dec 16 '14 at 18:28
  • $\begingroup$ Well, a function is actually just a relation (a set of 2-tuples) with certain properties, more explicitly $f = \{x, f(x)\}$, which makes it just the comparison of two sets. $\endgroup$ – Lukas Juhrich Dec 16 '14 at 18:30
  • 1
    $\begingroup$ The domain of the first function is R/{2}. When we do transformations on the first function to get the second we are dividing by (x-2) and "define" a new function g(x) equal to the previous but we restrict it's domain to R/{2}? Because if we let the domain to be R then they are not equal functions? Am I right? $\endgroup$ – LearningMath Dec 16 '14 at 18:33
2
$\begingroup$

They are not. You can only say they assume the same values in the intersection of their domains, that is: $$f|_{D(f) \cap D(g)} = g|_{D(f) \cap D(g)}.$$


This answer assumes the definition: two functions $f:A \to B$ and $g:C \to D$ are equal if: $A = B$, $C = D$ and $f(x) = g(x)$ for all $x \in A = C$.

$\endgroup$
  • $\begingroup$ What is $D(f)$? $\endgroup$ – quid Dec 16 '14 at 18:11
  • $\begingroup$ Here I meant the domain of $f$. Could be ${\rm dom} (f)$, too :) $\endgroup$ – Ivo Terek Dec 16 '14 at 18:12
  • $\begingroup$ How is that defined? $\endgroup$ – quid Dec 16 '14 at 18:12
  • $\begingroup$ The Domain of f. For $f: A\rightarrow B$, $D(f) = A$. $\endgroup$ – Lukas Juhrich Dec 16 '14 at 18:12
  • 1
    $\begingroup$ The problem is that OP didn't specify the exact domains in the problem. So we just assume that it's the largest domain possible for each function. I added in my answer the definition of equality of functions I'm assuming. $\endgroup$ – Ivo Terek Dec 16 '14 at 18:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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