public String differentiate(Parser.Variable var){
                String expVar = var.toString();
                String output;
                if (expVar.equals(variable)){
                    output = "1";
                    return output;
                }
                else{
                    output = "0";
                    return output;
                }
            }