# Solve Equations with Substitution

Substitution is the process of replacing a variable in an expression with its actual value. If you are given an equation like $$4z + 6 = x + z$$, told that $$z = 2$$, and asked to solve for x, what do you do? The first step is to substitute 2 for every z in the problem:

$$4z+6=x+z$$ $$\cancel{4z}4*2+6=x+\cancel{z}2$$

This leaves us a more manageable equation, $$4 * 2 + 6 = x + 2$$. After simplifying things a little we get $$14 = x + 2$$. Subtract 2 from each side and you'll discover that $$x = 12$$.

Substitution can also involve more complicated problems, like $$5x^2 + 2y -6 = z$$, where $$y = -1$$ and $$x = 4$$. Just substitute in the same way, placing the value of each variable in place of the letter and simplifying.

$$5x^2+2y-6=z$$ $$5*4^2+2(-1)-6=z$$ $$5*16-2-6=z$$ $$72=z$$

Those example are pretty straightforward. You not even have needed that explanation, but it leads to more complex examples. The idea was first to understand the concept of substitution before we go further. There is another form of substitution where we insert a variable to stand for a particular expression. In some cases you will be dealing with incredibly complex problems, and it may be easier to substitute a variable, like y for part of the problem. Then, when you have solved the value of y, you can plug back in the original expression.
{"ft_lang_label":"__label__en","ft_lang_prob":0.9059315,"math_prob":0.9998841,"size":1378,"snap":"2020-24-2020-29","text_gpt3_token_len":378,"char_repetition_ratio":0.11353712,"word_repetition_ratio":0.008064516,"special_character_ratio":0.3091437,"punctuation_ratio":0.092857145,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9998877,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2020-05-28T05:21:56Z\",\"WARC-Record-ID\":\"<urn:uuid:c1fd26fe-6205-455b-adbd-93999e24cfb7>\",\"Content-Length\":\"10145\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:09a2f06d-60ca-4a76-a8fb-776d2850342a>\",\"WARC-Concurrent-To\":\"<urn:uuid:1c0ca71e-27ff-4919-af76-781813b6ecc6>\",\"WARC-IP-Address\":\"50.28.58.203\",\"WARC-Target-URI\":\"https://www.freemathhelp.com/substitution.html\",\"WARC-Payload-Digest\":\"sha1:3BY2V2A4Q3O55FRVCVTDOLW3LCEK4FVR\",\"WARC-Block-Digest\":\"sha1:BFBFTJ7TMQHO7IPQEISYE5UG6T2WRWEY\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-24/CC-MAIN-2020-24_segments_1590347396495.25_warc_CC-MAIN-20200528030851-20200528060851-00188.warc.gz\"}"}