Message Boards Message Boards

0
|
5977 Views
|
6 Replies
|
0 Total Likes
View groups...
Share
Share this post:
GROUPS:

Solve the function 2 x + 4 y - x^2 - y^2 in Mathematica

Posted 4 years ago
POSTED BY: Mitchell Sandlin
6 Replies

Hi Christos;

Knowing what the function is equal to is part of the problem. It is actually equal to 5 but you don't know that until you complete the squares. Once you know the function equals 5, you can plug the function into Solve[] and get the answer.

Thanks,

Mitch Sandlin

POSTED BY: Mitchell Sandlin

Check the three alternatives in the file. There are many solutions if z (the right part side) is positive (or Integer).

Attachments:

You can complete the squares with a replacement rule, like this:

2 x + 4 y - x^2 - y^2 //. a_*u_ - u_^2 :> -(u - a/2)^2 + a^2/4
POSTED BY: Gianluca Gorni
POSTED BY: Murray Eisenberg
POSTED BY: Daniel Lichtblau
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract