General formulae

Organic compounds are organized into families. The members of the simplest hydrocarbon family are referred to as alkanes and have only singly bonded carbon (these can be represented as R–H where R represents a hydrocarbon group).
 
R2C=CR2
alkene

RC≡CR
alkyne
In other hydrocarbon families at least one pair of carbons is joined by a multiple bond. This is the reactive site in the molecule and is known as the functional group.

The general formula of members of other families is shown below. These have functional groups containing atoms other than C and H.  

The carbonyl group (C=O) is a common structural element.  Carboxylic acid derivatives (in the middle column) are one group of carbonyl-containing functional groups.  Aldehydes and ketones are another group.
 
One bond at one C to heteroatom*Two bonds at one C to heteroatom*Three bonds at one C to heteroatom* 
R–X
X=Cl, Br, I
haloalkane

(RCOR)
ketone

(RCO2H)
carboxylic acid
R–NR′2
R′ = H or hydrocarbon
amine
(RCHO)
aldehyde
 
(RCO2R)
ester
R–OR
 ether

R = H or hydrocarbon group 
for alkenes, alkynes,
carboxylic acids, amides
Otherwise R = hydrocarbon group

(RCONH2)
amide
R–OH
 alcohol
*atoms other than C and H

(RCOCl)
acid chloride