Message Boards Message Boards

0
|
2653 Views
|
3 Replies
|
0 Total Likes
View groups...
Share
Share this post:
GROUPS:

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

Posted 10 years ago

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
Posted 10 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

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

POSTED BY: Ilian Gachevski
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