Problems while reading a mathematics books

  • Thread starter VietDao29
  • Start date

VietDao29

Homework Helper
1,417
1
Hi,
I've come across some problems while reading a mathematics books.
1. The first problem is:
[tex]\int \max (1, x ^ 2) dx[/tex]
My answer is:
[tex]x + C, |x| \leq 1[/tex]
[tex]\frac{x ^ 3}{3} + C, |x| > 1[/tex]
But the book does not seem to agree with me. It reads:
[tex]x + C, |x| \leq 1[/tex]
[tex]\frac{x ^ 3}{3} +\frac{2}{3} \mbox{sgn} x + C, |x| > 1[/tex] :confused:
Why does the [tex]\frac{2}{3} \mbox{sgn} x[/tex] appears there?? What am I missing here? :confused:
2. The second problem is:
[tex]\int (|1 + x| - |1 - x|) dx[/tex]
I've never seen an absolute value in an integral before... What should I do?
Any help will be appreciated.
Viet Dao,
 
I haven't a clue about where that signum comes from in the first integral, but as for the second, abs(f(x)) = f(x)*sgn(x), and d(sgn(x))/dx = 0 except at x=0. Or you can do it by finding the integral of abs(x)dx and using substitution for abs(u)du for more complicated u(x). If you don't like writing sgn(x) in your answer, note that sgn(x) = x/|x| for x<>0 and 0 for x=0.
 
Last edited:

HallsofIvy

Science Advisor
Homework Helper
41,712
876
You appear to be assuming that x> 0 in your calculations. Certainly for x< 0, there will come a sharp change at x= -1 as well as your change at x= 1. I haven't worked out the calculation but certainly sgn(x) would be there to distinguish between x< 0 and x> 0. Your integrand is an even function so the integral will be an odd function.
 

Hurkyl

Staff Emeritus
Science Advisor
Gold Member
14,845
17
1. Basically, the problem is this: you divided the problem into three subproblems, but you forgot that you need to put the three answers together to get your final answer! (and putting them together, while easy, is not trivial)

Your analysis on each of the three individual subproblems is correct, though. (Yes, I mean three, not two... think about it)


2. Do the same thing you did in 1: break the problem up into pieces.

If that isn't enough, recall that |x| = max(x, -x)
 
38
0
For problem 2, I think you can interpret it as the integral of 2*min(1,x)dx.
 

VietDao29

Homework Helper
1,417
1
Uhmm, I didn't really get what you mean...
So I have:
[tex]f(x) = \left\{ \begin{array}{ll} x ^ 2 & \mbox{if } x < -1 \\ 1 & \mbox{if }-1 \leq x \leq 1 \\ x ^ 2 & \mbox{if } x > 1 \end{array} \right [/tex]
And I integrate each of them, then... how can I put them together?? Can you give me a small example, please?
Thanks,
Viet Dao,
 
Last edited:

HallsofIvy

Science Advisor
Homework Helper
41,712
876
You will have a constant of integration in each part- but your answer, the integral of the entire function, should have only one such constant. Requiring that the integral be continuous at -1 and 1 gives you two equations relating the three constants.
 

VietDao29

Homework Helper
1,417
1
Uhmm, do you mean:
Let C1, C2, C3 be the constant of the first, second, and third integral.
So the two equation will be:
[tex]\left\{ \begin{array}{l} \mathop{\lim} \limits_{x \rightarrow -1} \frac{x ^ 3}{3} + C_1 = \mathop{\lim} \limits_{x \rightarrow -1} x + C_2 \\ \mathop{\lim} \limits_{x \rightarrow 1} x + C_2 = \mathop{\lim}\limits_{x \rightarrow 1} \frac{x ^ 3}{3} + C_3 \end{array} \right [/tex]
Is that correct?
Viet Dao,
 
Last edited:

TD

Homework Helper
1,020
0
Use:
Code:
\mathop {\lim }\limits_{x \to 1}
=> [tex]\mathop {\lim }\limits_{x \to 1}[/tex]
 
51
0
[tex]\int (|1 + x| - |1 - x|) dx[/tex]
[tex]x>1: \int (|1 + x| - |1 - x|) dx = \int (1+x)-(x-1) dx = \int 2 dx = 2x + A[/tex]
[tex]-1<x<1: \int (|1+x| - |1-x|) dx = \int (1+x)-(1-x) dx = \int 2x dx = x^{2} + B[/tex]
[tex] x<-1: \int(|1+x| - |1-x|) dx = \int (-1-x)-(1-x) dx = \int -2 dx = -2x+C[/tex]
 

HallsofIvy

Science Advisor
Homework Helper
41,712
876
VietDao29 said:
Uhmm, do you mean:
Let C1, C2, C3 be the constant of the first, second, and third integral.
So the two equation will be:
[tex]\left\{ \begin{array}{l} \lim_{x \rightarrow -1} \frac{x ^ 3}{3} + C_1 = \lim_{x \rightarrow -1} x + C_2 \\ \lim_{x \rightarrow 1} x + C_2 = \lim_{x \rightarrow 1} \frac{x ^ 3}{3} + C_3 \end{array} \right [/tex]
Is that correct?
-----------
Yes, that's correct. And since those are continuous functions you have:
[itex]-\frac{1}{3}+ C_1= -1+ C_2[/itex] or [itex]C_2= C_1+ \frac{2}{3}[/itex] as well as [itex]1+ C_2= \frac{1}{3}+ C_3[/itex] so [itex]C_3= C_2+ \frac{2}{3}= C_1+ \frac{4}{3}[/itex].
 

HallsofIvy

Science Advisor
Homework Helper
41,712
876
Gaz031 said:
[tex]\int (|1 + x| - |1 - x|) dx[/tex]
[tex]x>1: \int (|1 + x| - |1 - x|) dx = \int (1+x)-(x-1) dx = \int 2 dx = 2x + A[/tex]
[tex]-1<x<1: \int (|1+x| - |1-x|) dx = \int (1+x)-(1-x) dx = \int 2x dx = x^{2} + B[/tex]
[tex] x<-1: \int(|1+x| - |1-x|) dx = \int (-1-x)-(1-x) dx = \int -2 dx = -2x+C[/tex]
I don't understand. Are these related to the topic of this thread?

If these are intended as an additional example, again, you have to use the continuity of the integral to determine the constants.

At x= 1, 2x+ A= 2+ A= 1+ B= x2+ B so B= A+ 1.
At x= -1, x^2+ B= 1+ B= 2+ C= -2x+ C so C= B- 1= A

The integral is 2x+ A if x>1, [itex]x^2+ 1+ A[/itex] if [itex]-1\le x\le 1[/itex], and -2x+ A if x< -1.
 

VietDao29

Homework Helper
1,417
1
Thanks a lot, I get it now. :smile:
Viet Dao,
 

Related Threads for: Problems while reading a mathematics books

Replies
8
Views
879
Replies
1
Views
878
Replies
11
Views
2K
Replies
1
Views
2K
Replies
2
Views
3K
Replies
6
Views
2K

Physics Forums Values

We Value Quality
• Topics based on mainstream science
• Proper English grammar and spelling
We Value Civility
• Positive and compassionate attitudes
• Patience while debating
We Value Productivity
• Disciplined to remain on-topic
• Recognition of own weaknesses
• Solo and co-op problem solving

Hot Threads

Top