What is the Median of a Quadratic Function f(x) with a Given Range and Area?

  • Thread starter Thread starter Maatttt0
  • Start date Start date
  • Tags Tags
    Median Quadratic
Click For Summary

Homework Help Overview

The problem involves determining the median of a quadratic function defined piecewise, specifically f(x) = 2(1-x) for 0 < x < k, and 0 otherwise. The original poster seeks to find the value of k and the median of x, given the area under the curve.

Discussion Character

  • Exploratory, Conceptual clarification, Mathematical reasoning

Approaches and Questions Raised

  • The original poster attempts to sketch the graph and calculate the area to find k, while also trying to set up an integral to find the median. Some participants suggest rearranging equations and exploring the geometric interpretation of the area under the curve.

Discussion Status

Participants are exploring different methods to approach the problem, including integration and geometric reasoning. Some guidance has been offered regarding the relationship between the area and the median, but there is no explicit consensus on the final steps to solve for the median.

Contextual Notes

There is a focus on ensuring the area under the curve equals 1 for it to represent a valid probability distribution. The discussion also highlights the importance of understanding the implications of the value of k on the area calculation.

Maatttt0
Messages
37
Reaction score
0

Homework Statement



Given that:

f(x) = 2(1-x) for 0 < x < k
...0 for otherwise

sketch the graph of f(x) and find:

(i) the value of k,

(ii) the median of x

Homework Equations





The Attempt at a Solution



(i) I sketched the graph and got a line from (0,2) to (1,0) which has an area of 1, so k = 1.

(ii) [tex]^{}M[/tex][tex]_{}0[/tex][tex]\int[/tex](2 - 2x) = 1/2
The code is messing up but intergation of (2 - 2x) with m (median) as the top limit and 0 being the bottom one and it = 1/2

[2x - x^2]m0 = 1/2

2m - m2 = 1/2

I'm stuck on getting m separated as it's a negative square

Help me please :(
 
Physics news on Phys.org
Try arranging the equation so all terms are on one side.
 
You don't really need to integrate to get this. y= 2(1- x) is a straight line from (0, 2) to (k, 2(1- k)).

If k= 1, the area under it is the area of the triangle with height 2 and base 1 and so area (1/2)(2)(1= 1. That is what we need to have in order to have a valid probability distribution.

As a check, if k< 1, the area under the line is the area of the trapezoid with bases 2 and 2(1- k) and height k. It's area is k(2+ 2(1- k))/2= k(4- 2k)/2= k(2- k) and we want that equal to 1. [itex]k(2- k)= 2k- k^2= 1[/itex] is the same as [itex]k^2- 2k+ 1= (k- 1)^2= 0[/itex]. As before, it reduces to k= 1, the triangle case.
(You say "I sketched the graph and got a line from (0,2) to (1,0)". Well, you couldn't know it would be a line from (0, 2) to (1, 0) until after you knew that k= 1.)

Now the median is where the area both left and right is equal to 1/2. If we take that to be at "x", then we have a triangle on the right with base 1- x and height 2(1- x) which has area [itex](1/2)(1-x)(2(1-x))= (1- x)^2[/itex] and we want that equal to 1/2: [itex](1- x)^2= 2[/itex]. Solve that for x.

If you really want to integrate, you are integrating
[tex]\int_0^x 2(1- t)dt= 2 \int_0^x 1- t dt= 2\left(x- (1/2)x^2)= 1/2[/itex]] which gives the same result.<br /> <br /> You can simplify that integral by letting u= 1- t so that du= -dt, when t= 0, u= 1 and when t= x, u= 1- x. Now the integral is [itex]2\int_0^{1- x}u^2du= 1/2[/=itex], giving, again, the same result.[/itex][/tex]
 
Thanks for the input to both of you :)

I understand now thanks, HallsOfIvy :smile: woo!
 

Similar threads

  • · Replies 23 ·
Replies
23
Views
4K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 3 ·
Replies
3
Views
1K
  • · Replies 3 ·
Replies
3
Views
2K
Replies
8
Views
2K
Replies
7
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 15 ·
Replies
15
Views
2K