I have been reading this site for a while, and was glad to find an entire tag devoted to "concept motivation," which is currently my area of interest.
However, my particular focus has not been addressed. Skimming through standard textbooks used in today's high school and (early) undergraduate coursework, I get the sense that there is a fundamental problem with motivation:
Problem: the "motivations" often feel contrived and somewhat artificial - e.g., a standard multivariate calculus text explains that the chain rule still works for general functions $f:\mathbb{R}^m\to\mathbb{R}^n$, as long as matrix multiplication procedures are obeyed; this, the text enthusiastically declares, is why matrix multiplication is defined as it is!
Um... don't think so.
For a long time I believed that the solution, as an educator, was to strive for better understanding of the material, so that concepts would lose their artificial "school feel" and take on more of a "someone-in-the-real-world-actually-came-up-with-this feel". But I am now convinced that I was wrong, and that taking a historical approach is in fact the right way to go (edit: I am not saying that comprehension is bad, just that it cannot explain the real "why" behind ideas). I have learned a surprising amount about concepts in mathematics, simply by researching why the came about, how they were discovered, what they were originally used for, etc. Hence the question:
Question: What research is there regarding the effectiveness of incorporating historical perspective (in the sense of mathematical context, not names and dates) into the motivation of concepts?
I would also be interested in any textbooks which may have been written from such perspectives. Histories of maths, obviously, are not relevant, as they are focused entirely on history and less on attempting to explain or illuminate concepts. I am more looking for a text which develops a subject in modern notation, terminology and rigour, while doing so as the subject came about historically - e.g., such a calculus text would not start with limits, which came last, but would rather start with the original problems considered by early practitioners.
I apologize for the somewhat verbose query; please comment if anything could be clarified!