Message Boards Message Boards

Comprehend the result of derivative with matrices operations?

Posted 8 years ago

Hi, all. I would like to compute the derivative like this: enter image description here

and I get the following result:

enter image description here

I am wondering why there is Abs and also Abs' in the answer? What does it mean by giving the two kinds of form of absolute value? Thank you.

Monica

POSTED BY: Baorong Yang
4 Replies

The Norm function assumes by default that your vector is complex and that the derivatives are in the holomorphic sense. Your expression will contain Abs, and the absolute value is not differentiable in the complex sense. I wish that Norm had an option to assume that the vectors are real. In the meanwhile you can work around the problem by removing the Abs:

D[Norm[{x, y}], x]
D[Norm[{x, y}] /. Abs -> Identity, x]
D[Norm[{x, y}], x] /. Abs -> Identity
POSTED BY: Gianluca Gorni
Posted 8 years ago

Thank you, Glanluca. I will check it out with your suggestion.

POSTED BY: Baorong Yang
Posted 8 years ago

Look at the FullForm of your expression before you try to take the derivative and think about what taking the derivative of each component of that might be.

I suspect that Norm is the source of some of your problems.

Abs' is the derivative of Abs and cannot be simplified further by Mathematica unless you can provide sufficient assumptions that Mathematica can determine the argument will always be positive or will always be negative.

POSTED BY: Bill Simpson
Posted 8 years ago

Thank you, Bill. I got what you mean. Actually I did't know what Abs' mean until I read your answer. I will figure out what to be fixed for my problem.

POSTED BY: Baorong Yang
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract