integral of (x^2-3x+1)/(-2x)
Before performing the integration, let's calculate: x2 -3x + 1-2x
ⓘ The sign of a fraction goes in front of the bar, whether it comes from the numerator or the denominator: x2 -3x + 1-2x = -x2 -3x + 12x
-x2 -3x + 12x
Let's compute the integral: ∫(-x2 -3x + 12x)dx
For x ≠ 0, divide each numerator term by the power in the denominator: -x2 -3x + 12x = -x2 + 32 -12x
ⅰ ∫(-x2 -3x + 12x)dx = -∫x2dx + ∫32dx -∫12xdx
-∫x2dx + ∫32dx -∫12xdx
∫(-12x)dx = -12·∫1xdx
We use ∫1xdx = ln|x|. The absolute value covers both signs of the denominator, on any interval where x ≠ 0
ⓘ A constant factor stays in front of the integral. An antiderivative of x^n is x^(n+1)/(n+1), for n ≠ -1: -∫x2dx = -12·x22■The derivative of 32·x is 32, so 32·x is an antiderivative of 32: ∫32dx = 32·x■The derivative of -12·ln|x| is -12x, so -12·ln|x| is an antiderivative of -12x: -∫12xdx = -12·ln|x|
-12·x22 + 32·x -12·ln|x|
ⓘ To multiply fractions, multiply the numerators together and the denominators together: 12·x22 = 1·x22·2 = x24■Multiplying a fraction by a term multiplies its numerator: 32·x = 3x2, 12·ln|x| = 1·ln|x|2 = ln|x|2
-x24 + 3x2 -ln|x|2
▶Indefinite integrals are defined up to an additive constant C, so this yields: -x24 + 3x2 -ln|x|2 + C