To simplify the given expression, we need to combine like terms. The expression is \(A^{2} + A - 4 + B^{2} + A - B + A^{2} + 1\). We will group and combine the terms involving \(A\), \(B\), and the constants separately.
Step 1: Combine Like Terms
First, we simplify the given expression by combining like terms. The given expression is:
\[ A^{2} + A - 4 + B^{2} + A - B + A^{2} + 1 \]
Step 2: Group Similar Terms
Group the terms involving \(A\), \(B\), and constants:
\[ (A^{2} + A^{2}) + (A + A) + B^{2} - B + (-4 + 1) \]
Step 3: Simplify Each Group
Simplify each group of terms:
\[ 2A^{2} + 2A + B^{2} - B - 3 \]
Final Answer
The simplified expression is:
\[
\boxed{2A^{2} + 2A + B^{2} - B - 3}
\]