- Stack Overflow Public questions & answers
- Stack Overflow for Teams Where developers & technologists share private knowledge with coworkers
- Talent Build your employer brand
- Advertising Reach developers & technologists worldwide
- About the company

Collectives™ on Stack Overflow
Find centralized, trusted content and collaborate around the technologies you use most.
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
How to solve an equation for a given variable in R?
This is equation a <- x * t - 2 * x . I want to solve this equation for t . So basically, set a = 0 and solve for t . I am new to the R packages for solving equations. I need the package that solves for complex roots. The original equations I am work with have real and imaginary roots. I am looking for an algebraic solution only, not numerical.
I run into an error:
- differential-equations
- Please make your example reproducible: minimal reproducible example – jogo Jul 11, 2019 at 12:58
- What do you mean exactly by "solve"? Numerics or algebra? – Roland Jul 11, 2019 at 13:11
- I should clarify I want to solve it with algebra – Biotechgeek Jul 11, 2019 at 13:17
- The solution is t=2 . – Stéphane Laurent Jul 11, 2019 at 13:24
2 Answers 2
You can use Ryacas to get the solution as an expression of x :
As you can see, the solution is t=2 (assuming x is not zero).
Let's try a less trivial example:
If you want to get a function which provides the solution as a function of x , you can do:
You might be looking for optimize:
If you need more help, I need a reproductible example.
- Thank you, this is a helpful equation to know. I needed to find when the equation crosses zero and I was able to just square the equation for the optimize to find the solution – shirleywu May 20, 2021 at 13:25
Your Answer
Sign up or log in, post as a guest.
Required, but never shown
By clicking “Post Your Answer”, you agree to our terms of service , privacy policy and cookie policy
Not the answer you're looking for? Browse other questions tagged r math differential-equations or ask your own question .
- The Overflow Blog
- How Intuit democratizes AI development across teams through reusability sponsored post
- The nature of simulating nature: A Q&A with IBM Quantum researcher Dr. Jamie...
- Featured on Meta
- We've added a "Necessary cookies only" option to the cookie consent popup
- Launching the CI/CD and R Collectives and community editing features for...
- The [amazon] tag is being burninated
- Temporary policy: ChatGPT is banned
- Staging Ground Beta 1 Recap, and Reviewers needed for Beta 2
Hot Network Questions
- What did Ctrl+NumLock do?
- Should I ask why they are interested in me in an interview for a faculty position?
- Should I put my dog down to help the homeless?
- My code is GPL licensed, can I issue a license to have my code be distributed in a specific MIT licensed project?
- Is it suspicious or odd to stand by the gate of a GA airport watching the planes?
- Are the plants animated by an Assassin Vine considered magical?
- How can I measure the power in mW of a radio signal?
- Why is there a voltage on my HDMI and coaxial cables?
- "Is" or "are" for two uncountable words?
- Are there any other options to mitigate the Volley trait?
- What sort of strategies would a medieval military use against a fantasy giant?
- A story about a girl and a mechanical girl with a tattoo travelling on a train
- What is the difference between paper presentation and poster presentation?
- Can I tell police to wait and call a lawyer when served with a search warrant?
- Is the God of a monotheism necessarily omnipotent?
- What is the point of Thrower's Bandolier?
- How or would these mechanical wings work?
- Choice of Basis for solution space of a Hamiltonian
- What laws would Jesus be breaking if he were to turn water into wine today?
- Why does Mister Mxyzptlk need to have a weakness in the comics?
- How do you ensure that a red herring doesn't violate Chekhov's gun?
- Imtiaz Germain Primes
- Why can't I defun "nil" as a function name
- Extracting N elements of the table satisfying the given condition
Your privacy
By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy .
Solving Linear Equations
Michael friendly and john fox.
This vignette illustrates the ideas behind solving systems of linear equations of the form \(\mathbf{A x = b}\) where
- \(\mathbf{A}\) is an \(m \times n\) matrix of coefficients for \(m\) equations in \(n\) unknowns
- \(\mathbf{x}\) is an \(n \times 1\) vector unknowns, \(x_1, x_2, \dots x_n\)
- \(\mathbf{b}\) is an \(m \times 1\) vector of constants, the “right-hand sides” of the equations
The general conditions for solutions are:
- the solution is unique if \(r( \mathbf{A} | \mathbf{b}) = r( \mathbf{A}) = n\)
- the solution is underdetermined if \(r( \mathbf{A} | \mathbf{b}) = r( \mathbf{A}) < n\)
- the equations are inconsistent (no solutions) if \(r( \mathbf{A} | \mathbf{b}) > r( \mathbf{A})\)
We use c( R(A), R(cbind(A,b)) ) to show the ranks, and all.equal( R(A), R(cbind(A,b)) ) to test for consistency.
Equations in two unknowns
Each equation in two unknowns corresponds to a line in 2D space. The equations have a unique solution if all lines intersect in a point.
Two consistent equations
Plot the equations:
Solve() is a convenience function that shows the solution in a more comprehensible form:
Three consistent equations
For three (or more) equations in two unknowns, \(r(\mathbf{A}) \le 2\) , because \(r(\mathbf{A}) \le \min(m,n)\) . The equations will be consistent if \(r(\mathbf{A}) = r(\mathbf{A | b})\) . This means that whatever linear relations exist among the rows of \(\mathbf{A}\) are the same as those among the elements of \(\mathbf{b}\) .
Geometrically, this means that all three lines intersect in a point.
Three inconsistent equations
Three equations in two unknowns are inconsistent when \(r(\mathbf{A}) < r(\mathbf{A | b})\) .
You can see this in the result of reducing \(\mathbf{A} | \mathbf{b}\) to echelon form, where the last row indicates the inconsistency.
Solve() shows this more explicitly:
An approximate solution is sometimes available using a generalized inverse.
Plot the equations. You can see that each pair of equations has a solution, but all three do not have a common, consistent solution.
Equations in three unknowns
Each equation in three unknowns corresponds to a plane in 3D space. The equations have a unique solution if all planes intersect in a point.
Are the equations consistent?
Solve for \(\mathbf{x}\) .
Another way to see the solution is to reduce \(\mathbf{A | b}\) to echelon form. The result is \(\mathbf{I | A^{-1}b}\) , with the solution in the last column.
Plot them. plotEqn3d uses rgl for 3D graphics. If you rotate the figure, you’ll see an orientation where all three planes intersect at the solution point, \(\mathbf{x} = (2, 3, -1)\)
Are the equations consistent? No.

Solve System of Equations in R (3 Examples) | Using solve() Function
In this article, I’ll explain how to solve a system of equations using the solve() function in the R programming language .
Table of contents:
Let’s get started.
Example 1: Basic Application of solve() Function in R
In this Example, I’ll illustrate how to apply the solve function to a single equation in R.
Let’s assume we want to solve the equation: 3x = 12 . Then we can use the following R code:
solve(3, 12) # Applying solve # 4
The RStudio console returns the value 4, i.e. x = 4 .
Example 2: Applying solve Function to Complex System of Equations
The solve command can also be used to solve complex systems of equations . Let’s assume that our system of equations looks as follows:
5x + y = 15 10x + 3y = 9
Then we can specify these equations in a right-hand side matrix …
mat_a1 <- matrix(c(5, 10, # Creating left-hand side matrix 1, 3), nrow = 2) mat_a1 # Print matrix # [,1] [,2] # [1,] 5 1 # [2,] 10 3
…and a left-hand side matrix:
mat_b1 <- matrix(c(15, # Creating right-hand side matrix 9), nrow = 2) mat_b1 # Print matrix # [,1] # [1,] 15 # [2,] 9
Afterwards, we can apply the solve function to these matrices:
solve(mat_a1, mat_b1) # Applying solve to matrices # [,1] # [1,] 7.2 # [2,] -21.0
The previous output of the RStudio console shows our result: x = 7.2; y = -21 .
Example 3: Using Identity Matrix as Right-hand Side of Linear System
The solve function sets the right-hand side matrix to the identity matrix , in case this matrix is not explicitly specified. In other words, the solve function is computing the inverse of a matrix , if no right-hand side matrix is specified.
Let’s do this in practice: First, we have to create another example matrix in R:
set.seed(96743) # Creating complex matrix mat_a2 <- matrix(rnorm(25), nrow = 5) mat_a2 # Print matrix # [,1] [,2] [,3] [,4] [,5] # [1,] 1.063239047 -1.4326992 -0.9790201 -0.4636753 1.37990358 # [2,] 0.254985749 0.4016807 1.1733589 -0.7508775 2.33918171 # [3,] -0.338361009 -0.1833490 -0.5049254 0.7144516 -1.86724624 # [4,] -0.009719763 0.2847016 0.8611929 0.7430495 0.01254588 # [5,] 0.380698865 0.8433700 1.5883904 -1.7543261 -0.29077861
Now, we can solve this matrix (i.e. computing the inverse) by using the solve function as follows:
solve(mat_a2) # Applying solve to single matrix # [,1] [,2] [,3] [,4] [,5] # [1,] 0.15755772 -4.1085093 -5.0897583 1.93645828 0.4642408 # [2,] -0.84696305 -3.9617415 -5.5935527 1.01982458 0.0735072 # [3,] 0.33461449 2.0787370 2.8230927 0.02703553 0.1829891 # [4,] -0.06024530 -0.9485616 -1.1905739 0.95065045 -0.2303102 # [5,] -0.05892059 0.2084526 -0.2829356 -0.09461151 -0.2289467
The previous output shows the inverse of our input matrix.
Video, Further Resources & Summary
Some time ago I have released a video on my YouTube channel, which shows the contents of this article. You can find the video below:
Please accept YouTube cookies to play this video. By accepting you will be accessing content from YouTube, a service provided by an external third party.

YouTube privacy policy
If you accept this notice, your choice will be saved and the page will refresh.

Besides the video, you could read the related tutorials that I have published on my website. Some tutorials can be found here:
- Inverse of Matrix in R
- R Functions List (+ Examples)
- The R Programming Language
This tutorial illustrated how to apply the solve() function in R programming. Don’t hesitate to let me know in the comments, in case you have further questions.
Subscribe to the Statistics Globe Newsletter
Get regular updates on the latest tutorials, offers & news at Statistics Globe. I hate spam & you may opt out anytime: Privacy Policy .
Leave a Reply Cancel reply
Your email address will not be published. Required fields are marked *
Post Comment

I’m Joachim Schork. On this website, I provide statistics tutorials as well as code in Python and R programming.
Statistics Globe Newsletter
Get regular updates on the latest tutorials, offers & news at Statistics Globe. I hate spam & you may opt out anytime: Privacy Policy .
Related Tutorials

Find Common Elements from Multiple Vectors in R (Example)

identity Function in R (2 Examples)
- Data Structure & Algorithm Classes (Live)
- System Design (Live)
- DevOps(Live)
- Explore More Live Courses
- Interview Preparation Course
- Data Science (Live)
- GATE CS & IT 2024
- Data Structure & Algorithm-Self Paced(C++/JAVA)
- Data Structures & Algorithms in Python
- Explore More Self-Paced Courses
- C++ Programming - Beginner to Advanced
- Java Programming - Beginner to Advanced
- C Programming - Beginner to Advanced
- Android App Development with Kotlin(Live)
- Full Stack Development with React & Node JS(Live)
- Java Backend Development(Live)
- React JS (Basic to Advanced)
- JavaScript Foundation
- Complete Data Science Program(Live)
- Mastering Data Analytics
- CBSE Class 12 Computer Science
- School Guide
- All Courses
- Linked List
- Binary Tree
- Binary Search Tree
- Advanced Data Structure
- All Data Structures
- Asymptotic Analysis
- Worst, Average and Best Cases
- Asymptotic Notations
- Little o and little omega notations
- Lower and Upper Bound Theory
- Analysis of Loops
- Solving Recurrences
- Amortized Analysis
- What does 'Space Complexity' mean ?
- Pseudo-polynomial Algorithms
- Polynomial Time Approximation Scheme
- A Time Complexity Question
- Searching Algorithms
- Sorting Algorithms
- Graph Algorithms
- Pattern Searching
- Geometric Algorithms
- Mathematical
- Bitwise Algorithms
- Randomized Algorithms
- Greedy Algorithms
- Dynamic Programming
- Divide and Conquer
- Backtracking
- Branch and Bound
- All Algorithms
- Company Preparation
- Practice Company Questions
- Interview Experiences
- Experienced Interviews
- Internship Interviews
- Competitive Programming
- Design Patterns
- System Design Tutorial
- Multiple Choice Quizzes
- Go Language
- Tailwind CSS
- Foundation CSS
- Materialize CSS
- Semantic UI
- Angular PrimeNG
- Angular ngx Bootstrap
- jQuery Mobile
- jQuery EasyUI
- React Bootstrap
- React Rebass
- React Desktop
- React Suite
- ReactJS Evergreen
- ReactJS Reactstrap
- BlueprintJS
- TensorFlow.js
- English Grammar
- School Programming
- Number System
- Trigonometry
- Probability
- Mensuration
- Class 8 Syllabus
- Class 9 Syllabus
- Class 10 Syllabus
- Class 8 Notes
- Class 9 Notes
- Class 10 Notes
- Class 11 Notes
- Class 12 Notes
- Class 8 Maths Solution
- Class 9 Maths Solution
- Class 10 Maths Solution
- Class 11 Maths Solution
- Class 12 Maths Solution
- Class 7 Notes
- History Class 7
- History Class 8
- History Class 9
- Geo. Class 7
- Geo. Class 8
- Geo. Class 9
- Civics Class 7
- Civics Class 8
- Business Studies (Class 11th)
- Microeconomics (Class 11th)
- Statistics for Economics (Class 11th)
- Business Studies (Class 12th)
- Accountancy (Class 12th)
- Macroeconomics (Class 12th)
- Machine Learning
- Data Science
- Mathematics
- Operating System
- Computer Networks
- Computer Organization and Architecture
- Theory of Computation
- Compiler Design
- Digital Logic
- Software Engineering
- GATE 2024 Live Course
- GATE Computer Science Notes
- Last Minute Notes
- GATE CS Solved Papers
- GATE CS Original Papers and Official Keys
- GATE CS 2023 Syllabus
- Important Topics for GATE CS
- GATE 2023 Important Dates
- Software Design Patterns
- HTML Cheat Sheet
- CSS Cheat Sheet
- Bootstrap Cheat Sheet
- JS Cheat Sheet
- jQuery Cheat Sheet
- Angular Cheat Sheet
- Facebook SDE Sheet
- Amazon SDE Sheet
- Apple SDE Sheet
- Netflix SDE Sheet
- Google SDE Sheet
- Wipro Coding Sheet
- Infosys Coding Sheet
- TCS Coding Sheet
- Cognizant Coding Sheet
- HCL Coding Sheet
- FAANG Coding Sheet
- Love Babbar Sheet
- Mass Recruiter Sheet
- Product-Based Coding Sheet
- Company-Wise Preparation Sheet
- Array Sheet
- String Sheet
- Graph Sheet
- ISRO CS Original Papers and Official Keys
- ISRO CS Solved Papers
- ISRO CS Syllabus for Scientist/Engineer Exam
- UGC NET CS Notes Paper II
- UGC NET CS Notes Paper III
- UGC NET CS Solved Papers
- Campus Ambassador Program
- School Ambassador Program
- Geek of the Month
- Campus Geek of the Month
- Placement Course
- Testimonials
- Student Chapter
- Geek on the Top
- Geography Notes
- History Notes
- Science & Tech. Notes
- Ethics Notes
- Polity Notes
- Economics Notes
- UPSC Previous Year Papers
- SSC CGL Syllabus
- General Studies
- Subjectwise Practice Papers
- Previous Year Papers
- SBI Clerk Syllabus
- General Awareness
- Quantitative Aptitude
- Reasoning Ability
- SBI Clerk Practice Papers
- SBI PO Syllabus
- SBI PO Practice Papers
- IBPS PO 2022 Syllabus
- English Notes
- Reasoning Notes
- Mock Question Papers
- IBPS Clerk Syllabus
- Apply for a Job
- Apply through Jobathon
- Hire through Jobathon
- All DSA Problems
- Problem of the Day
- GFG SDE Sheet
- Top 50 Array Problems
- Top 50 String Problems
- Top 50 Tree Problems
- Top 50 Graph Problems
- Top 50 DP Problems
- Solving For India-Hackthon
- GFG Weekly Coding Contest
- Job-A-Thon: Hiring Challenge
- BiWizard School Contest
- All Contests and Events
- Saved Videos
- What's New ?
- Data Structures
- Interview Preparation
- Topic-wise Practice
- Latest Blogs
- Write & Earn
- Web Development
Related Articles
- Write Articles
- Pick Topics to write
- Guidelines to Write
- Get Technical Writing Internship
- Write an Interview Experience
- Change column name of a given DataFrame in R
- Convert Factor to Numeric and Numeric to Factor in R Programming
- Adding elements in a vector in R programming - append() method
- Clear the Console and the Environment in R Studio
- Printing Output of an R Program
- Comments in R
- How to Replace specific values in column in R DataFrame ?
- Creating a Data Frame from Vectors in R Programming
- Filter data by multiple conditions in R using Dplyr
- How to change Row Names of DataFrame in R ?
- Loops in R (for, while, repeat)
- R Programming Language - Introduction
- Taking Input from User in R Programming
- Change Color of Bars in Barchart using ggplot2 in R
- Remove rows with NA in one column of R DataFrame
- Converting a List to Vector in R Language - unlist() Function
- Group by function in R using Dplyr
- How to Change Axis Scales in R Plots?
- Inverse of Matrix in R
- K-Means Clustering in R Programming
- Logistic Regression in R Programming
- How to Split Column Into Multiple Columns in R DataFrame?
- Skewness and Kurtosis in R Programming
- Calculate Time Difference between Dates in R Programming - difftime() Function
- How to filter R dataframe by multiple conditions?
- Cross-Validation in R programming
- Convert String from Uppercase to Lowercase in R programming - tolower() method
- Matrix Multiplication in R
- Reading Files in R Programming
- How to filter R DataFrame by values in a column?
Solve System of Equations in R
- Last Updated : 23 Aug, 2021
In this article, we will discuss how to solve a system of equations in R Programming Language.
solve() function in R Language is used to solve the equation. Here equation is like a*x = b, where b is a vector or matrix and x is a variable whose value is going to be calculated.
Syntax: solve(a, b) Parameters: a: coefficients of the equation b: vector or matrix of the equation
Example 1: Solving system equation of three equations
To solve this using two matrices in R we use the following code:
which means x=80, y=-36 and z=4 is the solution for linear equations.
Example 2: Solving system equation of three equations
To get solutions in form of fractions, we use library MASS in R Language and wrap solve function in fractions.
which means x=159950/2243 , y=-92039/4486 and z=29784/2243 is the solution for the above given linear equation.
Example 3: Solving Inverse matrix
Please login to comment....
- R Math-Function
Improve your Coding Skills with Practice
Start your coding journey now.

Microsoft Math Solver

Related Concepts

- EXPLORE Coupons Tech Help Pro Random Article About Us Quizzes Contribute Train Your Brain Game Improve Your English Popular Categories Arts and Entertainment Artwork Books Movies Computers and Electronics Computers Phone Skills Technology Hacks Health Men's Health Mental Health Women's Health Relationships Dating Love Relationship Issues Hobbies and Crafts Crafts Drawing Games Education & Communication Communication Skills Personal Development Studying Personal Care and Style Fashion Hair Care Personal Hygiene Youth Personal Care School Stuff Dating All Categories Arts and Entertainment Finance and Business Home and Garden Relationship Quizzes Cars & Other Vehicles Food and Entertaining Personal Care and Style Sports and Fitness Computers and Electronics Health Pets and Animals Travel Education & Communication Hobbies and Crafts Philosophy and Religion Work World Family Life Holidays and Traditions Relationships Youth
- HELP US Support wikiHow Community Dashboard Write an Article Request a New Article More Ideas...
- EDIT Edit this Article
- PRO Courses New Tech Help Pro New Expert Videos About wikiHow Pro Coupons Quizzes Upgrade Sign In
- Browse Articles
- Quizzes New
- Train Your Brain New
- Improve Your English New
- Support wikiHow
- About wikiHow
- Easy Ways to Help
- Approve Questions
- Fix Spelling
- More Things to Try...
- H&M Coupons
- Hotwire Promo Codes
- StubHub Discount Codes
- Ashley Furniture Coupons
- Blue Nile Promo Codes
- NordVPN Coupons
- Samsung Promo Codes
- Chewy Promo Codes
- Ulta Coupons
- Vistaprint Promo Codes
- Shutterfly Promo Codes
- DoorDash Promo Codes
- Office Depot Coupons
- adidas Promo Codes
- Home Depot Coupons
- DSW Coupons
- Bed Bath and Beyond Coupons
- Lowe's Coupons
- Surfshark Coupons
- Nordstrom Coupons
- Walmart Promo Codes
- Dick's Sporting Goods Coupons
- Fanatics Coupons
- Edible Arrangements Coupons
- eBay Coupons
- Log in / Sign up
- Education and Communications
- Mathematics
How to Solve an Algebraic Expression
Last Updated: February 24, 2023 References
This article was co-authored by David Jia . David Jia is an Academic Tutor and the Founder of LA Math Tutoring, a private tutoring company based in Los Angeles, California. With over 10 years of teaching experience, David works with students of all ages and grades in various subjects, as well as college admissions counseling and test preparation for the SAT, ACT, ISEE, and more. After attaining a perfect 800 math score and a 690 English score on the SAT, David was awarded the Dickinson Scholarship from the University of Miami, where he graduated with a Bachelor’s degree in Business Administration. Additionally, David has worked as an instructor for online videos for textbook companies such as Larson Texts, Big Ideas Learning, and Big Ideas Math. There are 10 references cited in this article, which can be found at the bottom of the page. This article has been viewed 434,685 times.
An algebraic expression is a mathematical phrase that contains numbers and/or variables. Though it cannot be solved because it does not contain an equals sign (=), it can be simplified. You can, however, solve algebraic equations , which contain algebraic expressions separated by an equals sign. If you want to know how to master this mathematical concept, then see Step 1 to get started.
Understanding the Basics

- Algebraic expression : 4x + 2
- Algebraic equation : 4x + 2 = 100

- 3x 2 + 5 + 4x 3 - x 2 + 2x 3 + 9 =
- 3x 2 - x 2 + 4x 3 + 2x 3 + 5 + 9 =
- 2x 2 + 6x 3 + 14

- You can see that each coefficient can be divisible by 3. Just "factor out" the number 3 by dividing each term by 3 to get your simplified equation.
- 3x/3 + 15/3 = 9x/3 + 30/3 =
- x + 5 = 3x + 10

- (3 + 5) 2 x 10 + 4
- First, follow P, the operation in the parentheses:
- = (8) 2 x 10 + 4
- Then, follow E, the operation of the exponent:
- = 64 x 10 + 4
- Next, do multiplication:
- And last, do addition:

- 5x + 15 = 65 =
- 5x/5 + 15/5 = 65/5 =
- x + 3 = 13 =
Solve an Algebraic Equation

- 4x + 16 = 25 -3x =
- 4x = 25 -16 - 3x
- 4x + 3x = 25 -16 =
- 7x/7 = 9/7 =

- First, subtract 12 from both sides.
- 2x 2 + 12 -12 = 44 -12 =
- Next, divide both sides by 2.
- 2x 2 /2 = 32/2 =
- Solve by taking the square root of both sides, since that will turn x 2 into x.
- √x 2 = √16 =
- State both answers:x = 4, -4

- First, cross multiply to get rid of the fraction. You have to multiply the numerator of one fraction by the denominator of the other.
- (x + 3) x 3 = 2 x 6 =
- Now, combine like terms. Combine the constant terms, 9 and 12, by subtracting 9 from both sides.
- 3x + 9 - 9 = 12 - 9 =
- Isolate the variable, x, by dividing both sides by 3 and you've got your answer.
- 3x/3 = 3/3 =

- First, move everything that isn't under the radical sign to the other side of the equation:
- √(2x+9) = 5
- Then, square both sides to remove the radical:
- (√(2x+9)) 2 = 5 2 =
- Now, solve the equation as you normally would by combining the constants and isolating the variable:
- 2x = 25 - 9 =

- |4x +2| - 6 = 8 =
- |4x +2| = 8 + 6 =
- |4x +2| = 14 =
- 4x + 2 = 14 =
- Now, solve again by flipping the sign of the term on the other side of the equation after you've isolated the absolute value:
- 4x + 2 = -14
- 4x = -14 -2
- 4x/4 = -16/4 =
- Now, just state both answers: x = -4, 3
Community Q&A

Video . By using this service, some information may be shared with YouTube.
- The degree of a polynomial is the highest power within the terms. ⧼thumbs_response⧽ Helpful 5 Not Helpful 0
- To cross-check your answer, visit wolfram-alpha.com. They give the answer and often the two steps. ⧼thumbs_response⧽ Helpful 7 Not Helpful 2
- Once you're done, replace the variable with the answer, and solve the sum to see if it makes sense. If it does, then, congratulations! You just solved an algebraic equation! ⧼thumbs_response⧽ Helpful 4 Not Helpful 2

You Might Also Like

- ↑ https://www.math4texas.org/Page/527
- ↑ https://www.khanacademy.org/math/cc-sixth-grade-math/cc-6th-expressions-and-variables/cc-6th-combining-like-terms/v/combining-like-terms-2
- ↑ https://www.mathsisfun.com/algebra/factoring.html
- ↑ https://www.mathsisfun.com/operation-order-pemdas.html
- ↑ https://sciencing.com/tips-for-solving-algebraic-equations-13712207.html
- ↑ https://www.mathsisfun.com/algebra/equations-solving.html
- ↑ http://tutorial.math.lamar.edu/Classes/Alg/SolveExpEqns.aspx
- ↑ https://www.mathsisfun.com/algebra/fractions-algebra.html
- ↑ https://math.libretexts.org/Courses/Coastline_College/Math_C045%3A_Beginning_and_Intermediate_Algebra_(Chau_Duc_Tran)/10%3A_Roots_and_Radicals/10.07%3A_Solve_Radical_Equations
- ↑ https://www.mathplanet.com/education/algebra-1/linear-inequalitites/solving-absolute-value-equations-and-inequalities
About This Article

If you want to solve an algebraic expression, first understand that expressions, unlike equations, are mathematical phrase that can contain numbers and/or variables but cannot be solved. For example, 4x + 2 is an expression. To reduce the expression, combine like terms, for example everything with the same variable. After you've done that, factor numbers by finding the lowest common denominator. Then, use the order of operations, which is known by the acronym PEMDAS, to reduce or solve the problem. To learn how to solve algebraic equations, keep scrolling! Did this summary help you? Yes No
- Send fan mail to authors
Reader Success Stories

Marie Taufa
May 27, 2018
Did this article help you?

Vickram Bheemsain
May 5, 2016

Imran Ahmed
Nov 1, 2018

Veer Gaudani
Feb 21, 2017

Feb 18, 2019

Featured Articles

Trending Articles

Watch Articles

- Terms of Use
- Privacy Policy
- Do Not Sell or Share My Info
- Not Selling Info
Get all the best how-tos!
Sign up for wikiHow's weekly email newsletter
If you're seeing this message, it means we're having trouble loading external resources on our website.
If you're behind a web filter, please make sure that the domains *.kastatic.org and *.kasandbox.org are unblocked.
To log in and use all the features of Khan Academy, please enable JavaScript in your browser.
Algebra foundations
Solving equations & inequalities, working with units, linear equations & graphs, forms of linear equations, systems of equations, inequalities (systems & graphs), absolute value & piecewise functions, exponents & radicals, exponential growth & decay, quadratics: multiplying & factoring, quadratic functions & equations, irrational numbers, creativity in algebra, course challenge.

- Get started with computers
- Learn Microsoft Office
- Apply for a job
- Improve my work skills
- Design nice-looking docs
- Getting Started
- Smartphones & Tablets
- Typing Tutorial
- Online Learning
- Basic Internet Skills
- Online Safety
- Social Media
- Zoom Basics
- Google Docs
- Google Sheets
- Career Planning
- Resume Writing
- Cover Letters
- Job Search and Networking
- Business Communication
- Entrepreneurship 101
- Careers without College
- Job Hunt for Today
- 3D Printing
- Freelancing 101
- Personal Finance
- Sharing Economy
- Decision-Making
- Graphic Design
- Photography
- Image Editing
- Learning WordPress
- Language Learning
- Critical Thinking
- For Educators
- Translations
- Staff Picks
- English expand_more expand_less
Algebra Topics - Solving Equations
Algebra topics -, solving equations, algebra topics solving equations.

Algebra Topics: Solving Equations
Lesson 8: solving equations.
/en/algebra-topics/simplifying-expressions/content/
Solving equations
In the previous section we talked about simplifying expressions . In this section we'll talk about solving equations. Equations are two expressions set equal to each other using an equal sign (=). When we're simplifying expressions, our end goal is to have no operations left to do.
When we're solving equations, our end goal is to find out what the variable (or letter) is equal to by getting the variable by itself on one side of the equal sign and a number by itself on the other side. We're going to accomplish this goal using two important steps:
- Simplify each expression on either side of the equal sign.
- Use inverse operations to cancel out.
Sound complicated? We'll break it down to make it easier. Let's look at an example:
5x - 4x - 6 = 18
We can start solving the same way we would start simplifying an expression, by checking the order of operations. We want to simplify each side of the equal sign as much as possible first . Looking at our equation, there are no parentheses or exponents and there's nothing to multiply or divide, so we'll just start adding and subtracting. The first part is simple: 5 x - 4 x is 1 x , or just x .
Cancelling out with inverse operations
Now we are left with this equation:
We can't subtract 6 from x because they're not like terms (our lesson on reading algebraic expressions explains this in more detail). But x - 6 = 18 still isn't simplified enough. After all, we're looking for the value of x , not the value of x - 6 .
To solve this equation, we'll need to get the x alone on one side of the equals sign. To move the -6 to the other side of the equal sign, we can use the inverse —or opposite—of -6 . That would be 6 . In other words, we can add six to both sides of the equation.
On the left side of the equation, -6 plus 6 is 0 , and x - 0 is x . On the right, 18 plus 6 is 24 , so x = 24 . Now our equation is simplified. We simplified it by using the inverse of what we wanted to get rid of.
This is also called cancelling out because it lets you cancel—or get rid of—parts of an equation. This doesn't mean you can just cross out any part of the equation you don't want to solve (although that would make algebra much easier!). There are a few rules you have to follow.
First, did you notice that we added 6 to both sides of our equation? This is because the two sides of an equation must always be equal —after all, that's what the equals sign means. Any time you do something extra to one side of an equation, you have to do the same thing to the other. Because we added 6 to the -6 on the left side, we also had to add it to the 18 on the right .
Second, remember how we added six where the original expression said to subtract ? We did this because 6 is the opposite of -6 . To cancel out part of an expression, you'll need to use its opposite, or inverse. The opposite of subtraction is addition —and as you might guess, the opposite of addition is subtraction .
Watch the video below to see this example problem solved.
What about multiplication and division? These are opposites as well, and you can also cancel them out. For instance, how would you get the a in this equation alone on the left side of the equals sign?
Because the a is being multiplied by 5, you can divide both sides of the problem by 5 . 5 a divided by 5 is a and 30 divided by 5 is 6 , so the simplified version of this equation would look like this:
Multi-step equations
Let's look at another example:
4(2x + 3) = 68
First, we need to look to see if anything can be simplified. Remember in the previous section we talked about the number on the outside of the parentheses meaning multiplication? According to that, we can multiply 4 · 2x and 4 · 3. 4 · 2x is 8x and 4 · 3 is 12 .
8x + 12 = 68
This gives us 8x + 12 = 68 .
Now that both sides of the equal sign are simplified, we will need to use canceling to get x by itself. Right now we have two things we need to move, the 8 and the 12. We're adding 12, so we would subtract to move it. We're also multiplying x by 8, so we would divide to move it. But which one do we move first?
Remember, canceling uses inverse - or opposite - operations. Since we're using opposite operations to move things, we're going to use the opposite of the order of operations to decide which order to move them in.
The order of operations says we would simplify multiplication and division before addition and subtraction, so we're going to do the opposite. We're going to use addition/subtraction first, and then multiplication/division.
First, we'll subtract 12 from both sides:
Since 12 - 12 is 0, we're left with 8x on the left. Since 68 - 12 is 56, we're left with 56 on the right.
Finally, we'll divide. 56/8 = 7
We're done! This means for 4(2x + 3) = 68, x has to equal 7.
Let's practice what you just learned by going through a few more problems. Remember, in order to simplify these we'll use the order of operations and cancelling out .
Pay attention to the steps we take to simplify these expressions—in a bit, you'll have a chance to solve a few on your own.
Simplify this expression to find the value of x :
6x + 2 3 = 74
Take a moment to think about what you'd do first. You might even want to get out a piece of paper to see how you would simplify this on your own. Once you're ready, keep reading to see how we got the correct answer.
Just like we did on the last page, we'll start by seeing if there's anything we can do with the order of operations . This expression has two operations: addition and an exponent .
According to the order of operations, we need to calculate the exponent first. That's 2 3 , which is equal to 2 ⋅ 2 ⋅ 2 , or 8 .
The order of operations says we should add next, but we can't add 6 x + 8—a variable with a coefficient like 6 x can only be added to another like term. (In other words, a number with the variable x can only be added to another number with the variable x .) In order to get 6 x on its own, we'll have to cancel out + 8 .
6x + 8 = 74
We can do that with the opposite of 8 , which is - 8 . We'll subtract 8 from both sides of the equals sign. 8 - 8 is 0 . 74 - 8 is 66 .
We're almost done. All that's left to do is get rid of the 6 in 6 x . Remember, 6 x is just another way of writing 6 ⋅ x .
Because 6 and x are being multiplied , we can cancel out the 6 by doing the opposite: dividing .
6 x / 6 is x and 66 / 6 is 11 , so x = 11 . We're done!
As you might have noticed, you don't have to follow the order of operations once you start cancelling out. All that matters is keeping both sides of the expression equal . In fact, it's best to cancel out addition and subtraction first .
Let's try another problem. Simplify for y .
4 (3y - 8) = 4
This problem is slightly different from the last one, but it uses the same skills. Here's how to solve it:
According to the order of operations, we'll need to simplify the expression in parentheses first. However, we can't subtract 8 from 3 y —we can't subtract a number from a variable.
Because 4 is next to the parentheses, we're supposed to multiply what's in the parentheses by 4 . (Confused? Review our lesson on reading algebraic expressions ).
4 (3y -8) = 4
4 ⋅ 3 y is 12 y and 4 ⋅ -8 is -32 . You can't subtract 32 from 12 y , either, so to simplify this expression any further we'll have to start canceling things out.
12y - 32 = 4
Let's get rid of the -32 first. The opposite of -32 is 32 , so we'll add 32 to both sides. - 32 + 32 is 0 , and 4 + 32 is 36 .
We're almost finished. We just have to cancel out of the 12 in 12 y . Remember, 12 y could also be written as 12 ⋅ y .
Because 12 and y are being multiplied , we can cancel out the 12 by dividing .
12 y / 12 is y , and 36 / 12 is 3 . We did it: y equals 3 .
Try solving the next few problems on your own. The answers are below.
-2 + x / 5 - 3 = 0
Find the the value of y :
3 (y + 2y) = 36
Find the the value of r :
300r - 60r + 10 2 = -380
Longer equations
Believe it or not, you now have the tools to simplify many expressions, even complicated-looking ones like this:
3x - 24 ⋅ 2 = 8x + 2
This might look more difficult than the problems you solved on the last page, but you'll use the exact same skills to solve this one. The major difference between this expression and the others you solved is that this one has a variable and at least one number on both sides of the equals sign—so you'll have to do a bit more cancelling out.
You'll also have to choose whether you want the variable on the left or the right side of the equals sign in your simplified expression. It doesn't really matter—the answer will be the same either way—but depending on the problem, you might find that the math feels easier one way than another. No matter what, though, your simplified equation should have only a variable on one side of the equation and only a number on the other.
Let's try the problem from the top of the page: 3 x - 24 ⋅ 2 = 8 x + 2 .
First, we'll want to handle what we can with the order of operations. It looks like all we can do is multiply -24 ⋅ 2 . Everything else involves adding or subtracting unlike terms: - 24 ⋅ 2 is -48 .
3x -24 ⋅ 2 = 8x + 2
Let's try to get x on the left side of the equals sign and the number on the right . We'll start by cancelling out -48 on the left. We can do this by adding 48 to both sides. -48 + 48 is 0 , and 2 + 48 is 50 .
Because we decided that x will be on the left side, we have to get rid of 8 x on the right. We can do this by subtracting 8 x from both sides. 8 x - 8 x is 0 , and 3 x - 8 x is -5 x .
Now all that's left to do is to get rid of the -5 in -5 x . Because -5 x is a way of writing -5 ⋅ x , we can cancel it by dividing both sides by -5 . -5 x / -5 is x , and 50 / -5 is 10 .
We're done! x is equal to -10 .
As you can see, simplifying this equation really wasn't much more complicated than simplifying any of the other equations in this lesson—it just took a little longer.
Now it's your turn. Try simplifying these longer expressions.
Solve for i .
-46 -2i = 42 + 7i ⋅ 6
Solve for j .
90j / 5 + 2 2 = 140 + j
Solve for k . (Hint: your final answer will be a fraction.)
3 + (3k + 6k) = 3k + 5
Equations with more than one variable
Sometimes you might see an equation with more than one variable, like this one:
2x + 6y -10 = 38
If an expression has more than one variable, you won't be able to simplify it all the way—there's not enough information. Instead, problems with equations that have multiple variables will usually ask you to solve for one of the variables. You'll simplify it as much as you can, with the variable you're solving for on one side of the equation and any other numbers and variables on the other. Let's simplify the expression above: 2 x +6 y - 10 = 38 .
We can't do anything with the order of operations, so let's start cancelling things out. We want x alone on the left side, so we'll try to get everything else on the right.
2x + 6y - 10 = 38
First, we'll cancel out -10 . The opposite of -10 is 10 , so we'll add 10 to both sides. -10 + 10 is 0 , and 38 + 10 is 48 .
Next, let's get rid of 6 y . We'll subtract it from both sides. 6 y - 6 y is 0 . Because there's nothing to subtract it from on the other side, we'll just write -6 y on the right. (Confused? It's like we subtracted 6 y from nothing , or 0 —and 0 - 6 y is -6 y .)
Now we have to get rid of the 2 in 2 x . Because 2 x is another way of saying 2 ⋅ x , we'll divide both sides by 2 to get x alone on the left. 2 x / 2 is x , and (48 - 6 y ) / 2 is 24- 3 y .
That's all it takes! The expression isn't fully simplified—we still don't know the numerical value of x and y —but it's simplified enough because we can say that x equals 24 - 3 y .
x = 24 - 3y
Remember, your goal with problems like this isn't to completely simplify the expression—it's to find the value of one of the variables.
It is actually possible to solve for two variables when you have more than one equation with the same variables. This is called a system of equations. We actually use systems of equations in our lesson on distance word problems , but we don't discuss how they work in general. To learn more about systems of equations, check out this video from Khan Academy.
Solve for r .
88q + 4r - 3 = 5
Solve for s . (Hint: your final answer will be a fraction with a denominator of r .)
(13sr) / 2 = 39
Solve for m .
6m - 30p / 5 = 12
- r = 2 - 22 q
Checking your work
It's important to check your work in algebra, especially when you're first getting started. Luckily, checking your work when you're simplifying equations is pretty straightforward. All you have to do is replace the variable in the equation with the value you found when you simplified it. To see how this works, let's look back at one of the equations we simplified before:
We found that y was equal to 3 . Let's see if we got the answer right.
Here's our original equation. y is our variable, so we'll be replacing it with the value we found: 3 .
4 (3 y - 8) = 4
Here's what the equation looks like with 3 instead of y . Now we're going to see if the equation is true. If the left side is equal to the right side, our answer is correct.
4 (3 ⋅ 3 - 8) = 4
We'll follow the order of operations, with parentheses first. 3 ⋅ 3 is 9 , and 9 - 8 is 1 .
Now that we've simplified the parentheses, all we have to do is multiply 4 times 1 .
4 ⋅ 1 is 4 . Both sides of our equation are equal, so our answer is correct!
That's all it takes! Checking every expression you simplify is a good habit to get into, and you'll find that checking your work usually takes less time than it took to simplify the equation in the first place.
Let's try one more:
The expression we'll be looking at is 5 x + 3 = 23 + x . We're checking to see if the solution x = 4 is correct.
5x + 3 = 23 + x
First, we'll replace the variable x with 4 .
5 ⋅ 4 + 3 = 23 + 4
To check our work, we'll have to simplify both sides of the expression. We'll start with the left side. According to the order of operations, we need to multiply first, then add. 5 ⋅ 4 is 20 , and when you add 3 to that, you get 23 .
Now we need to simplify the right side: 23 + 4 is 27 .
23 = 23 + 4
Our equation can't be right— 23 and 27 are not equal. We now know that x does not equal 4 . In other words, the answer is incorrect .
As you just saw, if you're checking a problem and the final expression is not a balanced equation, your answer is not correct. Take time to go back and simplify your original equation again. On your second try, pay careful attention to the order of operations, and make sure you're adding, subtracting, multiplying, and dividing correctly.
Want to check that last problem again? This time, check it with x = 5 .
Check this problem. Is u = 6 the correct answer? If not, what is?
u (3 + 8) / 2 = 33
Check this problem. Is v = 5 the correct answer? If not, what is?
v / 5 + 20v = 19v + 12
Check this problem. Is w = 8 the correct answer? If not, what is?
5w + 3 = 4w + 10
- Yes, the answer is correct.
- No; v = 10.

/en/algebra-topics/introduction-to-word-problems/content/
Equation Solver
Enter the Equation you want to solve into the editor.
Please ensure that your password is at least 8 characters and contains each of the following:
- a special character: @$#!%*?&
Solving Equations
What is an equation.
An equation says that two things are equal. It will have an equals sign "=" like this:
That equations says:
what is on the left (x − 2) equals what is on the right (4)
So an equation is like a statement " this equals that "
What is a Solution?
A Solution is a value we can put in place of a variable (such as x ) that makes the equation true .
Example: x − 2 = 4
When we put 6 in place of x we get:
which is true
So x = 6 is a solution.
How about other values for x ?
- For x=5 we get "5−2=4" which is not true , so x=5 is not a solution .
- For x=9 we get "9−2=4" which is not true , so x=9 is not a solution .
In this case x = 6 is the only solution.
You might like to practice solving some animated equations .
More Than One Solution
There can be more than one solution.

Example: (x−3)(x−2) = 0
When x is 3 we get:
(3−3)(3−2) = 0 × 1 = 0
And when x is 2 we get:
(2−3)(2−2) = (−1) × 0 = 0
which is also true
So the solutions are:
x = 3 , or x = 2
When we gather all solutions together it is called a Solution Set
The above solution set is: {2, 3}
Solutions Everywhere!
Some equations are true for all allowed values and are then called Identities
Example: sin(−θ) = −sin(θ) is one of the Trigonometric Identities
Let's try θ = 30°:
sin(−30°) = −0.5 and
−sin(30°) = −0.5
So it is true for θ = 30°
Let's try θ = 90°:
sin(−90°) = −1 and
−sin(90°) = −1
So it is also true for θ = 90°
Is it true for all values of θ ? Try some values for yourself!
How to Solve an Equation
There is no "one perfect way" to solve all equations.
A Useful Goal
But we often get success when our goal is to end up with:
x = something
In other words, we want to move everything except "x" (or whatever name the variable has) over to the right hand side.
Example: Solve 3x−6 = 9
Now we have x = something ,
and a short calculation reveals that x = 5
Like a Puzzle
In fact, solving an equation is just like solving a puzzle. And like puzzles, there are things we can (and cannot) do.
Here are some things we can do:
- Add or Subtract the same value from both sides
- Clear out any fractions by Multiplying every term by the bottom parts
- Divide every term by the same nonzero value
- Combine Like Terms
- Expanding (the opposite of factoring) may also help
- Recognizing a pattern, such as the difference of squares
- Sometimes we can apply a function to both sides (e.g. square both sides)
Example: Solve √(x/2) = 3
And the more "tricks" and techniques you learn the better you will get.
Special Equations
There are special ways of solving some types of equations. Learn how to ...
- solve Quadratic Equations
- solve Radical Equations
- solve Equations with Sine, Cosine and Tangent
Check Your Solutions
You should always check that your "solution" really is a solution.
How To Check
Take the solution(s) and put them in the original equation to see if they really work.
Example: solve for x:
2x x − 3 + 3 = 6 x − 3 (x≠3)
We have said x≠3 to avoid a division by zero.
Let's multiply through by (x − 3) :
2x + 3(x−3) = 6
Bring the 6 to the left:
2x + 3(x−3) − 6 = 0
Expand and solve:
2x + 3x − 9 − 6 = 0
5x − 15 = 0
5(x − 3) = 0
Which can be solved by having x=3
Let us check x=3 using the original question:
2 × 3 3 − 3 + 3 = 6 3 − 3
Hang On: 3 − 3 = 0 That means dividing by Zero!
And anyway, we said at the top that x≠3 , so ...
x = 3 does not actually work, and so:
There is No Solution!
That was interesting ... we thought we had found a solution, but when we looked back at the question we found it wasn't allowed!
This gives us a moral lesson:
"Solving" only gives us possible solutions, they need to be checked!
- Note down where an expression is not defined (due to a division by zero, the square root of a negative number, or some other reason)
- Show all the steps , so it can be checked later (by you or someone else)
Algebraic Equations
Algebraic equations are two algebraic expressions that are joined together using an equal to ( = ) sign. An algebraic equation is also known as a polynomial equation because both sides of the equal sign contain polynomials. An algebraic equation is built up of variables, coefficients, constants as well as algebraic operations such as addition, subtraction, multiplication, division, exponentiation, etc.
If there is a number or a set of numbers that satisfy the algebraic equation then they are known as the roots or the solutions of that equation. In this article, we will learn more about algebraic equations, their types, examples, and how to solve algebraic equations.
What is Algebraic Equations?
An algebraic equation is a mathematical statement that contains two equated algebraic expressions. The general form of an algebraic equation is P = 0 or P = Q, where P and Q are polynomials . Algebraic equations that contain only one variable are known as univariate equations and those which contain more than one variable are known as multivariate equations. An algebraic equation will always be balanced. This means that the right-hand side of the equation will be equal to the left-hand side.

Algebraic Expressions
A polynomial expression that contains variables, coefficients, and constants joined together using operations such as addition , subtraction, multiplication, division, and non-negative exponentiation is known as an algebraic expression . An algebraic expression should not be confused with an algebraic equation. When two algebraic expressions are merged together using an "equal to" sign then they form an algebraic equation. Thus, 5x + 1 is an expression while 5x + 1 = 0 will be an equation.
Algebraic Equations Examples
x 2 - 5x = 3 is a univariate algebraic equation while y 2 x - 5z = 3x is an example of a multivariate algebraic equation.
Types of Algebraic Equations
Algebraic equations can be classified into different types based on the degree of the equation. The degree can be defined as the highest exponent of a variable in an algebraic equation. Suppose there is an equation given by x 4 + y 3 = 3 5 then the degree will be 4. In determining the degree, the exponent of the constant or coefficient is not considered. The number of roots of an algebraic equation depends on its degree. An algebraic equation where the degree equals 5 will have a maximum of 5 roots. The various types of algebraic equations are as follows:
Linear Algebraic Equations
A linear algebraic equation is one in which the degree of the polynomial is 1. The general form of a linear equation is given as a 1 x 1 +a 2 x 2 +...+a n x n = 0 where at least one coefficient is a non-zero number. These linear equations are used to represent and solve linear programming problems.
Example: 3x + 5 = 5 is a linear equation in one variable . y = 2x - 6 is a linear equation in two variables .
Quadratic Algebraic Equations
An equation where the degree of the polynomial is 2 is known as a quadratic algebraic equation . The general form of such an equation is ax 2 + bx + c = 0, where a is not equal to 0.
Example: 3x 2 + 2x - 6 = 0 is a quadratic algebraic equation. This type of equation will have a maximum of two solutions.
Cubic Algebraic Equations
An algebraic equation where the degree equals 3 will be classified as a cubic algebraic equation . ax 3 + bx 2 + cx + d = 0 is the general form of a cubic algebraic equation (a ≠ 0).
Example: x 3 + x 2 - x - 1 = 0. A cubic algebraic equation will have a maximum of three roots as the degree is 3.
Higher-Order Polynomial Algebraic Equations
Algebraic equations that have a degree greater than 3 are known as higher-order polynomial algebraic equations. Quartic (degree = 4), quintic (5), sextic (6), septic (7) equations all fall under the category of higher algebraic equations. Such equations might not be solvable using a finite number of operations.
Algebraic Equations Formulas
Algebraic equations can be simplified using several formulas and identities. These help to expedite the process of solving a given equation. Given below are some important algebraic formulas :
- (a + b) 2 = a 2 + 2ab + b 2
- (a - b) 2 = a 2 - 2ab + b 2
- (a + b)(a - b) = a 2 - b 2
- (x + a)(x + b) = x 2 + x(a + b) + ab
- (a + b) 3 = a 3 + 3a 2 b + 3ab 2 + b 3
- (a - b) 3 = a 3 - 3a 2 b + 3ab 2 - b 3
- a 3 + b 3 = (a + b)(a 2 - ab + b 2 )
- a 3 - b 3 = (a - b)(a 2 + ab + b 2 )
- (a + b + c) 2 = a 2 + b 2 + c 2 + 2ab + 2bc + 2ca
- Quadratic Formula : [-b ± √(b² - 4ac)]/2a
- Discriminant : b 2 - 4ac
How to Solve Algebraic Equations
There are many different methods that are available for solving algebraic equations depending upon the degree. If an algebraic equation has two variables then two equations will be required to find the solution. Thus, it can be said that the number of equations required to solve an algebraic equation will be equal to the number of variables present in the equation. Given below are the ways to solve algebraic equations.

A linear algebraic equation in one variable can be solved by simply applying basic arithmetic operations on both sides of the equation.
E.g: 4x + 1 = 5.
4x = 5 - 1 (Subtracted 1 from both sides).
4x = 4 (Solve the R.H.S using algebraic operations)
x = 1 (Divided both sides by 4)
Linear algebraic equations in more than one variable will be solved using the concept of simultaneous equations .

A quadratic algebraic equation can be solved by using identities , factorizing , long division, splitting the middle term, completing the square , applying the quadratic formula, and using graphs . A quadratic equation will always have a maximum of two roots.
E.g: x 2 + 2x + 1 = 0
Using the identity (a + b) 2 = a 2 + 2ab + b 2 , we get
a = x and b = 1
(x + 1) 2 = 0
(x + 1)(x + 1) = 0
x = -1, -1.
The most effective way of solving higher-order algebraic polynomials in one variable is by using the long division method. This decomposes the higher-order polynomial into polynomials of a lower degree thus, making it easier to find the solutions.
☛ Related Articles:
- Variable Expressions
- Algebraic Formula Calculator
- Solve For x Calculator
- Equation Calculator
Important Notes on Algebraic Equations:
- An algebraic equation is an equation where two algebraic expressions are joined together using an equal sign .
- Polynomial equations are algebra equations.
- Algebraic equations can be one-step, two-step , or multi-step equations .
- Algebra equations are classified as linear, quadratic, cubic, and higher-order equations based on the degree.
- Example 1: Solve the algebraic equation x + 3 = 2x Solution: Taking the variable terms on one side of the equation and keeping the constant terms on the other side we get, 3 = 2x - x 3 = x Answer: x = 3
- Example 2: A total of 15 items can fit in a box. If the box contains 2 scales, 7 pencils, and 1 eraser then how many pens can fit in the box? Solution: Converting this problem statement in the form of an algebraic equation we get, 2 scales + 7 pencils + 1 eraser + x pens = 15 2 + 7 + 1 + x = 15 Solving the L.H.S 10 + x = 15 x = 15 - 10 x = 5 Answer: 5 pens can fit in the box
- Example 3: Find the roots of the quadratic equation x 2 + x - 6 = 0 Solution: Using the quadratic formula x = [-b ± √(b² - 4ac)]/2a. a = 1, b = 1, c = - 6 x = [-1 ± √(1² - 4 · 1 · -6)] / (2 · 1) x = [-1 ± √(25)] / 2 x = [-1 + 5] / 2, [-1 - 5] / 2 x = 2, -3 Answer: The roots of the given algebraic equation are 2 and -3.
go to slide go to slide go to slide

Book a Free Trial Class
Practice Questions on Algebraic Equations
go to slide go to slide
FAQs on Algebraic Equations
What are algebraic equations.
Algebraic equations are polynomial equations where two algebraic expressions are equated. Both sides of the equation must be balanced. The general form of an algebraic equation is P = 0.
What is an Example of Algebraic Equation?
An algebraic equation can be linear, quadratic, etc. Hence, an example of an algebraic equation can be 3x 2 - 6 = 0.
How Do You Solve Algebraic Equations?
There are many methods available to solve algebraic equations depending on the degree. Some techniques include applying simple algebraic operations , solving simultaneous equations , splitting the middle term, quadratic formula, long division, and so on.
What are Algebraic Expressions and Algebraic Equations?
Mathematical statements that consist of variables , coefficients , constants , and algebraic operations are known as algebraic expressions. When two algebraic expressions are equated together, they are known as algebraic equations.
How Do You Write Algebraic Equation?
We can convert real-life statement involving numbers and conditions into algebraic equation. For example, if the problem says, "the length of a rectangular field is 5 more than twice the width", then it can be written as the algebraic equations l = 2w + 5, where 'l' and 'w' are the length and width of the rectangular field.
What are Linear Algebraic Equations?
An algebraic equation where the highest exponent of the variable term is 1 is a linear algebraic equation. In other words, algebraic equations with degree 1 will be linear. For example, 3y - 9 = 1
Are Quadratic Equations Algebraic Equations?
Yes, quadratic equations are algebraic equations. It consists of an algebraic expression of the second degree.
What are the Basic Formulas of Algebraic Equations?
Some of the basic formulas of algebraic equations are listed below:
- Quadratic Formula: [-b ± √(b² - 4ac)]/2a
- Discriminant: b 2 - 4ac
What are the Rules for Algebraic Equations?
There are 5 basic rules for algebraic equations. These are as follows:
- Commutative Rule of Addition
- Commutative Rule of Multiplication
- Associative Rule of Addition
- Associative Rule of Multiplication
- Distributive Rule of Multiplication
Accessibility links
- Skip to content
- Accessibility Help
Algebraic skills
An equation is a formula containing one or more variables. Types include: straight line, algebraic, simultaneous and equations that require you to change the subject of a formula.
- Read more about sharing
Solving equations
Problems are often answered in mathematics by solving equations.
To solve them, we need to find what number the letter in the equation represents. That number is called the solution of the equation.
There are usually several ways to solve an equation. If the method you choose to use always gives you the correct answer, then keep using this method!
We are going to use the method:
Change side, change operation
Solve the equation \(x + 5 = 12\)
Add becomes subtract.
Solve the equation \(3x - 15 = 9\)
Subtract becomes add and multiply becomes divide.
When we have letters on both sides of the equation, we need to use the rule:
Letters to the left, numbers to the right
Solve the equation \(7x - 3 = 3x + 17\)
\[7x - 3 = 3x + 17\]
\[7x - 3x = 17 + 3\]
\[4x = 20\]
\[x = 20 \div 4\]
Solve the equation \(5p - 2 = 7p + 12\)
\[5p - 2 = 7p + 12\]
\[5p - 7p = 12 + 2\]
\[- 2p = 14\]
\[p = 14 \div - 2\]
\[p = - 7\]
An equation may be used to model a situation. For example:
Mr and Mrs Wallace hire a van for moving house. They see this advert in the local paper and decide to use this company.
When they hand the van back, their bill comes to £59. How many hours did they hire the van for?
First we need to put this information into an equation.
\(x\) is the number of hours they hired the van for.This is what we have to find.
Their total bill will be 17 plus 6 times \(x\) .
We usually write this as \(6x + 17\) .
\[6x + 17 = 59\]
\[6x = 59 - 17\]
\[6x = 42\]
\[x = 42 \div 6\]
Therefore they hired the van for 7 hours.
National 4 Subjects National 4 Subjects up down
- Application of Maths
- Art and Design
- Computing Science
- Design and manufacture
- Engineering science
- Fashion and textile technology
- Gaelic (Learners)
- Graphic communication
- Health and food technology
- Modern Languages
- Modern Studies
- Music Technology
- Physical Education
- Religious, moral and philosophical studies
- Technologies

- Solve equations and inequalities
- Simplify expressions
- Factor polynomials
- Graph equations and inequalities
- Advanced solvers
- All solvers
- Arithmetics
- Determinant
- Percentages
- Scientific Notation
- Inequalities

What can QuickMath do?
QuickMath will automatically answer the most common problems in algebra, equations and calculus faced by high-school and college students.
- The algebra section allows you to expand, factor or simplify virtually any expression you choose. It also has commands for splitting fractions into partial fractions, combining several fractions into one and cancelling common factors within a fraction.
- The equations section lets you solve an equation or system of equations. You can usually find the exact answer or, if necessary, a numerical answer to almost any accuracy you require.
- The inequalities section lets you solve an inequality or a system of inequalities for a single variable. You can also plot inequalities in two variables.
- The calculus section will carry out differentiation as well as definite and indefinite integration.
- The matrices section contains commands for the arithmetic manipulation of matrices.
- The graphs section contains commands for plotting equations and inequalities.
- The numbers section has a percentages command for explaining the most common types of percentage problems and a section for dealing with scientific notation.
Equation Calculator
Solve linear, quadratic, biquadratic. absolute and radical equations, step-by-step.

- One-Step Addition
- One-Step Subtraction
- One-Step Multiplication
- One-Step Division
- One-Step Decimals
- Two-Step Integers
- Two-Step Add/Subtract
- Two-Step Multiply/Divide
- Two-Step Fractions
- Two-Step Decimals
- Multi-Step Integers
- Multi-Step with Parentheses
- Multi-Step Rational
- Multi-Step Fractions
- Multi-Step Decimals
- Solve by Factoring
- Completing the Square
- Quadratic Formula
- Biquadratic
- Logarithmic
- Exponential
- Rational Roots
- Floor/Ceiling
- Equation Given Roots New
- Substitution
- Elimination
- Cramer's Rule
- Gaussian Elimination
- System of Inequalities
- Perfect Squares
- Difference of Squares
- Difference of Cubes
- Sum of Cubes
- Polynomials
- Distributive Property
- FOIL method
- Perfect Cubes
- Binomial Expansion
- Logarithmic Form
- Absolute Value
- Partial Fractions
- Is Polynomial
- Leading Coefficient
- Leading Term
- Standard Form
- Complete the Square
- Synthetic Division
- Rationalize Denominator
- Rationalize Numerator
- Interval Notation New
- Pi (Product) Notation New
- Induction New
- Boolean Algebra
- Truth Table
- Mutual Exclusive
- Cardinality
- Caretesian Product
- Age Problems
- Distance Problems
- Cost Problems
- Investment Problems
- Number Problems
- Percent Problems

Most Used Actions
Number line.

- x^4-5x^2+4=0
- \sqrt{x-1}-x=-7
- \left|3x+1\right|=4
- \log _2(x+1)=\log _3(27)
- 3^x=9^{x+5}
Frequently Asked Questions (FAQ)
What is the completing square method.
- Completing the square method is a technique for find the solutions of a quadratic equation of the form ax^2 + bx + c = 0. This method involves completing the square of the quadratic expression to the form (x + d)^2 = e, where d and e are constants.
What is the golden rule for solving equations?
- The golden rule for solving equations is to keep both sides of the equation balanced so that they are always equal.
How do you simplify equations?
- To simplify equations, combine like terms, remove parethesis, use the order of operations.
How do you solve linear equations?
- To solve a linear equation, get the variable on one side of the equation by using inverse operations.
equation-calculator

Related Symbolab blog posts
We want your feedback.
Please add a message.
Message received. Thanks for the feedback.
Generating PDF...
R solve Function
solve() function solves equation a %*% x = b for x, where b is a vector or matrix.
• a : coefficients of the equation • b : vector or matrix of the equation right side • tol : the tolerance for detecting linear dependencies in the columns of a • LINPACK : logical. Defunct and ignored 5x = 10, what's x?
Let's see two variables examples: 3x + 2y = 8 x + y =2 What's x and y? In above equations, matrix a is: 3 2 1 1 Matrix b is: 8 2
So x = 4, y = -2. If b is absent, the default is a unit matrix.
Get the inverse matrix of matrix x:
Dominion online payment
Apps can be a great way to help learners with their math. Let's try the best Dominion online payment.
- Find the right method
Customer Stories
This is an amazing app it helps so much and I also like the function for when you get to take a picture its really helpful and it will make it much more faster than writing the question, it helped a lot.
Great app so far, by far the best math app in the market place. I like this app i tho it was fake because of other apps doest work but thank you for making this app, and really helpful and it was so hard to solved the problems, oMG it's literally the best.

Manage Your Bill
Homework Support Online
Homework Support Online is a great resource for students who need help with their homework.
Figure out math questions
Math is a subject that can be difficult to understand, but with practice and patience, anyone can learn to figure out math problems.
Explain mathematic equation
One plus one equals two. This is the most basic mathematical equation and is used to represent the concept of addition.
Maths word problems for 4th class
Maths word problems for 4th class can be found online or in math books.
4th Grade Math Word Problems

- Mathematics Homework Assistant
- Do mathematic tasks
- Average satisfaction rating 4.7/5
- Clarify math equations
Math Problems for 4th Graders
What do our people say.
Please use it wisely tho and don't get in trouble. I have been using this app for all three year of highschool so far and it comes in clutch more than often, such a good app i ever saw, i had been using the website until I found out they had an app.
Overall awesome app. And it has really help me a lot due to the fast that it is offline and doesn't require internet. Really helpful for any type of math homework, it gets the answer and teaches you how to get it. Its great,i've been using it seens i'm in grade 7,its good for my assignments and summative test and its easy to use ,i really recommended this app for students who cant understand some of math problems.
Thanks for such a great app, helped me pass my home work and Help, it actuctly works supwr well and i can get my homework done a lot faster now thanks to it, this my best app i used in my world to solve my problem. Worthy of more than five stars.

Live worksheets > English > Math > Algebra > Basic Equations Test

More Algebra interactive worksheets
Please allow access to the microphone Look at the top of your web browser. If you see a message asking for permission to access the microphone, please allow. Close
Math problem

for witch values a does the equation system have

a) clear solution
b) infinite amount of solutions
c) no solution
d) what happens if all equations equal 0

Do you want us to graduate?
ahahhahahaha well i am soon so pls help
About Community

Identificarse:
Live worksheets > inglés > Math > Algebra > Basic Equations Test

Más fichas interactivas de Algebra
Por favor, permite el acceso al micrófono Mira en la parte alta de tu navegador. Si ves un mensaje pidiendo tu permiso para acceder al micrófono, por favor permítelo. Cerrar

IMAGES
VIDEO
COMMENTS
Maybe it's possible, but R is designed for stats, not math. Try wolframalpha.com/input/?i=solve+-x%5E3%2B6 *x%5E2%2B51*x%2B44%3D0 - Frank Sep 16, 2015 at 3:30 yes, you use uniroot, f <- function (x) -x^3+6*x^2+51*x+44; uniroot (f, interval=c (-100, 100)) - Rorschach Sep 16, 2015 at 3:31 1 @bunk You only get 1 solution. There are 3.
How to solve an equation for a given variable in R? Ask Question Asked Viewed 5 This is equation a <- x * t - 2 * x. I want to solve this equation for t . So basically, set a = 0 and solve for t . I am new to the R packages for solving equations. I need the package that solves for complex roots.
the solution is unique if r ( A | b) = r ( A) = n the solution is underdetermined if r ( A | b) = r ( A) < n the equations are inconsistent (no solutions) if r ( A | b) > r ( A) We use c ( R (A), R (cbind (A,b)) ) to show the ranks, and all.equal ( R (A), R (cbind (A,b)) ) to test for consistency. library(matlib) # use the package
solve () function in R Language is used to solve linear algebraic equation. Here equation is like a*x = b, where b is a vector or matrix and x is a variable whose value is going to be calculated. Syntax: solve (a, b) Parameters: a: coefficients of the equation b: vector or matrix of the equation Example 1: # Calling solve () function to
The RStudio console returns the value 4, i.e. x = 4. Example 2: Applying solve Function to Complex System of Equations The solve command can also be used to solve complex systems of equations. Let's assume that our system of equations looks as follows: 5x + y = 15 10x + 3y = 9 Then we can specify these equations in a right-hand side matrix …
solve () function in R Language is used to solve the equation. Here equation is like a*x = b, where b is a vector or matrix and x is a variable whose value is going to be calculated. Syntax: solve (a, b) Parameters: a: coefficients of the equation b: vector or matrix of the equation Example 1: Solving system equation of three equations
How do you solve algebraic expressions? To solve an algebraic expression, simplify the expression by combining like terms, isolate the variable on one side of the equation by using inverse operations. Then, solve the equation by finding the value of the variable that makes the equation true.
Differential algebraic equations Differential-algebraic equations (DAE) contain a mixture of differential (f) and algebraic equations (g), the latter e.g. for maintaining mass-balance con-ditions: y0= f(t,y,p) 0 = g(t,y,p) Important for the solution of a DAE is its index. The index of a DAE is the number of differentiations The R Journal Vol. 2 ...
In algebra, a quadratic equation (from Latin quadratus 'square') is any equation that can be rearranged in standard form as where x represents an unknown value, and a, b, and c represent known numbers, where a ≠ 0. (If a = 0 and b ≠ 0 then the equation is linear, not quadratic.)
Free math problem solver answers your algebra homework questions with step-by-step explanations. Mathway. Visit Mathway on the web. Download free on Google Play. Download free on iTunes. Download free on Amazon. ... We are here to assist you with your math questions. You will need to get assistance from your school if you are having problems ...
If you want to solve an algebraic expression that uses fractions, then you have to cross multiply the fractions, combine like terms, and then isolate the variable. Here's how you would do it: (x + 3)/6 = 2/3 First, cross multiply to get rid of the fraction. You have to multiply the numerator of one fraction by the denominator of the other.
The Algebra 1 course, often taught in the 9th grade, covers Linear equations, inequalities, functions, and graphs; Systems of equations and inequalities; Extension of the concept of a function; Exponential models; and Quadratic equations, functions, and graphs. Khan Academy's Algebra 1 course is built to deliver a comprehensive, illuminating, engaging, and Common Core aligned experience!
Now we're going to see if the equation is true. If the left side is equal to the right side, our answer is correct. 4 (3 ⋅ 3 - 8) = 4. We'll follow the order of operations, with parentheses first. 3 ⋅ 3 is 9, and 9 - 8 is 1. 4 (1) = 4. Now that we've simplified the parentheses, all we have to do is multiply 4 times 1.
Algebra Equation Solver Step 1: Enter the Equation you want to solve into the editor. The equation calculator allows you to take a simple or complex equation and solve by best method possible. Step 2: Click the blue arrow to submit and see the result!
Add or Subtract the same value from both sides. Clear out any fractions by Multiplying every term by the bottom parts. Divide every term by the same nonzero value. Combine Like Terms. Factoring. Expanding (the opposite of factoring) may also help. Recognizing a pattern, such as the difference of squares.
Algebraic Equations Examples Example 1: Solve the algebraic equation x + 3 = 2x Solution: Taking the variable terms on one side of the equation and keeping the constant terms on the other side we get, 3 = 2x - x 3 = x Answer: x = 3 Example 2: A total of 15 items can fit in a box.
There are usually several ways to solve an equation. If the method you choose to use always gives you the correct answer, then keep using this method! We are going to use the method: Change...
QuickMath will automatically answer the most common problems in algebra, equations and calculus faced by high-school and college students. The algebra section allows you to expand, factor or simplify virtually any expression you choose.
Welcome to Solving Two-Step Equations with Mr. J! Need help with how to solve two-step equations? You're in the right place!Whether you're just starting out,...
What is the completing square method? Completing the square method is a technique for find the solutions of a quadratic equation of the form ax^2 + bx + c = 0. This method involves completing the square of the quadratic expression to the form (x + d)^2 = e, where d and e are constants.
R solve Function. solve() function solves equation a %*% x = b for x, where b is a vector or matrix. solve(a, b, tol, LINPACK = FALSE, ...) • a: coefficients of the equation • b: vector or matrix of the equation right side • tol: the tolerance for detecting linear dependencies in the columns of a • LINPACK: logical.Defunct and ignored 5x = 10, what's x?
Graph the following equations on the coordinate plane: a) y = 2x + 1 b) x - 3y = 6 Note: These problems cover a range of algebra topics, including solving linear equations, simplifying expressions, solving systems of equations, factoring, and graphing equations. Now do this homework assignment like a human "A-" student would.
All algebra 1 equations - Algebraic Formula Sheet Real Numbers : R={All numbers that are either a yn-1). Linear Functions and Formulas. Examples of Linear ... Algebra 1 is the second math course in high school and will guide you through among other things expressions, systems of equations, functions, real numbers
Need help understanding concepts and Solving linear algebraic equations steps? Solve My Task. Enhance your educational performance Solve step-by-step Clear up math equation CC. To solve linear equations, find the value of the variable that makes the equation true. Use the inverse of the number that multiplies the variable
One Step Equation Day 1. by Tennielle. Simplification off Algebraic expressions. by Preeths08. Solving and Graphing Inequalities. by ShonellW. Expanding and Factoring Algebraic Equations. by apink. Expand the brackets and simplify expressions.
Math problem. for witch values a does the equation system have. a) clear solution. b) infinite amount of solutions. c) no solution. d) what happens if all equations equal 0. Vote.
Ficha online de Algebra para 9-12. Puedes hacer los ejercicios online o descargar la ficha como pdf. ... Basic Equations Test Solving Basic Equations ID: 3363705 Idioma: inglés Asignatura: Math Curso/nivel: 9-12 Edad: 9+ Tema principal: Algebra Otros contenidos: Añadir a mis cuadernos (0) Descargar archivo pdf Añadir a Google Classroom