# Wolfram Alpha: How to define constants in a system of equations?

I'd like to use WA to solve a small system of nonlinear equations, that involve both constants and the variables of interest. How do I "tell" WA which variables are the constants, and which are the ones I want it to solve for?

Solve [equations separated by commas] for [variables separated by commas]

In Wolfram Mathematica it's Solve[{eq1,eq2,...},{x1,x2,...}] so it should work in WA too.

• It deserved to be an accepted one here. +1 Commented Feb 1, 2013 at 14:44
• This isn't working for a larger system I'm attempting to solve: solve i(p-s)+j(p-n)=0, k(n)+l(n-o)=0, l(o-A(p-n))+mo=0 for p, n, A
– sudo
Commented Oct 9, 2015 at 17:33
• @sudo that's probably because k(n) seems like a function. You probably meant kn. And also mo instead of mo. Commented May 9, 2016 at 12:23

The following works for me

solve  a+b+x -y = 5 , b-x-y = 10 for x and y


or

solve  a+b+x-y = 5 , b-x-y +z= 10, x+z=0 for x ,y, z


See the results here or here.

• This is a question; sorry. How can i solve Diophantine equations over the integers with Wolfram alpha? For instance:solve 3x^2-y^2=2,8x^2-z^2=7 for x , y ,z over the integers. Commented Jan 21, 2013 at 15:08
• extracted from the Wolfram Alpha this should work solve 3x+4y=5 , y+z=2 over the integers see wolframalpha.com/input/… Commented Jan 21, 2013 at 15:44