Linear equations-help solving for 2 unkown variables

  • Thread starter Thread starter Strafespar
  • Start date Start date
  • Tags Tags
    Linear Variables
AI Thread Summary
To solve the equations x + y = 12 and xy = 35, substitution is recommended. Rearranging the first equation gives y = 12 - x, which can be substituted into the second equation to form a quadratic equation. The quadratic formula can then be applied to find the values of y, leading to the determination of x. The discussion highlights that this method is straightforward and not complex, contrary to initial beliefs. Utilizing the quadratic formula is essential in solving such linear equations effectively.
Strafespar
Messages
47
Reaction score
0

Homework Statement


It seemed simple at first but, how would you solve x+y=12 also given xy=35. I can only seem to solve it by trial and error. Any solutions, I think I may be missing something that's all.

Homework Equations





The Attempt at a Solution

 
Physics news on Phys.org
Have you tried solving it by substitution?
 
What Redsummers means by substitution is to solve one of the equations for one of the variables, then substitute the result into the other equation. You then end up with an equation of a single variable that you can solve. Once you know the value of one variable, you can determine the value of the other variable from either equation.
 
Yeah but if i solve for one variable:x+y=12
xy=35 =y-y,x-x? since I am subtracting by the same number, as opposed to a simple problem like 2x+6y=54
2x+3y=45 I can use simple substitution to figure out 3y=9, and then substitute the answer into one of the equations. I'm sorry I am posting this on a physics forum, it was just the only question I had in mind.
 
You know x+y=12, so you can rearrange that so you define y in terms of x (leaving only y on the left).

You then substitute your new y into xy=35.

Hope that helps.
 
hmm, I don't know how to solve this. Anyone who can, with a formula, solve this please try. Though, I don't think its possible, since x and y are interchangeable in this problem, good luck though. using y=35/x and y=12-x only gets you to--35=12y-y^2, which turns out to be: 35=xy
 
Strafespar said:
hmm, I don't know how to solve this. Anyone who can, with a formula, solve this please try. Though, I don't think its possible, since x and y are interchangeable in this problem, good luck though. using y=35/x and y=12-x only gets you to--35=12y-y^2, which turns out to be: 35=xy

You have two equations:

x+y = 12
xy = 35

Now, to do a substitution you will need e.g. to set the x in terms of y, i.e.:

x = 12 - y

Now, putting this equation into the other:

(12 - y)y = -y^2 +12y = 35

Solving for y:

y = \frac{-b\pm\sqrt{b^2-4ac}}{2a}

where a=-1, b=12, and c=-35

And that's definitely not leading you to an imaginary number solution, so it's perfectly doable in \Re. It's not that complex, you could even came up with the two numbers mentally.
 
Lol, I just thought about the quadratic formula soon after this. I can't believe I had forgotten it. I was thinking it was complex, whoops. Thanks Redsummers.
 
Strafespar said:
Lol, I just thought about the quadratic formula soon after this. I can't believe I had forgotten it. I was thinking it was complex, whoops. Thanks Redsummers.

Yeah, you got to use that formula, is like one of the commandments in linear equation religion. You're welcome ^^
 
Back
Top