Results 1 to 4 of 4
Like Tree1Thanks
  • 1 Post By Plato

Thread: How to underline seperate algebraic terms?

  1. #1
    Newbie
    Joined
    Mar 2015
    From
    Kent
    Posts
    4

    How to underline seperate algebraic terms?

    Hello all,

    I'm doing my end of year math assignment, and it's my first time using Latex. My question regards underlining terms in algebraic expressions. In my textbook, they are underlined like this:

    How to underline seperate algebraic terms?-underlined_terms.png

    Is there any way I can do this using Latex? I tried using
    Code:
    \underline{+4a} \underline{+c} \underline{-7 \sqrt{b}} \underline{-5}
    but it doesn't look good, the lines aren't even seperated:
    $$\underline{+4a} \underline{+c} \underline{-7 \sqrt{b}} \underline{-5}$$
    Does anyone know if/how I can make it look like the example from the textbook?

    Many thanks in advance,
    apex
    Follow Math Help Forum on Facebook and Google+

  2. #2
    MHF Contributor

    Joined
    Aug 2006
    Posts
    20,503
    Thanks
    2335
    Awards
    1

    Re: How to underline seperate algebraic terms?

    Quote Originally Posted by apex123 View Post
    I'm doing my end of year math assignment, and it's my first time using Latex. My question regards underlining terms in algebraic expressions. In my textbook, they are underlined like this:
    Is there any way I can do this using Latex? I tried using
    Code:
    \underline{+4a} \underline{+c} \underline{-7 \sqrt{b}} \underline{-5}
    but it doesn't look good, the lines aren't even seperated:
    $$\underline{+4a} \underline{+c} \underline{-7 \sqrt{b}} \underline{-5}$$
    Does anyone know if/how I can make it look like the example from the textbook?
    Will you take: $ \underline{+4a+c-7 \sqrt{b}-5}$

    OR does it need separation: $\underline{+4a}\;$$ \underline{+c}\:$ $\underline{-7 \sqrt{b}}\;$$ \underline{-5}\;$
    Thanks from topsquark
    Follow Math Help Forum on Facebook and Google+

  3. #3
    Newbie
    Joined
    Mar 2015
    From
    Kent
    Posts
    4

    Re: How to underline seperate algebraic terms?

    Quote Originally Posted by Plato View Post
    Will you take: $ \underline{+4a+c-7 \sqrt{b}-5}$

    OR does it need separation: $\underline{+4a}\;$$ \underline{+c}\:$ $\underline{-7 \sqrt{b}}\;$$ \underline{-5}\;$
    Hi Plato, thanks for the reply. The second example would be perfect, although I'm a little confused by the syntax so I cannot modify it to suit my needs. Basically, in my assignment I am explaining how to solve a quadratic equation. Here is the part where I need to use underline:

    Code:
    Now we group the four terms into pairs and take out common factors:
    
    \begin{align*}
    3x^2 + 2x -8 &= \underline{3x^2 + 6x} \underline{- 4x -8}\\
    	     &= 3x(x+2) - 4(x + 2)\\
    	     &= (3x - 4)(x + 2)
    \end{align*}
    So on the first line in the {align*} blocks, the term pairs "3x^2 + 6x" and "-4x - 8" would be seperately underlined. I modified your second example and made it display what I wanted outside of the {align*} block, but when I try putting it into the block it fails to compile. Any ideas?

    Edit: Never mind, I just worked it out

    Code:
    Now we group the four terms into pairs and take out common factors:
    
    \begin{align*}
    3x^2 + 2x -8 &= \underline{3x^2 + 6x} \text{ } \text{ } \underline{- 4x -8}\\
    	     &= 3x(x+2) - 4(x + 2)\\
    	     &= (3x - 4)(x + 2)
    \end{align*}
    Looks just how I wanted, thanks for your help!
    Attached Thumbnails Attached Thumbnails How to underline seperate algebraic terms?-sorted.png  
    Last edited by apex123; May 25th 2015 at 10:21 AM.
    Follow Math Help Forum on Facebook and Google+

  4. #4
    MHF Contributor

    Joined
    Aug 2006
    Posts
    20,503
    Thanks
    2335
    Awards
    1

    Re: How to underline seperate algebraic terms?

    Quote Originally Posted by Plato View Post
    $\underline{+4a}\;$$ \underline{+c}\:$ $\underline{-7 \sqrt{b}}\;$$ \underline{-5}\;$
    The code is [TEX]\underline{+4a}\; \underline{+c}\;\underline{-7 \sqrt{b}}\; \underline{-5}\;[/TEX]

    \underline{+4a}\; \underline{+c}\;\underline{-7 \sqrt{b}}\; \underline{-5}\;
    Last edited by Plato; May 25th 2015 at 10:27 AM.
    Follow Math Help Forum on Facebook and Google+

Similar Math Help Forum Discussions

  1. Replies: 1
    Last Post: Mar 24th 2015, 09:03 AM
  2. Replies: 3
    Last Post: Apr 12th 2013, 04:44 PM
  3. Matlab - Running fmincon with ODE45 in seperate M-file
    Posted in the Math Software Forum
    Replies: 6
    Last Post: Aug 10th 2011, 03:00 PM
  4. Putting in Algebraic terms?
    Posted in the Algebra Forum
    Replies: 1
    Last Post: Feb 1st 2008, 04:12 AM

Search Tags


/mathhelpforum @mathhelpforum