News for hackers. Stuff that matters.
Re:A visual proof that a^2 – b^2 = (a + b)(a – b) by cowsandmilk on Sunday December 15, 2024 @01:36PM (#42425071)
What is a is positive and b is negative? How do you extend the visual proof?
Re:A visual proof that a^2 – b^2 = (a + b)(a – b) by chisquared on Sunday December 15, 2024 @03:18PM (#42425681)
If b is negative, define c = -b, and use the linked result to show that

a^2 - b^2 = a^2 - (-c)^2 = a^2 - c^2 = (a + c)(a - c) = (a + b)(a - b)

Re:A visual proof that a^2 – b^2 = (a + b)(a – b) by jacobolus on Sunday December 15, 2024 @02:02PM (#42425237)
You can do this if you extend your concepts of length and area to signed quantities. You have to be clear to explain how the setup of the drawing works, but instead of cutting away a square of side b out of the corner of the square of side a, you might end up appending a negatively-signed square of side −b.
Re:A visual proof that a^2 – b^2 = (a + b)(a – b) by chisquared on Sunday December 15, 2024 @03:19PM (#42425685)
There’s no need for this extension: https://news.ycombinator.com/item?id=42425681
Re:A visual proof that a^2 – b^2 = (a + b)(a – b) by jacobolus on Monday December 16, 2024 @08:44AM (#42430869)
Well the whole point here is that we're doing geometry. If you just want to do symbol twiddling you don't need the picture at all.
Re:A visual proof that a^2 – b^2 = (a + b)(a – b) by lizzas on Sunday December 15, 2024 @02:16PM (#42425319)
I am not convinced since in this world you can have the following rects:

1 x 1

1 x -1

-1 x -1

Is just the middle one a cut out?

I reckon you need the axiom from the field to do generalize this to negative numbers.

https://en.m.wikipedia.org/wiki/Field_(mathematics)