Considering integer number A, here A indicates any 2- or 3-digit integer number. According to the algebraic formula, we have the following equation,

A2=(A+d)(A-d)+d2 (3.1)

For examples,

If a number falls under 100, we simply figure the difference between 100 and the number. Let's try a few examples.

Using eq.(3.1) we have

962=(96+4)(96-4)+42

=100x92+16=9216

922=(92+8)(92-8)+82

=100x84+64=8464

882=(88+12)(88-12)+122

=100x76+144=7744

522=(52+2)(52-2)+22

=54x50+4=2704

672=(67+3)(67-3)+32

=70x64+9=4489

or

672=(67+33)(67-33)+332

=100x34+1089=4489

If the number to be squared is more than 100, we found

1062=(106+6)(106-6)+62

=11200+36=11236

1102=(110+10)(110-10)+102

=120x100+100=12100

1142=(114+14)(114-14)+142

=128x100+196=12996

1272=(127+27)(127-27)+272

=15400+729=16129

We apply the same thinking when we square a number that's near 1000. Let's try it on 9972:

9972=(997+3)(997-3)+32

=1000x994+9=994009

10122=(1012+12)(1012-12)+122

= 1024x1000+144=1024144

9932=(993+7)(993-7)+72

=1000x986+49=986049

10042=(1004+4)(1004-4)+42

=1008000+16=1008016