mechanical systems phase portraits 3989445