# Finding Constants for a probability density functions given a finite interval

Given the probability density function f(x) with constant K on the interval [a,b], how do you solve the value of K?

-

There are two requirements for a probability density function $f(x)$ on the interval $[a,b]$:
1) $f(x) \ge 0$ everywhere on the interval
2) $\int_a^b f(x)\, dx = 1$