Describe how you would derive the equations of motion for an elevator system with a pulley, including how you would use a free-body diagram.
Implement derive_elevator_equations(params) for an ideal rope connecting an elevator car and counterweight. Use an upward-positive car coordinate and return the effective mass, driving force, acceleration, and both rope tensions.
def derive_elevator_equations(params):