How much of that is done by Musk himself is debatable. One of my pet peeves about the Musk fan-club is that he tends to partner with some very brilliant engineers and then get all the credit for the work they do. However, people high up in his companies (more than one of them) have said that he involves himself very extensively in discovering the technology itself, and his bachelors and the first couple years of his Ph.D were both in physics, so it seems likely that he does at least know the science behind what his companies do.