They're mathematically equivalent, but "simplified" form (the one without the parentheses) is considered more "proper". I would accept either form, but some instructors (and most computer assessments) won't accept the latter. Use with caution.