Why simplifying this function generates different outputs for same input?

  • Context: High School 
  • Thread starter Thread starter gen x
  • Start date Start date
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
8 replies · 519 views
gen x
Messages
102
Reaction score
5
This function ##f(x) = \frac{x^2 - 4}{x - 2}## when simplify become ##f(x) = x + 2## .

If I enter ##x=2## in the first expression I get ##y=\frac{0}{0}##, and if I enter ##x=2## in the second expression I get ##y=4##.


Why different results if this is same function, just simplifly?
 
Reply
  • Like
Likes   Reactions: FactChecker
Mathematics news on Phys.org
gen x said:
Why different results if this is same function, just simplifly?

Because you cannot "just simplify" unless you specifically exclude ##x=2## at which point, as you have discovered, the function is undefined. In other words, the two functions are "the same" except at ##x=2.##

What would you say to someone who argues that, for any ##a##, $$f(2)=\frac{2^2-4}{2-2}=\frac{0}{0}=\frac{0\cdot a}{0}=\frac{\cancel{0}\cdot a}{\cancel{0}}=a~~?$$
 
Reply
  • Like
Likes   Reactions: gen x and FactChecker
gen x said:
This function ##f(x) = \frac{x^2 - 4}{x - 2}## when simplify become ##f(x) = x + 2## .

If I enter ##x=2## in the first expression I get ##y=\frac{0}{0}##, and if I enter ##x=2## in the second expression I get ##y=4##.


Why different results if this is same function, just simplifly?
The two functions are identical except at the point (2, 4). The graph of ##f(x) = \frac{x^2 - 4}{x - 2}## can be thought of as a straight line whose slope is 1 and with a y-intercept of 2, but with a "hole" at (2, 4).
 
Reply
  • Like
Likes   Reactions: gen x and FactChecker
Good catch! You did very well to check the final answers in the original formula. As you go through a simplification, you should keep track of any values of x where the original function was undefined. That can become difficult and tricky. It is wise to check your results in the original formula.
 
FactChecker said:
As you go through a simplification, you should keep track of any values of x where the original function was undefined.
An important attribute of any function is its domain. The difference between the two functions in the OP is that, because of the division, the domain can't include any number that causes division by zero. Similar restrictions occur with some of the trig functions, log functions, and so on.
 
Reply
  • Like
Likes   Reactions: gen x and FactChecker
OK thanks for answer, I always thought that simplify function doesn't change absolute nothing..
 
I agree and remember that I found this mysterious back then.
Think of it as "dividing by zero", which is forbidden. So, this simplification is forbidden.
 
willyengland said:
So, this simplification is forbidden.
It is forbidden specifically at ##x=2##. Elsewhere it is not forbidden.
 
Reply
  • Like
Likes   Reactions: FactChecker
gen x said:
OK thanks for answer, I always thought that simplify function doesn't change absolute nothing..
Correct simplification includes keeping track of where the original function was undefined.
 
Reply
  • Agree
Likes   Reactions: Mark44