document.write( "Question 55054: Hi, I have the following question and I don't know what to do.
\n" ); document.write( "It is the demand for goods is p^2 + q^2 = 169 where p is price and q is quantity. The supply equation is p = q + 7.
\n" ); document.write( "What are the equilibrium price and quantity?\r
\n" ); document.write( "\n" ); document.write( "I'm unsure but i'm assuming that equilibrium is where supply equals demand
\n" ); document.write( "but the demand equation has roots, so would it be p+q= square root of 169
\n" ); document.write( "then that equals p-q-7.
\n" ); document.write( "But i still from that cannot get a price for p and a price for q.
\n" ); document.write( "I'm extremely stuck and any help would be greatly appreciated.
\n" ); document.write( "

Algebra.Com's Answer #37400 by Hook(36)\"\" \"About 
You can put this solution on YOUR website!
You have one equation that defines demand
\n" ); document.write( "\"p%5E2+%2B+q%5E2+=+169\"\r
\n" ); document.write( "\n" ); document.write( "and one that defines supply
\n" ); document.write( "\"p+=+q%2B7\"\r
\n" ); document.write( "\n" ); document.write( "You are right that equilibrium happens when supply equals demand.
\n" ); document.write( "However, what you want to do is substitute the second equation into the first one.\r
\n" ); document.write( "\n" ); document.write( "If we do that, we get
\n" ); document.write( "\"%28q%2B7%29%5E2+%2B+q%5E2+=+169\"
\n" ); document.write( "I'll FOIL that first term
\n" ); document.write( "\"q%5E2%2B14q%2B49%2Bq%5E2+=+169\"
\n" ); document.write( "Combine like terms
\n" ); document.write( "\"2q%5E2+%2B+14q+%2B+49+=+169\"
\n" ); document.write( "Moving the 169 to the left
\n" ); document.write( "\"2q%5E2+%2B14q+-120+=+0\"
\n" ); document.write( "Divide both sides by 2
\n" ); document.write( "\"q%5E2+%2B+7q+-+60+=+0\"
\n" ); document.write( "I can solve this quadratic equation by any number of ways. I'll use factoring
\n" ); document.write( "Factoring it out, I get
\n" ); document.write( "\"%28q%2B12%29%28q-5%29=0\"
\n" ); document.write( "Solving, I get
\n" ); document.write( "\"q++=+-12\"
\n" ); document.write( "and
\n" ); document.write( "\"q+=+5\"\r
\n" ); document.write( "\n" ); document.write( "We can toss -12 out because a negative quantity is nonsense for this problem. \r
\n" ); document.write( "\n" ); document.write( "I can then put \"q+=+5\" into our supply equation\r
\n" ); document.write( "\n" ); document.write( "\"p+=+q+%2B+7+\"
\n" ); document.write( "\"p+=+5%2B7\"
\n" ); document.write( "\"p+=+12\"\r
\n" ); document.write( "\n" ); document.write( "Ok, equilibrium price is 7 at a quantity of 5.
\n" ); document.write( "
\n" );