Find the average value of a function

Click For Summary

Homework Help Overview

The discussion revolves around finding the average value of the function f(x) = |x+1| sgn(x) over the interval [-2, 2]. Participants are exploring how to properly set up the integrals needed for this calculation, particularly focusing on the behavior of the absolute value and the sign function across different subintervals.

Discussion Character

  • Exploratory, Assumption checking, Problem interpretation

Approaches and Questions Raised

  • Participants are considering how to split the function |x+1| into different intervals based on the values of x, specifically at points -1 and 0. There is discussion about whether to use two or three intervals for integration and how to handle the sign function sgn(x) in relation to these splits.

Discussion Status

There is an active exploration of different approaches to splitting the intervals for integration. Some participants have provided guidance on how to evaluate the function in each interval, while others are questioning the implications of their choices and the expected outcomes of their calculations.

Contextual Notes

Participants are navigating the complexities of integrating piecewise functions and are aware of the need to evaluate the function correctly across the specified intervals. There is an acknowledgment of the expected result being 4, which adds pressure to ensure the setup is correct.

~Sam~
Messages
70
Reaction score
0

Homework Statement


Find the average value of a function of f(x)= |x+1| sgnx on the interval [-2,2]

Homework Equations



The average value formula.

The Attempt at a Solution



I know I can divide |x+1| into two integrals from [-2,0] and [0,2] (I think?? can anyone confirm this is the proper split?) and add and solve. But what can I do about sgnx?
 
Last edited:
Physics news on Phys.org
I would split |x+1| into two intervals. x<(-1) and x>=(-1). And sgn(x) I would split at x=0. You might want to think about splitting |x+1|*sgn(x) into three intervals [-2,-1], [-1,0] and [0,2].
 
Dick said:
I would split |x+1| into two intervals. x<(-1) and x>=(-1). And sgn(x) I would split at x=0. You might want to think about splitting |x+1|*sgn(x) into three intervals [-2,-1], [-1,0] and [0,2].

Ohh I see why you would split into three pieces. But...if I do split sgn(x) at x=0, which would mean [-2,0] and [0,2] and evaluate with |x| as my integral, wouldn't I get 0? (I know I'm suppose to get 4)
 
No, [-2,0] and [0,2} is not three pieces! Dick said to use [-2,-1], [-1,0], and [0,2].
On [-2,-1], x+1< 0 so |x+1|= -(x+1). x< 0 so sgn(x)= -1. |x+1|sgn(x)= -(x+1)(-1)= x+1. Integrate that from -2 to -1.

On [-1,0], x+1> 0 so |x+1|= x+1. x< 0 so sgn(x)= -1. |x+1|sgn(x)= (x+1)(-1)= -(x+1). Integrate that from -1 to 0.

On [0,1], x+1> 0 so |x+1|= x+1. x>0 so sgn(x)= 1. |x+1|sgn(x)= (x+1)(1)= x+ 1. Integrate that from 0 to 2.
 

Similar threads

  • · Replies 13 ·
Replies
13
Views
2K
Replies
5
Views
2K
Replies
2
Views
2K
  • · Replies 11 ·
Replies
11
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
Replies
3
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
Replies
3
Views
2K
  • · Replies 3 ·
Replies
3
Views
1K