My textbook says the following:
$ads = v dv$
where $a$, $s$, $v$ are functions.
I was introduced to integral calculus a semester ago, and Riemann Sums (and integrals) are the only notion of multiplying functions and infinitesimals I'm familiar with.
In the above excerpt, $a$ is not necessarily a function of $s$ yet, you are multiplying it with an infinitesimal of $s$. Could someone give me an intuitive explanation of what it means when you multiply a function with with an infinitesimal of a variable that the function is not of?
I strongly suspect that the context of the quoted equation from your textbook has to do with the physics of motion (Newtonian kinematics) and that the variables $a,v,s$ correspond to the acceleration, velocity and displacement (all viewed as functions of time) of an object in motion from a given point of origin.
For the sake of simplicity, consider motion in just one dimension. The velocity and acceleration are defined by the equations $v:=\frac{ds}{dt}$ and $a:=\frac{dv}{dt}$, respectively. By the chain rule,
$$a=\frac{dv}{dt}=\frac{ds}{dt}\cdot\frac{dv}{ds}\\ =v\cdot\frac{dv}{ds},\space\text{by definition of }v\\ \Leftrightarrow a\,ds = v\cdot\frac{dv}{ds}\,ds=v\,dv.$$