\n" );
document.write( "ten yrs. ago, mike was four times as old as liza. Now he is only twice as old as Liza. How old are they now?
\n" );
document.write( "-------------
\n" );
document.write( "Ten years ago, Mike was four times as old as Liza. Now he is only twice as old as Liza. How old are they now?
\n" );
document.write( "-------------\r
\n" );
document.write( "\n" );
document.write( "Let M=Mike's age, and L=Liza's age\r
\n" );
document.write( "\n" );
document.write( "M = 2L (1) (from \"Now he is only twice as old as Liza\")
\n" );
document.write( "M-10 = 4(L-10) (2) (from \"Ten years ago, Mike was four times as old as Liza.\")\r
\n" );
document.write( "\n" );
document.write( "There are several approaches to solve this system of equations. You couild subsititue 2L for M (specified by equation(1)) into (2). You could also subtract the entire equation (2) from equation (1). A third option is to set up a matrix and find its inverse, then use that inverse to solve: for [A][x]=[b] find [
] then [x] = [
][b]\r
\n" );
document.write( "
\n" );
document.write( "
\n" );
document.write( "\n" );
document.write( "Substitution:
\n" );
document.write( "(1) says M=2L so we can write (2) as:
\n" );
document.write( "2L-10 = 4(L-10)
\n" );
document.write( "2L-10 = 4L-40 distributed the 4 into parenthesis
\n" );
document.write( " 30 = 2L subtracted 2L from each side, added 40 to each side
\n" );
document.write( " 15 = L divided each side by 2\r
\n" );
document.write( "\n" );
document.write( "L=15 tells us M=30 (by plugging L=15 into (1))\r
\n" );
document.write( "
\n" );
document.write( "\n" );
document.write( "Subtraction of equations:
\n" );
document.write( "(1) - (2) gives:\r
\n" );
document.write( "\n" );
document.write( "M-(M-10) = 2L-4(L-10)
\n" );
document.write( "M-M+10 = 2L-4L+40
\n" );
document.write( " 10 = -2L+40
\n" );
document.write( " -30 = -2L
\n" );
document.write( " 15 = L (same result as substitution, as expected)\r
\n" );
document.write( "
\n" );
document.write( "
\n" );
document.write( "\n" );
document.write( "The matrix method comes from Linear Algebra:\r
\n" );
document.write( "\n" );
document.write( "(1) can be written 2L - M = 0
\n" );
document.write( "(2) can be written 4L - M = 30\r
\n" );
document.write( "\n" );
document.write( "Taking the coefficients we can form the matrix equation:\r
\n" );
document.write( "\n" );
document.write( "
x
=
\r
\n" );
document.write( "\n" );
document.write( "One would then find the inverse of the 2x2 matrix and that inverse, multiplied by the right hand side
gives the answer.\r
\n" );
document.write( "\n" );
document.write( "The inverse of
is
\r
\n" );
document.write( "
\n" );
document.write( "\n" );
document.write( "
=
x
=
=
---> L=15, M=30\r
\n" );
document.write( "
\n" );
document.write( "\n" );
document.write( "------------
\n" );
document.write( "Check:\r
\n" );
document.write( "\n" );
document.write( "L=15, M=30, obviously now Mike is twice as old as Liza. But let's check their ages 10 years ago:\r
\n" );
document.write( "\n" );
document.write( "Liza was 15-10 = 5
\n" );
document.write( "Mike was 30-10 = 20 (20 is 4*5 so this checks out).\r
\n" );
document.write( "\n" );
document.write( "
\n" );
document.write( "