is there a contradiction in the Bible or not?
a man is justified by works and not by faith alone
(James 2:24)
But to the one who does not work, but believes in Him who justifies the ungodly, his faith is credited as righteousness
(Romans 4:5)
if there's not, which one of these is being misrepresented by stripping it from its context?
It is simple really, it's just that traditional Christianity doesn't teach it.
Rom. 3:
27 Where is boasting then? It is excluded. By what law? of works? Nay: but by the law of faith.28 Therefore we conclude that a man is justified by faith without the deeds of the law.
There was a "Law of Works" which was the Levitical Priesthood that was "Changed" in the New Covenant, and there is a
"Law of Faith" that Abraham was blessed for obeying that will be here as long as this earth is here. The Law of Works, Abraham didn't have, and was not "ADDED" to the Laws he kept until Moses some 430 years after him. (Gal. 3)
The Law of faith, "Love God" and "Love your Brethren" on which the entire Law and Prophets hang, is God's Universal Law that Eve and Cain broke.
The "Law of Works", the "ADDED" "Priesthood" which dealt with how God's Universal Law of Faith is administered and how sins were forgiven, was to be in place until the Seed should come. (Gal. 3:19)
Heb. 7:
11 If therefore perfection were by the
Levitical priesthood, (for under it the people received the law,(God's Universal Law of Faith)) what further need
was there that another priest should rise after the order of Melchisedec, and not be called after the order of Aaron?
This is the Priesthood Law that was "Changed", it was created originally for only Levites, but Jesus was from the tribe of Judah, so given there was a "Change" in the Priesthood, there had to also be a change in the law regarding who could hold the position. (Jesus wasn't a Levite)
12 For the priesthood being changed, there is
made of necessity a change also of the law.
13 For he of whom these things are spoken pertaineth
to another tribe, of
which no man gave attendance at the altar.
14 For
it is evident that
our Lord sprang out of Juda; (Not Levi)
of which tribe Moses spake nothing concerning priesthood.
The Jews didn't believe Jesus was that Messiah, so they continued to preach
their version of the "Old" Priesthood with it's ceremonial, sacrificial "Works and deeds of the Law" for remission of sins even after Jesus died. Paul and Peter struggled with this church through out the Bible.
So the Law of Faith is still intact and part of any true repentance, this is the Law Abraham was blessed for keeping.
Gen. 26:
4 And I will make thy seed to multiply as the stars of heaven, and will give unto thy seed all these countries; and in thy seed shall all the nations of the earth be blessed;
5Because that Abraham obeyed my voice, and kept my charge, my commandments, my statutes, and my laws.
Rom. 2:
11 For there is no respect of persons with God.
12 For as many as have
sinned without law (Gentiles)
shall also perish without law: and as many as have
sinned in the law (Jews)
shall be judged by the law;
13 (For not the hearers of the law (of faith)
are just before God,
but the doers of the law (of Faith) shall be justified.
Rom. 7:
12 Wherefore the law
is holy, and the commandment holy, and just, and good.
Rev. 14:
12 Here is the patience of the saints:
here are they that keep the commandments of God,
and the faith of Jesus.
1 Cor. 7:
19 Circumcision is nothing, and uncircumcision is nothing,
but the keeping of the commandments of God. (Law of Faith)
These all speak to the Law of faith.
But of the Law of Works.
Gal. 3:
2 This only would I learn of you, Received ye the Spirit by the
works of the law, or
by the hearing of faith? (of Abraham)
Rom. 4:
2 For if Abraham were
justified by works,(Law of Works he didn't even have yet) he hath
whereof to glory; but not before God.
Gal. 3:
11 But that no man is
justified by the law (Law of Works) in the sight of God,
it is evident: for, The just shall live by faith. (Law of Faith)
Rom. 9:
31 But Israel, which followed after the law of righteousness, hath not attained to the law of righteousness.
32 Wherefore? Because
they sought it not by faith,
but as it were by the works of the law. For they stumbled at that stumblingstone;
Gal. 2:
16 Knowing that a man is not justified by the works of the law, but by the faith of Jesus Christ, even we have believed in Jesus Christ, that we might be justified by the faith of Christ, and not by the works of the law:
for by the works of the law shall no flesh be justified.
Paul doesn't contradict himself at all. Once a person rids themselves of the influence of the "Many" who Jesus warned of, and actually read and "FOLLOW" the instructions, your understanding becomes clear, just as Jesus said it would.