From Wikibooks, open books for an open world

- Start by converting the pdf's to indicator functions
- Now
is defined only when
and
is defined only when ![{\displaystyle y\in [4,5]\,}](https://wikimedia.org/api/rest_v1/media/math/render/svg/84fcbe49075e9bea6a4ccbf325402d191b47b9c3)
- Use the convolution formula above to write out the integral
![{\displaystyle \int _{-\infty }^{\infty }f_{X}(z)f_{Y}(y-z)\delta z=\int _{-\infty }^{\infty }{\frac {3z^{2}}{2}}\cdot 1_{[-1,1]}(z){\frac {y-z}{9}}\cdot 1_{[4,5]}(y-z)\delta z}](https://wikimedia.org/api/rest_v1/media/math/render/svg/c56fd760e2aa344e183485cda02bce2a0ebc90a8)
- Factor out any constants, in this case, a multiplier
![{\displaystyle {\frac {3}{18}}\int _{-\infty }^{\infty }z^{2}\cdot 1_{[-1,1]}(z)(y-z)\cdot 1_{[4,5]}(y-z)\delta z={\frac {1}{6}}\int _{-\infty }^{\infty }z^{2}\cdot 1_{[-1,1]}(z)(y-z)\cdot 1_{[4,5]}(y-z)\delta z}](https://wikimedia.org/api/rest_v1/media/math/render/svg/5bc18f9ab9a274544da4738f01871b0aa7067033)
- Factor out the indicator function for
into the integral bounds
- Note that

- Now that have isolated the indicator for z, we can combine the entire integral for that indicator
![{\displaystyle {\frac {1}{6}}\int _{-1}^{1}\left(z^{2}(y-z)\right)\cdot 1_{[y-5,y-4]}(z)\delta z={\frac {1}{6}}\int _{-1}^{1}\left(z^{2}y-z^{3}\right)\cdot 1_{[y-5,y-4]}(z)\delta z}](https://wikimedia.org/api/rest_v1/media/math/render/svg/446df2d15b1b05c4a6c2fbb76a9bd2890a2bf624)
- Finally, split the integral into the separate cases based on the remaining indicator function
- When
the integral has no bounds since
so the upper bound would be less than
which would be
.
- When
the integral is bound between
and
since
will be at least
but less than 
- As you can see there is a pattern here, it goes as follows:
- Given
you will have 