Urgent math help (Equation related)

Talk about just about anything else that is non-gaming here, but keep it clean
User avatar
KillerJuan77
Next-Gen
Posts: 1432
Joined: Mon Jun 06, 2011 5:01 am

Urgent math help (Equation related)

Post by KillerJuan77 »

Ok, so I need to solve this 3 equations with the sustitution method:

5x + 8y = 136
3x + 10y = 118

x + y = 40
2x + 4y = 132

a + n = 224
35a + 15n = 4480

And the big problem is that I don't remember how to solve them, can someone help me?
Image
Ivo
Next-Gen
Posts: 3627
Joined: Tue Mar 28, 2006 11:24 am
Location: Portugal

Re: Urgent math help (Equation related)

Post by Ivo »

KillerJuan77 wrote:Ok, so I need to solve this 3 equations with the sustitution method:

5x + 8y = 136
3x + 10y = 118

x + y = 40
2x + 4y = 132

a + n = 224
35a + 15n = 4480

And the big problem is that I don't remember how to solve them, can someone help me?
It is pretty simple. The point is that you solve one of the equations for one of the variables and then put it back in the other one to make the 2nd one an equation with just one variable. I'll show you explicitly for one of them but you will have to do the rest:

x + y = 40
2x + 4y = 132

First step can be
x=40-y

Second step is put that into the other one, where x is:

80 - 2y + 4y =132

which means you know can know what y is:

2y = 132 -80 => y=26

The final step is going back to the first step now that you know y, you know x
x=40-26 => x=14.

Ivo.
User avatar
flojocabron
Next-Gen
Posts: 4155
Joined: Thu Aug 19, 2010 2:15 am
Location: on the border

Re: Urgent math help (Equation related)

Post by flojocabron »

too much math makes my head hurt! :?
2600 and jr,5200,nes/top loader, master system, intellivision, TG-16, genesis 1,2,3, SNES, snesJR, CDX, 3DOfz10, gamegear, gameboy and pocket, GBC, sega saturn, PSOne w/screen, Virtual Boy, N64, NGPC, Gameboy Advance sp, Dreamcast, Black Dreamcast, oXBOX, Playstation 2, PStwo, Gamecube, gameboy player, DS lite,DSi XL, PSP1000/3000,Wii,PS3 120gb,3DSXL, xbox 360, PSvita, PS4
Ivo
Next-Gen
Posts: 3627
Joined: Tue Mar 28, 2006 11:24 am
Location: Portugal

Re: Urgent math help (Equation related)

Post by Ivo »

flojocabron wrote:too much math makes my head hurt! :?
Dude, this is pretty basic math... And helpful in real life as well.

Ivo.
User avatar
KillerJuan77
Next-Gen
Posts: 1432
Joined: Mon Jun 06, 2011 5:01 am

Re: Urgent math help (Equation related)

Post by KillerJuan77 »

Ivo wrote:It is pretty simple. The point is that you solve one of the equations for one of the variables and then put it back in the other one to make the 2nd one an equation with just one variable. I'll show you explicitly for one of them but you will have to do the rest:

x + y = 40
2x + 4y = 132

First step can be
x=40-y

Second step is put that into the other one, where x is:

80 - 2y + 4y =132

which means you know can know what y is:

2y = 132 -80 => y=26

The final step is going back to the first step now that you know y, you know x
x=40-26 => x=14.

Ivo.
Sorry to ask but where did the 80 come from? :lol:
Image
User avatar
YoshiEgg25
Next-Gen
Posts: 4337
Joined: Tue Aug 24, 2010 10:26 pm
Location: Madison, WI
Contact:

Re: Urgent math help (Equation related)

Post by YoshiEgg25 »

KillerJuan77 wrote:
Ivo wrote:It is pretty simple. The point is that you solve one of the equations for one of the variables and then put it back in the other one to make the 2nd one an equation with just one variable. I'll show you explicitly for one of them but you will have to do the rest:

x + y = 40
2x + 4y = 132

First step can be
x=40-y

Second step is put that into the other one, where x is:

80 - 2y + 4y =132

which means you know can know what y is:

2y = 132 -80 => y=26

The final step is going back to the first step now that you know y, you know x
x=40-26 => x=14.

Ivo.
Sorry to ask but where did the 80 come from? :lol:
If x = 40 - y
then 2x = 2 (40-y)
which means x = 80 - 2y
Gaming accomplishments:
Nibbler (marathon): 251,169,160 / Nibbler (one life): 5,263,360 (WR)
Donkey Kong: 423,100 [L12-1] (150th place as of 2019-01-15)
Super Smash Bros. (N64): Ranked top 5 in Wisconsin from Q1 2016 to Q2 2017
Shrek SuperSlam: won largest tournament in game's history (Shrekfest 2018)

Speedrun.com Profile (contains multiple WRs)
Hatta
Next-Gen
Posts: 4030
Joined: Tue May 06, 2008 8:33 pm

Re: Urgent math help (Equation related)

Post by Hatta »

Substitution is an incredibly powerful technique. Most of math is just rearranging statements and plugging them into each other.
We are prepared to live in the plain and die in the plain!
gtmtnbiker
Next-Gen
Posts: 4320
Joined: Fri Jan 09, 2009 1:14 pm
Location: Massachusetts

Re: Urgent math help (Equation related)

Post by gtmtnbiker »

Maybe this might make it a little clearer.

x + y = 40
2x + 4y = 132

The idea is that you need to solve for one variable. Whatever you do needs to be applied to one side.

So with:
x + y = 40

we want x or y to be alone. So we'll subtract y from both sides.

x + y - y = 40 - y
x + (y - y = 0) = 40 - y
x = 40 - y

Now we know that x is equal to 40 - y.

The second equation is:
2x + 4y = 132

We know x = 40 -y. So wherever you see x in the second equation, you substitute 40 -y.

So
2x + 4y = 132
is
2 (40 - y) + 4y = 132
is
2 x 40 - 2 x y + 4y = 132
80 - 2y + 4y = 132
80 + 2y = 132

now we can subtract 80 from both sides
80 - 80 + 2y = 132 - 80
0 + 2y = 52
2y = 52
now we want to divide both sides by 2 to find the value of y
2y/2 = 52/2
y = 26

Now we know y is 26. We can plug it into either equation to find out x.

x + y = 40
x + 26 = 40
subtract 26 from both sides
x + 26 - 26 = 40 - 26
x + 0 = 14
x = 14
User avatar
Bradtemple87
Next-Gen
Posts: 4829
Joined: Sun Sep 05, 2010 8:18 pm
Location: Bay Area

Re: Urgent math help (Equation related)

Post by Bradtemple87 »

Hmm, well let me know when you need help with your English essay because when it comes to math I am long gone. :lol:
User avatar
MrPopo
Moderator
Posts: 24194
Joined: Tue Aug 26, 2008 1:01 pm
Location: Orange County, CA

Re: Urgent math help (Equation related)

Post by MrPopo »

Another way to view it is that you're just using Gaussian elimination.

5x + 8y = 136 (L1)
3x + 10y = 118 (L2)

The goal is to eliminate x from the bottom equation, then y from the top equation (this generalizes for a system of n equations with n unknowns to only have the 1st term in the 1st equation, only the 2nd term in the 2nd equation, etc).

So you add -3/5 * L1 to L2. This will eliminate the x term, and it looks like this:

(-3x - 12/5y = -408/5) = L1, this is added to L2, so L2 becomes (38/5y = 182/5)

Now you eliminate the y term from L1. You multiply the new L2 by -40/38 so that it will eliminate y from the first term. So you get:

(-8y = -728/19) = L2, which is added to the original L1, so L1 becomes (5x = 1856/19).

So now your final system looks like:

5x + 0y = 1856/19
0x + 38/5y = 182/5

Solve for x and y.
Blizzard Entertainment Software Developer - All comments and views are my own and not representative of the company.
Post Reply