I am on my first semester of electrical engineering and I came upon an exercise where in the given circuit I have to calculate the relationship between the input and output voltages of the op-amp.
After some searching I found that the given circuit is an inverting integrator. In wikipedia it states that the relationship between the input and output voltage is:$${\displaystyle V_{\text{out}}(t_{1})=V_{\text{out}}(t_{0})-{\frac {1}{R_{\text{i}}C_{\text{f}}}}\int _{t_{0}}^{t_{1}}V_{\text{in}}(t)\,dt.}$$
So I tried to solve it myself. I started with a 1st Kirchoff's law equation which came out as: $$I=I_1+I_2$$ then I substituted using Ohm's law: $$\frac{V_{in}}{R_1}=\frac{V_{out}}{R_2}+I_2 \space \space (1)$$ For the last current I used: $$Q=C_2V \rightarrow Q'=C_2 V'$$ and because $$Q'=I_2 \space and \space V'=V_{out}'$$ it resulted in $$I_2 = C_2 V_{out}$$ Then through substitution in the first equation I found: $$V_{out}'= -\frac{V_{out}}{R_2C_2}+\frac{V_{in}}{R_1C_2}$$ At this point I thought I would integrate and find the result given by wikipedia but I can't seem to work it out and I think I've made a mistake in my calculations.The last equation seems to me like a differential one which unfortunately I don't know how to solve. I also have my doubts about this circuit being an inverting integrator because of the existence of capacitor C1, that I did not take into consideration. Any help on what's wrong would be greatly appreciated. Please excuse my ignorance and/or any mistakes.