# \[?\] Plot the following function?

**URL:** <https://community.wolfram.com/t/plot-the-following-function/12144>\
**Category:** Questions\
**Tags:** graphics-and-visualization, statistics-and-probability\
**Created:** [March 18, 2018, 5:20pm UTC](https://community.wolfram.com/t/plot-the-following-function/12144 "2018-03-18T17:20:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jjazba](https://avatars.discourse-cdn.com/v4/letter/j/71c47a/32.png) [@jjazba](https://community.wolfram.com/u/jjazba)\
**Post date:** [March 18, 2018, 5:20pm UTC](https://community.wolfram.com/t/plot-the-following-function/12144/1 "2018-03-18T17:20:09Z")

</div>

Consider the following code:

```
f[b_] = ProbabilityDistribution[b Exp[-bx] , {x, 0.01, \[Infinity]}, Assumptions -> b > 0];
Plot[PDF[f[1.5], x], {x, 0, 2}, PlotRange -> All]

```

---

<div class="post-metadata">

**Author:** ![hansmilton](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/hansmilton/32/8656_2.png) [@hansmilton](https://community.wolfram.com/u/hansmilton)\
**Post date:** [March 18, 2018, 5:47pm UTC](https://community.wolfram.com/t/plot-the-following-function/12144/2 "2018-03-18T17:47:42Z")

</div>

I think you are missing a space between _b_ and _x_ in _-bx_. Or an explicit multiplication operator.

```
f[b_] = ProbabilityDistribution[b Exp[-b*x], {x, 0.01, \[Infinity]}, Assumptions -> b > 0];

Plot[PDF[f[1.5], x], {x, 0, 2}]

```

 ![Plot.png](https://global.discourse-cdn.com/wolfram/original/2X/d/d666bbc3962e8a75be79c4245cbeaaca20bdddc1.png)

---

<div class="post-metadata">

**Author:** ![jjazba](https://avatars.discourse-cdn.com/v4/letter/j/71c47a/32.png) [@jjazba](https://community.wolfram.com/u/jjazba)\
**Post date:** [March 18, 2018, 6:03pm UTC](https://community.wolfram.com/t/plot-the-following-function/12144/3 "2018-03-18T18:03:35Z")

</div>

Thank You Hans Milton. It works
