help to resolve a hard equation

hello all there is a equation like X^2+A*X=C+A where X is a matrix to resolve, A is a known matrix, C is a constant (actually X,A is a grid image)
is there any method can resolve this type equation such as least- squares method or others? can be based on IDL or MATLAB or others?
I am not well up in maths, please as particular as possible, thank you.
Add pictures here
<% if( /^image/.test(type) ){ %>
<% } %>
Add image file
Upload is a website for homeowners and building and maintenance pros. It is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.