The Trek isn't a great choice IMO because it has an aluminum rear triangle and you would need two well-reinforced torque arms. For 40 mph, go to endless sphere; we're <35 mph advocates mostly here. The only feasible system for that speed is a large rear hub motor, and big battery which you'll have a nice challenge finding a location to mount..