Chapter 5 Mathematica Commands

1. Binomial Expand

Expand["Enter Expression here"]

Expand[(x+10)(x-9)]

2. Factorise Expressions

Factor["Enter Expression here"]

Factor[5*(a+b)+v*(a+b)]

Factor[1/4-3d+9d^2]

Factor[45t^2-20]

3. Solve Quadratic Equations

Solve["Enter Equation here with ==","the thing you are looking for"]

Solve[(3x-17)(2x-d)==0,x]

4. Graph Quadratic Equations

Plot["Enter Equation here",,{x,"Minimum value for x","Maximum value for x"}]

Plot[y=x^2,{x,-3,3}]

TableForm[Table[{"Enter Equation here"},{x,"Minimum value for x","Maximum value for x"}]]

TableForm[Table[{y=x^2},{x,-3,3}]]//N

5. Highest Common Factor( HCF), Lowest Common Multiple(LCM)

LCM["Enter all numbers with a comma in between"]

GCD["Enter all numbers with a comma in between"]

LCM[2,3,5]

GCD[2, 3, 5]

6. Solve Quadratic Equations by using discriminant

discriminant[a_,b_,c_]:=(b^2)-4*a*c
lm=discriminant["a","b","c"]//N
Print["Discriminant = ",Normal[lm]]
solution1[a_,b_,c_]:=((-b+(Sqrt[(b^2)-4*a*c]))/(2*a))
lm=solution1["a","b","c"]//N
Print["Solution1 = ",Normal[lm]]
solution2[a_,b_,c_]:=((-b-(Sqrt[(b^2)-4*a*c]))/(2*a))
lm=solution2["a","b","c"]//N
Print["Solution2 = ",Normal[lm]]

discriminant[a_,b_,c_]:=(b^2)-4*a*c
lm=discriminant[1,7,-3]//N
Print["Discriminant = ",Normal[lm]]
solution1[a_,b_,c_]:=((-b+(Sqrt[(b^2)-4*a*c]))/(2*a))
lm=solution1[1,7,-3]//N
Print["Solution1 = ",Normal[lm]]
solution2[a_,b_,c_]:=((-b-(Sqrt[(b^2)-4*a*c]))/(2*a))
lm=solution2[1,7,-3]//N
Print["Solution2 = ",Normal[lm]]