The image of the circuit, i am trying to write the mathematical equation i will post once done.
Hello there,
[see attachment with slightly different circuit]
Your circuit is not exactly an integrator. It's an integrator WITH a pulsing offset that pulses with the input pulse amplitude. That means you might get a sawtooth out of it some how, but to get a regular triangle (sloping up then sloping down, then repeating) you should use an inverting configuration rather than a non-inverting configuration. The non-inverting variation causes the circuit to have other characteristics that a standard integrator does not have.
A regular integrator has a time equation:
Vout=V1*t/RC
but your circuit has:
Vout=V1*(t/RC+1)
and that pesky "+1" is what prevents it from working as a regular integrator.
We can get rid of that "+1" in a couple different ways, but without adding any more parts I think the only way is to change where you are taking the output Vout from. Instead of taking it from the output of the opamp referenced to ground, take it from the output of the op amp referenced to the input voltage V1, and run V1 from some negative voltage to the same value positive voltage. For example, plus and minus 5 volts.
If you don't want do it that way then you probably have to use another op amp set up as a subtractor, subtracting the input pulse voltage from the op amp output voltage, and get that working.
The simpler way though is to set it up as an inverting amplifier with capacitor feedback.
Effectively what the new output VoutB in the attachment is doing is subtracting the input voltage V1 from the output because the output ends up having that added to it.
The normal integrator again with a specified drive voltage is:
Vout=V1*t/RC
and your circuit is:
Vout=V1*(t/RC+1)
which is the same as:
Vout=V1*t/RC+V1
When we subtract the input voltage from the output, we effectively do this:
Vout=V1*t/RC+V1-V1
and since V1-V1 cancel, we get the normal looking output:
Vout=V1*t/RC
The other problem though is that this is pure theory, and although it works perfectly in pure theory, in practice you have to compensate for some capacitor voltage ratcheting, which can quickly saturate the output and stop the circuit from working.
The usual 'fix' is to connect a large value resistor across the capacitor so that the DC gain is lower. This works to some degree, if you can put up with a small amount of nonlinearity, and some output offset anyway.
If you don't like that idea, then you have to incorporate a reset circuit that resets the capacitor before each new cycle. Although that has been used in precision integrator circuits (like the very old digital meters) that can be quite a pain to add to the simple circuit.
Again the simpler idea is to use an inverting setup rather than noninverting as that eliminates the offset problem, and then all you have to do is think about the capacitor voltage ratcheting.
See the attachment for a way to get the triangle from your circuit, in theory.