To align equations, we use the **align** environment, and to use align environment, package `amsmat…