Consider the following plot:


The above plot has a white space where the derivative has a discontinuous jump (at $y=5$)

If instead I consider


The white space is gone.

I understand that, according this answer, I can get rid of the whitespace by using the Exclusions option.

However, I am wondering why one command produces the whitespace by default and the other doesn't?

(my naive guess would be that because Abs thinks the argument is complex, that mathematica doesn't detect an exclusion at the kink)

  • 1
    $\begingroup$ Neither of your plot commands are valid. Assuming that you included a range for y, the difference presumably has to do with the automatic detection for Exclusions. D[RealAbs[(x - 5) + y], y] evaluates; whereas, D[Abs[(x - 5) + y], y] is meaningless. Including the option Exclusions -> None will eliminate the white line. $\endgroup$
    – Bob Hanlon
    Commented Feb 8, 2020 at 20:43
  • $\begingroup$ Sorry, I changed the question and didn't realize I deleted the y range. Ill add them back in. $\endgroup$
    – user106860
    Commented Feb 8, 2020 at 21:24


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.