# Regarding functions how can simplifying a function change it's domain

1. Apr 4, 2012

### Marmoteer

for example
if $f(x) = \frac{x^{2} - 1}{x+1}$

they by factoring:

$f(x) = \frac{x^{2} - 1}{x+1} = \frac{(x + 1)(x - 1)}{x+1} = x - 1$

thus the simplified version is $x - 1$

let's say $g(x) =$ simplified $f(x)$

$g(x) = x - 1$

meaning $g(x) = f(x)$

but

$g(-1) ≠ f(-1)$

am I missing something?

Last edited: Apr 4, 2012
2. Apr 4, 2012

### BloodyFrozen

$f(x) = \frac {x^2-1}{x+1}$
$f(0) = \frac {0^2-1}{0+1}$
$f(0) = -1$

$g(x) = x-1$
$g(0) = 0-1$
$g(0) =-1$
The two functions act the same except at x = -1 at which $f(x)$ has a hole at -1.

3. Apr 4, 2012

### Marmoteer

Oops Sorry I meant to write $g(-1) ≠ f(-1)$

4. Apr 5, 2012

### Stephen Tashi

Symbolic manipulations in math are an abbreviation for thought, not a substitute for it. If you "simplify" an expression without thinking about it, you can make a faulty deduction. The correct deduction is

$\frac{(x+1) (x-1)}{x+1} = x-1$ except when $x = -1$.

There may be types of math where you only manipulate symbols and never use ordinary language, but algebra is not one of them.

5. Apr 5, 2012

### HallsofIvy

What you are "missing" is that this is not true. What is true is that f(x)= g(x) for all x except x= -1. f and g are NOT the same function.

6. Apr 5, 2012

### mesa

Is there an easy way to spot a problem like this, or is it something you just get better at over time?

7. Apr 5, 2012

### HallsofIvy

You should have learned long ago that you cannot divide by 0 so that the division in
$$\frac{(x- 1)(x+1)}{x+1}= x- 1$$
is only valid when $x+ 1\ne 0$ which is only true when $x\ne -1$.

8. Apr 5, 2012

### Stephen Tashi

There are common traps, like expessions that "don't work" for some values of variables because they involve division by zero or square roots of negative numbers etc.

You'll get better at spotting the common traps over time if you become suspicious of any form of calculation. Don't trust. Don't believe.

9. Apr 8, 2012

### mesa

The dividing by zero makes a lot of sense, I was surprised to see it still apllied even when the numerator would also equal 0 hence 0/0. I will certainly be mindful of this and irrational numbers in the future, thanks for the tip!