Ridiculously embarrassing question, but can $\frac{x^2-x}{x^2-25}$ be simplified to simply $\frac{1-x}{1-25}$?

Full thought process here is that this is essentially $\frac{x*x-x}{x*x-25}$ so the $x$s should cancel. The full problem is:$$\frac{x^2-x-30}{x^2-25}$$

sorry

I'm used to programming forums where a simplest-case example of an error is the way to ask about it. I should have made the full problem clearer earlier as $-$ unfortunately $-$ this lead to someone who gave more information being wrong at the final problem and I can't mark both answers right.

A good rule of thumb to avoid the issue of "fortuitous equality" is to use a transcendental constant like $\pi$ rather than "nice" numbers like $2$. When dealing with a polynomial/rational equation, no transcendental constant will ever satisfy it unless the equation is identically true.
–
DeepakAug 15 '14 at 2:29

@Deepak that can be generalized even further to: given a function $f(x)$ and a set of values $Q$ that can be produced by plugging in an algebraic number $x$ into $f$ and/or $w$ that produces an algebraic number when plugged into $f$, one should opt to test with a number $u$ that exists outside this group. That way even with funky sines and cosines where certain transcendental constants lead to "fortuitous equality" we know to avoid them
–
frogeyedpeasAug 15 '14 at 7:43

@frogeyedpeas Thank you that's a good point. I was thinking of transcendental equations and how the complementary approach would work but decided to just focus on the problem at hand.
–
DeepakAug 15 '14 at 22:48

No. If you want to divide numerator and denominator by $x^2$, you will get $\dfrac{1-\frac1x}{1-\frac{25}{x^2}}$, which isn't really simpler. If you really want to do something to simplify it, you can rewrite it as

To simplify a fraction, you want to factor the numerator and denominator and see what cancels. The denominator $x^2-25$ is a difference of squares: $x^2-25=(x+5)(x-5)$, so see if either of those factors divides the numerator. When you say $x$s should cancel you should understand that "cancel" means "divide by". The $25$ term does not have a factor of $x$, so you can't cancel it.

I would suggest that this will not contribute to understanding by OP (even though correct as long as $x \neq -5$)
–
Ross MillikanAug 15 '14 at 2:30

He seemed to have thought about the solution after the discussion about improper cancellation. I thought about just saying he should factor the polynomials, but see Gahawars post calling the $x^2$ terms "factors". It seemed that this would confuse the issue. Perhaps I was wrong.
–
Paul SundheimAug 15 '14 at 2:36

(changed which answer was marked as correct, although this was helpful in a secondary sort of way)
–
theStandardAug 15 '14 at 2:37