Tesla said it intends to invest $3.6 billion to expand manufacturing capabilities in Nevada and is confident growing software-related profits, reflected in record net income reported Wednesday for the fourth quarter of last year, will keep margins higher than any other automaker.