Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

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
add comment

1 Answer

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
add comment

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.