partially wrote phase plane analysis