1. Not finding help here? Sign up for a free 30min tutor trial with Chegg Tutors
    Dismiss Notice
Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Solving System of Equations Using Matrices

  1. Jul 12, 2011 #1
    1. The problem statement, all variables and given/known data
    Is it possible to solve this system of equations using matrices?
    x^2 + y^2 = 42
    x+3y+2y^2=6
    2. Relevant equations



    3. The attempt at a solution
    I solved the system of equations using the following MATLAB code. I'm kind of confused by the results. Are there two x values and two y values? I don't know how to interpret what it says x and y are equal to. Thanks in advance.

    Code (Text):
    >>one=sym('x^2+y^2-42');
    two=sym('x+3*y+2*y^2-6');
    [x,y]=solve(one,two)
     
    x =
     
     -6.2161908711674029137999766546085
      6.4782037201238076694174751205659
      6.3321946913754454971273459117746
      -5.594207540331850252744844377732
     
     
    y =
     
       1.8327495882457713513416277757555
     -0.18131894709064188368251606877471
      -1.3796051574695662000556283784362
      -3.2718254836855632676034833285446
     
  2. jcsd
  3. Jul 12, 2011 #2

    ehild

    User Avatar
    Homework Helper
    Gold Member

    No, matrices are applied to linear systems of equations.

    There are four solutions: (x,y) pairs

    x=-6.216 and y=1.832,
    x=6.478 and y=-0.181 and so on.

    ehild
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook