I attempted to graph the representation of the geometric series, everything works fine except when I increase "r" to a certain value(see figure 1 and 2 below), the horizontal lines begin to cross the diagonal line, therefore, making my model imperfect. Please help me to locate the bug mathematically.
Manipulate[Show[Graphics[{Red, Line[{{0, 0}, {0, a}}]}],
(*the base square with side = a*)
Graphics[{Red, Line[{{a, 0}, {a, a}}]}],
Graphics[{Red, Line[{{0, a}, {a, a}}]}],
Graphics[{Black, Line[{{0, 0}, {a, 0}}]}],
Graphics[{Black, Line[{{0, 0}, {a, 0}}]}],
(*the vertical line*)
Graphics[{Green, Line[{{a, 0}, {a, Sum[a r^i, {i, 0, 10}]}}]}],
(*The diagonal line*)
Graphics[{Blue, Line[{{0, 0}, {a, Sum[a r^i, {i, 0, 10}]}}]}],
(*The horizontal lines*)
Table[Graphics[{Black,
Line[{{a -
a r^i, (Sum[a r^b, {b, 0, i}] -
a r^i)}, {a, (Sum[a r^b, {b, 0, i}] - a r^i)}}]}], {i, 0,
10}],
AxesLabel -> {"x", "y"}, PlotRange -> {-1, 5}], {a, 1, 4}, {r, 0.1,
0.9, 0.1}]