Dealing with absolute value functions

AI Thread Summary
To find the integral of the difference between the functions f(x) = |x-2| and g(x) = x^2 + 2x, it's essential to address the absolute value in f(x). The discussion suggests simplifying g(x) - f(x) but raises concerns about handling the absolute value correctly. A recommended approach is to evaluate the problem in two scenarios: when the expression inside the absolute value is positive and when it is negative, applying a negative sign as needed. This method ensures a comprehensive understanding of the function's behavior across different intervals. Properly managing the absolute value is crucial for accurate integration.
sunfleck
Messages
6
Reaction score
0
In order to get an integral I need to find the difference between two functions, but I'm not sure how to deal with the absolute value...


f(x) = \left|x-1-1\right|
g(x) = x^2 + 2x

g(x) - f(x) = (\left|x-1\right|-1) - (x^2 + 2x)
=...
I don't know if I can simplify it anymore... can I take that |x| out so - 2x + |x| = - x? If so what happens to the |-1| I feel like I probably can't simplify any further, but I'd like to know for sure
 
Physics news on Phys.org
The easiest way I find to solve problems like this is to solve the problem twice - once where the contents of the modulus are positive anyway, and once when they're negative (in which case you need to put an extra minus sign in front of them).
 
I tried to combine those 2 formulas but it didn't work. I tried using another case where there are 2 red balls and 2 blue balls only so when combining the formula I got ##\frac{(4-1)!}{2!2!}=\frac{3}{2}## which does not make sense. Is there any formula to calculate cyclic permutation of identical objects or I have to do it by listing all the possibilities? Thanks
Since ##px^9+q## is the factor, then ##x^9=\frac{-q}{p}## will be one of the roots. Let ##f(x)=27x^{18}+bx^9+70##, then: $$27\left(\frac{-q}{p}\right)^2+b\left(\frac{-q}{p}\right)+70=0$$ $$b=27 \frac{q}{p}+70 \frac{p}{q}$$ $$b=\frac{27q^2+70p^2}{pq}$$ From this expression, it looks like there is no greatest value of ##b## because increasing the value of ##p## and ##q## will also increase the value of ##b##. How to find the greatest value of ##b##? Thanks
Back
Top