Definite Integral with Absolute Value.

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
4 replies · 3K views
m0gh
Messages
27
Reaction score
0
The problem is ∫x^2 - 3x - 5 with the lower limit being -4 and the upper limit 7.

I broke the integrals into three parts from [-4, -1.1926], [-1.1926, 4.1926], [4.1926, 7]

I did the integral and got (x^3)/3 - (3/2)x^2 - 5x

I subbed in the lower and upper limits and got 32.861 for [-4, -1.1926], 15.231 for [-1.1926, 4.1926], and finally 28.957 for [4.1926, 7].

I don't necessarily need a step by step solution ( though it would be greatly appreciated). I would really just like to know if you can spot which/where I am getting the wrong value(s).

EDIT: The final answer I keep getting is 76.691. The answer I get when I use a definite integral calculator is 83.2233
 
Last edited:
Physics news on Phys.org
m0gh said:
The problem is ∫x^2 - 3x - 5 with the lower limit being -4 and the upper limit 7.
Is this your integral?
$$ \int_{-4}^7 |x^2 - 3x - 5|dx$$
m0gh said:
I broke the integrals into three parts from [-4, -1.1926], [-1.1926, 4.1926], [4.1926, 7]

I did the integral and got (x^3)/3 - (3/2)x^2 - 5x
The above is incorrect. You are ignoring the fact that there's an absolute value involved. The key idea is that |a| = a if a ≥ 0, but |a| = -a if a < 0.

Also, the approximate numbers you use aren't exact, so whatever answer you get will be off some.
m0gh said:
I subbed in the lower and upper limits and got 32.861 for [-4, -1.1926], 15.231 for [-1.1926, 4.1926], and finally 28.957 for [4.1926, 7].

I don't necessarily need a step by step solution ( though it would be greatly appreciated). I would really just like to know if you can spot which/where I am getting the wrong value(s).
It is against the rules in this forum to provide a complete answer, so a step-by-step solution isn't going to happen.
m0gh said:
EDIT: The final answer I keep getting is 76.691. The answer I get when I use a definite integral calculator is 83.2233
 
The part you are saying is incorrect was set up by my professor. She put a negative sign in front of the integral for [-1.1926, 4.1926]
 
m0gh said:
The part you are saying is incorrect was set up by my professor. She put a negative sign in front of the integral for [-1.1926, 4.1926]
Which you didn't mention.

Anyway, I get 83.2233 as well, so all I can say is that you have an error in one or more of your integrals. Also, as I mentioned already, you should be using the exact numbers for the limits of integration, rather than the decimal approximations. That is, you should be using ##3/2 - \sqrt{29}/2## and ##3/2 + \sqrt{29}/2##, although I suspect that the difference you're getting is caused by an error somewhere else.
 
m0gh said:
The problem is ∫x^2 - 3x - 5 with the lower limit being -4 and the upper limit 7.

I broke the integrals into three parts from [-4, -1.1926], [-1.1926, 4.1926], [4.1926, 7]

I did the integral and got (x^3)/3 - (3/2)x^2 - 5x

I subbed in the lower and upper limits and got 32.861 for [-4, -1.1926], 15.231 for [-1.1926, 4.1926], and finally 28.957 for [4.1926, 7].

I don't necessarily need a step by step solution ( though it would be greatly appreciated). I would really just like to know if you can spot which/where I am getting the wrong value(s).

EDIT: The final answer I keep getting is 76.691. The answer I get when I use a definite integral calculator is 83.2233

The two in red are incorrect.