Tesla has produced a turnaround for the ages. Knowing how the company pulled it off is important for investors.

Last week, chief executive Elon Musk said the electric car maker was struggling for survival up until September. Turns out, Tesla produced its biggest profit ever that quarter.

A new regulatory filing from Tesla that came out on...