Test or construct a smooth piecewise join
Check the branch values before comparing the gradients
\[f(x)=\begin{cases}-x+5,&x\le1\\-x+7,&x>1\end{cases}\]
The domain is all real inputs. The left branch includes the join. Work at x = 1
Check the branch values before comparing the gradients
The domain is all real inputs. The left branch includes the join. Work at x = 1