How to align equations to the left












3














I have this equation on Overleaf that aligns to the right instead of the left. I have followed instructions on other questions found here but it doesn't work.



{setlength{abovedisplayskip}{0pt}%
begin{flalign}
-frac{tau}{2} sum (x_n - mu)^2 -b_0tau -frac{lambda_0tau}{2} (mu - mu_0)^2 \
= -frac{tau}{2}sum(x_n^2 + mu^2 - 2x_nmu) - b_0tau - frac{lambda_0tau}{2}(mu^2 + mu_0^2 - 2mumu_0)\
= -frac{tau}{2}(sum x_n^2 + Nmu^2 - 2musum x_n) - b_0tau - frac{lambda_0tau}{2}(mu^2 + mu_0^2 - 2mumu_0)
end{flalign}%
}%


enter image description here



How can I align to the left?










share|improve this question


















  • 2




    Please make your given code snippet compilable ...
    – Kurt
    Dec 23 at 17:17
















3














I have this equation on Overleaf that aligns to the right instead of the left. I have followed instructions on other questions found here but it doesn't work.



{setlength{abovedisplayskip}{0pt}%
begin{flalign}
-frac{tau}{2} sum (x_n - mu)^2 -b_0tau -frac{lambda_0tau}{2} (mu - mu_0)^2 \
= -frac{tau}{2}sum(x_n^2 + mu^2 - 2x_nmu) - b_0tau - frac{lambda_0tau}{2}(mu^2 + mu_0^2 - 2mumu_0)\
= -frac{tau}{2}(sum x_n^2 + Nmu^2 - 2musum x_n) - b_0tau - frac{lambda_0tau}{2}(mu^2 + mu_0^2 - 2mumu_0)
end{flalign}%
}%


enter image description here



How can I align to the left?










share|improve this question


















  • 2




    Please make your given code snippet compilable ...
    – Kurt
    Dec 23 at 17:17














3












3








3


0





I have this equation on Overleaf that aligns to the right instead of the left. I have followed instructions on other questions found here but it doesn't work.



{setlength{abovedisplayskip}{0pt}%
begin{flalign}
-frac{tau}{2} sum (x_n - mu)^2 -b_0tau -frac{lambda_0tau}{2} (mu - mu_0)^2 \
= -frac{tau}{2}sum(x_n^2 + mu^2 - 2x_nmu) - b_0tau - frac{lambda_0tau}{2}(mu^2 + mu_0^2 - 2mumu_0)\
= -frac{tau}{2}(sum x_n^2 + Nmu^2 - 2musum x_n) - b_0tau - frac{lambda_0tau}{2}(mu^2 + mu_0^2 - 2mumu_0)
end{flalign}%
}%


enter image description here



How can I align to the left?










share|improve this question













I have this equation on Overleaf that aligns to the right instead of the left. I have followed instructions on other questions found here but it doesn't work.



{setlength{abovedisplayskip}{0pt}%
begin{flalign}
-frac{tau}{2} sum (x_n - mu)^2 -b_0tau -frac{lambda_0tau}{2} (mu - mu_0)^2 \
= -frac{tau}{2}sum(x_n^2 + mu^2 - 2x_nmu) - b_0tau - frac{lambda_0tau}{2}(mu^2 + mu_0^2 - 2mumu_0)\
= -frac{tau}{2}(sum x_n^2 + Nmu^2 - 2musum x_n) - b_0tau - frac{lambda_0tau}{2}(mu^2 + mu_0^2 - 2mumu_0)
end{flalign}%
}%


enter image description here



How can I align to the left?







overleaf






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Dec 23 at 17:15









Sahand

1184




1184








  • 2




    Please make your given code snippet compilable ...
    – Kurt
    Dec 23 at 17:17














  • 2




    Please make your given code snippet compilable ...
    – Kurt
    Dec 23 at 17:17








2




2




Please make your given code snippet compilable ...
– Kurt
Dec 23 at 17:17




Please make your given code snippet compilable ...
– Kurt
Dec 23 at 17:17










2 Answers
2






active

oldest

votes


















4














i guess that you are looking for the following:



enter image description here



documentclass{article}
usepackage{mathtools}

begin{document}
begin{equation}
begin{split}
MoveEqLeft
-frac{tau}{2}sum (x_n-mu)^2-b_0tau
-frac{lambda_0tau}{2}(mu-mu_0)^2 \
& = - frac{tau}{2}sum(x_n^2 + mu^2 - 2x_nmu) - b_0tau -
frac{lambda_0tau}{2}(mu^2 + mu_0^2 - 2mumu_0)\
& = -frac{tau}{2}Bigl(sum x_n^2 + Nmu^2 - 2musum x_nBigr) - b_0tau -
frac{lambda_0tau}{2}(mu^2 + mu_0^2 - 2mumu_0))
end{split}
end{equation}
end{document}





share|improve this answer























  • @Mico, thank you very much. i consider your suggestion.
    – Zarko
    Dec 23 at 17:38










  • Sorry for not being sufficiently clear earlier about where the large parentheses should go. I've taken the liberty of providing an update.
    – Mico
    Dec 23 at 18:20












  • @Mico, thank you very much. i should see, which parenthesis are in pair.
    – Zarko
    Dec 23 at 18:47



















1














documentclass{article}
usepackage{amsmath}
begin{document}

begin{flalign}
-& frac{tau}{2}sum (x_n-mu)^2-b_0tau -frac{lambda_0tau}{2}(mu-mu_0)^2 notag \
&= -frac{tau}{2}sum(x_n^2 + mu^2 - 2x_nmu) - b_0tau -
frac{lambda_0tau}{2}(mu^2 + mu_0^2 - 2mumu_0) \
&= -frac{tau}{2}Bigl(sum x_n^2 + Nmu^2 - 2musum x_nBigr) - b_0tau -
frac{lambda_0tau}{2}(mu^2 + mu_0^2 - 2mumu_0)) notag
end{flalign}

end{document}



enter image description here







share|improve this answer





















    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "85"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f467113%2fhow-to-align-equations-to-the-left%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    4














    i guess that you are looking for the following:



    enter image description here



    documentclass{article}
    usepackage{mathtools}

    begin{document}
    begin{equation}
    begin{split}
    MoveEqLeft
    -frac{tau}{2}sum (x_n-mu)^2-b_0tau
    -frac{lambda_0tau}{2}(mu-mu_0)^2 \
    & = - frac{tau}{2}sum(x_n^2 + mu^2 - 2x_nmu) - b_0tau -
    frac{lambda_0tau}{2}(mu^2 + mu_0^2 - 2mumu_0)\
    & = -frac{tau}{2}Bigl(sum x_n^2 + Nmu^2 - 2musum x_nBigr) - b_0tau -
    frac{lambda_0tau}{2}(mu^2 + mu_0^2 - 2mumu_0))
    end{split}
    end{equation}
    end{document}





    share|improve this answer























    • @Mico, thank you very much. i consider your suggestion.
      – Zarko
      Dec 23 at 17:38










    • Sorry for not being sufficiently clear earlier about where the large parentheses should go. I've taken the liberty of providing an update.
      – Mico
      Dec 23 at 18:20












    • @Mico, thank you very much. i should see, which parenthesis are in pair.
      – Zarko
      Dec 23 at 18:47
















    4














    i guess that you are looking for the following:



    enter image description here



    documentclass{article}
    usepackage{mathtools}

    begin{document}
    begin{equation}
    begin{split}
    MoveEqLeft
    -frac{tau}{2}sum (x_n-mu)^2-b_0tau
    -frac{lambda_0tau}{2}(mu-mu_0)^2 \
    & = - frac{tau}{2}sum(x_n^2 + mu^2 - 2x_nmu) - b_0tau -
    frac{lambda_0tau}{2}(mu^2 + mu_0^2 - 2mumu_0)\
    & = -frac{tau}{2}Bigl(sum x_n^2 + Nmu^2 - 2musum x_nBigr) - b_0tau -
    frac{lambda_0tau}{2}(mu^2 + mu_0^2 - 2mumu_0))
    end{split}
    end{equation}
    end{document}





    share|improve this answer























    • @Mico, thank you very much. i consider your suggestion.
      – Zarko
      Dec 23 at 17:38










    • Sorry for not being sufficiently clear earlier about where the large parentheses should go. I've taken the liberty of providing an update.
      – Mico
      Dec 23 at 18:20












    • @Mico, thank you very much. i should see, which parenthesis are in pair.
      – Zarko
      Dec 23 at 18:47














    4












    4








    4






    i guess that you are looking for the following:



    enter image description here



    documentclass{article}
    usepackage{mathtools}

    begin{document}
    begin{equation}
    begin{split}
    MoveEqLeft
    -frac{tau}{2}sum (x_n-mu)^2-b_0tau
    -frac{lambda_0tau}{2}(mu-mu_0)^2 \
    & = - frac{tau}{2}sum(x_n^2 + mu^2 - 2x_nmu) - b_0tau -
    frac{lambda_0tau}{2}(mu^2 + mu_0^2 - 2mumu_0)\
    & = -frac{tau}{2}Bigl(sum x_n^2 + Nmu^2 - 2musum x_nBigr) - b_0tau -
    frac{lambda_0tau}{2}(mu^2 + mu_0^2 - 2mumu_0))
    end{split}
    end{equation}
    end{document}





    share|improve this answer














    i guess that you are looking for the following:



    enter image description here



    documentclass{article}
    usepackage{mathtools}

    begin{document}
    begin{equation}
    begin{split}
    MoveEqLeft
    -frac{tau}{2}sum (x_n-mu)^2-b_0tau
    -frac{lambda_0tau}{2}(mu-mu_0)^2 \
    & = - frac{tau}{2}sum(x_n^2 + mu^2 - 2x_nmu) - b_0tau -
    frac{lambda_0tau}{2}(mu^2 + mu_0^2 - 2mumu_0)\
    & = -frac{tau}{2}Bigl(sum x_n^2 + Nmu^2 - 2musum x_nBigr) - b_0tau -
    frac{lambda_0tau}{2}(mu^2 + mu_0^2 - 2mumu_0))
    end{split}
    end{equation}
    end{document}






    share|improve this answer














    share|improve this answer



    share|improve this answer








    edited Dec 23 at 18:19









    Mico

    273k30369756




    273k30369756










    answered Dec 23 at 17:30









    Zarko

    120k865156




    120k865156












    • @Mico, thank you very much. i consider your suggestion.
      – Zarko
      Dec 23 at 17:38










    • Sorry for not being sufficiently clear earlier about where the large parentheses should go. I've taken the liberty of providing an update.
      – Mico
      Dec 23 at 18:20












    • @Mico, thank you very much. i should see, which parenthesis are in pair.
      – Zarko
      Dec 23 at 18:47


















    • @Mico, thank you very much. i consider your suggestion.
      – Zarko
      Dec 23 at 17:38










    • Sorry for not being sufficiently clear earlier about where the large parentheses should go. I've taken the liberty of providing an update.
      – Mico
      Dec 23 at 18:20












    • @Mico, thank you very much. i should see, which parenthesis are in pair.
      – Zarko
      Dec 23 at 18:47
















    @Mico, thank you very much. i consider your suggestion.
    – Zarko
    Dec 23 at 17:38




    @Mico, thank you very much. i consider your suggestion.
    – Zarko
    Dec 23 at 17:38












    Sorry for not being sufficiently clear earlier about where the large parentheses should go. I've taken the liberty of providing an update.
    – Mico
    Dec 23 at 18:20






    Sorry for not being sufficiently clear earlier about where the large parentheses should go. I've taken the liberty of providing an update.
    – Mico
    Dec 23 at 18:20














    @Mico, thank you very much. i should see, which parenthesis are in pair.
    – Zarko
    Dec 23 at 18:47




    @Mico, thank you very much. i should see, which parenthesis are in pair.
    – Zarko
    Dec 23 at 18:47











    1














    documentclass{article}
    usepackage{amsmath}
    begin{document}

    begin{flalign}
    -& frac{tau}{2}sum (x_n-mu)^2-b_0tau -frac{lambda_0tau}{2}(mu-mu_0)^2 notag \
    &= -frac{tau}{2}sum(x_n^2 + mu^2 - 2x_nmu) - b_0tau -
    frac{lambda_0tau}{2}(mu^2 + mu_0^2 - 2mumu_0) \
    &= -frac{tau}{2}Bigl(sum x_n^2 + Nmu^2 - 2musum x_nBigr) - b_0tau -
    frac{lambda_0tau}{2}(mu^2 + mu_0^2 - 2mumu_0)) notag
    end{flalign}

    end{document}



    enter image description here







    share|improve this answer


























      1














      documentclass{article}
      usepackage{amsmath}
      begin{document}

      begin{flalign}
      -& frac{tau}{2}sum (x_n-mu)^2-b_0tau -frac{lambda_0tau}{2}(mu-mu_0)^2 notag \
      &= -frac{tau}{2}sum(x_n^2 + mu^2 - 2x_nmu) - b_0tau -
      frac{lambda_0tau}{2}(mu^2 + mu_0^2 - 2mumu_0) \
      &= -frac{tau}{2}Bigl(sum x_n^2 + Nmu^2 - 2musum x_nBigr) - b_0tau -
      frac{lambda_0tau}{2}(mu^2 + mu_0^2 - 2mumu_0)) notag
      end{flalign}

      end{document}



      enter image description here







      share|improve this answer
























        1












        1








        1






        documentclass{article}
        usepackage{amsmath}
        begin{document}

        begin{flalign}
        -& frac{tau}{2}sum (x_n-mu)^2-b_0tau -frac{lambda_0tau}{2}(mu-mu_0)^2 notag \
        &= -frac{tau}{2}sum(x_n^2 + mu^2 - 2x_nmu) - b_0tau -
        frac{lambda_0tau}{2}(mu^2 + mu_0^2 - 2mumu_0) \
        &= -frac{tau}{2}Bigl(sum x_n^2 + Nmu^2 - 2musum x_nBigr) - b_0tau -
        frac{lambda_0tau}{2}(mu^2 + mu_0^2 - 2mumu_0)) notag
        end{flalign}

        end{document}



        enter image description here







        share|improve this answer












        documentclass{article}
        usepackage{amsmath}
        begin{document}

        begin{flalign}
        -& frac{tau}{2}sum (x_n-mu)^2-b_0tau -frac{lambda_0tau}{2}(mu-mu_0)^2 notag \
        &= -frac{tau}{2}sum(x_n^2 + mu^2 - 2x_nmu) - b_0tau -
        frac{lambda_0tau}{2}(mu^2 + mu_0^2 - 2mumu_0) \
        &= -frac{tau}{2}Bigl(sum x_n^2 + Nmu^2 - 2musum x_nBigr) - b_0tau -
        frac{lambda_0tau}{2}(mu^2 + mu_0^2 - 2mumu_0)) notag
        end{flalign}

        end{document}



        enter image description here








        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Dec 23 at 18:46









        AboAmmar

        32.9k22882




        32.9k22882






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to TeX - LaTeX Stack Exchange!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.





            Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


            Please pay close attention to the following guidance:


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f467113%2fhow-to-align-equations-to-the-left%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            How did Captain America manage to do this?

            迪纳利

            南乌拉尔铁路局