Die erste Spitze wäre dann der Hochpu. einer Parabel mit 
Scheitel (4;4) und Startpunkt ( 0;2)
das gäbe  f(x) = a*(x-4)^2 + 4  und damit es durch (0;2)geht  2 = a* 16 + 4    bzw   -2 = a*16  also 
a=  - 1 / 8 .  Damit wäre das erste Stück f(x) = -1 / 8 * (x-4)
2 + 4 .sähe dann im Vergleich so aus:
~plot~ 5-1/4x ;2+0,5x;-1/8*(x-4)^2+4 ~plot~