'are there ways to solve the system of equations in R with the progress of calculations

Suppose i have system of equations. Lets consider simple example

x1+2x2=3
4x1+5x2=6

I screened my steps of solving enter image description here

I can solve this equations during 5 minutes. Here result which solved manually

Then From the 1st equation, we express x1 in terms of the remaining variables

enter image description here

tnen Substitute x1 into equation 2

enter image description here

after simplification we get

enter image description here

then Divide the 2nd equation by -3

enter image description here

and my solve Now, moving from the last equation to the first, you can find the values of the remaining variables

enter image description here

As you can see, with such simple steps, I solved this equation. So the question is, is there a way to enter these equations and also get the steps of solving this equation? If there is no such way, then at least just get a solution.

r


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source