Given X, a continuous random variable and the density:
$$ f(x) = \begin{cases} x^2, & \text{if $x$ $\in$ [-1,1] ,} \\ c \cdot \frac{1}{|x|^k}, & \text{else} \end{cases} $$ Where $c\in \mathbb{R}$ and $k\in \mathbb{N}\geq2$. We need to identify the value of $c$ so that $f$ is truely a density function.
We tried to solve $$\int_{-\infty}^{-1}c\cdot\frac{1}{|x|^k} + \int_{-1}^{1}x^2 + \int_{1}^{\infty}c\cdot\frac{1}{|x|^k} = 1$$ but failed miserably and dont know any other way we could determine $c$. Any hints would be much apreciated. Thanks in advance.
Guide:
note that $f$ is an even function:
$$\int_0^1 x^2 \, dx + c \int_1^\infty \frac{1}{x^k}\, dx =\frac12$$
Integrating $x^2$ and $\frac{1}{x^k}$ (note that $k \ge 2$), then solve for $c$ in terms of $k$.