How Can Any Scalar Lambda Solve B*(x + Lambda*v) = b in Matlab?

In summary, when solving for x in the equation Bx = b using Matlab, the scalar (lamda) can be any value because v is in the null space of B. This means that there is no unique scalar that will result in the same solution as using the backslash operator. However, using the inverse method, x = B\b will still give the same solution.
  • #1
playboy

Homework Statement



In Matlab,

Find the scalar (lamda) for which x+(lamda)v equals the solution obtained with the backslash operator \. Hence, x=B\b in matlab

(This is another way of finding the inverse inv(B)... we could also use x=B\b)


Homework Equations



We have Bx = b

B =
[-1 2 -3
0 4 1
3 -6 9]

b = [-12 -1 36]

Null space v=[-14 -1 4]

x = [-12.0000, -0.2143, -0.1429] <--- from B\b in matlab


The Attempt at a Solution



B*(x + (lamda)v) = b
Bx + (lamda)Bv = b

since v is the null space (lamda)Bv=0

therefore, (lamda) could be anything?

Is that correct?
 
Physics news on Phys.org
  • #2




Thank you for your question. Yes, your reasoning is correct. Since v is in the null space of B, any scalar multiple of v will also be in the null space. Therefore, (lamda) can be any value and still satisfy the equation Bx + (lamda)Bv = b. This means that there is no unique scalar that will result in the same solution as using the backslash operator. However, if you want to use the inverse method, you can still use x = B\b to obtain the same solution. I hope this helps clarify your understanding. Good luck with your studies!
 

FAQ: How Can Any Scalar Lambda Solve B*(x + Lambda*v) = b in Matlab?

What is numerical linear algebra?

Numerical linear algebra is a branch of mathematics that focuses on the study and development of algorithms for solving problems related to systems of linear equations and matrices. It involves the use of numerical methods to approximate solutions to these problems.

What are the applications of numerical linear algebra?

Numerical linear algebra has a wide range of applications in various fields, including engineering, physics, computer science, and economics. It is used for solving problems related to data analysis, optimization, image processing, and simulation, among others.

What are some common numerical methods used in linear algebra?

Some common numerical methods used in linear algebra include Gaussian elimination, LU decomposition, QR decomposition, singular value decomposition, and iterative methods such as Jacobi and Gauss-Seidel.

How does numerical linear algebra differ from theoretical linear algebra?

Numerical linear algebra is focused on finding numerical solutions to problems involving linear systems and matrices, while theoretical linear algebra is concerned with the abstract properties and structures of these mathematical objects. Numerical linear algebra uses approximations and algorithms to solve problems, while theoretical linear algebra relies on proofs and rigorous mathematical reasoning.

What are the challenges in numerical linear algebra?

One of the main challenges in numerical linear algebra is the issue of stability, where small errors in calculations can lead to significant differences in the results. Another challenge is the choice of appropriate numerical methods for different types of problems, as some methods may be more efficient or accurate than others in certain situations.

Back
Top