Trigonometric Substitution

Making a square root disappear by deciding, in advance, that x is a sine or a tangent.