So the question asked to prove the following: "Prove that if f is a continuous complex valued function in the open subset G of the complex plane, and if the integral of $f(z)dz = 0$ over every rectangle R, with edges parallel to the coordinate axes, contained with its interior in G, then f is holomorphic" (Sarason Complex Function Theory 2nd edition).
Following the logic the book used to show this was true for triangular regions, I came up with this seemingly roundabout way of proving it, which I know works, but seems very roundabout. Basically the book proves the other direction for triangles, so I can just modify that proof, and then the book uses the triangle theorem to prove Cauchy's Theorem for a convex region. It is easy to substitute the rectangle theorem, for the triangle theorem. While I'm glad this works, and its almost directly lifted from the textbook, it is over 2 pages long, so I was wondering if a more direct approach could be found.
Proof Summary: "Our approach will be to first that if f is holomorphic the integral around every rectangle of $f(z)dz$ equals 0. We will then apply this fact to prove Cauchy's Theorem for a convex region. Once this is complete we can note that this new proof of Cauchy's Theorem allows us to say that if f has integral zero around every rectangle contained in G, f has a primitive in G. If f has a primitive in G, it is holomorphic."
Edit: Also I was thinking that since we've gone through the proof in the textbook and it works for triangles, if we can somehow divide the rectangle into 2 triangles and show that the integral around each of these triangles is equal to zero, then the rest follows from the book's derivations based on triangles, though honestly this seems very difficult to do.