Using a plotted function, I've come up with a function consisting of step and ramp functions; say $x(t) = 50u(t+30)+20u(t-30)+5r(t-30)$, where $u(t)$ is the unit step function and $r(t)$ is the ramp function (which I believe is just $tu(t)$). I'm not sure where to begin with regards to calculating the energy and average power of this function. I know energy and average power each have their own integrals, but how do I solve such a big function, and how do I deal with the fact that there are step and ramp functions?
Thanks in advance for any assistance!