Explain the different types of hydrocarbons and provide examples for each type.

Hydrocarbons are organic compounds made up of only hydrogen and carbon atoms. They are categorized into four main types based on the nature of the bonds between carbon atoms:

1. Alkanes (Saturated Hydrocarbons):

Alkanes are hydrocarbons that contain only single bonds between carbon atoms. They are also called saturated hydrocarbons because each carbon atom is bonded to the maximum number of hydrogen atoms.

General Formula: CₙH₂ₙ+₂

Example: Methane (CH₄), Ethane (C₂H₆), Propane (C₃H₈)

2. Alkenes (Unsaturated Hydrocarbons with Double Bonds):

Alkenes contain at least one carbon-carbon double bond. They are unsaturated because they have fewer hydrogen atoms than alkanes.

General Formula: CₙH₂ₙ

Example: Ethene (C₂H₄), Propene (C₃H₆), Butene (C₄H₈)

3. Alkynes (Unsaturated Hydrocarbons with Triple Bonds):

Alkynes contain at least one carbon-carbon triple bond. They are also unsaturated and are more reactive than alkenes due to the presence of the triple bond.

General Formula: CₙH₂ₙ₋₂

Example: Ethyne (C₂H₂), Propyne (C₃H₄)