I am currently working with an AC Integrator and have a square wave as my input while my output is a triangular wave.
I am confused why the triangular wave has a decreasing slope when the square wave is at +4V. I believe it has something to do with the area under the square wave, but I am not sure.
Your output is an inverted version of the integrated value of the square wave. So when the square wave goes negative, the output begins to rise. When your input square wave goes positive, the output begins to fall. What you see is as expected for an inverting integrator.