Introduction to derived algebraic and analytic geometry I