# Derivative of Sine different than Cosine?

**URL:** <https://discourse.mcneel.com/t/derivative-of-sine-different-than-cosine/118623>\
**Category:** Grasshopper\
**Tags:** windows, sine, cosine, derivative\
**Created:** [February 16, 2021, 11:53am UTC](https://discourse.mcneel.com/t/derivative-of-sine-different-than-cosine/118623 "2021-02-16T11:53:12Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Simon3](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/simon3/32/731850_2.png) [@Simon3](https://discourse.mcneel.com/u/Simon3)\
**Post date:** [February 16, 2021, 11:53am UTC](https://discourse.mcneel.com/t/derivative-of-sine-different-than-cosine/118623/1 "2021-02-16T11:53:12Z")

</div>

Hi everyone,

I have a question about the Derivatives component:

The first derivative of Sine function should be Cosine (+ a constant).

 ![image](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/a/1/e/a1eb1ff61bdad4f4ffe2b46d8218dede04bfaa66.png)

How comes when I want to plot the derivative’s y component, it is a way bigger curve?

 ![image](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/6/7/1/67148176f91f1e133c9882740b5363ab7aed45f0.png)

And it’s even not the right type of curve, since it slopes differently than the Cosine when “scaled” down…

 ![image](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/a/0/8/a08559440760e7cad8ceb7863935cbb246758f0e.png)

Might this have something to do with two types of derivation David is talking about here? [Derivatives - Grasshopper](https://www.grasshopper3d.com/forum/topics/derivatives)

Or is my mistake in drawing just the y coordinate of the derivative’s vector?

[Derivative of SIne.gh](https://discourse.mcneel.com/uploads/short-url/gGOHBxJkQErmZjmcsIUxm3C9zQF.gh) (20.6 KB)

Thanks for any help with this.

---

<div class="post-metadata">

**Author:** ![laurent\_delrieu](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/laurent_delrieu/32/601605_2.png) [@laurent\_delrieu](https://discourse.mcneel.com/u/laurent_delrieu)\
**Post date:** [February 16, 2021, 12:40pm UTC](https://discourse.mcneel.com/t/derivative-of-sine-different-than-cosine/118623/2 "2021-02-16T12:40:12Z")

</div>

Hello  
Its is surely more a curvature than a derivative. Try with a constant slope line. Derivative is non null if non horizontal and curvature is surely 0.

Use tangent and make the division. X/Y

---

<div class="post-metadata">

**Author:** ![Dani\_Abalde](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/dani_abalde/32/759411_2.png) [@Dani\_Abalde](https://discourse.mcneel.com/u/Dani_Abalde)\
**Post date:** [February 16, 2021, 12:47pm UTC](https://discourse.mcneel.com/t/derivative-of-sine-different-than-cosine/118623/3 "2021-02-16T12:47:01Z")

</div>

You are mixing things up, the derivative is the measure of change, not a coordinate/position. In the sine you are measuring the derivative with respect to X, how y changes when x changes, while in the curve you are measuring with respect to the tangent, how position in the curve changes when t changes. So it simply doesn’t make sense to use the Y coordinates of how the tangent changes on the curve while ignoring how your derivate changes with respect to X.

---

<div class="post-metadata">

**Author:** ![Dani\_Abalde](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/dani_abalde/32/759411_2.png) [@Dani\_Abalde](https://discourse.mcneel.com/u/Dani_Abalde)\
**Post date:** [February 16, 2021, 12:58pm UTC](https://discourse.mcneel.com/t/derivative-of-sine-different-than-cosine/118623/4 "2021-02-16T12:58:03Z")

</div>

![image](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/1/6/2/1628fab5057068d644001cb784868737bd3bcb8b.jpeg)
