No. These patterns do not hold only for counting numbers. They hold for negative integers and for fractions as well. In fact, both are algebraic identities, so they are true for all real numbers for which the expressions are defined.
Pattern 1: \(2(a^2+b^2)=(a+b)^2+(a-b)^2\)
Expand the right-hand side:
\[(a+b)^2+(a-b)^2\]
\[= (a^2+2ab+b^2)+(a^2-2ab+b^2)\]
\[= 2a^2+2b^2\]
\[= 2(a^2+b^2).\]
So Pattern 1 is true for any real numbers \(a\) and \(b\), including negative integers and fractions.
Pattern 2: \(a^2-b^2=(a+b)(a-b)\)
Expand the right-hand side:
\[(a+b)(a-b)\]
\[= a(a-b)+b(a-b)\]
\[= a^2-ab+ab-b^2\]
\[= a^2-b^2.\]
So Pattern 2 is also true for any real numbers \(a\) and \(b\), including negative integers and fractions.
Checking with a negative-integer example: let \(a=-3\), \(b=-2\).
For Pattern 1:
Left side:
\[2(a^2+b^2)=2(9+4)=2\times 13=26.\]
Right side:
\[(a+b)^2+(a-b)^2=(-5)^2+(-1)^2=25+1=26.\]
Both sides are equal.
For Pattern 2:
Left side:
\[a^2-b^2=9-4=5.\]
Right side:
\[(a+b)(a-b)=(-5)(-1)=5.\]
Both sides are equal.
Checking with a fraction example: let \(a=\frac{1}{2}\), \(b=\frac{1}{3}\).
For Pattern 1:
Left side:
\[2\left(a^2+b^2\right)=2\left(\frac{1}{4}+\frac{1}{9}\right)=2\left(\frac{9+4}{36}\right)=2\cdot \frac{13}{36}=\frac{13}{18}.\]
Right side:
\[(a+b)^2+(a-b)^2=\left(\frac{1}{2}+\frac{1}{3}\right)^2+\left(\frac{1}{2}-\frac{1}{3}\right)^2\]
\[=\left(\frac{5}{6}\right)^2+\left(\frac{1}{6}\right)^2=\frac{25}{36}+\frac{1}{36}=\frac{26}{36}=\frac{13}{18}.\]
Both sides are equal.
For Pattern 2:
Left side:
\[a^2-b^2=\frac{1}{4}-\frac{1}{9}=\frac{9-4}{36}=\frac{5}{36}.\]
Right side:
\[(a+b)(a-b)=\left(\frac{5}{6}\right)\left(\frac{1}{6}\right)=\frac{5}{36}.\]
Both sides are equal.
Conclusion: Patterns 1 and 2 hold not only for counting numbers, but also for negative integers and fractions. Since they are identities obtained by algebraic expansion, they are true for all real numbers.