Take the 2-minute tour ×
Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. It's 100% free, no registration required.

Which one is correct?

in Microsoft Mathematics :

enter image description here

in Wolfram Alpha :

enter image description here

and what does $\mathrm{sgn} (\sin x)$ mean ?

Finally, what is the answer to this integral?

share|improve this question
4  
Microsoft doesn't know that you meant the same thing by $X$ as you meant by $x$. –  Gerry Myerson Mar 9 at 10:47
2  
Note that the input to Microsoft Mathematics has an uppercase $X$ as the argument to the sine, but a lowercase $x$ as the integration variable. –  Daniel Fischer Mar 9 at 10:47
    
Alpha's answer is only correct if you consider each interval $n\pi < x < (n+1)\pi$ separately. If you want an antiderivative valid on the whole real line, you must piece together these functions with different constants of integration on each interval, so that you get a single continuous function. –  Hans Lundmark Mar 9 at 13:04

1 Answer 1

Both are correct.

In the first case, the integrand was $\sin X$ (note the uppercase) which is independent of $x$. In the second case, the integrand was $\sin x$ which is a function of $x$.

$sgn(x)$ is the sign function. $$ sgn(x) = \begin{cases} \begin{align} 1 &: x > 0 \\ 0 &: x = 0\\ -1 &: x < 0 \end{align} \end{cases} $$

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.