You can definitely just build that legend in Plot itself. I guess the following is getting kind of close, though I’m not quite sure how to generate your outlier curves off the top of my head:
The typeset mathematics is probably the trickiest part here. You can read more about that in this and that.