ForwardDiff with function using broadcasting

Please provide an MWE.