Mathematica Stack Exchange is a question and answer site for users of Mathematica. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to evaluate this integral

Integrate[(kx^2/2)*Sin[\[Lambda]x], x]

from -pi/2(lamda) to pi/2(lamda)

Everything there is a constant, and the only variable is x.

this is the output i get

1/2 kx^2 x Sin[\[Lambda]x]

which i do not think is correct.

share|improve this question
You're missing a space for multiplication between k, \[Lambda] and x. – b.gatessucks Apr 3 '13 at 7:09
up vote 2 down vote accepted

As already mentioned by b.gatessucks: When you type kx it is handled by Mathematica as the variable kx. You must include a space to specify a multiplication or better, use * explicitly!

Integrate[(k x^2/2)*Sin[\[Lambda] x], x]

Mathematica graphics

share|improve this answer

Your Answer


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.