We present measurements of the elliptic (pan id="mmlsi2" class="mathmlsrc">pan class="formulatext stixSupport mathImg" data-mathURL="/science?_ob=MathURL&_method=retrieve&_eid=1-s2.0-S0370269316303586&_mathId=si2.gif&_user=111111111&_pii=S0370269316303586&_rdoc=1&_issn=03702693&md5=9ca06101309bad52b1ff201bcbd21958" title="Click to view the MathML source">v2pan>pan class="mathContainer hidden">pan class="mathCode">pan>pan>pan>), triangular (pan id="mmlsi3" class="mathmlsrc">pan class="formulatext stixSupport mathImg" data-mathURL="/science?_ob=MathURL&_method=retrieve&_eid=1-s2.0-S0370269316303586&_mathId=si3.gif&_user=111111111&_pii=S0370269316303586&_rdoc=1&_issn=03702693&md5=4285627d45ccdda4c0d45ff7ed4a256b" title="Click to view the MathML source">v3pan>pan class="mathContainer hidden">pan class="mathCode">pan>pan>pan>) and quadrangular (pan id="mmlsi4" class="mathmlsrc">pan class="formulatext stixSupport mathImg" data-mathURL="/science?_ob=MathURL&_method=retrieve&_eid=1-s2.0-S0370269316303586&_mathId=si4.gif&_user=111111111&_pii=S0370269316303586&_rdoc=1&_issn=03702693&md5=afabd775fa7380dd028f231d672a093d" title="Click to view the MathML source">v4pan>pan class="mathContainer hidden">pan class="mathCode">pan>pan>pan>) anisotropic azimuthal flow over a wide range of pseudorapidities (pan id="mmlsi5" class="mathmlsrc">pan class="formulatext stixSupport mathImg" data-mathURL="/science?_ob=MathURL&_method=retrieve&_eid=1-s2.0-S0370269316303586&_mathId=si5.gif&_user=111111111&_pii=S0370269316303586&_rdoc=1&_issn=03702693&md5=8a85b44dae8fb199e19945be549092d8" title="Click to view the MathML source">−3.5<η<5pan>pan class="mathContainer hidden">pan class="mathCode">pan>pan>pan>). The measurements are performed with Pb–Pb collisions at pan id="mmlsi1" class="mathmlsrc">pan class="mathContainer hidden">pan class="mathCode">pan>pan>pan> using the ALICE detector at the Large Hadron Collider (LHC). The flow harmonics are obtained using two- and four-particle correlations from nine different centrality intervals covering central to peripheral collisions. We find that the shape of pan id="mmlsi6" class="mathmlsrc">pan class="formulatext stixSupport mathImg" data-mathURL="/science?_ob=MathURL&_method=retrieve&_eid=1-s2.0-S0370269316303586&_mathId=si6.gif&_user=111111111&_pii=S0370269316303586&_rdoc=1&_issn=03702693&md5=75251f1f46549c175e779ff2b4ae8a8d" title="Click to view the MathML source">vn(η)pan>pan class="mathContainer hidden">pan class="mathCode">pan>pan>pan> is largely independent of centrality for the flow harmonics pan id="mmlsi7" class="mathmlsrc">pan class="formulatext stixSupport mathImg" data-mathURL="/science?_ob=MathURL&_method=retrieve&_eid=1-s2.0-S0370269316303586&_mathId=si7.gif&_user=111111111&_pii=S0370269316303586&_rdoc=1&_issn=03702693&md5=ea9a291dd8beedf88a13c9103c79334a" title="Click to view the MathML source">n=2–4pan>pan class="mathContainer hidden">pan class="mathCode">pan>pan>pan>, however the higher harmonics fall off more steeply with increasing pan id="mmlsi8" class="mathmlsrc">pan class="formulatext stixSupport mathImg" data-mathURL="/science?_ob=MathURL&_method=retrieve&_eid=1-s2.0-S0370269316303586&_mathId=si8.gif&_user=111111111&_pii=S0370269316303586&_rdoc=1&_issn=03702693&md5=8f072ec63cf8a21187020234d0a227ae" title="Click to view the MathML source">|η|pan>pan class="mathContainer hidden">pan class="mathCode">pan>pan>pan>. We assess the validity of extended longitudinal scaling of pan id="mmlsi2" class="mathmlsrc">pan class="formulatext stixSupport mathImg" data-mathURL="/science?_ob=MathURL&_method=retrieve&_eid=1-s2.0-S0370269316303586&_mathId=si2.gif&_user=111111111&_pii=S0370269316303586&_rdoc=1&_issn=03702693&md5=9ca06101309bad52b1ff201bcbd21958" title="Click to view the MathML source">v2pan>pan class="mathContainer hidden">pan class="mathCode">pan>pan>pan> by comparing to lower energy measurements, and find that the higher harmonic flow coefficients are proportional to the charged particle densities at larger pseudorapidities. Finally, we compare our measurements to both hydrodynamical and transport models, and find they both have challenges when it comes to describing our data.