How about I tell what the density function is. And you do the rest. Finding the desity function here is the key part.

First, do you what "(directly) proportional" means? It means (almost) that given two quantities and we say they are "directly proportional" when the ratio is constant.

Thus, since is proportional to it means .

Now . And .

Thus, .

Now you continue ...