Aligning two sets of equations with alignat?Aligning equations with text with alignatalignat not correctly aligningAligning equations in multiple placesAligning equationsAlign multiple equationsTypesetting equations but results in error in tabularxHelp with aligning equations shifting to the rightequation custom horizontal alignment & numbering each rowIssue with align/alignat and equationsAlign multi-line equations with implies

What can a pilot do if an air traffic controller is incapacitated?

Where Does VDD+0.3V Input Limit Come From on IC chips?

Why there so many pitch control surfaces on the Piaggio P180 Avanti?

How would a native speaker correct themselves when they misspeak?

What is a Heptagon Number™?

Algorithm that spans orthogonal vectors: Python

How to fix folder structure in Windows 7 and 10

Debussy as term for bathroom?

How to make interviewee comfortable interviewing in lounge chairs

Minimize taxes now that I earn more

Do household ovens ventilate heat to the outdoors?

Cheap antenna for new HF HAM

Writing a letter of recommendation for a mediocre student

I feel like most of my characters are the same, what can I do?

Сardinality estimation of partially covering range predicates

What are the end bytes of *.docx file format

In a jam session, when asked which key my non-transposing instrument (like a violin) is in, what do I answer?

How do I clean sealant/silicon from a glass mirror?

I reverse the source code, you negate the output!

As a discovery writer, how do I complete an unfinished novel (which has highly diverged from the original plot ) after a time-gap?

Leaving a job that I just took based on false promise of a raise. What do I tell future interviewers?

Which museums have artworks of all four ninja turtles' namesakes?

Is there any reason nowadays to use a neon indicator lamp instead of an LED?

Did HaShem ever command a Navi (Prophet) to break a law?



Aligning two sets of equations with alignat?


Aligning equations with text with alignatalignat not correctly aligningAligning equations in multiple placesAligning equationsAlign multiple equationsTypesetting equations but results in error in tabularxHelp with aligning equations shifting to the rightequation custom horizontal alignment & numbering each rowIssue with align/alignat and equationsAlign multi-line equations with implies






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








3















I'm having difficulties typing the following: enter image description here



What I am getting with the code



beginalignat*4
f(x)&=x^-1, &&qquad&& f(2) &&= 2^-1=frac12,\
f'(x)&=-x^-2, &&qquad &&f'(2) &&=-frac12^2,\
f''(x)&=2!x^-3, &&qquad &&fracf''(2)2!&&=2^-3=frac12^3,\
f'''(x)&=-3!x^-4, &&qquad &&fracf'''(2)3!&&=-frac12^4,\
&vdotswithin=&&qquad &&vdotswithin=&&\
f^(n)(x)&=(-1)^nn!x^-(n+1), &&qquad&& fracf^(n)(2)n!&&=frac(-1)^n2^n+1.
endalignat*


is something like this: enter image description here



I have tried very hard but cannot get the spacing right. Can someone please help me with this?










share|improve this question



















  • 2





    Why alignat? A simple align does it: documentclassarticle usepackagemathtools begindocument beginalign f(x)&=x^-1, & f(2) &= 2^-1=frac12,\ f'(x)&=-x^-2, &f'(2) &=-frac12^2,\ f''(x)&=2!x^-3, &fracf''(2)2!&=2^-3=frac12^3,\ f'''(x)&=-3!x^-4, &fracf'''(2)3!&=-frac12^4,\ &vdotswithin= & &vdotswithin=\ f^(n)(x)&=(-1)^nn!x^-(n+1), & fracf^(n)(2)n!&=frac(-1)^n2^n+1 endalign enddocument

    – Schrödinger's cat
    8 hours ago






  • 1





    You're using too many &'s

    – egreg
    8 hours ago











  • Instead of &&qquad&& f(2) && use &qquad&& f(2) &. Each & provides an alternating r and l alignment point.

    – Peter Grill
    8 hours ago












  • @Schrödinger'scat Thanks so much, I was led to believe this wasn't possible to do with align. Please leave your comment as an answer to this question.

    – J. Doe
    8 hours ago

















3















I'm having difficulties typing the following: enter image description here



What I am getting with the code



beginalignat*4
f(x)&=x^-1, &&qquad&& f(2) &&= 2^-1=frac12,\
f'(x)&=-x^-2, &&qquad &&f'(2) &&=-frac12^2,\
f''(x)&=2!x^-3, &&qquad &&fracf''(2)2!&&=2^-3=frac12^3,\
f'''(x)&=-3!x^-4, &&qquad &&fracf'''(2)3!&&=-frac12^4,\
&vdotswithin=&&qquad &&vdotswithin=&&\
f^(n)(x)&=(-1)^nn!x^-(n+1), &&qquad&& fracf^(n)(2)n!&&=frac(-1)^n2^n+1.
endalignat*


is something like this: enter image description here



I have tried very hard but cannot get the spacing right. Can someone please help me with this?










share|improve this question



















  • 2





    Why alignat? A simple align does it: documentclassarticle usepackagemathtools begindocument beginalign f(x)&=x^-1, & f(2) &= 2^-1=frac12,\ f'(x)&=-x^-2, &f'(2) &=-frac12^2,\ f''(x)&=2!x^-3, &fracf''(2)2!&=2^-3=frac12^3,\ f'''(x)&=-3!x^-4, &fracf'''(2)3!&=-frac12^4,\ &vdotswithin= & &vdotswithin=\ f^(n)(x)&=(-1)^nn!x^-(n+1), & fracf^(n)(2)n!&=frac(-1)^n2^n+1 endalign enddocument

    – Schrödinger's cat
    8 hours ago






  • 1





    You're using too many &'s

    – egreg
    8 hours ago











  • Instead of &&qquad&& f(2) && use &qquad&& f(2) &. Each & provides an alternating r and l alignment point.

    – Peter Grill
    8 hours ago












  • @Schrödinger'scat Thanks so much, I was led to believe this wasn't possible to do with align. Please leave your comment as an answer to this question.

    – J. Doe
    8 hours ago













3












3








3








I'm having difficulties typing the following: enter image description here



What I am getting with the code



beginalignat*4
f(x)&=x^-1, &&qquad&& f(2) &&= 2^-1=frac12,\
f'(x)&=-x^-2, &&qquad &&f'(2) &&=-frac12^2,\
f''(x)&=2!x^-3, &&qquad &&fracf''(2)2!&&=2^-3=frac12^3,\
f'''(x)&=-3!x^-4, &&qquad &&fracf'''(2)3!&&=-frac12^4,\
&vdotswithin=&&qquad &&vdotswithin=&&\
f^(n)(x)&=(-1)^nn!x^-(n+1), &&qquad&& fracf^(n)(2)n!&&=frac(-1)^n2^n+1.
endalignat*


is something like this: enter image description here



I have tried very hard but cannot get the spacing right. Can someone please help me with this?










share|improve this question














I'm having difficulties typing the following: enter image description here



What I am getting with the code



beginalignat*4
f(x)&=x^-1, &&qquad&& f(2) &&= 2^-1=frac12,\
f'(x)&=-x^-2, &&qquad &&f'(2) &&=-frac12^2,\
f''(x)&=2!x^-3, &&qquad &&fracf''(2)2!&&=2^-3=frac12^3,\
f'''(x)&=-3!x^-4, &&qquad &&fracf'''(2)3!&&=-frac12^4,\
&vdotswithin=&&qquad &&vdotswithin=&&\
f^(n)(x)&=(-1)^nn!x^-(n+1), &&qquad&& fracf^(n)(2)n!&&=frac(-1)^n2^n+1.
endalignat*


is something like this: enter image description here



I have tried very hard but cannot get the spacing right. Can someone please help me with this?







spacing align amsmath






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked 8 hours ago









J. DoeJ. Doe

404 bronze badges




404 bronze badges










  • 2





    Why alignat? A simple align does it: documentclassarticle usepackagemathtools begindocument beginalign f(x)&=x^-1, & f(2) &= 2^-1=frac12,\ f'(x)&=-x^-2, &f'(2) &=-frac12^2,\ f''(x)&=2!x^-3, &fracf''(2)2!&=2^-3=frac12^3,\ f'''(x)&=-3!x^-4, &fracf'''(2)3!&=-frac12^4,\ &vdotswithin= & &vdotswithin=\ f^(n)(x)&=(-1)^nn!x^-(n+1), & fracf^(n)(2)n!&=frac(-1)^n2^n+1 endalign enddocument

    – Schrödinger's cat
    8 hours ago






  • 1





    You're using too many &'s

    – egreg
    8 hours ago











  • Instead of &&qquad&& f(2) && use &qquad&& f(2) &. Each & provides an alternating r and l alignment point.

    – Peter Grill
    8 hours ago












  • @Schrödinger'scat Thanks so much, I was led to believe this wasn't possible to do with align. Please leave your comment as an answer to this question.

    – J. Doe
    8 hours ago












  • 2





    Why alignat? A simple align does it: documentclassarticle usepackagemathtools begindocument beginalign f(x)&=x^-1, & f(2) &= 2^-1=frac12,\ f'(x)&=-x^-2, &f'(2) &=-frac12^2,\ f''(x)&=2!x^-3, &fracf''(2)2!&=2^-3=frac12^3,\ f'''(x)&=-3!x^-4, &fracf'''(2)3!&=-frac12^4,\ &vdotswithin= & &vdotswithin=\ f^(n)(x)&=(-1)^nn!x^-(n+1), & fracf^(n)(2)n!&=frac(-1)^n2^n+1 endalign enddocument

    – Schrödinger's cat
    8 hours ago






  • 1





    You're using too many &'s

    – egreg
    8 hours ago











  • Instead of &&qquad&& f(2) && use &qquad&& f(2) &. Each & provides an alternating r and l alignment point.

    – Peter Grill
    8 hours ago












  • @Schrödinger'scat Thanks so much, I was led to believe this wasn't possible to do with align. Please leave your comment as an answer to this question.

    – J. Doe
    8 hours ago







2




2





Why alignat? A simple align does it: documentclassarticle usepackagemathtools begindocument beginalign f(x)&=x^-1, & f(2) &= 2^-1=frac12,\ f'(x)&=-x^-2, &f'(2) &=-frac12^2,\ f''(x)&=2!x^-3, &fracf''(2)2!&=2^-3=frac12^3,\ f'''(x)&=-3!x^-4, &fracf'''(2)3!&=-frac12^4,\ &vdotswithin= & &vdotswithin=\ f^(n)(x)&=(-1)^nn!x^-(n+1), & fracf^(n)(2)n!&=frac(-1)^n2^n+1 endalign enddocument

– Schrödinger's cat
8 hours ago





Why alignat? A simple align does it: documentclassarticle usepackagemathtools begindocument beginalign f(x)&=x^-1, & f(2) &= 2^-1=frac12,\ f'(x)&=-x^-2, &f'(2) &=-frac12^2,\ f''(x)&=2!x^-3, &fracf''(2)2!&=2^-3=frac12^3,\ f'''(x)&=-3!x^-4, &fracf'''(2)3!&=-frac12^4,\ &vdotswithin= & &vdotswithin=\ f^(n)(x)&=(-1)^nn!x^-(n+1), & fracf^(n)(2)n!&=frac(-1)^n2^n+1 endalign enddocument

– Schrödinger's cat
8 hours ago




1




1





You're using too many &'s

– egreg
8 hours ago





You're using too many &'s

– egreg
8 hours ago













Instead of &&qquad&& f(2) && use &qquad&& f(2) &. Each & provides an alternating r and l alignment point.

– Peter Grill
8 hours ago






Instead of &&qquad&& f(2) && use &qquad&& f(2) &. Each & provides an alternating r and l alignment point.

– Peter Grill
8 hours ago














@Schrödinger'scat Thanks so much, I was led to believe this wasn't possible to do with align. Please leave your comment as an answer to this question.

– J. Doe
8 hours ago





@Schrödinger'scat Thanks so much, I was led to believe this wasn't possible to do with align. Please leave your comment as an answer to this question.

– J. Doe
8 hours ago










2 Answers
2






active

oldest

votes


















2
















OK, here we go. A simple align (of course with the appropriately set &) yields



documentclassarticle
usepackagemathtools
begindocument
beginalign
f(x)&=x^-1, & f(2) &= 2^-1=frac12,\
f'(x)&=-x^-2, &f'(2) &=-frac12^2,\
f''(x)&=2!x^-3, &fracf''(2)2!&=2^-3=frac12^3,\
f'''(x)&=-3!x^-4, &fracf'''(2)3!&=-frac12^4,\
&vdotswithin= & &vdotswithin=\
f^(n)(x)&=(-1)^nn!x^-(n+1), & fracf^(n)(2)n!&=frac(-1)^n2^n+1
endalign
enddocument


enter image description here






share|improve this answer
































    3
















    You have too many &'s. Just three per row suffice.



    On the other hand, aligning at the = signs doesn't seem the best idea, as it creates irregular shapes and the = signs are not really related to one another, so I propose a different solution.



    I also added , after the ! when the factorial is immediately followed by another term.



    documentclassarticle
    usepackagemathtools

    begindocument

    beginalignat*2
    f(x)&=x^-1, qquad & f(2) &= 2^-1=frac12,
    \
    f'(x)&=-x^-2, qquad & f'(2) &=-frac12^2,
    \
    f''(x)&=2!,x^-3, qquad & fracf''(2)2!&=2^-3=frac12^3,
    \
    f'''(x)&=-3!,x^-4, qquad & fracf'''(2)3!&=-frac12^4,
    \
    &vdotswithin= qquad & & vdotswithin=
    \
    f^(n)(x)&=(-1)^nn!,x^-(n+1), qquad & fracf^(n)(2)n!&=frac(-1)^n2^n+1.
    endalignat*

    beginalignat*2
    & f(x)=x^-1, && f(2) = 2^-1=frac12,
    \[1ex]
    & f'(x)=-x^-2, && f'(2) =-frac12^2,
    \[1ex]
    & f''(x)=2!,x^-3, && fracf''(2)2!=2^-3=frac12^3,
    \[1ex]
    & f'''(x)=-3!,x^-4, && fracf'''(2)3!=-frac12^4,
    \
    &qquadvdots && qquadvdots
    \
    & f^(n)(x)=(-1)^nn!,x^-(n+1),qquad && fracf^(n)(2)n!=frac(-1)^n2^n+1.
    endalignat*

    enddocument


    enter image description here






    share|improve this answer

























    • Thank you, this is very nice. And the vertical dot placement according to your suggesting is perfectly fine also. Putting , after ! also makes things less cluttered. I hope your know that your help is very much appreciated.

      – J. Doe
      8 hours ago













    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/4.0/"u003ecc by-sa 4.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%2f508822%2faligning-two-sets-of-equations-with-alignat%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









    2
















    OK, here we go. A simple align (of course with the appropriately set &) yields



    documentclassarticle
    usepackagemathtools
    begindocument
    beginalign
    f(x)&=x^-1, & f(2) &= 2^-1=frac12,\
    f'(x)&=-x^-2, &f'(2) &=-frac12^2,\
    f''(x)&=2!x^-3, &fracf''(2)2!&=2^-3=frac12^3,\
    f'''(x)&=-3!x^-4, &fracf'''(2)3!&=-frac12^4,\
    &vdotswithin= & &vdotswithin=\
    f^(n)(x)&=(-1)^nn!x^-(n+1), & fracf^(n)(2)n!&=frac(-1)^n2^n+1
    endalign
    enddocument


    enter image description here






    share|improve this answer





























      2
















      OK, here we go. A simple align (of course with the appropriately set &) yields



      documentclassarticle
      usepackagemathtools
      begindocument
      beginalign
      f(x)&=x^-1, & f(2) &= 2^-1=frac12,\
      f'(x)&=-x^-2, &f'(2) &=-frac12^2,\
      f''(x)&=2!x^-3, &fracf''(2)2!&=2^-3=frac12^3,\
      f'''(x)&=-3!x^-4, &fracf'''(2)3!&=-frac12^4,\
      &vdotswithin= & &vdotswithin=\
      f^(n)(x)&=(-1)^nn!x^-(n+1), & fracf^(n)(2)n!&=frac(-1)^n2^n+1
      endalign
      enddocument


      enter image description here






      share|improve this answer



























        2














        2










        2









        OK, here we go. A simple align (of course with the appropriately set &) yields



        documentclassarticle
        usepackagemathtools
        begindocument
        beginalign
        f(x)&=x^-1, & f(2) &= 2^-1=frac12,\
        f'(x)&=-x^-2, &f'(2) &=-frac12^2,\
        f''(x)&=2!x^-3, &fracf''(2)2!&=2^-3=frac12^3,\
        f'''(x)&=-3!x^-4, &fracf'''(2)3!&=-frac12^4,\
        &vdotswithin= & &vdotswithin=\
        f^(n)(x)&=(-1)^nn!x^-(n+1), & fracf^(n)(2)n!&=frac(-1)^n2^n+1
        endalign
        enddocument


        enter image description here






        share|improve this answer













        OK, here we go. A simple align (of course with the appropriately set &) yields



        documentclassarticle
        usepackagemathtools
        begindocument
        beginalign
        f(x)&=x^-1, & f(2) &= 2^-1=frac12,\
        f'(x)&=-x^-2, &f'(2) &=-frac12^2,\
        f''(x)&=2!x^-3, &fracf''(2)2!&=2^-3=frac12^3,\
        f'''(x)&=-3!x^-4, &fracf'''(2)3!&=-frac12^4,\
        &vdotswithin= & &vdotswithin=\
        f^(n)(x)&=(-1)^nn!x^-(n+1), & fracf^(n)(2)n!&=frac(-1)^n2^n+1
        endalign
        enddocument


        enter image description here







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered 8 hours ago









        Schrödinger's catSchrödinger's cat

        8,07012 silver badges25 bronze badges




        8,07012 silver badges25 bronze badges


























            3
















            You have too many &'s. Just three per row suffice.



            On the other hand, aligning at the = signs doesn't seem the best idea, as it creates irregular shapes and the = signs are not really related to one another, so I propose a different solution.



            I also added , after the ! when the factorial is immediately followed by another term.



            documentclassarticle
            usepackagemathtools

            begindocument

            beginalignat*2
            f(x)&=x^-1, qquad & f(2) &= 2^-1=frac12,
            \
            f'(x)&=-x^-2, qquad & f'(2) &=-frac12^2,
            \
            f''(x)&=2!,x^-3, qquad & fracf''(2)2!&=2^-3=frac12^3,
            \
            f'''(x)&=-3!,x^-4, qquad & fracf'''(2)3!&=-frac12^4,
            \
            &vdotswithin= qquad & & vdotswithin=
            \
            f^(n)(x)&=(-1)^nn!,x^-(n+1), qquad & fracf^(n)(2)n!&=frac(-1)^n2^n+1.
            endalignat*

            beginalignat*2
            & f(x)=x^-1, && f(2) = 2^-1=frac12,
            \[1ex]
            & f'(x)=-x^-2, && f'(2) =-frac12^2,
            \[1ex]
            & f''(x)=2!,x^-3, && fracf''(2)2!=2^-3=frac12^3,
            \[1ex]
            & f'''(x)=-3!,x^-4, && fracf'''(2)3!=-frac12^4,
            \
            &qquadvdots && qquadvdots
            \
            & f^(n)(x)=(-1)^nn!,x^-(n+1),qquad && fracf^(n)(2)n!=frac(-1)^n2^n+1.
            endalignat*

            enddocument


            enter image description here






            share|improve this answer

























            • Thank you, this is very nice. And the vertical dot placement according to your suggesting is perfectly fine also. Putting , after ! also makes things less cluttered. I hope your know that your help is very much appreciated.

              – J. Doe
              8 hours ago















            3
















            You have too many &'s. Just three per row suffice.



            On the other hand, aligning at the = signs doesn't seem the best idea, as it creates irregular shapes and the = signs are not really related to one another, so I propose a different solution.



            I also added , after the ! when the factorial is immediately followed by another term.



            documentclassarticle
            usepackagemathtools

            begindocument

            beginalignat*2
            f(x)&=x^-1, qquad & f(2) &= 2^-1=frac12,
            \
            f'(x)&=-x^-2, qquad & f'(2) &=-frac12^2,
            \
            f''(x)&=2!,x^-3, qquad & fracf''(2)2!&=2^-3=frac12^3,
            \
            f'''(x)&=-3!,x^-4, qquad & fracf'''(2)3!&=-frac12^4,
            \
            &vdotswithin= qquad & & vdotswithin=
            \
            f^(n)(x)&=(-1)^nn!,x^-(n+1), qquad & fracf^(n)(2)n!&=frac(-1)^n2^n+1.
            endalignat*

            beginalignat*2
            & f(x)=x^-1, && f(2) = 2^-1=frac12,
            \[1ex]
            & f'(x)=-x^-2, && f'(2) =-frac12^2,
            \[1ex]
            & f''(x)=2!,x^-3, && fracf''(2)2!=2^-3=frac12^3,
            \[1ex]
            & f'''(x)=-3!,x^-4, && fracf'''(2)3!=-frac12^4,
            \
            &qquadvdots && qquadvdots
            \
            & f^(n)(x)=(-1)^nn!,x^-(n+1),qquad && fracf^(n)(2)n!=frac(-1)^n2^n+1.
            endalignat*

            enddocument


            enter image description here






            share|improve this answer

























            • Thank you, this is very nice. And the vertical dot placement according to your suggesting is perfectly fine also. Putting , after ! also makes things less cluttered. I hope your know that your help is very much appreciated.

              – J. Doe
              8 hours ago













            3














            3










            3









            You have too many &'s. Just three per row suffice.



            On the other hand, aligning at the = signs doesn't seem the best idea, as it creates irregular shapes and the = signs are not really related to one another, so I propose a different solution.



            I also added , after the ! when the factorial is immediately followed by another term.



            documentclassarticle
            usepackagemathtools

            begindocument

            beginalignat*2
            f(x)&=x^-1, qquad & f(2) &= 2^-1=frac12,
            \
            f'(x)&=-x^-2, qquad & f'(2) &=-frac12^2,
            \
            f''(x)&=2!,x^-3, qquad & fracf''(2)2!&=2^-3=frac12^3,
            \
            f'''(x)&=-3!,x^-4, qquad & fracf'''(2)3!&=-frac12^4,
            \
            &vdotswithin= qquad & & vdotswithin=
            \
            f^(n)(x)&=(-1)^nn!,x^-(n+1), qquad & fracf^(n)(2)n!&=frac(-1)^n2^n+1.
            endalignat*

            beginalignat*2
            & f(x)=x^-1, && f(2) = 2^-1=frac12,
            \[1ex]
            & f'(x)=-x^-2, && f'(2) =-frac12^2,
            \[1ex]
            & f''(x)=2!,x^-3, && fracf''(2)2!=2^-3=frac12^3,
            \[1ex]
            & f'''(x)=-3!,x^-4, && fracf'''(2)3!=-frac12^4,
            \
            &qquadvdots && qquadvdots
            \
            & f^(n)(x)=(-1)^nn!,x^-(n+1),qquad && fracf^(n)(2)n!=frac(-1)^n2^n+1.
            endalignat*

            enddocument


            enter image description here






            share|improve this answer













            You have too many &'s. Just three per row suffice.



            On the other hand, aligning at the = signs doesn't seem the best idea, as it creates irregular shapes and the = signs are not really related to one another, so I propose a different solution.



            I also added , after the ! when the factorial is immediately followed by another term.



            documentclassarticle
            usepackagemathtools

            begindocument

            beginalignat*2
            f(x)&=x^-1, qquad & f(2) &= 2^-1=frac12,
            \
            f'(x)&=-x^-2, qquad & f'(2) &=-frac12^2,
            \
            f''(x)&=2!,x^-3, qquad & fracf''(2)2!&=2^-3=frac12^3,
            \
            f'''(x)&=-3!,x^-4, qquad & fracf'''(2)3!&=-frac12^4,
            \
            &vdotswithin= qquad & & vdotswithin=
            \
            f^(n)(x)&=(-1)^nn!,x^-(n+1), qquad & fracf^(n)(2)n!&=frac(-1)^n2^n+1.
            endalignat*

            beginalignat*2
            & f(x)=x^-1, && f(2) = 2^-1=frac12,
            \[1ex]
            & f'(x)=-x^-2, && f'(2) =-frac12^2,
            \[1ex]
            & f''(x)=2!,x^-3, && fracf''(2)2!=2^-3=frac12^3,
            \[1ex]
            & f'''(x)=-3!,x^-4, && fracf'''(2)3!=-frac12^4,
            \
            &qquadvdots && qquadvdots
            \
            & f^(n)(x)=(-1)^nn!,x^-(n+1),qquad && fracf^(n)(2)n!=frac(-1)^n2^n+1.
            endalignat*

            enddocument


            enter image description here







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered 8 hours ago









            egregegreg

            769k91 gold badges2011 silver badges3367 bronze badges




            769k91 gold badges2011 silver badges3367 bronze badges















            • Thank you, this is very nice. And the vertical dot placement according to your suggesting is perfectly fine also. Putting , after ! also makes things less cluttered. I hope your know that your help is very much appreciated.

              – J. Doe
              8 hours ago

















            • Thank you, this is very nice. And the vertical dot placement according to your suggesting is perfectly fine also. Putting , after ! also makes things less cluttered. I hope your know that your help is very much appreciated.

              – J. Doe
              8 hours ago
















            Thank you, this is very nice. And the vertical dot placement according to your suggesting is perfectly fine also. Putting , after ! also makes things less cluttered. I hope your know that your help is very much appreciated.

            – J. Doe
            8 hours ago





            Thank you, this is very nice. And the vertical dot placement according to your suggesting is perfectly fine also. Putting , after ! also makes things less cluttered. I hope your know that your help is very much appreciated.

            – J. Doe
            8 hours ago


















            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.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f508822%2faligning-two-sets-of-equations-with-alignat%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

            Canceling a color specificationRandomly assigning color to Graphics3D objects?Default color for Filling in Mathematica 9Coloring specific elements of sets with a prime modified order in an array plotHow to pick a color differing significantly from the colors already in a given color list?Detection of the text colorColor numbers based on their valueCan color schemes for use with ColorData include opacity specification?My dynamic color schemes

            Invision Community Contents History See also References External links Navigation menuProprietaryinvisioncommunity.comIPS Community ForumsIPS Community Forumsthis blog entry"License Changes, IP.Board 3.4, and the Future""Interview -- Matt Mecham of Ibforums""CEO Invision Power Board, Matt Mecham Is a Liar, Thief!"IPB License Explanation 1.3, 1.3.1, 2.0, and 2.1ArchivedSecurity Fixes, Updates And Enhancements For IPB 1.3.1Archived"New Demo Accounts - Invision Power Services"the original"New Default Skin"the original"Invision Power Board 3.0.0 and Applications Released"the original"Archived copy"the original"Perpetual licenses being done away with""Release Notes - Invision Power Services""Introducing: IPS Community Suite 4!"Invision Community Release Notes

            François Viète Contents Biography Work and thought Bibliography See also Notes Further reading External links Navigation menup. 21Google Bookspp. 75–77Google BooksDe thou (from University of Saint Andrews)ArchivedGoogle BooksGoogle BooksGoogle BooksGoogle booksGoogle Bookscc-parthenay.frL'histoire universelle (fr)Universal History (en)ArchivedAdsabs.harvard.eduPagesperso-orange.frArchive.orgChikara Sasaki. Descartes' mathematical thought p.259Google BooksGoogle BooksGoogle Bookspp. 152 and onwardGoogle BooksGoogle BooksScribd.comGoogle Books1257-7979Google BooksGoogle BooksGoogle BooksGoogle BooksGoogle BooksGoogle BooksGallica.bnf.frGoogle BooksGoogle Books"François Viète"Francois Viète: Father of Modern Algebraic NotationThe Lawyer and the GamblerAbout TarporleySite de Jean-Paul GuichardL'algèbre nouvelle"About the Harmonicon"cb120511976(data)1188044800000 0001 0913 5903n82164680ola2013766880073431702w6vt1sb70287374827140948071409480