Message Boards Message Boards

GROUPS:

Why is Mathematica switching my subtraction terms inside a Trig function?

Posted 9 years ago
2420 Views
|
3 Replies
|
0 Total Likes
|

Greetings,

I'm trying to do some basic trigonometric partial derivatives in Mathematica, and for some reason it is switching my subtraction terms inside the Cos or Sin and giving me an incorrect answer. Why is it doing this? Thanks~

enter image description here

POSTED BY: Adam B
3 Replies

I still don't see what is incorrect.

In[1]:= D[Cos[x - c t], t]

Out[1]= -c Sin[c t - x]
POSTED BY: Ilian Gachevski

Cos is an even function. What is incorrect about the answer?

POSTED BY: Ilian Gachevski
Posted 9 years ago

Well what ends up happening is when I take the partial derivative of the function (with respect to t), it gives me the wrong (negative) derivative because the inside terms have switched signs.

POSTED BY: Adam B
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