Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7786911
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T20:30:30+00:00 2026-06-01T20:30:30+00:00

I have the equation A * x = b sizes of A is matrix

  • 0

I have the equation A * x = b

sizes of A is matrix sized n x m, x is m x 1 and b is n x 1.
A has more rows than columns (n < m).

My unknown is A and since n != m, A does not have an inverse.
My knowns are the two vectors x and b. Basically, I want to find the A that makes (A * x – b) close to zero.

Least squares seems appropriate, but I am not sure on how to proceed since it doesn’t seem to follow my text book nor the wikipedia entry; usually the matrix A is known. If OLS isn’t appropriate, what would be? Singluar Value Decomposition? Again, pointers please, my linear-algebra is rusty.

Would like to be able to implement this (python/C). Pointers to good readable code?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T20:30:32+00:00Added an answer on June 1, 2026 at 8:30 pm

    There are infinitely many solutions to this, and nothing as sophisticated as a singular value decomposition will be necessary.

    If n = m, then A could be simply a diagonal matrix, but you have n > m. So we cannot be so simple.

    We can view this as the problem of finding n independent vectors (the rows of A) such that when you form their dot product with x, they yield the corresponding element of b. Thus A*x=b (the solution will be exact) is equivalent to finding rows of A such that if A_i is the i’th row of A, then dot(A_i,x) = b(i).

    Viewed in this way, the solution is obvious! As obviously, it shows why there is no “solution”, but infinitely many such solutions, all of which are pretty trivial.

    So for example, pick ANY element of x that is non-zero. Say it is the kth element. Then create A_i as the vector that is ALL zero, except for the corresponding chosen non-zero element of x.

    A_i(k) = b(i)/x(k)
    

    All other elements of A_i are zero. So now, form the dot product. See that A*x = b is solved exactly, by a matrix X which has only one non-zero column, and that column a rather trivial one.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the equation of a 2D line in the General Form a x
I would like to have an equation to calculate, per zoom level on the
I have the following simple equation in my C# program to convert a number
I have a class that solves an equation using an approximation, evaluates the approximation
I have a form that is basically a calculator. you can type an equation
I have a complex js function with an equation in which I actually need
Hey, so basically I have this issue, where I'm trying to put an equation
I have an equation that is only a tiny bit too wide for one
Hey, Does anyone knows a good way to have MathJax automatically wrap equations if
i have an equation that requires a number to be multiplied by itself for

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.