from sympy import *
import numpy as np
x, c, a, b = symbols('x y a b')
n=0
f= symbols('f', cls=Function)
eps = ['1', '2', '3']
t = ['10', '100', '100']
f=summation((int(eps[n])-a*(1-exp(-c*int(t[n])))-b*int(t[n]))**2, (n, 1, 2))
print(dsolve(f(x).diff(a), a))