<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def derivatives_factory(cls, coef, domain, kind, **kwargs):
 """ Given some coefficients, return a the derivative of a certain kind of orthogonal polynomial defined over a specific domain. """

        basis_polynomial = cls._basis_polynomial_factory(kind)
        return basis_polynomial(coef, domain).deriv()