+ Reply to Thread
Page 1 of 4 123 ... LastLast
Results 1 to 10 of 31

Thread: Quadratic Expressions

  1. #1
    Join Date
    Sep 2008
    Location
    Australia
    Posts
    4,834
    Blog Entries
    10
    Rep Power
    51

    Quadratic Expressions

    Quadratic Equations
    G’day everyone. Welcome to my tutorial, this one I will be showing you how to find the value of “x” if you get a quadratic expression that is equal to zero. Also I will be showing you how to solve a quadratic expression, well part of the way hehe.
    NOTE: This is not a programming tutorial! If you want you could interpret this to a script but if not this does not involve ANY programming!

    Let’s get started;
    First of all. The general form for a quadratic equation (also called a 2nd order polynomial) is:
    Y = ax^2 +bx +c

    Quadratic equations can be solved by factorising or by using the formula:


    This will yield the two factors of the quadratic.

    This might seem difficult but it isn’t as difficult as what you think. Take a look at this example.
    Y = x^2 +2x +1
    (x+1)(x+1)
    x^2 +x +x +1
    x^2 +2x + 1
    That is the easy part. All we have done is turned the quadratic into a perfect square. Now this can be taken out by doing the following.
    x * x
    x * 1
    1 * x
    1 * 1
    See the pattern? Now we can check this and turn it back into its original form. If it shows the same it is correct.

    Now let’s apply the formula:


    Remember the syntax of the quadratic? That is where we get a, b and c.
    So let’s convert the formula using our quadratic.
    (-2 +- sqrt(2^2 –(4*1*1)) / 2 x 1
    Now we have replaced the a, b and c with our numbers. We can now work out the parts that we can. So let’s do that;
    (-2 +- sqrt(4 –4)) / 2
    Yet again, let’s go and work out what we can now.
    (-2 +- sqrt(0)) / 2
    -2 +- 0 / 2
    I know most of use will be asking, what can we do now? The symbol (+-) indicates both sums need to be completed. So let’s do that now:
    -2 + 0 /2

    OR

    -2 – 0 / 2
    If you work out the two:
    -2 / 2

    OR

    -2 / 2
    That means that the answer to the quadratic:
    x^2 +2x +1
    Is -1 OR -1.


    Here is a few more for you to work out, only if you want:
    Y = x^2 +2x -3
    Y = 2x^2 + 3x -4
    Y = 6x^2 -5x +6


    Now let’s move onto Part II. This one we will work out if the quadratic equal to 0.
    “When the product of 2 expressions is equal to zero, then there are 2 possibilities for solving the equation. Either of the expression could equal zero.
    For example:
    (x + 4)(x – 5) = 0
    Which then means that x = -4 or 5.

    Let’s move onto a harder one.
    (2x – 3)(2x + 15) = 0
    Either (2x -3) = 0 or (2x + 15) = 0
    You could write that down in an exam but it wouldn’t be sufficient so let’s go ahead a step and write this:
    2x = 3
    X = 3/2
    X = 1.5

    OR

    2x = -15
    X = -15 / 2
    X = 7.5
    Understand? I like to think that you just need to work out the parts of the equation that are equal to 0 and whenever there is a negative x is equal to a positive and vice versa. It happens only at a certain step though so be careful!


    Not really a very detailed tutorial but I spent about an hour writing this tutorial so I hope use like it. I learnt it in Maths today so I thought I would write a tutorial. Correct me if I am wrong Winged hehe.

    Not very useful but interesting to know. I wrote this because I LOVE maths 10x as much as Winged!

    +rep if you found this helpful
    jQuery Selectors Tutorial - jQuery Striped Table tutorial - jQuery Events - jQuery Validation
    Sorry if I don't post as often as I did, I'll try to get here as much as possible! I'm working my bum off to get this scholarship and other stuff!

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Location
    Advertising world
    Posts
    Many

     
  3. #2
    Join Date
    Jul 2006
    Posts
    16,491
    Blog Entries
    75
    Rep Power
    143

    Re: Quadratic Expressions

    Something important to do is check the value of b^2-4ac. If it is negative, you will have 2 complex roots (which require special care in a programming language). If it is 0, you get a double root (-1 OR -1 above). If it is positive, you will have two roots.
    Programming is a branch of mathematics.
    My CodeCall Blog | My Personal Blog

  4. #3
    Join Date
    Mar 2008
    Location
    The North Pole
    Posts
    13,174
    Blog Entries
    13
    Rep Power
    114

    Re: Quadratic Expressions

    Yum, quadratics... this formula always amazes me in how it always trumps up the two values for X.

    Quote Originally Posted by Jordan View Post
    Good members, like yourself, stick around and post for ages to come!
    Mr. Xav | Blog | Forums

  5. #4
    Join Date
    Jul 2006
    Posts
    16,491
    Blog Entries
    75
    Rep Power
    143

    Re: Quadratic Expressions

    Xav, try performing the procedure for Completing the Squares on Ax^2 + Bx + C
    Programming is a branch of mathematics.
    My CodeCall Blog | My Personal Blog

  6. #5
    Join Date
    Mar 2008
    Location
    The North Pole
    Posts
    13,174
    Blog Entries
    13
    Rep Power
    114

    Re: Quadratic Expressions

    I'm sorry? I don't get what you mean?

    Quote Originally Posted by Jordan View Post
    Good members, like yourself, stick around and post for ages to come!
    Mr. Xav | Blog | Forums

  7. #6
    Join Date
    Jul 2006
    Posts
    16,491
    Blog Entries
    75
    Rep Power
    143

    Re: Quadratic Expressions

    Completing the Squares is a technique for solving quadratic equations. If you do it on the general equation, you get the quadratic formula.
    Programming is a branch of mathematics.
    My CodeCall Blog | My Personal Blog

  8. #7
    Join Date
    Sep 2008
    Location
    Australia
    Posts
    4,834
    Blog Entries
    10
    Rep Power
    51

    Re: Quadratic Expressions

    Yer I know about that Winged. I have noticed it and it is really annoying to try and work with it.
    jQuery Selectors Tutorial - jQuery Striped Table tutorial - jQuery Events - jQuery Validation
    Sorry if I don't post as often as I did, I'll try to get here as much as possible! I'm working my bum off to get this scholarship and other stuff!

  9. #8
    Join Date
    Jul 2006
    Location
    Amherst, New York, United States
    Posts
    6,277
    Blog Entries
    26
    Rep Power
    20

    Re: Quadratic Expressions

    Quote Originally Posted by Xav View Post
    Yum, quadratics... this formula always amazes me in how it always trumps up the two values for X.
    bleh, after using the quadratic formula for for close to ten years now, it's no longer amazing, nor is the cubic formula or quartic formula (as interesting as that one may be). However what is truly amazing, is the fact that there is no quintic equation.

  10. #9
    Join Date
    Sep 2008
    Location
    Australia
    Posts
    4,834
    Blog Entries
    10
    Rep Power
    51

    Re: Quadratic Expressions

    What are cubic and quartic formulas? I never heard of them before.

    My maths teacher showed us how they come up with the quadratic formula, that is fairly big
    jQuery Selectors Tutorial - jQuery Striped Table tutorial - jQuery Events - jQuery Validation
    Sorry if I don't post as often as I did, I'll try to get here as much as possible! I'm working my bum off to get this scholarship and other stuff!

  11. #10
    Join Date
    Jul 2006
    Posts
    16,491
    Blog Entries
    75
    Rep Power
    143

    Re: Quadratic Expressions

    The cubic and quartic formulas are LONG and NASTY, especially the quartic. You can look them up on Google, but they won't provide much insight. I took a class that had proving the quintic is not generally solvable as one of its major conclusions.
    Programming is a branch of mathematics.
    My CodeCall Blog | My Personal Blog

+ Reply to Thread
Page 1 of 4 123 ... LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Intermediate C# Regular Expressions
    By chili5 in forum CSharp Tutorials
    Replies: 0
    Last Post: 08-23-2011, 02:49 PM
  2. Need help with regular expressions
    By Wiizle in forum PHP Development
    Replies: 5
    Last Post: 04-12-2010, 12:17 PM
  3. Finding real roots of a quadratic eq. in c++
    By rioters block in forum C and C++
    Replies: 4
    Last Post: 02-14-2009, 07:49 AM
  4. Regular expressions
    By Nightracer in forum General Programming
    Replies: 6
    Last Post: 07-24-2006, 07:57 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts