# Integral of sin(x) problem.

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)?

• note that you're integrating $\sin(x)$ with respect to $t$. – Scounged Jan 21 '18 at 20:41

## 2 Answers

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$.

• Oops, my bad, should have paid more attention, thank you both. – Aremus Jan 21 '18 at 20:50

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