How do you get the state space model from transfer function?
Probably the most straightforward method for converting from the transfer function of a system to a state space model is to generate a model in "controllable canonical form." This term comes from Control Theory but its exact meaning is not important to us.
How do you do state space analysis?
Transfer Function from State Space Model
Apply Laplace Transform on both sides of the state equation. Apply Laplace Transform on both sides of the output equation. Substitute, X(s) value in the above equation. The above equation represents the transfer function of the system.