How to find the horizontal line $y=k$ that divides the area of $y=2-\lvert x-2\rvert $ above the $x$-axis into two equal halves using Calculus?
I know of methods other than Calculus to solve this, but my question requires to solve it using Calculus (Definite Integration).
I've tried to solve it using calculus after watching youtube video solutions of the same type of question where the function of interest were parabolas or other curves. Still couldn't get to the right solution. I'm assuming I've made mistakes in taking the limits of integration as this an absolute value function and not a parabola.
How to solve this question using calculus? If there are ways to solve this by integrating the function with respect to $y$ (instead of $x$) which I have seen people doing while solving questions regarding parabola functions, then do let me know!
Note: I'm a high school senior who has been sitting with this problem since morning & I seriously cannot seem to get through and get over it. Helping me solve this question will broaden my knowledge of Calculus & will clear my misconceptions.
I've attached an image to the post as well.
The answer is $y=2-\sqrt{2}$
Thanks
Best Answer
The area above the $x$ axis is $$ A =\int_0^4 2 - \lvert x-2 \rvert \, \mathrm{d}x = \int_0^2 2 -(2-x)\, \mathrm{d}x + \int_2^{4}2 -(x-2) \, \mathrm{d}x = 4 \tag{1} $$ Now, if we draw a horizontal line $\color{green}{y=k}$ on top of the function $y= 2 - \lvert x-2 \rvert$ it splits the latter area in $2$ halves:
In the above diagram the line $\color{green}{y=k}$ is drawn in green, and the $2$ halves are drawn in $\color{orange}{\text{orange}}$ and $\color{blue}{\text{blue}}$ respectively. The question asked is
Which in the diagram above translates to finding a $k$ such that $$ \text{Area of }\color{orange}{\text{orange}} \text{ half}= \text{Area of }\color{blue}{\text{blue}} \text{ half} = \frac{A}{2} \overset{(1)}{=} \frac{4}{2} = 2 \tag{2} $$ So now the question becomes writing the $\color{orange}{\text{orange}}$ and $\color{blue}{\text{blue}}$ areas using calculus, then setting each of those equal to $2$, and then (hopefully) solving for $k$ from these equations using calculus techniques.