Expression derive(String toVar)

Derives this expression with respect to the given variable.

Source

Expression derive(String toVar) => new Plus(new Times(first, second.derive(toVar)),
                                            new Times(first.derive(toVar), second));