I dont quite understand the mathematica language. linear equations

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
5 replies · 3K views
offtheleft
Messages
130
Reaction score
1
how would i get it to solve linear equations and linear systems, especially in the form;
[tex]y=ax+b[/tex]

my professor and i found out that it likes brackets "[tex][ . . . ][/tex]" and double equal signs "[tex]==[/tex]"

i know its probably painfully obvious but any input would be tremendous!
 
Physics news on Phys.org
that would be under the algebraic manipulation palette?

so i would just type out [tex]y=\frac{5}{4}x-2[/tex] and press linear solve or do i have to type out;

[tex]y=\frac{5}{4}x-2[/tex] and give a set like [tex]{x, 3, 4}[/tex] or something?
 
If your equation is that simple then you can use:

Solve[y == 5/4 x - 2, x]

LinearSolve is for solving large systems of linear equations in matrix form.
 
i put that in and i get this.

{x -> (4 (2 + y))/5}

its quite confusing.
 
i put in "Solve[2x-y==0]" and i got:[tex] <br /> {{y \rightarrow 8}}[/tex]