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.

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 want to solve line integral over an polynomial of order $n$.

i.e. Integration of $ds$ over an bounded polynomial ($a+bx+cx^2+dx^3+\ldots$) where $ds$ is an small element on the curve in $x$-$y$ Plane.

On paper I can solve it by converting $ds$ in to parametric form as $x=t$ and $y=f(t)$ and $ds= \sqrt{(dx/dt)^2 +(dy/dt)^2}dt$ and by changing limit of integration to bounded min and max value.

But programmatically, how to go I do not know? The Polynomial is not fixed, it can change its order.

Currently I am using Apache commons-math-2.2.jar.

Thanks for any type help. Please guide me.


share|cite|improve this question
You cannot solve in closed form the integral deriving from the length of an arc of a polynomial curve of arbitrary degree. Only for polynomials of lower degree can be calculated. – enzotib Aug 6 '12 at 16:21

Your Answer


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

Browse other questions tagged or ask your own question.