Hi, I'm new here but I'd like to help, sory for grammer, english isn't my first language.
First of all, your function isn't strictly speaking function becouse it's derivate acording to diff. equation should be only oneside discontinius in some points which isn't posible acording to standard...