First order logic uses predicates, terms, and quantifiers to form atomic and complex sentences. Atomic sentences are formed from a predicate symbol followed by terms in parentheses. Complex sentences combine atomic sentences using logical connectives. Quantifiers like ∀ and ∃ are used to quantify variables in predicates. The unification algorithm tries to unify two first-order logic expressions by recursively matching and substituting their components, returning a substitution set if fully matched or FAILURE if a mismatch is found at any point.