RELEVANT DEFINITIONS
We define the floor of a real number $x$ to be the unique integer $n = \lfloor x \rfloor$ such that $n \leq x < n$.
We define the modulo of a real number $x$ with respect to a real number $w$ to be the real number value $y = x \% w = x - w \lfloor \frac {x}{w} \rfloor$.
MATHEMATICAL CONTEXT
Integration is a useful tool by which to analyze functions. The derivative is similarly a useful tool as well. Determining a means by which to integrate and differentiate functions that are trickier than most functions or requiring a different skill set than normally taught in a calculus course is therefore beneficial to others.
POTENTIAL USAGE
The modulo function or "saw tooth wave" (as some sites such as Wolfram Alpha appear to call it) can be used to represent discrete wave functions which are sometimes used in signal processing.
I'm not entirely sure what the floor function might be useful for in the real world other than for approximating functions. For example, $x \lfloor x \rfloor$ approximates the general shape of $x^2$. Therefore it stands to reason that there are cases for which clever replacement of $x$ with $\lfloor x \rfloor$ (or something similar) may be useful in coming up with a decent approximation of a function that could potentially be integrated more easily than
KNOWLEDGE LEVEL
At the time I made this post according to the date I was in a calculus 2 course that covered your standard integration methods and other single dimension function related things such as polar coordinate integrals. There was defintiely no interaction between that course or it's predecessor with the two titular functions.
As for my knowledge level at this time... if I were asking this question now I wouldn't be asking it at all because I'd already be able to figure it out myself.
REASON FOR ASKING
Nothing ever talked about how to deal with floor or modulo when combined with integration/differentiation, so I wanted to know how.
THE PROBLEM STATEMENT
Let $f(x)$ and $g(x)$ be functions of $x$. For simplicity's sake and because of the knowledge level being considered let us also assume they can be written as an expression of $x$, $+$, $\cdot$, $\^$, $\ln$, $\cos$, and $\sin$. We don't want them to be anything real unusual, but an answer is allowed to treat them as continuous differentiable and integrable functions if that makes the answer simpler (for example if the reasoning generalizes in some fashion).
Is there a reasonably simple identity that allows one to find the solutions to:
$\int \lfloor f(x) \rfloor dx$
$\int f(x) \% f(y) dx$
$\frac {d}{dx} (f(x) \% f(y))$
$\frac {d}{dx} (f(x))$
If there isn't such a rule or identity or integration method, could someone explain why? Is it simply because they aren't useful enough to warrant messing with and therefore the knowledge base regarding these functions is limited at best, or is there something deeper here that makes the existence of such an identity impossible?
MY ATTEMPT(S)
I honestly had no idea how to solve this when I originally asked it. I recall that in the original post was some really horrible hand-waved reasoning about asymptotes and such that I think ultimately just boiled down to "I can do this if the number of discontinuities work out to being finite because then I just know the answer" - that's equivalent to saying I can find some integrals in very niche specific cases by flat out guessing. While that's a valid way to find integrals in the real world if you're dealing with a problem that you might be able to make an educated guess about, it is not real helpful here as an attempt. That's why I'm not rewriting it.
As for an attempt now... I think the expiration date has already passed on that. Providing an attempt 4 years later (actually a solution) would be best done in an answer.