Hello I am trying to find the triangular distribution mean by evaluating this integral:
$$\int_{a}^{c}x\frac{2(x-a)}{(b-a)(c-a)}dx+\int_{c}^{b}x\frac{2(b-x)}{(b-a)(b-c)}dx=\frac{ac^{3}-bc^{3}-a^{3}c+b^{3}c-ab^{3}+a^{3}b}{3(b-c)(b-a)(c-a)}$$
but as you can see that's nowhere near the expected $$\frac{a+b+c}{3}$$ Is there a way to simplify it all the way to get the correct answer? I've tried to simplify both in Symbolab and Wolfram to no avail.
Hint: expand $(b-c)(b-a)(c-a)(a+b+c)$ and see if you get the numerator of the result of the integral. In this case you can cancel $(b-c)(b-a)(c-a).$