Integral of sin(x) problem.

63 Views Asked by At

If I take the indefinite integral for sin(x) on Desmos, why do I get this graph

https://www.desmos.com/calculator/zqpbtac8az

instead of a graph of -cos(x)?

2

There are 2 best solutions below

1
On

The integral is with respect to $dt$, so only $t$ varies over the integral, but you've integrated $\sin x$, not $\sin t$. Try changing it to $\sin t$.

0
On

Waht you have is $$\int_0^{\color{red}{x}} \sin \color{red}{x}\,\mathrm d t=x\sin x.$$